:root {
    --navy: #0b1724;
    --navy-light: #122335;
    --green: #19735a;
    --green-light: #24906f;
    --white: #ffffff;
    --text: #e8efed;
    --muted: #9eafaa;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: #f5f7f6;
    color: #17221f;
    overflow-x: hidden;
}

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: var(--navy);
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.navbar-container {
    width: min(1180px, calc(100% - 40px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 36px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    margin: 0;
    padding: 0;
    color: var(--white);
    text-decoration: none !important;
    line-height: 1;
    white-space: nowrap;
}

    .brand:hover,
    .brand:focus,
    .brand:visited {
        color: var(--white);
        text-decoration: none !important;
    }

.brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--green);
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.brand-name {
    color: var(--white);
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
}

    .brand-name span {
        color: #38a77f;
    }

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
}

    .desktop-nav > a,
    .nav-dropdown-button {
        height: 42px;
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 0 15px;
        border: 0;
        border-radius: 9px;
        background: transparent;
        color: var(--text);
        text-decoration: none;
        font-family: inherit;
        font-size: 14px;
        cursor: pointer;
        white-space: nowrap;
    }

        .desktop-nav > a:hover,
        .nav-dropdown-button:hover {
            background: rgba(255, 255, 255, 0.07);
            color: var(--white);
        }

.nav-dropdown,
.account-dropdown {
    position: relative;
}

.dropdown-arrow {
    color: var(--muted);
    font-size: 13px;
    line-height: 1;
    transition: transform .2s ease;
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    min-width: 190px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--navy-light);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.nav-dropdown.open .dropdown-menu,
.account-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a,
.dropdown-menu button {
    width: 100%;
    display: block;
    padding: 11px 13px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    text-align: right;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

    .dropdown-menu a:hover,
    .dropdown-menu button:hover {
        background: rgba(36, 144, 111, 0.16);
        color: var(--white);
    }

.header-actions {
    display: flex;
    align-items: center;
}

.login-button {
    height: 40px;
    min-width: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 9px;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    transition: background .2s ease;
}

    .login-button:hover {
        background: var(--green-light);
        color: var(--white);
    }

.user-button {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: background .2s ease;
}

    .user-button:hover {
        background: rgba(36, 144, 111, 0.25);
    }

.user-icon {
    position: relative;
    width: 18px;
    height: 18px;
    display: block;
}

    .user-icon::before {
        content: "";
        position: absolute;
        top: 0;
        right: 5px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--white);
    }

    .user-icon::after {
        content: "";
        position: absolute;
        right: 2px;
        bottom: 0;
        width: 14px;
        height: 8px;
        border-radius: 9px 9px 4px 4px;
        background: var(--white);
    }

.account-menu {
    min-width: 170px;
}

.mobile-menu {
    display: none;
}

@media (max-width: 760px) {

    .navbar-container {
        width: calc(100% - 24px);
        height: 64px;
        gap: 10px;
    }

    .desktop-nav {
        display: none;
    }

    .header-actions {
        margin-right: auto;
    }

    .mobile-menu {
        position: relative;
        display: block;
        order: 3;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
        border: 0;
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.07);
        cursor: pointer;
    }

        .menu-toggle span {
            width: 19px;
            height: 2px;
            border-radius: 2px;
            background: var(--white);
        }

    .mobile-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: auto;
        width: min(235px, calc(100vw - 24px));
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 13px;
        background: var(--navy-light);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-5px);
        transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    }

    .mobile-menu.open .mobile-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-nav a,
    .mobile-logout {
        display: block;
        width: 100%;
        padding: 12px 13px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--text);
        text-align: right;
        text-decoration: none;
        font-family: inherit;
        font-size: 13px;
        cursor: pointer;
    }

        .mobile-nav a:hover,
        .mobile-logout:hover {
            background: rgba(36, 144, 111, 0.16);
            color: var(--white);
        }

    .mobile-login {
        margin-top: 4px;
        background: var(--green) !important;
        color: var(--white) !important;
        text-align: center !important;
    }

    .brand {
        height: 40px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 9px;
        font-size: 18px;
    }

    .brand-name {
        font-size: 19px;
    }

    .account-dropdown .dropdown-menu {
        left: 0;
        right: auto;
    }
}


.footer-main {
    padding: 18px 20px;
    text-align: center;
    background: #071b2d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    direction: rtl;
}

.footer-link {
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .footer-link:hover {
        color: #4fae8a;
    }