/* ── Navbar specific styles ── */
/* ── Header / Navbar ── */
header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    flex-shrink: 0;
    margin-right: auto;
}

.logo img {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo span {
    color: var(--color-text);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    margin-left: auto;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    color: var(--color-text-muted);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
}

.nav-links a i.fa-chevron-down {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.nav-links li:hover>a i.fa-chevron-down,
.nav-links li.show>a i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--color-primary);
    background: rgba(192, 57, 43, 0.06);
}

.nav-links a:hover::after {
    width: 60%;
}

.nav-links a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-links a.active::after {
    width: 60%;
}

.nav-links .btn-login {
    background: var(--color-primary);
    color: var(--color-white) !important;
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

.nav-links .btn-login:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(192, 57, 43, 0.30);
    color: var(--color-white) !important;
}

.nav-links .btn-login::after {
    display: none;
}

.nav-links .btn-login i {
    margin-right: 6px;
    font-size: 0.75rem;
}

/* ── Dropdown Menu ── */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
    border: 1px solid var(--color-border);
    pointer-events: none;
}

.dropdown:hover>.dropdown-menu,
.dropdown.show>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 0;
    width: 100%;
}

.dropdown-menu a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.dropdown-menu a::after {
    display: none;
}

.mega-dropdown .dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 420px;
    padding: 20px;
}

.mega-dropdown:hover>.dropdown-menu,
.mega-dropdown.show>.dropdown-menu {
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.dropdown-item:hover {
    background: var(--color-bg);
    border-color: var(--color-border);
}

.dropdown-item img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.dropdown-item span {
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.85rem;
}

.dropdown-item .sub-text {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    display: block;
}

.hamburger {
    display: none;
    font-size: 1.4rem;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
    margin-left: auto;
}

.hamburger:hover {
    background: rgba(192, 57, 43, 0.08);
    color: var(--color-primary);
}

/* (Yeh aapke existing CSS ke saath merge ho jayega) */

.nav-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 4px;
    border-radius: 60px;
    background: rgba(192, 57, 43, 0.06);
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.25s ease;
    position: relative;
    margin-left: 4px;
}

.nav-profile:hover {
    border-color: #c0392b;
    background: rgba(192, 57, 43, 0.10);
    box-shadow: 0 2px 12px rgba(192, 57, 43, 0.15);
}

.nav-profile .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c0392b, #f39c12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.25);
}

.nav-profile .profile-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e1e2a;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-profile .profile-chevron {
    color: #4a4a5a;
    font-size: 0.6rem;
    transition: 0.25s ease;
}

.nav-profile:hover .profile-chevron {
    color: #c0392b;
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
    border: 1px solid #e8e0d8;
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 1000;
}

.profile-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #4a4a5a;
    font-weight: 500;
    font-size: 0.85rem;
    transition: 0.25s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.profile-dropdown .dropdown-item:hover {
    background: #fdf8f4;
    color: #c0392b;
}

.profile-dropdown .dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    color: #4a4a5a;
    transition: 0.25s ease;
}

.profile-dropdown .dropdown-item:hover i {
    color: #c0392b;
}

.profile-dropdown .divider {
    height: 1px;
    background: #e8e0d8;
    margin: 6px 16px;
}

.profile-dropdown .logout-item {
    color: #dc2626;
}

.profile-dropdown .logout-item i {
    color: #dc2626;
}

.profile-dropdown .logout-item:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.profile-dropdown .logout-item:hover i {
    color: #b91c1c;
}

.btn-login {
    background: #c0392b;
    color: #fff !important;
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: 0.25s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-login:hover {
    background: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(192, 57, 43, 0.30);
    color: #fff !important;
}

.btn-login i {
    font-size: 0.75rem;
}

/* ── Mobile responsive overrides ── */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-left: 0;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-md);
        padding: 8px 0;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        padding: 10px 16px;
    }

    .dropdown-menu,
    .mega-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        min-width: 100%;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        pointer-events: none;
        transition: none;
    }

    .dropdown.show > .dropdown-menu {
        visibility: visible;
        max-height: 1000px;
        padding: 8px 0;
        pointer-events: auto;
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
    }

    .nav-profile {
        width: 100%;
        padding: 10px 16px;
        border-radius: 8px;
        background: transparent;
        border: none;
        justify-content: flex-start;
        gap: 12px;
        margin-left: 0;
    }

    .nav-profile:hover {
        background: rgba(192, 57, 43, 0.06);
        border-color: transparent;
        box-shadow: none;
    }

    .nav-profile .profile-name {
        max-width: 150px;
        font-size: 0.9rem;
    }

    .nav-profile .avatar {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .profile-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        pointer-events: auto;
        padding-left: 16px;
        border-left: 2px solid #e8e0d8;
        margin-left: 16px;
        border-radius: 0;
        width: calc(100% - 16px);
    }

    .profile-dropdown.open {
        display: block;
        transform: none;
    }

    .profile-dropdown .dropdown-item {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .profile-dropdown .divider {
        margin: 4px 16px;
    }
}