/**
 * Master Navbar Styles v2.2
 * TradingView Partner Page Theme
 * 
 * @version 2.2.0
 * @author Yatırım Masası
 */

/* ============================================
   CSS Variables - TradingView Partner Page
   ============================================ */
:root {
    --navbar-height: 72px;
    --navbar-bg: rgba(9, 9, 11, 0.92);
    --navbar-border: rgba(255, 255, 255, 0.06);
    --dropdown-bg: rgba(15, 15, 20, 0.98);
    --dropdown-hover: rgba(255, 255, 255, 0.08);
    --mobile-menu-bg: rgba(9, 9, 11, 0.98);
    --nav-link-color: rgba(255, 255, 255, 0.7);
    --nav-link-hover: #ffffff;
    --nav-link-active: #ffffff;
    --accent-gradient: linear-gradient(135deg, #f59e0b, #ef4444, #8b5cf6);
    --accent-glow: 0 4px 20px rgba(245, 158, 11, 0.25);
    --ekosistem-gradient: linear-gradient(135deg, #10b981, #3b82f6, #8b5cf6);
    --premium-gradient: linear-gradient(135deg, #f59e0b, #d97706);
}

[data-theme="light"] {
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-border: rgba(0, 0, 0, 0.08);
    --dropdown-bg: rgba(255, 255, 255, 0.98);
    --dropdown-hover: rgba(0, 0, 0, 0.04);
    --mobile-menu-bg: rgba(255, 255, 255, 0.98);
    --nav-link-color: var(--gray-600, #52525b);
    --nav-link-hover: #09090b;
    --nav-link-active: #09090b;
    --accent-gradient: #09090b;
    --accent-glow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Light mode logo adjustments */
[data-theme="light"] .logo-icon {
    background: #09090b;
    color: #ffffff;
}

[data-theme="light"] .logo-text,
[data-theme="light"] .logo-text span {
    color: #09090b;
}

/* ============================================
   Skip Link (Accessibility)
   ============================================ */
.skip-link {
    position: absolute;
    top: -50px;
    left: 16px;
    background: var(--accent-gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
}

/* ============================================
   Header / Sticky Navbar
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--navbar-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--navbar-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 32px;
    max-width: 1440px;
    margin: 0 auto;
}

body {
    padding-top: var(--navbar-height);
}

/* ============================================
   Logo
   ============================================ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--white, #ffffff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black, #09090b);
    box-shadow: var(--accent-glow);
    transition: box-shadow 0.3s ease;
}

.logo:hover .logo-icon {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white, #fff);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--white, #ffffff);
}

/* ============================================
   Desktop Navigation
   ============================================ */
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--nav-link-color);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    background: transparent;
    border: none;
}

.nav-link:hover {
    color: var(--nav-link-hover);
    background: var(--dropdown-hover);
}

.nav-link.active {
    color: var(--nav-link-active);
    background: rgba(255, 255, 255, 0.08);
}

/* Dropdown arrow */
.nav-link .dropdown-arrow {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.nav-item.open .nav-link .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Premium highlight */
.nav-link.nav-premium {
    color: #f59e0b;
}

.nav-link.nav-premium:hover {
    background: rgba(245, 158, 11, 0.12);
}

/* Arena highlight */
.nav-link.nav-arena {
    color: #10b981;
}

.nav-link.nav-arena:hover {
    background: rgba(16, 185, 129, 0.12);
}

/* ============================================
   Dropdown Menu
   ============================================ */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 240px;
    background: var(--dropdown-bg);
    border: 1px solid var(--navbar-border);
    border-radius: 16px;
    padding: 10px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--dropdown-bg);
    border-left: 1px solid var(--navbar-border);
    border-top: 1px solid var(--navbar-border);
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

.nav-item.open .dropdown-menu,
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   Mega Menu - Wide Horizontal Flyout
   ============================================ */
.mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 650px;
    max-width: calc(100vw - 48px);
    background: var(--dropdown-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--navbar-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 60px rgba(245, 158, 11, 0.03);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--dropdown-bg);
    border-left: 1px solid var(--navbar-border);
    border-top: 1px solid var(--navbar-border);
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

.nav-item.open .mega-menu,
.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mega Menu Grid */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mega-menu-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Mega Menu Column */
.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-menu-column-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--nav-link-color);
    padding: 8px 12px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu-column-title svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* Mega Menu Item */
.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--nav-link-color);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.mega-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.mega-menu-item:hover {
    color: var(--nav-link-hover);
    background: var(--dropdown-hover);
    transform: translateX(4px);
}

.mega-menu-item:hover::before {
    background: var(--accent-gradient);
}

.mega-menu-item.active {
    color: var(--nav-link-active);
    background: rgba(255, 255, 255, 0.08);
}

.mega-menu-item.active::before {
    background: var(--accent-gradient);
}

/* Mega Menu Icon */
.mega-menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--nav-link-active);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mega-menu-item:hover .mega-menu-icon {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.mega-menu-icon svg {
    width: 16px;
    height: 16px;
}

/* Mega Menu Badge */
.mega-menu-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: auto;
}

.mega-menu-badge.vip {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
}

.mega-menu-badge.new {
    background: #10b981;
    color: #000;
}

.mega-menu-badge.free {
    background: #3b82f6;
    color: #fff;
}

.mega-menu-badge.hot {
    background: #ef4444;
    color: #fff;
}

/* Mega Menu Featured Link */
.mega-menu-featured {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mega-menu-featured-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mega-menu-featured-link:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}

.mega-menu-featured-link svg {
    width: 20px;
    height: 20px;
}

/* Colored Icons */
.mega-menu-icon.icon-orange {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.mega-menu-icon.icon-green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.mega-menu-icon.icon-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.mega-menu-icon.icon-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.mega-menu-icon.icon-red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.mega-menu-icon.icon-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--nav-link-color);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    color: var(--nav-link-hover);
    background: var(--dropdown-hover);
    transform: translateX(4px);
}

.dropdown-item.active {
    color: var(--nav-link-active);
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--nav-link-active);
    transition: all 0.2s ease;
}

.dropdown-item:hover .dropdown-item-icon {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.dropdown-divider {
    height: 1px;
    background: var(--navbar-border);
    margin: 8px 12px;
}

/* ============================================
   Header Actions
   ============================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--navbar-border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-link-color);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--dropdown-hover);
    color: var(--nav-link-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

/* CTA Button in header */
.header-actions .btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-actions .btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: var(--accent-glow);
}

.header-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

/* ============================================
   Mobile Menu Toggle (Hamburger)
   ============================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--navbar-border);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--nav-link-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ============================================
   Mobile Menu (Drawer)
   ============================================ */
.mobile-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--nav-link-color);
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--nav-link-hover);
    background: var(--dropdown-hover);
}

.mobile-nav-link.active {
    color: var(--nav-link-active);
}

/* Mobile Accordion */
.mobile-nav-group {
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--navbar-border);
    margin-bottom: 4px;
}

.mobile-nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--nav-link-color);
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-nav-group-header:hover {
    color: var(--nav-link-hover);
    background: var(--dropdown-hover);
}

.mobile-nav-group-header .accordion-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.mobile-nav-group.open .accordion-arrow {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    display: none;
    padding: 0 16px 16px;
}

.mobile-nav-group.open .mobile-nav-submenu {
    display: block;
}

.mobile-nav-submenu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--nav-link-color);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.mobile-nav-submenu a:hover {
    color: var(--nav-link-hover);
    background: var(--dropdown-hover);
}

/* Mobile CTA */
.mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--navbar-border);
}

.mobile-cta .btn {
    padding: 16px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.mobile-cta .btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.mobile-cta .btn-secondary {
    background: transparent;
    color: var(--nav-link-color);
    border: 1px solid var(--navbar-border);
}

.mobile-cta .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--nav-link-hover);
}

/* ============================================
   Menu Backdrop
   ============================================ */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .header-actions .btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-inner {
        padding: 0 20px;
    }
}

@media (min-width: 1025px) {
    .mobile-menu {
        display: none !important;
    }

    .menu-backdrop {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }
}

/* ============================================
   User Menu (Logged In State)
   ============================================ */
.user-menu-wrapper {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--navbar-border);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-btn:hover {
    background: var(--dropdown-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name-sm {
    font-size: 13px;
    font-weight: 600;
    color: var(--nav-link-hover);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-btn svg {
    color: var(--nav-link-color);
    transition: transform 0.2s ease;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--dropdown-bg);
    border: 1px solid var(--navbar-border);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

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

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--nav-link-color);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.15s ease;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.user-dropdown-item:hover {
    color: var(--nav-link-hover);
    background: var(--dropdown-hover);
}

.user-dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.user-dropdown-item.logout {
    color: #ef4444;
}

.user-dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--navbar-border);
    margin: 6px 8px;
}

/* Mobile user info */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 16px;
}

.mobile-user-info img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.mobile-user-info span {
    font-weight: 600;
    font-size: 15px;
}

/* ============================================
   Search Toggle Button
   ============================================ */
.search-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--navbar-border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-link-color);
    transition: all 0.2s ease;
}

.search-toggle:hover {
    background: var(--dropdown-hover);
    color: var(--nav-link-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Search Modal
   ============================================ */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 24px 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.search-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.search-modal-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: var(--dropdown-bg);
    border: 1px solid var(--navbar-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-modal.open .search-modal-content {
    transform: translateY(0);
}

.search-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--navbar-border);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--navbar-border);
    border-radius: 14px;
}

.search-input-wrapper svg {
    flex-shrink: 0;
    color: var(--nav-link-color);
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--nav-link-hover);
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: var(--nav-link-color);
}

.search-input-wrapper kbd {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--navbar-border);
    border-radius: 6px;
    color: var(--nav-link-color);
}

.search-modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.search-quick-links {
    margin-bottom: 20px;
}

.search-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nav-link-color);
    margin-bottom: 12px;
}

.search-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.search-quick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--navbar-border);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nav-link-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-quick-item:hover {
    background: var(--dropdown-hover);
    color: var(--nav-link-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.search-quick-item svg {
    flex-shrink: 0;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: transparent;
    border-radius: 12px;
    text-decoration: none;
    color: var(--nav-link-color);
    transition: all 0.15s ease;
}

.search-result-item:hover {
    background: var(--dropdown-hover);
    color: var(--nav-link-hover);
}

.search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.search-result-desc {
    font-size: 12px;
    color: var(--nav-link-color);
}

/* ============================================
   Dropdown Badge (FREE, NEW, etc.)
   ============================================ */
.dropdown-badge {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: auto;
}

.dropdown-badge.free {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.dropdown-badge.new {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
}

.dropdown-badge.hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
}

/* ============================================
   Ghost Button
   ============================================ */
.btn-ghost {
    background: transparent;
    color: var(--nav-link-color);
    border: 1px solid var(--navbar-border);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: var(--dropdown-hover);
    color: var(--nav-link-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Light theme adjustments */
[data-theme="light"] .search-modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .search-input-wrapper {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .search-quick-item {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .search-input-wrapper kbd {
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
    .search-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-modal {
        padding: 80px 16px 16px;
    }
}

/* ============================================
   Ultra-Modern Ekosistem Button
   ============================================ */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3), 0 0 40px rgba(59, 130, 246, 0.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.5), 0 0 60px rgba(59, 130, 246, 0.2);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.nav-link.nav-ekosistem {
    position: relative;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: #10b981;
    padding: 8px 16px;
    overflow: hidden;
}

.nav-link.nav-ekosistem::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.nav-link.nav-ekosistem:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(59, 130, 246, 0.25));
    border-color: rgba(16, 185, 129, 0.5);
    animation: pulse-glow 2s infinite;
    transform: translateY(-2px);
}

/* ============================================
   Premium Button Enhanced
   ============================================ */
.nav-link.nav-premium {
    position: relative;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    color: #f59e0b;
    padding: 8px 16px;
    font-weight: 700;
    overflow: hidden;
}

.nav-link.nav-premium::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, #f59e0b, #ef4444, #f59e0b);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-link.nav-premium::after {
    content: '★';
    margin-left: 6px;
    font-size: 12px;
}

.nav-link.nav-premium:hover {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.nav-link.nav-premium:hover::before {
    opacity: 1;
}

/* ============================================
   Mega-Menu Enhanced Styling
   ============================================ */
.mega-menu {
    background: linear-gradient(180deg, rgba(15, 15, 20, 0.98), rgba(9, 9, 11, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 100px rgba(0, 0, 0, 0.3);
}

.mega-menu-column-title {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent);
    border-radius: 8px;
    margin-bottom: 8px;
}

.mega-menu-item {
    border-radius: 10px;
}

.mega-menu-item:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

/* ============================================
   Live Indicator Pulse
   ============================================ */
@keyframes live-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.mega-menu-badge.hot::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    margin-right: 4px;
    animation: live-pulse 1.5s infinite;
}

/* ============================================
   Navbar Divider for Special Sections
   ============================================ */
.nav-divider {
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 0 8px;
}

/* ============================================
   Stats Bar (Optional Top Banner)
   ============================================ */
.stats-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 1001;
}

.stats-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stats-bar-value {
    font-weight: 700;
}

.stats-bar+.header {
    top: 32px;
}

body:has(.stats-bar) {
    padding-top: calc(var(--navbar-height) + 32px);
}

/* ============================================
   Quick Action Buttons in Navbar
   ============================================ */
.nav-quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-quick-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--nav-link-color);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-quick-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--nav-link-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-quick-btn svg {
    width: 14px;
    height: 14px;
}

.nav-quick-btn.btn-arena {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.1));
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.nav-quick-btn.btn-arena:hover {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: white;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.nav-quick-btn.btn-signals {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.nav-quick-btn.btn-signals:hover {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}