/* ===== NAVBAR (MODERN 2-ROW) ===== */
@keyframes navGlowSlide {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 4px var(--accent-glow)); }
    50%      { filter: drop-shadow(0 0 12px var(--accent)); }
}
@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

.nav-main {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav-main.nav-scrolled {
    background: rgba(10,10,15,0.97);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* Gradient bottom glow line */
.nav-glow-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light), var(--accent), transparent);
    background-size: 200% 100%;
    animation: navGlowSlide 4s linear infinite;
    opacity: 0.45;
}

/* ---- Top Row: Logo + Search + Account ---- */
.nav-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 28px 10px;
    min-height: 62px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
}
.nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--gradient-1);
    color: #fff;
    font-size: 1.05rem;
    animation: logoPulse 3s ease infinite;
    transition: transform 0.3s ease;
}
.nav-logo:hover .nav-logo-icon {
    transform: rotate(90deg) scale(1.1);
}
.nav-logo-text {
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 40px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.nav-logo-tld {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 0;
}
/* ===== Unified Search Bar Container ===== */
.nav-search-form {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    height: 40px;
    margin: 0;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav-search-form:focus-within {
    border-color: rgba(108,92,231,0.4);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.1), 0 4px 24px rgba(108,92,231,0.08);
    background: rgba(255,255,255,0.055);
}

/* Search input area */
.nav-search-box {
    position: relative;
    flex: 1;
    min-width: 140px;
}
.nav-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.2s ease;
}
.nav-search-input {
    width: 100%;
    height: 38px;
    padding: 0 72px 0 42px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #fff;
    font-size: 0.86rem;
    font-family: inherit;
    outline: none;
    transition: background 0.2s ease;
}
.nav-search-input::placeholder { color: var(--text-muted); }
.nav-search-input:focus {
    background: rgba(108,92,231,0.03);
}
.nav-search-input:focus ~ .nav-search-icon { color: var(--accent-light); }
.nav-search-kbd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 3px 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.5px;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Inline divider-separated filter selects */
.nav-filter-select {
    height: 38px;
    padding: 0 32px 0 14px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-width: 115px;
    max-width: 130px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-filter-select:hover {
    background-color: rgba(255,255,255,0.03);
    color: #fff;
}
.nav-filter-select:focus {
    background-color: rgba(108,92,231,0.06);
    color: #fff;
}
.nav-filter-select option {
    background: var(--bg-card);
    color: #fff;
}
.nav-filter-sort { min-width: 95px; max-width: 95px; }

/* Advanced Filter Toggle Button */
.nav-filter-toggle {
    width: 42px;
    height: 38px;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}
.nav-filter-toggle:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-filter-toggle.active { color: var(--accent-light); background: rgba(108,92,231,0.1); }
.nav-filter-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Advanced Filters Bar */
.nav-adv-filters {
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(18,18,26,0.98), rgba(10,10,15,0.95));
    border-top: 1px solid rgba(255,255,255,0.04);
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
    padding: 0 20px;
}
.nav-adv-filters.open {
    max-height: 80px;
    padding: 10px 20px;
    border-top-color: rgba(108,92,231,0.15);
}
.nav-adv-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.nav-adv-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-adv-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-adv-label i { font-size: 0.78rem; color: var(--accent-light); }
.nav-bpm-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-adv-input {
    width: 68px;
    height: 32px;
    padding: 0 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    -moz-appearance: textfield;
}
.nav-adv-input::-webkit-inner-spin-button,
.nav-adv-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.nav-adv-input:focus {
    border-color: rgba(108,92,231,0.4);
    background: rgba(108,92,231,0.06);
}
.nav-adv-input::placeholder { color: var(--text-muted); font-size: 0.75rem; }
.nav-bpm-sep { color: var(--text-muted); font-size: 0.75rem; }
.nav-adv-select {
    height: 32px;
    padding: 0 28px 0 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    min-width: 100px;
}
.nav-adv-select:focus {
    border-color: rgba(108,92,231,0.4);
    background-color: rgba(108,92,231,0.06);
}
.nav-adv-select option { background: var(--bg-card); color: #fff; }
.nav-adv-select optgroup { color: var(--text-muted); font-weight: 600; }
.nav-adv-apply {
    height: 32px;
    padding: 0 14px;
    background: var(--gradient-1);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: filter 0.2s, transform 0.15s;
    white-space: nowrap;
}
.nav-adv-apply:hover { filter: brightness(1.2); transform: translateY(-1px); }
.nav-adv-apply:active { transform: translateY(0); }

/* Integrated search & reset buttons */
.nav-search-btn {
    width: 48px;
    height: 38px;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
    background: var(--gradient-1);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.nav-search-btn:hover {
    filter: brightness(1.2);
}
.nav-reset-btn {
    width: 44px;
    height: 38px;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-reset-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

/* ===== Clean Avatar Button ===== */
.nav-account {
    position: relative;
    flex-shrink: 0;
}
.nav-avatar-btn {
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.nav-avatar-btn:hover,
.nav-account.open .nav-avatar-btn {
    background: rgba(108,92,231,0.12);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.08);
}
.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(108,92,231,0.25);
}
.nav-avatar-name {
    display: none;
}
.nav-avatar-chevron {
    display: none;
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 230px;
    background: rgba(26,26,40,0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    z-index: 1001;
    overflow: hidden;
}
.nav-account.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.nav-dropdown-header {
    padding: 16px 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: rgba(108,92,231,0.04);
}
.nav-dropdown-greeting {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-light);
    font-weight: 600;
}
.nav-dropdown-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}
.nav-dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 0;
}
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.nav-dropdown-item i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}
.nav-dropdown-item:hover {
    background: rgba(108,92,231,0.1);
    color: #fff;
}
.nav-dropdown-danger { color: var(--danger) !important; }
.nav-dropdown-danger:hover {
    background: rgba(255,107,107,0.1) !important;
    color: #fff !important;
}

/* ===== Mobile Dropdown Portal (lives on <body>) ===== */
.mobile-dropdown-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 99998;
    transition: background 0.25s ease;
}
.mobile-dropdown-overlay.show {
    background: rgba(0,0,0,0.55);
}
.nav-dropdown.mobile-portal {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 70vh;
    border-radius: 20px 20px 0 0 !important;
    background: #161624 !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: 0 -10px 50px rgba(0,0,0,0.6) !important;
    z-index: 99999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.nav-dropdown.mobile-portal.show {
    transform: translateY(0);
}
.nav-dropdown.mobile-portal .nav-dropdown-header {
    padding: 22px 22px 14px;
    background: transparent;
    text-align: center;
}
.nav-dropdown.mobile-portal .nav-dropdown-greeting {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
}
.nav-dropdown.mobile-portal .nav-dropdown-name {
    font-size: 1.05rem;
}
.nav-dropdown.mobile-portal .nav-dropdown-item {
    padding: 15px 22px;
    font-size: 0.92rem;
    gap: 12px;
}
.nav-dropdown.mobile-portal .nav-dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
}
.nav-dropdown.mobile-portal .nav-dropdown-divider {
    margin: 2px 18px;
}

/* ===== Bottom Row: Tab Navigation ===== */
.nav-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 28px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
    position: relative;
    border-bottom: 2px solid transparent;
}
.nav-pill i {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.25s ease;
}
.nav-pill:hover {
    color: var(--text-secondary);
}
.nav-pill:hover i { opacity: 1; transform: scale(1.1); }

/* Active tab indicator */
.nav-pill-active {
    color: #fff !important;
    font-weight: 600;
    border-bottom-color: var(--accent) !important;
}
.nav-pill-active i {
    opacity: 1 !important;
    color: var(--accent-light);
}
.nav-pill-active::after {
    display: none;
}

/* "More" dropdown in navbar */
.nav-more-wrap {
    position: relative;
}
.nav-more-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.nav-more-chev {
    font-size: 0.6rem !important;
    opacity: 0.5 !important;
    margin-left: 2px;
    transition: transform 0.25s ease;
}
.nav-more-wrap.open .nav-more-chev {
    transform: rotate(180deg);
}
.nav-more-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    max-height: 75vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px 0;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1001;
    backdrop-filter: blur(20px);
    -webkit-overflow-scrolling: touch;
}
.nav-more-dropdown::-webkit-scrollbar {
    width: 5px;
}
.nav-more-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.nav-more-dropdown::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.35);
    border-radius: 3px;
}
.nav-more-wrap.open .nav-more-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-more-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.nav-more-item i {
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.15s;
}
.nav-more-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.nav-more-item:hover i { opacity: 1; }
.nav-more-item.active {
    color: var(--accent-light);
    font-weight: 600;
}
.nav-more-item.active i {
    color: var(--accent-light);
    opacity: 1;
}
.nav-more-gem {
    color: var(--accent-light) !important;
}
.nav-more-gem i { color: var(--accent-light) !important; opacity: 1 !important; }
.nav-more-gem:hover { background: rgba(108,92,231,0.1); }
.nav-more-divider {
    height: 1px;
    margin: 6px 14px;
    background: rgba(255,255,255,0.06);
}
.nav-more-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.nav-more-overlay.show { opacity: 1; }

/* Stats badge */
.nav-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.nav-stat {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.6;
}
.nav-stat i {
    font-size: 0.72rem;
    color: var(--accent);
}
.nav-stat-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.3;
}


.container-narrow {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}



/* ================================================================
   MERGED FROM navbar.css (2026-08-10) — single navbar source of truth.
   The separate navbar.css file is retired; this bundle chunk now owns
   all navbar styling. badgePulse animation/shadow pinned with !important
   to preserve the pre-merge cascade outcome.
   ================================================================ */
/* ═══════════ Premium Glassmorphism Overrides ═══════════ */
.nav-main {
    /* position:fixed, not sticky — body/html use overflow-x:clip, which breaks
       sticky on several mobile browsers (navbar scrolls away with the page).
       JS below pads body by the nav height so content never hides under it. */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    border-bottom: 1px solid rgba(108, 92, 231, 0.18) !important;
    background: rgba(8, 8, 12, 0.94) !important; /* Slightly darker Obsidian */
}
[data-theme="light"] .nav-main {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(108, 92, 231, 0.15) !important;
}
[data-theme="light"] .nav-main.nav-scrolled {
    background: rgba(250, 250, 255, 0.98) !important;
}

/* Logo Premium Animations */
@keyframes textShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
[data-theme="light"] .nav-logo-text {
    background: linear-gradient(90deg, #1a1a28, #6c5ce7, #a29bfe, #1a1a28) !important;
    background-size: 300% auto !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: textShine 6s ease infinite !important;
}
.nav-logo-text {
    background: linear-gradient(90deg, #ffffff, #a29bfe, #6c5ce7, #ffffff) !important;
    background-size: 300% auto !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: textShine 6s ease infinite !important;
}
.nav-logo:hover .nav-logo-icon {
    transform: rotate(360deg) scale(1.15) !important;
    box-shadow: 0 0 25px rgba(108, 92, 231, 0.8) !important;
}

/* Opaque Solid Dropdowns for Perfect Readability */
.nav-dropdown,
.nav-lang-dropdown,
.nav-more-dropdown,
.live-search-dropdown {
    background: #0c0c14 !important; /* Rich solid obsidian deep dark slate */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(108, 92, 231, 0.3) !important; /* Sleek violet brand border */
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(108, 92, 231, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-dropdown.mobile-portal,
.nav-more-dropdown.mobile-portal {
    background: #0c0c14 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: 1px solid rgba(108, 92, 231, 0.4) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

[data-theme="light"] .nav-dropdown,
[data-theme="light"] .nav-lang-dropdown,
[data-theme="light"] .nav-more-dropdown,
[data-theme="light"] .live-search-dropdown {
    background: #ffffff !important;
    border: 1px solid rgba(108, 92, 231, 0.25) !important;
    box-shadow: 0 20px 48px rgba(108, 92, 231, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .nav-dropdown.mobile-portal {
    background: #ffffff !important;
    border-top: 1px solid rgba(108, 92, 231, 0.2) !important;
}

/* Beautiful Interactive Dropdown Items */
.nav-dropdown-item,
.nav-lang-item,
.nav-more-item {
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent;
    padding-left: 18px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.nav-dropdown-item:hover,
.nav-lang-item:hover,
.nav-more-item:hover {
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.12), rgba(162, 155, 254, 0.02)) !important;
    border-left-color: var(--accent, #6c5ce7) !important;
    color: #fff !important;
    transform: translateX(6px) !important;
    text-shadow: 0 0 10px rgba(162, 155, 254, 0.3);
}
[data-theme="light"] .nav-dropdown-item:hover,
[data-theme="light"] .nav-lang-item:hover,
[data-theme="light"] .nav-more-item:hover {
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.08), rgba(162, 155, 254, 0.02)) !important;
    border-left-color: var(--accent, #6c5ce7) !important;
    color: #6c5ce7 !important;
    transform: translateX(6px) !important;
}

/* Account Dropdown Icons Color Coding & Glow */
.nav-dropdown-item i.bi-person { color: #40c4ff !important; filter: drop-shadow(0 0 3px rgba(64, 196, 255, 0.4)); }
.nav-dropdown-item i.bi-gem { color: #d18dff !important; filter: drop-shadow(0 0 3px rgba(209, 141, 255, 0.4)); }
.nav-dropdown-item i.bi-star { color: #ffb703 !important; filter: drop-shadow(0 0 3px rgba(255, 183, 3, 0.4)); }
.nav-dropdown-item i.bi-shield-lock-fill { color: #ff9f43 !important; filter: drop-shadow(0 0 3px rgba(255, 159, 67, 0.4)); }
.nav-dropdown-item i.bi-megaphone-fill { color: #ff5252 !important; filter: drop-shadow(0 0 3px rgba(255, 82, 82, 0.4)); }
.nav-dropdown-item i.bi-heart-fill { color: #ff4d6d !important; filter: drop-shadow(0 0 3px rgba(255, 77, 109, 0.4)); }
.nav-dropdown-item i.bi-inbox-fill { color: #06d6a0 !important; filter: drop-shadow(0 0 3px rgba(6, 214, 160, 0.4)); }
.nav-dropdown-item i.bi-disc-fill { color: #ff7043 !important; filter: drop-shadow(0 0 3px rgba(255, 112, 67, 0.4)); }
.nav-dropdown-item i.bi-clock-history { color: #54a0ff !important; filter: drop-shadow(0 0 3px rgba(84, 160, 255, 0.4)); }
.nav-dropdown-item i.bi-stars { color: #4df3ff !important; filter: drop-shadow(0 0 3px rgba(77, 243, 255, 0.4)); }
.nav-dropdown-item i.bi-github { color: #a29bfe !important; filter: drop-shadow(0 0 3px rgba(162, 155, 254, 0.4)); }
.nav-dropdown-item i.bi-stack { color: #ff9f43 !important; filter: drop-shadow(0 0 3px rgba(255, 159, 67, 0.4)); }
.nav-dropdown-item i.bi-soundwave { color: #fd79a8 !important; filter: drop-shadow(0 0 3px rgba(253, 121, 168, 0.4)); }
.nav-dropdown-item i.bi-vinyl-fill { color: #ffeaa7 !important; filter: drop-shadow(0 0 3px rgba(255, 234, 167, 0.4)); }

/* More Dropdown Icons Color Coding & Glow */
.nav-more-item i.bi-lightning-fill { color: #ffd32a !important; filter: drop-shadow(0 0 3px rgba(255, 211, 42, 0.4)); }
.nav-more-item i.bi-people-fill { color: #ff7f50 !important; filter: drop-shadow(0 0 3px rgba(255, 127, 80, 0.4)); }
.nav-more-item i.bi-graph-up { color: #2ed573 !important; filter: drop-shadow(0 0 3px rgba(46, 213, 115, 0.4)); }
.nav-more-item i.bi-fire { color: #ff4757 !important; filter: drop-shadow(0 0 3px rgba(255, 71, 87, 0.4)); }
.nav-more-item i.bi-collection-play-fill { color: #1e90ff !important; filter: drop-shadow(0 0 3px rgba(30, 144, 255, 0.4)); }
.nav-more-item i.bi-bar-chart-fill { color: #ffa502 !important; filter: drop-shadow(0 0 3px rgba(255, 165, 2, 0.4)); }
.nav-more-item i.bi-chat-dots-fill { color: #70a1ff !important; filter: drop-shadow(0 0 3px rgba(112, 161, 255, 0.4)); }
.nav-more-item i.bi-music-note-list { color: #1dd1a1 !important; filter: drop-shadow(0 0 3px rgba(29, 209, 161, 0.4)); }
.nav-more-item i.bi-cloud-arrow-up { color: #ff6b81 !important; filter: drop-shadow(0 0 3px rgba(255, 107, 129, 0.4)); }
.nav-more-item i.bi-speedometer2 { color: #a4b0be !important; filter: drop-shadow(0 0 3px rgba(164, 176, 190, 0.4)); }

.nav-dropdown-item:hover i,
.nav-more-item:hover i {
    filter: drop-shadow(0 0 8px currentColor) !important;
    transform: scale(1.2) !important;
    transition: all 0.2s ease !important;
}

/* Highly Interactive Search Form Design */
.nav-search-form {
    background: rgba(18, 18, 29, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
}
.nav-search-form:hover {
    border-color: rgba(108, 92, 231, 0.45) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 15px rgba(108, 92, 231, 0.15) !important;
}
[data-theme="light"] .nav-search-form {
    background: rgba(240, 240, 250, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .nav-search-form:focus-within {
    background: #ffffff !important;
    border-color: var(--accent) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 0 25px rgba(108, 92, 231, 0.2) !important;
}
.nav-search-form:focus-within {
    border-color: var(--accent) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 25px rgba(108, 92, 231, 0.35) !important;
    background: #11111a !important;
}
.nav-search-kbd {
    background: rgba(108, 92, 231, 0.15) !important;
    color: #a29bfe !important;
    border: 1px solid rgba(108, 92, 231, 0.3) !important;
}

/* Stunning Bottom Navigation Pills (Capsules with glow) */
.nav-pill {
    position: relative !important;
    border: 1px solid transparent !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    margin: 0 4px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.nav-pill:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}
.nav-pill-active {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2) 0%, rgba(162, 155, 254, 0.05) 100%) !important;
    border: 1px solid rgba(108, 92, 231, 0.4) !important;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.25) !important;
    color: #fff !important;
}
[data-theme="light"] .nav-pill-active {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12) 0%, rgba(162, 155, 254, 0.02) 100%) !important;
    border: 1px solid rgba(108, 92, 231, 0.25) !important;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.1) !important;
    color: var(--accent) !important;
}
/* Disable default bottom indicator line for capsule aesthetic */
.nav-pill::after {
    display: none !important;
}

/* ═══════════ Bell Notification Wiggle Animation ═══════════ */
@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    5% { transform: rotate(14deg); }
    10% { transform: rotate(-12deg); }
    15% { transform: rotate(10deg); }
    20% { transform: rotate(-8deg); }
    25% { transform: rotate(6deg); }
    30% { transform: rotate(-4deg); }
    35% { transform: rotate(2deg); }
    40% { transform: rotate(-1deg); }
    45% { transform: rotate(0); }
}
.nav-notif-bell.has-notifs i {
    display: inline-block;
    animation: bellShake 3s ease-in-out infinite;
    transform-origin: top center;
    color: #ff7675 !important;
    text-shadow: 0 0 8px rgba(255, 118, 117, 0.5);
}

/* ═══════════ Glowing Notification Badge Pulse ═══════════ */
@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 118, 117, 0.8);
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 118, 117, 0);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 118, 117, 0);
        transform: scale(1);
    }
}
.nav-notif-badge {
    animation: badgePulse 2s infinite ease-in-out !important;
    background: #ff7675 !important;
    box-shadow: 0 2px 6px rgba(255, 118, 117, 0.4) !important;
}

/* ═══════════ Notifications Dropdown ═══════════ */
.nav-notif-wrap {
    position: relative !important;
    display: inline-block !important;
}

.nav-notif-bell {
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    color: var(--text-secondary, #a4b0be) !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

.nav-notif-bell:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.nav-notif-badge {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 2px 5px !important;
    border-radius: 10px !important;
    line-height: 1 !important;
    color: #fff !important;
    min-width: 14px !important;
    text-align: center !important;
}

.nav-notif-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    width: 380px !important;
    max-width: 90vw !important;
    background: #0c0c14 !important;
    border: 1px solid rgba(108, 92, 231, 0.35) !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(108, 92, 231, 0.15) !important;
    margin-top: 10px !important;
    z-index: 1050 !important;
    display: none !important;
    overflow: hidden !important;
    flex-direction: column !important;
    transform: translateY(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-notif-dropdown.show {
    display: flex !important;
    transform: translateY(0) !important;
}

.nav-notif-dropdown-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.nav-notif-dropdown-title {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.nav-notif-dropdown-title i {
    color: var(--accent, #6c5ce7) !important;
}

.nav-notif-mark-all {
    background: transparent !important;
    border: none !important;
    color: var(--accent-light, #a29bfe) !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.nav-notif-mark-all:hover {
    background: rgba(108, 92, 231, 0.15) !important;
    color: #fff !important;
}

.nav-notif-list {
    max-height: 320px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Custom Scrollbar for Notifications List */
.nav-notif-list::-webkit-scrollbar {
    width: 6px !important;
}
.nav-notif-list::-webkit-scrollbar-track {
    background: transparent !important;
}
.nav-notif-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 3px !important;
}
.nav-notif-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.nav-notif-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.nav-notif-item:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

.nav-notif-item.unread {
    background: rgba(108, 92, 231, 0.03) !important;
}
.nav-notif-item.unread:hover {
    background: rgba(108, 92, 231, 0.06) !important;
}

.nav-notif-item-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 0.9rem !important;
    color: var(--text-secondary, #a4b0be) !important;
    transition: all 0.2s ease !important;
}

.nav-notif-item.unread .nav-notif-item-icon {
    background: rgba(108, 92, 231, 0.15) !important;
    color: var(--accent-light, #a29bfe) !important;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.2) !important;
}

/* Colors for specific types */
.nav-notif-item-icon.new_track { color: #ff7675 !important; background: rgba(255, 118, 117, 0.1) !important; }
.nav-notif-item-icon.membership { color: #fdcb6e !important; background: rgba(253, 203, 110, 0.1) !important; }
.nav-notif-item-icon.promo { color: #00cec9 !important; background: rgba(0, 206, 201, 0.1) !important; }
.nav-notif-item-icon.system { color: #a29bfe !important; background: rgba(162, 155, 254, 0.1) !important; }
.nav-notif-item-icon.follow { color: #e84393 !important; background: rgba(232, 67, 147, 0.1) !important; }
.nav-notif-item-icon.recommendation { color: #ffeaa7 !important; background: rgba(255, 234, 167, 0.1) !important; }

.nav-notif-item-body {
    flex-grow: 1 !important;
    min-width: 0 !important;
}

.nav-notif-item-title {
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: #fff !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.nav-notif-item-message {
    font-size: 0.78rem !important;
    color: var(--text-secondary, #a4b0be) !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.nav-notif-item-time {
    font-size: 0.7rem !important;
    color: rgba(255, 255, 255, 0.3) !important;
}

.nav-notif-item-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #ff7675 !important;
    box-shadow: 0 0 8px #ff7675 !important;
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.nav-notif-dropdown-footer {
    padding: 10px 18px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    text-align: center !important;
}

.nav-notif-view-all {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: var(--accent-light, #a29bfe) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.nav-notif-view-all:hover {
    color: #fff !important;
    transform: translateX(3px) !important;
}

/* Empty State styling */
.nav-notif-empty {
    padding: 40px 20px !important;
    text-align: center !important;
    color: var(--text-secondary, #a4b0be) !important;
}

.nav-notif-empty i {
    font-size: 2.2rem !important;
    color: rgba(255, 255, 255, 0.15) !important;
    margin-bottom: 12px !important;
    display: block !important;
}

.nav-notif-empty-title {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin-bottom: 4px !important;
}

.nav-notif-empty-text {
    font-size: 0.78rem !important;
    opacity: 0.7 !important;
}

/* Loading & Spinner */
.nav-notif-loading {
    padding: 40px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-notif-spinner {
    width: 24px !important;
    height: 24px !important;
    border: 2px solid rgba(108, 92, 231, 0.1) !important;
    border-top: 2px solid var(--accent, #6c5ce7) !important;
    border-radius: 50% !important;
    animation: navNotifSpin 0.8s linear infinite !important;
}

@keyframes navNotifSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ═══════════ VIP Premium Avatar Styling & Border ═══════════ */
@keyframes vipAvatarPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.6), 0 2px 8px rgba(108, 92, 231, 0.3);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(108, 92, 231, 0), 0 2px 8px rgba(108, 92, 231, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0), 0 2px 8px rgba(108, 92, 231, 0.3);
    }
}
.nav-avatar.vip-premium {
    position: relative;
    border: 2px solid rgba(162, 155, 254, 0.95);
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%) !important;
    animation: vipAvatarPulse 2.5s infinite ease-in-out;
}
.nav-avatar.vip-premium::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(162, 155, 254, 0.4);
    animation: rotateRing 8s linear infinite;
    pointer-events: none;
}
@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glowing VIP status indicator dot */
.vip-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #a29bfe; /* Violet light */
    border: 2px solid #0a0a0f;
    border-radius: 50%;
    box-shadow: 0 0 8px #6c5ce7;
    animation: vipDotPulse 1.5s infinite ease-in-out;
    z-index: 10;
}
@keyframes vipDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* ═══════════ Live Search Dropdown ═══════════ */
.live-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 340px;
    max-height: 420px;
    overflow-y: auto;
    background: #0c0c14;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 9999;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(108,92,231,0.3) transparent;
}
.live-search-dropdown.active { display: block; }
.live-search-dropdown::-webkit-scrollbar { width: 6px; }
.live-search-dropdown::-webkit-scrollbar-thumb { background: rgba(108,92,231,0.3); border-radius: 3px; }
.ls-section { padding: 4px 0; }
.ls-section + .ls-section { border-top: 1px solid rgba(255,255,255,0.06); }
.ls-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.35); padding: 6px 14px 4px; }
.ls-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: #fff;
}
.ls-item:hover, .ls-item.ls-active { background: rgba(108,92,231,0.15); }
.ls-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.ls-item-icon.artist { background: rgba(108,92,231,0.2); color: #a29bfe; }
.ls-item-icon.track { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); }
.ls-item-text { flex: 1; min-width: 0; }
.ls-item-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-item-sub { font-size: 11px; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-item-meta { font-size: 10px; color: rgba(255,255,255,0.3); flex-shrink: 0; text-align: right; }
.ls-footer { padding: 8px 14px; text-align: center; border-top: 1px solid rgba(255,255,255,0.06); }
.ls-footer a { color: #a29bfe; font-size: 12px; text-decoration: none; font-weight: 500; }
.ls-footer a:hover { text-decoration: underline; }
.ls-empty { padding: 20px 14px; text-align: center; color: rgba(255,255,255,0.3); font-size: 13px; }
.ls-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.ls-loading .ls-spin { display: inline-block; animation: lsDropSpin 0.7s linear infinite; }
@keyframes lsDropSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* Search icon spinner animation */
.nav-search-icon.ls-spin { animation: lsSpin 0.7s linear infinite; color: #a29bfe; }
@keyframes lsSpin { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }
@media (max-width: 768px) {
    .live-search-dropdown { min-width: 0; left: 0; right: 0; max-height: 60vh; width: calc(100vw - 24px); max-width: 100vw; }
}
/* ═══════════ Language Toggle ═══════════ */
.nav-lang-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-lang-btn {
    background: rgba(108,92,231,0.12);
    border: 1px solid rgba(108,92,231,0.25);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    line-height: 1;
    color: #a29bfe;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}
.nav-lang-btn:hover {
    background: rgba(108,92,231,0.15);
    border-color: rgba(108,92,231,0.3);
}
.nav-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: #0c0c14;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 9999;
    padding: 4px 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s;
}
.nav-lang-wrap.open .nav-lang-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.nav-lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}
.nav-lang-item:hover {
    background: rgba(108,92,231,0.15);
    color: #fff;
}
.nav-lang-item.active {
    color: #a29bfe;
    font-weight: 600;
}
.nav-lang-item.active::after {
    content: '\f26e';
    font-family: 'bootstrap-icons';
    margin-left: auto;
    font-size: 12px;
}
.nav-lang-code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #a29bfe;
}
.nav-lang-item .nav-lang-code {
    background: rgba(108,92,231,0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}
[data-theme="light"] .nav-lang-btn {
    background: rgba(108,92,231,0.08);
    border-color: rgba(108,92,231,0.2);
    color: #6c5ce7;
}
[data-theme="light"] .nav-lang-btn:hover {
    background: rgba(108,92,231,0.15);
}
[data-theme="light"] .nav-lang-code {
    color: #6c5ce7;
}
[data-theme="light"] .nav-lang-dropdown {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
[data-theme="light"] .nav-lang-item {
    color: rgba(0,0,0,0.6);
}
[data-theme="light"] .nav-lang-item:hover {
    background: rgba(108,92,231,0.08);
    color: #333;
}
[data-theme="light"] .nav-lang-item.active {
    color: #6c5ce7;
}

/* ═══════════ Light Theme — Live Search ═══════════ */
[data-theme="light"] .live-search-dropdown {
    background: linear-gradient(160deg, #ffffff 0%, #f8f6ff 100%);
    border-color: rgba(108,92,231,0.1);
    box-shadow: 0 12px 40px rgba(108,92,231,0.1), 0 4px 12px rgba(0,0,0,0.05);
}
[data-theme="light"] .ls-section + .ls-section { border-top-color: rgba(0,0,0,0.06); }
[data-theme="light"] .ls-label { color: rgba(0,0,0,0.35); }
[data-theme="light"] .ls-item { color: #1a1a28; }
[data-theme="light"] .ls-item:hover,
[data-theme="light"] .ls-item.ls-active { background: rgba(108,92,231,0.08); }
[data-theme="light"] .ls-item-icon.track { background: rgba(0,0,0,0.05); color: rgba(0,0,0,0.4); }
[data-theme="light"] .ls-item-sub { color: rgba(0,0,0,0.45); }
[data-theme="light"] .ls-item-meta { color: rgba(0,0,0,0.35); }
[data-theme="light"] .ls-footer { border-top-color: rgba(0,0,0,0.06); }
[data-theme="light"] .ls-empty { color: rgba(0,0,0,0.35); }
[data-theme="light"] .ls-loading { color: rgba(0,0,0,0.45); }

/* ── Mobile navbar: stop the search form cramping into one row ── */
@media (max-width: 768px) {
    /* Keep the form single-row (wrapping it collides with the pills row below).
       Free up space by hiding the less-essential controls on small screens —
       genre filtering stays available via the Genres page + desktop navbar. */
    .nav-search-form select.nav-filter-select,
    .nav-search-form .nav-reset-btn,
    .nav-search-kbd { display: none !important; }
    .nav-search-form .nav-search-box { flex: 1 1 auto; min-width: 0; }
    .nav-search-form .nav-filter-toggle,
    .nav-search-form .nav-search-btn { flex: 0 0 auto; min-width: 44px; min-height: 44px; }
    /* secondary nav row: fade hint when scrollable instead of hard text clipping */
    .nav-bottom { position: relative; }
    .nav-bottom::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 36px; z-index: 2; background: linear-gradient(90deg, transparent, rgba(10,10,15,0.97)); pointer-events: none; }
}
