/* SECTION: Navbar */
.ch-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(0, 0, 0, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(58, 134, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.05);
    width: 100% !important;
    box-sizing: border-box !important;
}

.ch-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: var(--font-heading);
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ch-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-blue), #6366f1, #ec4899, #06b6d4);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ch-logo:hover::before {
    opacity: 1;
}

/* Mobile full-width buttons */
.btn-mobile-full {
    width: 100%;
    text-align: center;
    display: block;
    margin-bottom: 12px;
}

.ch-nav-links {
    display: flex;
    gap: 30px;
}

.ch-nav-links a {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
    transition: color 0.3s ease;
    z-index: 1;
}

.ch-nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 6px;
    padding: 1px;
    background: linear-gradient(90deg, var(--accent-blue), #6366f1, #ec4899, #06b6d4, var(--accent-blue));
    background-size: 300% 100%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: borderRotate 3s linear infinite paused;
}

.ch-nav-links a:hover {
    color: var(--text-primary);
}

.ch-nav-links a:hover::before {
    opacity: 1;
    animation-play-state: running;
}

/* Header CTA buttons (Join/Login or Profile/Logout) */
.ch-navbar .ch-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ch-navbar .nav-login-link {
    margin-left: 0 !important;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ch-navbar .nav-login-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   NEW OFF-CANVAS MOBILE MENU
   Clean, modern slide-in navigation
   ============================================ */

/* Desktop: Show nav-links & CTA, hide mobile toggle */
.ch-navbar .ch-nav-links,
.ch-navbar .ch-cta {
    display: flex;
    align-items: center;
}

/* Hide mobile toggle on desktop */
.iv-mobile-toggle {
    display: none;
}

/* Hide off-canvas elements on desktop */
.iv-offcanvas-overlay,
.iv-offcanvas-menu {
    display: none;
}

/* ============================================
   MOBILE STYLES (max-width: 768px)
   ============================================ */
@media screen and (max-width: 768px) {

    /* Hide desktop navigation on mobile */
    .ch-navbar .ch-nav-links,
    .ch-navbar .ch-cta,
    .ch-nav-links,
    .ch-cta {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        /* Force out of flow */
        left: -9999px !important;
    }

    /* Ensure mobile actions are correctly positioned */
    .iv-mobile-actions {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
    }

    /* Mobile hamburger toggle button */
    .iv-mobile-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        margin-left: auto;
        z-index: 100;
        -webkit-tap-highlight-color: transparent;
    }

    .iv-mobile-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background: linear-gradient(90deg, #3A86FF, #6366f1);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .iv-mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .iv-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .iv-mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Off-canvas overlay */
    .iv-offcanvas-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .iv-offcanvas-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Off-canvas menu panel */
    .iv-offcanvas-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        /* Dynamic viewport height for mobile */
        background: linear-gradient(180deg, #0a0a0f 0%, #000 100%);
        z-index: 9999;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        overflow-x: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        /* Smooth momentum scrolling on iOS */
        overscroll-behavior: contain;
        /* Prevent scroll chaining */
    }

    .iv-offcanvas-menu.active {
        right: 0;
    }

    /* Off-canvas header */
    .iv-offcanvas-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .iv-offcanvas-logo {
        font-family: 'Alice', serif;
        font-size: 1.4rem;
        font-weight: 700;
        color: #fff !important;
        text-decoration: none !important;
    }

    .iv-offcanvas-close {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        color: #fff;
        transition: background 0.3s ease;
    }

    .iv-offcanvas-close svg {
        width: 32px;
        height: 32px;
    }

    .iv-offcanvas-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Tagline */
    .iv-offcanvas-tagline {
        padding: 15px 20px 10px;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: #3A86FF;
        margin: 0;
    }

    /* Navigation links */
    .iv-offcanvas-links {
        display: flex;
        flex-direction: column;
        padding: 10px 0;
    }

    .iv-offcanvas-links a {
        display: block;
        padding: 14px 20px;
        color: #fff !important;
        font-size: 1rem;
        font-weight: 500;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }

    .iv-offcanvas-links a:hover,
    .iv-offcanvas-links a:focus {
        background: rgba(58, 134, 255, 0.1);
        color: #3A86FF !important;
        padding-left: 25px;
    }

    /* CTA buttons */
    .iv-offcanvas-cta {
        margin-top: auto;
        padding: 20px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 20px));
        /* Safe area for modern phones */
        display: flex;
        flex-direction: column;
        gap: 12px;
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    .iv-btn {
        display: block;
        width: 100%;
        padding: 14px 20px;
        text-align: center;
        font-weight: 600;
        font-size: 1rem;
        border-radius: 8px;
        text-decoration: none !important;
        transition: all 0.3s ease;
    }

    .iv-btn-primary {
        background: linear-gradient(135deg, #3A86FF, #6366f1);
        color: #fff !important;
        box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
    }

    .iv-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(58, 134, 255, 0.4);
    }

    .iv-btn-outline {
        background: transparent;
        color: #fff !important;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .iv-btn-outline:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #3A86FF;
    }

    /* MOBILE NAVBAR STYLES */
    .ch-navbar {
        padding: 12px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .ch-logo {
        font-size: 1.2rem !important;
        padding: 5px 10px !important;
    }

    /* Ensure header spans full width on mobile */
    .iv-global-header,
    header.iv-global-header {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ============================================
   35. SEARCH MODAL STYLES
   Full-screen search overlay
   ============================================ */

/* Search toggle button in header */
.iv-search-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    cursor: pointer !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}

.iv-search-toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.iv-search-toggle svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
    fill: none !important;
    display: block !important;
}

.iv-search-toggle svg circle,
.iv-search-toggle svg line {
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
}

/* Search modal overlay */
.iv-search-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.iv-search-modal.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.iv-search-modal-content {
    width: 90% !important;
    max-width: 600px !important;
    position: relative !important;
}

/* Search modal close button */
.iv-search-close {
    position: absolute !important;
    top: -60px !important;
    right: 0 !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    color: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.iv-search-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #fff !important;
    transform: rotate(90deg) !important;
}

.iv-search-close svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #fff !important;
}

/* Search input field */
.iv-search-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.iv-search-input-wrapper {
    position: relative !important;
}

.iv-search-input {
    width: 100% !important;
    padding: 20px 60px 20px 25px !important;
    font-size: 1.3rem !important;
    font-family: var(--font-body) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    color: #fff !important;
    outline: none !important;
    transition: all 0.3s ease !important;
}

.iv-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.iv-search-input:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.2) !important;
}

.iv-search-submit {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    background: linear-gradient(135deg, var(--accent-blue), #6366f1) !important;
    border: none !important;
    border-radius: 50% !important;
    color: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.iv-search-submit:hover {
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 5px 20px rgba(58, 134, 255, 0.4) !important;
}

.iv-search-submit svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #fff !important;
}

/* Search hint text */
.iv-search-hint {
    text-align: center !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 15px !important;
    font-size: 14px !important;
}

/* ============================================
   36. SMOOTHER OFF-CANVAS TRANSITIONS
   ============================================ */

/* Overlay transition */
.iv-offcanvas-overlay {
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s !important;
}

/* Menu slide transition - smoother cubic-bezier */
.iv-offcanvas-menu {
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Links stagger animation when menu opens */
.iv-offcanvas-menu.active .iv-offcanvas-links a {
    animation: slideInLink 0.4s ease forwards !important;
}

.iv-offcanvas-menu.active .iv-offcanvas-links a:nth-child(1) {
    animation-delay: 0.1s !important;
}

.iv-offcanvas-menu.active .iv-offcanvas-links a:nth-child(2) {
    animation-delay: 0.15s !important;
}

.iv-offcanvas-menu.active .iv-offcanvas-links a:nth-child(3) {
    animation-delay: 0.2s !important;
}

.iv-offcanvas-menu.active .iv-offcanvas-links a:nth-child(4) {
    animation-delay: 0.25s !important;
}

.iv-offcanvas-menu.active .iv-offcanvas-links a:nth-child(5) {
    animation-delay: 0.3s !important;
}

.iv-offcanvas-menu.active .iv-offcanvas-links a:nth-child(6) {
    animation-delay: 0.35s !important;
}

.iv-offcanvas-menu.active .iv-offcanvas-links a:nth-child(7) {
    animation-delay: 0.4s !important;
}

@keyframes slideInLink {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* CTA buttons fade in */
.iv-offcanvas-menu.active .iv-offcanvas-cta {
    animation: fadeInUp 0.5s ease 0.3s forwards !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close button smooth rotation on hover */
.iv-offcanvas-close:active {
    transform: scale(0.95) !important;
}

/* Hamburger to X animation improvement */
.iv-mobile-toggle span {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ============================================
   38. IMPROVED SEARCH MODAL - MODERN & CLEAN
   ============================================ */

/* Better search input contrast */
.iv-search-input {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    padding: 20px 28px !important;
    font-size: 1.3rem !important;
}

.iv-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.iv-search-input:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 30px rgba(58, 134, 255, 0.4) !important;
}

/* Search modal improvements */
.iv-search-modal {
    backdrop-filter: blur(20px) !important;
}

.iv-search-modal-content {
    max-width: 700px !important;
}

/* Search hint styling */
.iv-search-hint {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem !important;
    margin-top: 15px !important;
    text-align: center !important;
}

/* Search input wrapper for modern look */
.iv-search-input-wrapper {
    display: flex !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Mobile search improvements */
@media screen and (max-width: 768px) {
    .iv-search-input {
        padding: 16px 20px !important;
        font-size: 1.1rem !important;
    }

    .iv-search-modal-content {
        width: 95% !important;
    }
}

/* ============================================
   HEADER & PMPRO FIXES (Added Jan 2026)
   ============================================ */

/* Force Search Toggle White - CRITICAL FIX */
.iv-search-toggle,
.iv-mobile-actions .iv-search-toggle,
button.iv-search-toggle,
.ch-navbar .iv-search-toggle,
.ch-cta .iv-search-toggle,
#ivSearchToggle,
#ivMobileSearchToggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    padding: 8px !important;
}

.iv-search-toggle svg,
.iv-mobile-actions .iv-search-toggle svg,
button.iv-search-toggle svg,
#ivSearchToggle svg,
#ivMobileSearchToggle svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
    fill: none !important;
}

.iv-search-toggle:hover,
#ivSearchToggle:hover,
#ivMobileSearchToggle:hover {
    border-color: var(--accent-blue) !important;
    background: rgba(58, 134, 255, 0.1) !important;
}

/* Offcanvas Close Button - Make X Bigger */
.iv-offcanvas-close,
#ivOffcanvasClose,
button.iv-offcanvas-close {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    color: #fff !important;
    padding: 0 !important;
}

.iv-offcanvas-close svg,
#ivOffcanvasClose svg,
button.iv-offcanvas-close svg {
    width: 32px !important;
    height: 32px !important;
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
}

.iv-offcanvas-close:hover,
#ivOffcanvasClose:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

/* ============================================
   SEARCH MODAL STYLES - CRITICAL FIX
   ============================================ */

/* Search Modal Overlay */
.iv-search-modal,
#ivSearchModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 99999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.iv-search-modal.active,
#ivSearchModal.active {
    display: flex !important;
}

/* Search Modal Content */
.iv-search-modal-content {
    width: 100% !important;
    max-width: 600px !important;
    position: relative !important;
}

/* Search Close Button - BIG AND VISIBLE */
.iv-search-close,
#ivSearchClose,
button.iv-search-close {
    position: absolute !important;
    top: -60px !important;
    right: 0 !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
}

.iv-search-close svg,
#ivSearchClose svg {
    width: 28px !important;
    height: 28px !important;
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
}

.iv-search-close:hover,
#ivSearchClose:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: var(--accent-blue) !important;
    transform: rotate(90deg) !important;
}

/* Search Form */
.iv-search-form {
    width: 100% !important;
}

.iv-search-input-wrapper {
    display: flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid var(--accent-blue) !important;
    border-radius: 50px !important;
    padding: 5px !important;
    box-shadow: 0 0 30px rgba(58, 134, 255, 0.3) !important;
}

.iv-search-input {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    color: #fff !important;
    outline: none !important;
}

.iv-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.iv-search-submit {
    width: 50px !important;
    height: 50px !important;
    background: var(--accent-blue) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.iv-search-submit svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #fff !important;
}

.iv-search-hint {
    text-align: center !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 15px !important;
    font-size: 14px !important;
}

/* ============================================
   HAMBURGER MENU ICON - 3 LINES FIX
   ============================================ */

/* Ensure hamburger shows 3 horizontal lines */
.iv-mobile-toggle,
#ivMobileToggle,
button.iv-mobile-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    width: 44px !important;
    height: 44px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
}

.iv-mobile-toggle span,
#ivMobileToggle span,
.iv-mobile-toggle>span,
#ivMobileToggle>span,
button.iv-mobile-toggle span {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 3px !important;
    min-height: 3px !important;
    background: linear-gradient(90deg, #3A86FF, #6366f1) !important;
    background-color: #3A86FF !important;
    border-radius: 3px !important;
    transition: all 0.3s ease !important;
    content: '' !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

/* Hide on desktop */
@media screen and (min-width: 769px) {

    .iv-mobile-toggle,
    #ivMobileToggle,
    .iv-mobile-actions {
        display: none !important;
    }
}

/* Show on mobile */
@media screen and (max-width: 768px) {
    .iv-mobile-actions {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-left: auto !important;
    }

    .iv-mobile-toggle,
    #ivMobileToggle {
        display: flex !important;
    }
}

/* ============================================
   PROFILE & NAV STYLES (Migrated from style.css)
   ============================================ */
/* Profile icon button */
.btn-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #6366f1);
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.btn-profile::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #6366f1, #ec4899, #06b6d4);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-profile:hover {
    transform: scale(1.1);
}

.btn-profile:hover::before {
    opacity: 1;
}

/* Profile image button (with actual user avatar) */
.btn-profile-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-blue), #6366f1, #ec4899, #06b6d4);
}

.btn-profile-img .header-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000;
}

.btn-profile-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(58, 134, 255, 0.5);
}

/* Research nav link highlight */
.nav-research {
    color: var(--accent-blue) !important;
    font-weight: 700;
}