/* Modern Members Area Header - Nookies Blue Theme */

:root {
    --nookies-blue: #2563eb;
    --nookies-blue-dark: #1e40af;
    --nookies-blue-light: #3b82f6;
    --nookies-blue-hover: #1d4ed8;
    --sidebar-width: 150px;
    --header-height: 65px;
    --sidebar-bg: #0a0a0a;
    --sidebar-hover: #1a1a1a;
}

/* Reset default header styles */
header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #000 0%, #0a0a0a 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    padding: 0 !important;
    margin: 0 !important;
    height: var(--header-height);
    max-height: var(--header-height);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow-y: hidden;
    overflow-x: hidden;
}

header .container {
    max-width: 100% !important;
    padding: 0;
    width: 100%;
    height: 100%;
}

header .block-header {
    display: flex;
    align-items: center;
    height: var(--header-height);
    padding: 0 24px 0 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Mobile Hamburger */
.mobile-menu {
    display: none;
    position: absolute;
    left: 12px;
    top: 40%;
    transform: translateY(-50%);
    z-index: 15;
}

.hamburger-btn {
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.hamburger-btn i {
    font-size: 30px;
    color: white;
    transition: all 0.2s ease;
}

.hamburger-btn:hover i {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Logo */
.brand-logo-wrapper {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 12;
    max-width: calc(100% - 100px);
    overflow: hidden;
    box-sizing: border-box;
    max-height: var(--header-height);
    height: auto;
    display: flex;
    align-items: center;
}

/* New logo link design, keep Nookies image */
.Header-Logo-Link {
    --white: #ffffff;
    --dark: #0a0a0c;
    --black: #010102;
    --pureBlack: #000000;
    --alert: #cc4b37;
    --primaryColor: #01f4e0;
    --primaryColorFade: rgba(1, 244, 224, 0.2);
    --primaryColorDark: #09c6cd;
    --primaryColorDarkAlt: #00312d;
    --primaryColorDarkGradient: linear-gradient(#01f4e0, #09c6cd);
    --primaryColorDarkGradientHover: linear-gradient(#09c6cd, #09c6cd);
    --primaryColorLight: #7bfef3;
    --secondaryColor: #95b9b9;
    --secondaryColorDark: #6c9e9e;
    --secondaryColorLight: #c9dcdc;
    --ternaryColor: #9a9a9a;
    --ternaryColorDark: #818181;
    --ternaryColorLight: #B4B4B4;
    --gray: #333;
    --darkGray: #151519;
    --darkishGrayFade: rgba(31, 31, 31, 0.9);
    --mediumGray: #2d3035;
    --mediumGrayAlt: #3d454d;
    --lightGray: #444452;
    --lightGrayAlt: #6A6A6A;
    --highlight: #1c4745;
    --blue: #5B6E86;
    --darkBlue: #000115;
    --darkerBlue: #090a0f;
    --blackFade: rgba(0, 0, 0, 0.9);
    --blackFadeLight: rgba(0, 0, 0, 0.75);
    --goldenYellow: #ffcd00;
    --lightBlue: #ADD1FF;
    --blueNight: radial-gradient(#070742 15%, #000116 50%);
    --whiteFade: rgba(255, 255, 255, 0.75);
    --nameColor: #ffffff;
    --titleColor: #ffffff;
    --linkColor: #01f4e0;
    --linkColorAlt: #09c6cd;
    --linkColorHover: #ffffff;
    --textColor: #9a9a9a;
    --textColorAlt: #999;
    --borderColor: #333;
    --borderColorAlt: #222;
    --buttonColor: #010102;
    --buttonBackgroundColor: #01f4e0;
    --buttonBorderColor: #01f4e0;
    --buttonColorHover: #010102;
    --buttonBackgroundColorHover: #09c6cd;
    --buttonBorderColorHover: #09c6cd;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgb(36, 36, 36) rgb(0, 0, 0);
    outline: 0;
    margin-left: 0;
    margin-right: 20px;
    line-height: 1;
    font-family: Hind, sans-serif;
    color: var(--ternaryColor);
    cursor: pointer;
    font-weight: 400;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.23s;

    /* override old brand-logo glassmorphism */
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.Header-Logo-Link:hover {
    color: var(--linkColorHover);
}

.Layout-Default-Header-Logo-Image {
    height: 48px;
    width: auto;
    max-width: 234px;
    display: block;
    object-fit: contain;
}

/* Desktop Navigation - Hidden by default, shown in sidebar */
.main-nav {
    display: none;
}

/* Search Bar - Center on Desktop */
.search-box {
    position: absolute !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) !important;
    width: 450px;
    max-width: calc(100% - 200px);
    min-width: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
    box-sizing: border-box;
    overflow: hidden;
    max-height: var(--header-height);
    height: auto;
}

.search-box form {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-height: var(--header-height);
    height: auto;
    box-sizing: border-box;
}

/* Search Counter */
.search-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    z-index: 15;
}

.search-counter.active {
    display: flex;
}

/* Modern search icon */
.search-wrapper::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 18px;
    color: rgba(255,255,255,0.5);
    font-size: 15px;
    z-index: 2;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within::before {
    color: rgba(255,255,255,0.8);
    transform: scale(1.15);
}

/* Beautiful search input */
.search-control {
    width: 100%;
    padding: 12px 22px 12px 48px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.3),
        inset 0 0 0 1px rgba(255,255,255,0.05);
}

.search-control::placeholder {
    color: rgba(255,255,255,0.4);
    font-weight: 400;
    transition: color 0.3s ease;
}

.search-control:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.12);
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.4),
        inset 0 0 0 1px rgba(255,255,255,0.08);
}

.search-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    outline: none;
    box-shadow: 
        0 8px 30px rgba(0,0,0,0.5),
        0 0 0 3px rgba(255,255,255,0.1);
}

.search-control:focus::placeholder {
    color: rgba(255,255,255,0.5);
    transform: translateX(2px);
}

/* Search submit button (hidden but functional) */
.search-wrapper::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 18px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within::after {
    opacity: 1;
    right: 20px;
    color: rgba(255,255,255,0.8);
}

/* Loading state animation */
@keyframes searchPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.search-control.loading {
    animation: searchPulse 1.5s ease-in-out infinite;
}

.btn-close-search {
    display: none !important;
}

/* Mobile Search Icon */
.mobile-search {
    display: none;
}

/* Notification (Beamer) Icon */
.Header-Beamer-Icon {
    --white: #ffffff; --dark: #0a0a0c; --black: #010102; --pureBlack: #000000; --alert: #cc4b37; --primaryColor: #01f4e0; --primaryColorFade: rgba(1,244,224,0.2); --primaryColorDark: #09c6cd; --primaryColorDarkAlt: #00312d; --primaryColorDarkGradient: linear-gradient(#01f4e0,#09c6cd); --primaryColorDarkGradientHover: linear-gradient(#09c6cd,#09c6cd); --primaryColorLight: #7bfef3; --secondaryColor: #95b9b9; --secondaryColorDark: #6c9e9e; --secondaryColorLight: #c9dcdc; --ternaryColor: #9a9a9a; --ternaryColorDark: #818181; --ternaryColorLight: #B4B4B4; --gray: #333; --darkGray: #151519; --darkishGrayFade: rgba(31,31,31,0.9); --mediumGray: #2d3035; --mediumGrayAlt: #3d454d; --lightGray: #444452; --lightGrayAlt: #6A6A6A; --highlight: #1c4745; --blue: #5B6E86; --darkBlue: #000115; --darkerBlue: #090a0f; --blackFade: rgba(0,0,0,0.9); --blackFadeLight: rgba(0,0,0,0.75); --goldenYellow: #ffcd00; --lightBlue: #ADD1FF; --blueNight: radial-gradient(#070742 15%, #000116 50%); --whiteFade: rgba(255,255,255,0.75); --nameColor: #ffffff; --titleColor: #ffffff; --linkColor: #01f4e0; --linkColorAlt: #09c6cd; --linkColorHover: #ffffff; --textColor: #9a9a9a; --textColorAlt: #999; --borderColor: #333; --borderColorAlt: #222; --inputColor: #ffffff; --inputPlaceholderColor: #9a9a9a; --inputBackgroundColor: transparent; --inputBorderColor: #01f4e0; --buttonColor: #010102; --buttonBackgroundColor: #01f4e0; --buttonBorderColor: #01f4e0; --buttonColorHover: #010102; --buttonBackgroundColorHover: #09c6cd; --buttonBorderColorHover: #09c6cd; --sidebarBg: #010102; --filtersBg: #010102; --headerBg: #010102; --footerBg: #010102; --siteBg: #151519; --searchBg: #010102; --commentsBg: #151519; --planBg: #010102; --fadeBg: rgba(1,244,224,0.2); --modalBg: #0a0a0c; --height: 24px;
    font-size: 12px; color: rgb(148,184,184); font-family: Hind, sans-serif; font-weight: 400; margin: 0; padding: 0; box-sizing: border-box; scrollbar-width: thin; scrollbar-color: rgb(36,36,36) rgb(0,0,0);
    flex-shrink: 0; margin: auto 4px; display: inline-flex; align-items: center; width: 35px; height: 35px; position: relative; cursor: pointer; opacity: .95;
}

.Header-Beamer-Icon-Svg {
    width: 18px; height: 18px; background-color: var(--white); display: block;
}

.beamer_icon {
    position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; color: #fff; font-size: 12px; line-height: 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(0,0,0,0.2);
}

/* Avatar / Account trigger */
.UserDropdown-TriggerButton-Link {
    --white: #ffffff; --dark: #0a0a0c; --black: #010102; --pureBlack: #000000; --alert: #cc4b37; --primaryColor: #01f4e0; --primaryColorFade: rgba(1,244,224,0.2); --primaryColorDark: #09c6cd; --primaryColorDarkAlt: #00312d; --primaryColorDarkGradient: linear-gradient(#01f4e0,#09c6cd); --primaryColorDarkGradientHover: linear-gradient(#09c6cd,#09c6cd); --primaryColorLight: #7bfef3; --secondaryColor: #95b9b9; --secondaryColorDark: #6c9e9e; --secondaryColorLight: #c9dcdc; --ternaryColor: #9a9a9a; --ternaryColorDark: #818181; --ternaryColorLight: #B4B4B4; --gray: #333; --darkGray: #151519; --darkishGrayFade: rgba(31,31,31,0.9); --mediumGray: #2d3035; --mediumGrayAlt: #3d454d; --lightGray: #444452; --lightGrayAlt: #6A6A6A; --highlight: #1c4745; --blue: #5B6E86; --darkBlue: #000115; --darkerBlue: #090a0f; --blackFade: rgba(0,0,0,0.9); --blackFadeLight: rgba(0,0,0,0.75); --goldenYellow: #ffcd00; --lightBlue: #ADD1FF; --blueNight: radial-gradient(#070742 15%, #000116 50%); --whiteFade: rgba(255,255,255,0.75); --nameColor: #ffffff; --titleColor: #ffffff; --linkColor: #01f4e0; --linkColorAlt: #09c6cd; --linkColorHover: #ffffff; --textColor: #9a9a9a; --textColorAlt: #999; --borderColor: #333; --borderColorAlt: #222; --inputColor: #ffffff; --inputPlaceholderColor: #9a9a9a; --inputBackgroundColor: transparent; --inputBorderColor: #01f4e0; --buttonColor: #010102; --buttonBackgroundColor: #01f4e0; --buttonBorderColor: #01f4e0; --buttonColorHover: #010102; --buttonBackgroundColorHover: #09c6cd; --buttonBorderColorHover: #09c6cd; --sidebarBg: #010102; --filtersBg: #010102; --headerBg: #010102; --footerBg: #010102; --siteBg: #151519; --searchBg: #010102; --commentsBg: #151519; --planBg: #010102; --fadeBg: rgba(1,244,224,0.2); --modalBg: #0a0a0c; --height: 24px;
    font-size: 12px; color: rgb(148,184,184); font-family: Hind, sans-serif; font-weight: 400; margin: 0; padding: 0; box-sizing: border-box; scrollbar-width: thin; scrollbar-color: rgb(36,36,36) rgb(0,0,0);
    flex-shrink: 0; margin: auto 4px; display: inline-flex; align-items: center; width: 35px; height: 35px; position: relative; cursor: pointer; opacity: .95; text-decoration: none;
}

.UserDropdown-TriggerButton-Link-Icon { width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center; }
.UserDropdown-TriggerButton-Link-Icon-Svg { width: 25px; height: 25px; background-color: var(--white); display: block; }

/* Account actions (notifications + avatar) on the right */
.account-actions {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 1200;
    justify-content: flex-end;
}

/* New dropdown layover */
.UserDropdown-LayoverBox {
    --white: #ffffff; --dark: #0a0a0c; --black: #010102; --primaryColor: #01f4e0; --primaryColorDark: #09c6cd; --borderColor: #222; --textColor: #9a9a9a;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--dark);
    border: 1px solid var(--borderColor);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.UserDropdown-LayoverBox.active { opacity: 1; visibility: visible; transform: translateY(0); }

.UserDropdown-Inner { display: block; }
.UserDropdown-TwoCol { display: flex; align-items: center; width: 100%; }
.UserDropdown-ColLeft { width: 40%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 6px 8px; }
.UserDropdown-AvatarWrap { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--primaryColor); display:flex; align-items:center; justify-content:center; background: #0f0f12; }
.UserDropdown-AvatarImg { width: 48px; height: 48px; }
.UserDropdown-ProfileLink { color: var(--white); text-decoration: none; font-weight: 600; }
.UserDropdown-VDivider { width: 1px; height: 70px; background: rgba(255,255,255,0.2); margin: 0 10px; }
.UserDropdown-ColRight { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 6px 0; }
.UserDropdown-Username { color: var(--textColor); font-size: 12px; }
.UserDropdown-QuickButtons { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.UserDropdown-QuickButtons > .Link { width: 100%; display: block; }
.UserDropdown-QuickButtons .Button { width: 100%; box-sizing: border-box; }

.UserDropdown-HDivider { height: 1px; background: #ffffff; opacity: 0.25; margin: 12px 0; }
.UserDropdown-BottomActions { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 0 0; }

.UserDropdown-LayoverBox .Button { font-family: Hind; color: var(--dark); cursor: pointer; font-weight: 400; font-size: 12px; text-transform: capitalize; appearance: none; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(var(--primaryColor), var(--primaryColorDark)); border: var(--primaryColorDark) 1px solid; padding: 0.3em 0.8em; transition: 0.23s; border-radius: 8px; }
.UserDropdown-LayoverBox .Button:hover { filter: brightness(1.05); }

/* Bottom action row styles per spec */
.UserDropdown-LayoverBox .styles_hzUixbtWrI.styles_byrxvRSUkc { display: flex; justify-content: flex-end; padding: 10px 0 0; }
.UserDropdown-LayoverBox .UserProfileCard-Support-Button,
.UserDropdown-LayoverBox .UserProfileCard-Logout-Button { background: #000; color: #fff; border: 1px solid #fff; }

.UserDropdown-LayoverBox.styles_EeunVmImZm { width: 358.438px; padding: 20px; border-radius: 5px; }
.UserDropdown-LayoverBox .styles_EED_uyOoqW.styles_f4m8NxXjYB { display: block; }
.UserDropdown-LayoverBox .UserProfileCard-UpperRow-BorderBox { border-bottom: 1px solid #333; padding-bottom: 12px; }
.UserDropdown-LayoverBox .styles_hzUixbtWrI.styles_wq2wpmFIvq { display: flex; justify-content: center; }
.UserDropdown-LayoverBox .UserProfileCard-UpperRow-InnerBox-BorderBox { display: flex; border-right: 1px solid #333; }
.UserDropdown-LayoverBox .styles_t9_ywf9dhY.styles_bEqJnYv3Ug { width: 110px; display:flex; flex-direction:column; align-items:center; padding: 0 10px 10px; }
.UserDropdown-LayoverBox .styles_t9_ywf9dhY.styles_Im7iZhk2R_ { flex:1; display:flex; flex-direction:column; padding: 0 10px 10px; }
.UserDropdown-LayoverBox .styles_jkHzfcZ71D { width: 60px; height: 60px; border-radius: 50%; overflow:hidden; display:block; }
.UserDropdown-LayoverBox .UserProfileCard-AvatarImg-BackgroundBox { width: 60px; height: 60px; }
.UserDropdown-LayoverBox .UserProfileCard-AvatarImg { width: 60px; height: 60px; object-fit: cover; display:block; }
.UserDropdown-LayoverBox .styles_rndw5AWdLZ { margin-top: 10px; }
.UserDropdown-LayoverBox .UserProfileCard-Profile-Link { color: var(--linkColor); text-decoration: none; }
.UserDropdown-LayoverBox .UserProfileCard-Username-Text { color: var(--textColor); margin-bottom: 7px; }
.UserDropdown-LayoverBox .styles_dAFwIaytKq { display: block; width: 100%; }
.UserDropdown-LayoverBox .UserProfileCard-AccountBTN-Button,
.UserDropdown-LayoverBox .UserProfileCard-Password-Button,
.UserDropdown-LayoverBox .UserProfileCard-PaymentInfo-Button,
.UserDropdown-LayoverBox .ProfileCard-UpgradePlan-CTA-Button { width: 100%; margin-bottom: 4px; }
.UserDropdown-LayoverBox .ProfileCard-UpgradePlan-CTA-Link { display:flex; width: 100%; }
.UserDropdown-LayoverBox .styles_Hwt8BBTNng { margin-right: 5px; }

/* Old selector kept for compatibility if used elsewhere - hidden now */
.user-dropdown {
    display: none !important;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    max-height: var(--header-height);
    height: auto;
    box-sizing: border-box;
}

.user-trigger:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.15);
}

.user-avatar i {
    font-size: 15px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.user-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #0a0a0a;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.user-dropdown.active .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.user-menu a:first-child {
    border-radius: 12px 12px 0 0;
    padding-top: 16px;
}

.user-menu a:last-child {
    border-radius: 0 0 12px 12px;
    color: #ef4444;
    padding-bottom: 16px;
}

.user-menu a:hover {
    background: rgba(255,255,255,0.08);
    padding-left: 24px;
}

.user-menu a:last-child:hover {
    background: rgba(239,68,68,0.15);
}

.user-menu i {
    width: 18px;
    font-size: 15px;
}

/* Mobile Search in User Dropdown */
.mobile-search-container {
    display: none;
}

@media (max-width: 768px) {
    .mobile-search-container {
        display: block;
        padding: 16px 16px 0 16px;
    }
    
    .mobile-search-form {
        margin-bottom: 0;
    }
    
    .mobile-search-wrapper {
        display: flex;
        align-items: center;
        background: rgba(255,255,255,0.08);
        border: 2px solid rgba(255,255,255,0.15);
        border-radius: 12px;
        padding: 2px 2px 2px 12px;
        transition: all 0.3s ease;
    }
    
    .mobile-search-wrapper:focus-within {
        border-color: rgba(255,255,255,0.3);
        box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
    }
    
    .mobile-search-wrapper i {
        color: rgba(255,255,255,0.6);
        font-size: 14px;
        margin-right: 8px;
    }
    
    .mobile-search-input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 10px 8px;
        font-size: 14px;
        color: #fff;
        outline: none;
    }
    
    .mobile-search-input::placeholder {
        color: rgba(255,255,255,0.4);
    }
    
    .mobile-search-btn {
        background: rgba(255,255,255,0.15);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 8px;
        padding: 8px 12px;
        color: white;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-search-btn:hover {
        background: rgba(255,255,255,0.2);
        transform: scale(1.05);
    }
    
    .mobile-search-btn i {
        font-size: 12px;
        color: white;
        margin: 0;
    }
    
    .user-menu-divider {
        height: 1px;
        background: rgba(255,255,255,0.1);
        margin: 16px 0;
    }
}

/* Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--sidebar-bg);
    overflow-y: auto;
    z-index: 999;
    box-shadow: 4px 0 20px rgba(0,0,0,0.08);
    border-right: 0.5px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Mobile: Auto-width sidebar based on content, no margins */
@media (max-width: 1024px) {
    .sidebar-nav {
        left: 0;
        width: auto;
        max-width: 90%;
    
        box-shadow: 4px 0 30px rgba(0,0,0,0.6);
    }
}

.sidebar-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}
/* Desktop: always visible */
@media (min-width: 1025px) {
    .sidebar-nav {
        transform: translateX(0);
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* Tablet and Mobile: slide in */
@media (max-width: 1024px) {
    .sidebar-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar-nav.active {
        transform: translateX(0);
    }
    
    .mobile-menu {
        display: block !important;
    }
}

.sidebar-nav .nav {
    list-style: none;
    padding: 0 5px;
    margin: 0;
}

/* Section Headers */
.sidebar-nav .nav-section-header {
    padding: 16px 10px 6px 10px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    white-space: nowrap;
}

.sidebar-nav .nav-section-header:first-child {
    margin-top: 0;
    padding-top: 12px;
}

/* Divider */
.sidebar-nav .nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 8px 5px;
}

.sidebar-nav .nav > li {
    width: 100%;
    display: block;
    position: relative;
}

.sidebar-nav .nav > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    margin: 1px 5px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    position: relative;
    width: calc(100% - 10px);
    white-space: nowrap;
}

.sidebar-nav .nav > li.nav-item-compact > a {
    padding: 9px 12px;
    font-size: 12.5px;
}

.sidebar-nav .nav > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: rgba(255,255,255,0.8);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s ease;
}

.sidebar-nav .nav > li > a:hover {
    background: var(--sidebar-hover);
    color: white;
    padding-left: 24px;
}

.sidebar-nav .nav > li > a:hover::before {
    height: 70%;
}

.sidebar-nav .nav > li > a i {
    width: 18px;
    min-width: 18px;
    font-size: 14px;
    opacity: 0.9;
    text-align: center;
}

.sidebar-nav .nav > li > a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Full width items */
.sidebar-nav .nav > li.nav-item-full {
    display: block;
    width: 100%;
}

.sidebar-nav .nav > li.nav-item-full > a {
    width: calc(100% - 24px);
}

/* Sidebar Dropdown */
.sidebar-nav .switcher {
    position: relative;
    display: block;
    width: 100%;
}

.sidebar-nav .switcher > a {
    position: relative;
    display: flex;
}

.sidebar-nav .dropdown_menu,
.sidebar-nav .dropdown_menu--animated {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease, padding 0.3s ease;
    border-radius: 0 0 10px 10px;
    opacity: 0;
    display: block !important;
    position: static !important;
    width: 100%;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.sidebar-nav .switcher.active > .dropdown_menu,
.sidebar-nav .switcher.active > .dropdown_menu--animated {
    max-height: 2000px !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    overflow-y: auto;
}

.sidebar-nav .dropdown_menu li,
.sidebar-nav .dropdown_menu--animated li {
    width: 100%;
    display: block;
    position: relative;
}

.sidebar-nav .dropdown_menu li a,
.sidebar-nav .dropdown_menu--animated li a {
    padding: 8px 12px 8px 32px;
    font-size: 12px;
    color: #cbd5e1;
    margin: 0;
    border-radius: 0;
    font-weight: 600;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-nav .dropdown_menu li a:hover,
.sidebar-nav .dropdown_menu--animated li a:hover {
    background: rgba(255,255,255,0.05);
    color: white;
    padding-left: 36px;
}

.sidebar-nav .dropdown_menu li a::before,
.sidebar-nav .dropdown_menu--animated li a::before {
    display: none;
}

/* Compact dropdown items for sites */
.sidebar-nav .dropdown_menu.dropdown-compact li a {
    padding: 7px 12px 7px 32px;
    font-size: 11.5px;
}

.sidebar-nav .dropdown_menu svg {
    display: none;
}

/* Main Content Layout */
body.has-sidebar {
    padding-top: var(--header-height) !important;
    margin-top: 0 !important;
}

/* Desktop: Always show sidebar space */
@media (min-width: 1025px) {
    body.has-sidebar {
        padding-left: var(--sidebar-width);
    }
    
    .page-content,
    .main {
        width: calc(100% - var(--sidebar-width));
        margin-left: auto;
    }
}

.main-content-wrapper {
    min-height: calc(100vh - var(--header-height));
}

.page-content,
.main {
    width: 100%;
}

/* Desktop: Content takes remaining space */
@media (min-width: 1025px) {
    .main-content-wrapper {
        margin-left: 0;
    }
}

/* Overlay when sidebar is open */
.sidebar-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

/* Only show overlay on mobile/tablet */
@media (max-width: 1024px) {
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* No overlay on desktop */
@media (min-width: 1025px) {
    .sidebar-overlay {
        display: none;
    }
}

/* Mobile Responsive - Logo perfectly centered between hamburger and user icon */
@media (max-width: 900px) {
    header { overflow: visible !important; }
    header .block-header {
        padding: 0 12px;
        position: relative;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0;
        min-height: 65px;
        overflow: hidden;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Hamburger - Fixed Left */
    .mobile-menu {
        display: flex !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: 15;
        flex-shrink: 0;
        flex-grow: 0;
        flex-basis: 40px;
        order: 1;
        width: 40px;
        min-width: 40px;
        max-width: 40px;
    }
    
    .hamburger-btn {
        padding: 8px;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    /* Logo - Perfectly centered in remaining space */
    .brand-logo-wrapper {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: 10;
        margin: 0;
        flex: 1 1 0;
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 0;
        height: 100%;
        align-self: stretch;
        padding: 0 8px;
    }
    
    .brand-logo {
        background: transparent;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    
    .brand-logo img {
        height: 38px;
        max-width: 100%;
        width: auto;
        display: block;
        object-fit: contain;
        max-height: 38px;
    }

    /* Search - Hidden on mobile (max-width: 900px) to prevent overlap */
    .search-box {
        display: none !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }

    .user-name {
        display: none;
    }

    /* User Icon - Fixed Right */
    .user-box {
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        flex-shrink: 0;
        flex-grow: 0;
        flex-basis: 40px;
        order: 3;
        width: 40px;
        min-width: 40px;
        max-width: 40px;
    }
    
    .user-trigger {
        padding: 8px;
        gap: 0;
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: 10;
        background: transparent;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .user-trigger i {
        font-size: 40px;
        line-height: 1;
    }

    /* Allow dropdown to overflow header on mobile */
    header .block-header { overflow: visible !important; }

    /* Anchor account actions (avatar) to the right on mobile */
    .account-actions {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1500; /* above header content */
    }

    /* Dropdown should open over all elements */
    .account-actions .UserDropdown-LayoverBox {
        position: absolute;
        right: 0;
        left: auto;
        top: calc(100% + 10px);
        z-index: 2001; /* above sidebar/overlays */
    }
}

/* Tablet Layout: Hamburger (left) | [Logo + Search (centered)] | User (right) */
@media (min-width: 901px) and (max-width: 1014px) {
    header .block-header {
        padding: 0 10px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0;
        min-height: 65px;
        overflow: visible !important;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Hamburger - Far Left (fixed) */
    .mobile-menu {
        display: flex !important;
        position: absolute !important;
        left: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 15;
        flex-shrink: 0;
        flex-grow: 0;
        flex-basis: 40px;
        width: 40px;
        min-width: 40px;
        max-width: 40px;
    }
    
    .hamburger-btn {
        padding: 8px;
        width: 40px;
        height: 40px;
    }
    
    /* Logo + Search - Centered group */
    .brand-logo-wrapper {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: 10;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
        margin-right: 12px; /* Gap between logo and search */
    }
    
    .brand-logo {
        background: transparent;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .brand-logo img {
        height: 36px;
        max-width: 180px;
        width: auto;
        display: block;
        object-fit: contain;
    }
    
    /* Search Box - Next to logo in center group */
    .search-box {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        max-width: 250px;
        width: auto;
        min-width: 0;
        flex: 0 1 250px;
        z-index: 10;
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: auto;
        box-sizing: border-box;
        overflow: hidden;
        margin-left: 0;
    }
    
    /* Ensure search form and wrapper are properly aligned */
    .search-box form {
        display: flex;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .search-wrapper {
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    /* User - Far Right (fixed) */
    .account-actions {
        position: absolute !important;
        right: 24px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1500 !important;
        left: auto !important;
    }
    
    .user-box {
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: 10;
        flex-shrink: 0;
    }
    
    .user-trigger {
        padding: 8px 12px;
    }
    
    .user-name {
        display: none;
    }
    
    /* Ensure main-nav doesn't interfere */
    .main-nav {
        display: none !important;
    }
    
    /* Hide search if not enough space (901px-950px) - logo stays centered */
    @media (min-width: 901px) and (max-width: 950px) {
        .search-box { display: none !important; }
    }
}

/* Desktop Layout (1025px+) - Ensure search and logo work correctly */
@media (min-width: 1025px) {
    header {
        /* Allow dropdowns to overflow the header area on desktop */
        overflow: visible !important;
    }
    
    header .block-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        /* Let dropdown render outside the header row */
        overflow: visible !important;
        height: var(--header-height);
        max-height: var(--header-height);
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .brand-logo-wrapper {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 12;
    }
    
    .search-box {
        position: absolute !important;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) !important;
        width: 450px;
        max-width: calc(100% - 200px);
        min-width: 0;
        display: flex !important;
        z-index: 10;
        box-sizing: border-box;
        overflow: hidden;
        max-height: var(--header-height);
        height: auto;
    }
    
    .user-box {
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1500;
        max-height: var(--header-height);
        height: auto;
        display: flex;
        align-items: center;
    }
    
    .brand-logo-wrapper {
        max-height: var(--header-height);
        height: auto;
        display: flex;
        align-items: center;
    }
    
    .brand-logo img {
        max-height: 48px;
        height: auto;
    }

    /* Ensure account dropdown overlays and anchors to the right (under user icon) */
    .account-actions { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); z-index: 1500; }
    .account-actions .UserDropdown-LayoverBox {
        position: absolute;
        right: 0;
        left: auto;
        top: calc(100% + 10px);
        z-index: 2001; /* above header and page */
    }
}

header .styles_DHiAdwNOZV{
    --white:#ffffff;--dark:#0a0a0c;--black:#010102;--pureBlack:#000000;--alert:#cc4b37;--primaryColor:#01f4e0;--primaryColorFade:rgba(1,244,224,.2);--primaryColorDark:#09c6cd;--primaryColorDarkAlt:#00312d;--primaryColorDarkGradient:linear-gradient(#01f4e0,#09c6cd);--primaryColorDarkGradientHover:linear-gradient(#09c6cd,#09c6cd);--primaryColorLight:#7bfef3;--secondaryColor:#95b9b9;--secondaryColorDark:#6c9e9e;--secondaryColorLight:#c9dcdc;--ternaryColor:#9a9a9a;--ternaryColorDark:#818181;--ternaryColorLight:#B4B4B4;--gray:#333;--darkGray:#151519;--darkishGrayFade:rgba(31,31,31,.9);--mediumGray:#2d3035;--mediumGrayAlt:#3d454d;--lightGray:#444452;--lightGrayAlt:#6A6A6A;--highlight:#1c4745;--blue:#5B6E86;--darkBlue:#000115;--darkerBlue:#090a0f;--blackFade:rgba(0,0,0,.9);--blackFadeLight:rgba(0,0,0,.75);--goldenYellow:#ffcd00;--lightBlue:#ADD1FF;--blueNight:radial-gradient(#070742 15%,#000116 50%);--whiteFade:rgba(255,255,255,.75);--nameColor:#ffffff;--titleColor:#ffffff;--linkColor:#01f4e0;--linkColorAlt:#09c6cd;--linkColorHover:#ffffff;--textColor:#9a9a9a;--textColorAlt:#999;--borderColor:#333;--borderColorAlt:#222;--inputColor:#ffffff;--inputPlaceholderColor:#9a9a9a;--inputBackgroundColor:transparent;--inputBorderColor:#01f4e0;--buttonColor:#010102;--buttonBackgroundColor:#01f4e0;--buttonBorderColor:#01f4e0;--buttonColorHover:#010102;--buttonBackgroundColorHover:#09c6cd;--buttonBorderColorHover:#09c6cd;--sidebarBg:#010102;--filtersBg:#010102;--headerBg:#010102;--footerBg:#010102;--siteBg:#151519;--searchBg:#010102;--commentsBg:#151519;--planBg:#010102;--fadeBg:rgba(1,244,224,.2);--modalBg:#0a0a0c;--height:24px;font-size:12px;color:rgb(148,184,184);font-family:Hind,sans-serif;font-weight:400;padding:0;box-sizing:border-box;scrollbar-width:thin;scrollbar-color:rgb(36,36,36) rgb(0,0,0);max-width:450px;display:flex;align-items:center;flex-grow:1;margin:auto;width:100%}
header .BackgroundBox{width:100%}
header .SearchInput-Container-BackgroundBox{display:flex;align-items:center;width:100%;height:var(--height);background:var(--searchBg);border:1px solid var(--inputBorderColor);border-radius:4px;position:relative}
header .SearchInput-Container-BackgroundBox:focus-within{border-color:var(--primaryColor);box-shadow:0 0 0 1px var(--fadeBg)}
header .SearchInput-Input{background:var(--inputBackgroundColor);color:var(--inputColor);border:none;outline:none;flex:1;padding:0 44px 0 10px;height:100%;line-height:var(--height);font-size:12px}
header .SearchInput-Input::placeholder{color:var(--inputPlaceholderColor)}
header .SearchInput-Icon{position:absolute;right:0;top:0;bottom:0;width:42px;display:flex;align-items:center;justify-content:center;background:var(--primaryColorDarkGradient);border-left:1px solid var(--buttonBorderColor)}
header .SearchInput-Icon:hover{background:var(--primaryColorDarkGradientHover)}
header .SearchInput-Icon-Svg{width:14px;height:14px;background-color:var(--buttonColor)}


/* Arrow for dropdowns in sidebar */
.sidebar-nav .switcher > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 11px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.sidebar-nav .switcher.active > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

.sidebar-nav .switcher:hover > a::after {
    opacity: 1;
}

/* Hide old arrow SVG */
.sidebar-nav .arrow-down,
.sidebar-nav svg.arrow-down,
.sidebar-nav .ico-arrow,
.sidebar-nav .caret {
    display: none;
}

/* Blinking dot for Live */
.blinking {
    animation: blink 1.5s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
}

.blinking svg {
    width: 10px !important;
    height: 10px !important;
    margin-bottom: 0 !important;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Special styling for certain items */
.sidebar-nav .nav > li.nav-item-special > a {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.styles_p9A05TbVRG { color: var(--textColor); font-family: Hind, sans-serif; }
.Header-DesktopSidebar-BorderBox { background: var(--sidebarBg); border-right: 1px solid var(--borderColor); }
.Header-DesktopSidebar-InnerBox-BorderBox { border-bottom: 1px solid var(--borderColor); }
#sidebar-more-target { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.Header-DesktopSidebar-LinkWrapper-BorderBox { display: block; }
.Header-DesktopSidebar-LinkWrapper-BorderBox--active { 
    background: rgba(14, 15, 15, 0.1);
}
.Header-DesktopSidebar-LinkWrapper-BorderBox--leftActive { 
    border-left: 3px solid var(--primaryColor);
}
.Header-DesktopSidebar-Link { display:flex; align-items:center; height:48px; margin-left: 2px; color: var(--linkColor); text-decoration:none; }
.Header-DesktopSidebar-Link--active { 
    color: #ffffff;
    font-weight: 600;
}
.Header-DesktopSidebar-Link:hover { color: var(--linkColorHover); background: var(--sidebar-hover); }
.Header-DesktopSidebar-Link-Icon { width: 18px; height: 18px; display:flex; align-items:center; justify-content:center; }
.Header-DesktopSidebar-Link-Icon-Svg { width: 18px; height: 18px; background-color: var(--white); display:block; }
.SpaceSeparator { width: 6px; display:inline-block; }
.Icon-Support .Header-DesktopSidebar-Link-Icon-Svg { background-color: #9a9a9a; }

.sidebar-nav .nav > li.nav-item-special > a:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.sidebar-nav .nav > li.nav-item-logout > a {
    color: #f87171;
}

.sidebar-nav .nav > li.nav-item-logout > a:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
}

/* Badges for locked/free */
.green-text-sm {
    font-size: 10px;
    padding: 3px 8px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-radius: 6px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
