/**
 * ============================================
 * RESPINNERSTV - CLEAN CASINO NAVBAR
 * ============================================
 */

/* ============================================
   NAVBAR CONTAINER
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(8, 8, 15, 0.92);
    /* backdrop-filter removed from here — it creates a containing block for position:fixed children */
    /* backdrop blur is handled by .navbar-blur-bg child element instead */
    z-index: var(--z-navbar);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--alpha-purple-15);
}

/* Backdrop blur layer — sibling of nav-container, NOT an ancestor of nav-menu,
   so it does NOT create a containing block for position:fixed nav-menu */
.navbar-blur-bg {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}
.navbar.scrolled .navbar-blur-bg {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

/* Static gradient border */
.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--twitch-purple) 30%, var(--neon-cyan) 70%, transparent);
    opacity: 0.5;
}

/* Subtle ambient glow */
.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 50% 100% at 50% 100%, var(--alpha-purple-8), transparent 70%);
    pointer-events: none;
}

.navbar.scrolled {
    height: var(--nav-height-scrolled);
    background: rgba(5, 5, 10, 0.98);
    box-shadow: 0 10px 40px var(--alpha-black-40);
}

.nav-container {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1700px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    padding: 0 48px;
}

/* ============================================
   LOGO - CLEAN
   ============================================ */
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    position: relative;
}

.nav-logo:hover {
    transform: scale(1.02);
    color: var(--text-primary);
}

.logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-normal);
}

.nav-logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-accent {
    background: var(--gradient-respinners);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile logo text - hidden on desktop */
.logo-mobile-text {
    display: none;
    font-size: var(--font-size-lg);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: lowercase;
}

.logo-mobile-accent {
    background: var(--gradient-respinners);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   NAV MENU - CLEAN LINKS
   ============================================ */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    color: var(--alpha-white-60);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.25s ease;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Subtle underline accent on hover/active */
.nav-link::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
    color: #fff;
}
.nav-link:hover::after {
    opacity: 0.7;
    transform: scaleX(1);
}

.nav-link.active {
    color: #fff;
}
.nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
    background: linear-gradient(90deg, transparent, var(--neon-cyan) 30%, var(--neon-cyan) 70%, transparent);
    box-shadow: 0 0 8px var(--alpha-cyan-50);
}

.nav-icon { display: none; }

/* Nav link with inline tag — fixed link height keeps all items aligned */
.nav-link-stack {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}
.nav-hot-tag {
    display: inline-flex;
    align-items: center;
    font-size: 8px;
    font-weight: 700;
    color: var(--neon-cyan);
    background: rgba(0, 245, 255, 0.08);
    border: 1px solid var(--alpha-cyan-30);
    padding: 0 5px;
    height: 14px;
    border-radius: 2px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

/* ============================================
   NAV RIGHT GROUP (Coins + Live)
   ============================================ */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

/* RSP Coins Pill — filled dark with gold coin */
.nav-coins-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px 0 10px;
    background: linear-gradient(180deg, rgba(20,16,8,0.85), rgba(10,8,4,0.85));
    border: 1px solid rgba(255, 215, 0, 0.22);
    border-radius: 100px;
    text-decoration: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.08);
}
.nav-coins-pill:hover {
    border-color: rgba(255, 215, 0, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.12),
                0 0 18px rgba(255, 215, 0, 0.18);
    transform: translateY(-1px);
}
.nav-coins-icon {
    color: #ffd700;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.45));
}

.nav-checkin-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    background: rgba(0,229,160,0.10);
    border: 1px solid rgba(0,229,160,0.35);
    border-radius: 100px;
    color: #00e5a0;
    font-family: var(--font-accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav-checkin-btn:hover:not(:disabled) {
    background: rgba(0,229,160,0.18);
    border-color: rgba(0,229,160,0.6);
    box-shadow: 0 0 14px rgba(0,229,160,0.25);
}
.nav-checkin-btn.nav-checkin-done,
.nav-checkin-btn:disabled {
    background: var(--alpha-white-4);
    border-color: var(--alpha-white-10);
    color: var(--alpha-white-25);
    cursor: default;
    box-shadow: none;
}

.nav-coins-amount {
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffd700;
    min-width: 18px;
    text-align: right;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* ============================================
   LIVE STATUS INDICATOR
   ============================================ */
.nav-live-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(128, 128, 128, 0.15);
    border: 1px solid rgba(128, 128, 128, 0.4);
    border-radius: var(--border-radius-full);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* LIVE stav — červená */
.nav-live-status.is-live {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.4);
    animation: liveStatusPulse 2s ease-in-out infinite;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #888;
    border-radius: 50%;
    box-shadow: none;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav-live-status.is-live .live-dot {
    background: var(--neon-red);
    box-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red);
    animation: livePulse 1s ease-in-out infinite;
}

.live-text {
    font-family: var(--font-accent);
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.nav-live-status.is-live .live-text {
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red);
}

@keyframes liveStatusPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.5), 0 0 40px rgba(255, 0, 0, 0.2);
    }
}

/* ============================================
   DISCORD NAV AREA
   ============================================ */
.nav-discord-area {
    display: flex;
    align-items: center;
}

.nav-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 18px;
    background: rgba(145, 71, 255, 0.10);
    border: 1px solid rgba(145, 71, 255, 0.35);
    border-radius: 100px;
    color: #c4a5ff;
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.nav-discord-btn:hover {
    background: rgba(145, 71, 255, 0.18);
    border-color: rgba(145, 71, 255, 0.55);
    color: #fff;
    transform: translateY(-1px);
}

.nav-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 6px;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.4);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-user-pill:hover {
    background: var(--alpha-purple-20);
    border-color: var(--alpha-purple-50);
    box-shadow: 0 0 12px var(--alpha-purple-20);
}

.nav-user-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    background: #f43f5e;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
    animation: userBadgePulse 2s ease-in-out infinite;
}

@keyframes userBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

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

.nav-user-name {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.nav-user-logout {
    display: none;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: #ff8080;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Pill stays the same size on hover — no content swap */

/* Mobile Discord menu item */
.nav-menu-discord-item {
    display: none;
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
}

.nav-discord-mobile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    width: 100%;
    justify-content: center;
    background: var(--alpha-purple-12);
    border: 1px solid var(--alpha-purple-35);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.nav-discord-mobile-btn:hover {
    background: var(--alpha-purple-20);
    border-color: var(--alpha-purple-60);
}

.nav-discord-mobile-user {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.nav-mobile-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.nav-discord-mobile-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-discord-mobile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(88, 101, 242, 0.5);
}

.nav-discord-mobile-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.nav-discord-mobile-logout {
    padding: 8px 16px;
    background: var(--alpha-white-5);
    border: 1px solid var(--alpha-white-15);
    border-radius: 100px;
    color: var(--alpha-white-50);
    font-family: var(--font-display);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
    text-align: center;
}

.nav-discord-mobile-logout:hover {
    border-color: rgba(220, 50, 50, 0.5);
    color: #ff8080;
    background: rgba(220, 50, 50, 0.1);
}

.nav-mobile-admin-btn {
    padding: 8px 14px;
    background: var(--alpha-purple-12);
    border: 1px solid var(--alpha-purple-35);
    border-radius: 100px;
    color: var(--alpha-purple-60);
    font-family: var(--font-display);
    font-size: 0.82rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}
.nav-mobile-admin-btn:hover {
    background: var(--alpha-purple-20);
    border-color: var(--alpha-purple-60);
    color: #b08fff;
}

.nav-mobile-status-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 14px;
    border-bottom: 1px solid var(--alpha-purple-10);
    margin-bottom: 4px;
}

.nav-mobile-coins {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--alpha-purple-60);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-mobile-coins:hover { color: #b08fff; }

.nav-mobile-checkin-btn {
    padding: 8px 14px;
    background: rgba(0, 229, 160, 0.12);
    border: 1px solid rgba(0, 229, 160, 0.35);
    border-radius: 100px;
    color: #00e5a0;
    font-family: var(--font-display);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nav-mobile-checkin-btn:hover:not(:disabled) {
    background: rgba(0, 229, 160, 0.22);
    border-color: rgba(0, 229, 160, 0.6);
}
.nav-mobile-checkin-btn.done,
.nav-mobile-checkin-btn:disabled {
    background: var(--alpha-white-4);
    border-color: var(--alpha-white-10);
    color: var(--alpha-white-25);
    cursor: default;
}

/* Close button only exists in mobile drawer */
.nav-menu-close { display: none; }

/* Mobile menu backdrop overlay */
.nav-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: var(--z-nav-backdrop);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
@media (max-width: 1100px) {
    .nav-menu-overlay { display: block; pointer-events: none; }
    .nav-menu-overlay.active { pointer-events: auto; opacity: 1; }
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid var(--alpha-cyan-40);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-toggle:hover {
    background: rgba(15, 15, 30, 1);
    box-shadow: 0 0 20px var(--alpha-cyan-30);
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    transition: all var(--transition-fast);
    box-shadow: 0 0 5px var(--neon-cyan);
}

.hamburger::before { top: 0; }
.hamburger::after { bottom: 0; }

/* Middle line */
.hamburger-mid {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
    transform: translateY(-50%);
    transition: all var(--transition-fast);
}

/* Open state - X */
.nav-toggle.active .hamburger-mid {
    opacity: 0;
}

.nav-toggle.active .hamburger::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ============================================
   RESPONSIVE - MOBILE MENU
   ============================================ */
/* Mid-range: hide nav emojis, tighten padding */
@media (max-width: 1280px) {
    .nav-menu .nav-icon {
        display: none;
    }
    .nav-link {
        padding: var(--space-2) var(--space-3);
        font-size: 0.78rem;
    }
}

/* Narrower desktop: further shrink links before hamburger kicks in */
@media (max-width: 1150px) and (min-width: 1101px) {
    .nav-link {
        padding: var(--space-1) var(--space-2);
        font-size: 0.72rem;
        letter-spacing: 0.03em;
    }
    .nav-menu {
        gap: 0;
    }
    .nav-hot-tag {
        display: none;
    }
}

/* Mobile menu branding - hidden on desktop */
.nav-menu-branding {
    display: none;
}

@media (max-width: 1100px) {
    .nav-toggle {
        display: flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
    }

    /* Left-side drawer — z-index 999 so navbar (1000) stays on top */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        width: min(300px, 85vw);
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        background: rgba(6, 6, 18, 0.99);
        border-right: 1px solid var(--alpha-purple-15);
        box-shadow: 16px 0 60px var(--alpha-black-70);
        transform: translateX(-110%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: var(--nav-height);
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        z-index: var(--z-nav-menu);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Mobile menu branding */
    .nav-menu-branding {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 18px 16px 14px;
        border-bottom: 1px solid var(--alpha-purple-12);
        width: 100%;
    }

    .nav-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        width: 32px;
        height: 32px;
        background: var(--alpha-white-6);
        border: 1px solid var(--alpha-white-10);
        border-radius: 8px;
        color: var(--alpha-white-55);
        font-size: 14px;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    .nav-menu-close:hover {
        background: var(--alpha-purple-20);
        border-color: var(--alpha-purple-50);
        color: #fff;
    }

    .menu-brand-logo {
        height: 28px;
        width: auto;
        object-fit: contain;
    }

    .menu-brand-text {
        font-family: var(--font-display);
        font-size: 0.95rem;
        font-weight: 800;
        color: var(--text-primary);
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .menu-brand-accent {
        background: var(--gradient-respinners);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 14px 20px;
        width: 100%;
        max-width: none;
        justify-content: flex-start;
        text-align: left;
        border: none;
        border-bottom: 1px solid var(--alpha-white-4);
        background: transparent;
        border-radius: 0;
    }
    .nav-link:hover, .nav-link.active {
        background: var(--alpha-purple-8);
        border-left: 3px solid var(--alpha-purple-60);
        padding-left: 17px;
    }

    .nav-live-status { position: relative; }

    .nav-menu-discord-item {
        display: flex;
        flex-direction: column;
        padding: 16px 18px max(16px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--alpha-purple-12);
        gap: 12px;
    }
}

/* Mobile account dropdown placeholder — actual styles moved after base dropdown rules */

/* Coins info row inside dropdown */
.nud-coins-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px 4px;
    font-size: 0.85rem;
    color: var(--alpha-white-55);
    border-bottom: 1px solid var(--alpha-purple-15);
    margin-bottom: 4px;
}
.nud-coins-row strong {
    color: #ffd700;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }

    .logo-text {
        display: none;
    }

    .logo-mobile-text {
        display: inline;
    }

    .logo-image {
        height: 38px;
    }

    .nav-live-status {
        display: none;
    }

    .nav-discord-text {
        display: none;
    }

    .nav-user-name {
        display: inline !important;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.72rem;
    }

    .nav-user-logout {
        display: none !important;
    }

    .nav-coins-pill {
        display: flex;
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .nav-coins-icon { font-size: 0.85rem; }

    /* Hide check-in and coins from top bar on mobile — they live in the menu drawer */
    .nav-checkin-btn,
    .nav-coins-pill {
        display: none !important;
    }

    /* Bell stays in top bar but smaller */
    .nav-bell-btn {
        width: 32px;
        height: 32px;
    }

    /* Reduce right group spacing */
    .nav-right-group {
        gap: 6px;
    }

    /* User pill with name on mobile */
    .nav-user-pill {
        padding: 4px 10px 4px 6px;
        gap: 5px;
    }

    .nav-menu {
        height: 100vh;
    }
}

@media (max-width: 480px) {
    .nav-container { padding: 0 12px; }
    .nav-right-group { gap: 4px; }
    .nav-coins-pill  { padding: 4px 8px; font-size: 0.75rem; }
    .nav-user-name   { max-width: 56px; font-size: 0.68rem; }
    .nav-bell-btn    { width: 30px; height: 30px; }
    .nav-bell-btn svg { width: 14px; height: 14px; }
    .nav-user-pill   { padding: 3px 8px 3px 5px; gap: 4px; }
    .logo-image      { height: 32px; }
}

/* ============================================
   NOTIFICATION BELL
   ============================================ */
.nav-bell-wrap {
    position: relative;
}

.nav-bell-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--alpha-cyan-8);
    border: 1px solid var(--alpha-cyan-20);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
}

.nav-bell-btn:hover {
    background: var(--alpha-cyan-15);
    border-color: var(--alpha-cyan-50);
    box-shadow: 0 0 16px var(--alpha-cyan-25);
}

.nav-bell-icon {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
    pointer-events: none;
}

.nav-bell-btn:hover .nav-bell-icon {
    color: var(--neon-cyan);
}

.nav-bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    background: var(--gradient-respinners);
    border-radius: 100px;
    font-family: var(--font-accent);
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
    padding: 0 4px;
    line-height: 17px;
    text-align: center;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: bellBadgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bellBadgePop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* Dropdown */
.nav-bell-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: rgba(8, 8, 15, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--alpha-purple-25);
    border-radius: 16px;
    box-shadow: 0 20px 60px var(--alpha-black-60), 0 0 0 1px var(--alpha-purple-8);
    z-index: var(--z-nav-dropdown);
    overflow: hidden;
}

.nbd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--alpha-white-6);
}

.nbd-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nbd-clear-all {
    background: none;
    border: none;
    color: rgba(248, 113, 113, 0.6);
    font-family: var(--font-accent);
    font-size: 0.68rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.nbd-clear-all:hover { color: #f87171; }

.nbd-list {
    list-style: none;
    max-height: 270px;
    overflow-y: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--alpha-purple-30) transparent;
}

.nbd-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    transition: background 0.2s ease;
    cursor: default;
}

.nbd-item:hover { background: var(--alpha-purple-6); }

.nbd-item--unread {
    border-left: 2px solid var(--twitch-purple);
    padding-left: 14px;
}

.nbd-avatar {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ac) 25%, transparent);
    border: 1px solid color-mix(in srgb, var(--ac) 50%, transparent);
    color: var(--ac);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nbd-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.nbd-item-text {
    font-size: 0.8rem;
    color: var(--alpha-white-85);
    line-height: 1.35;
}

.nbd-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nbd-type {
    font-family: var(--font-accent);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nbd-type-giveaway {
    background: var(--alpha-cyan-10);
    color: var(--neon-cyan);
    border: 1px solid var(--alpha-cyan-25);
}

.nbd-type-raffle {
    background: var(--alpha-purple-15);
    color: var(--twitch-purple);
    border: 1px solid var(--alpha-purple-30);
}

.nbd-item-date {
    font-size: 0.68rem;
    color: var(--text-muted, var(--alpha-white-35));
}

.nbd-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted, var(--alpha-white-35));
}

/* Mobile bell dropdown */
@media (max-width: 600px) {
    .nav-bell-dropdown {
        position: fixed;
        top: calc(var(--nav-height) + 8px);
        right: 12px;
        left: 12px;
        width: auto;
        transform: none;
    }
}

/* Stream badge in bell */
.nbd-type-stream {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(74, 222, 128, 0.15);
    color: var(--neon-success);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

/* ============================================
   LOGIN MODAL
   ============================================ */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal {
    background: #0e0e1a;
    border: 1px solid var(--alpha-purple-30);
    border-radius: 20px;
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 0 60px var(--alpha-purple-20), 0 20px 60px var(--alpha-black-60);
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--alpha-white-40);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 8px;
    transition: color 0.2s;
}
.login-modal-close:hover { color: #fff; }

.login-modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}
.login-modal-logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.login-modal-logo span {
    font-family: var(--font-display, 'Exo 2', sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    background: var(--gradient-respinners);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-tabs {
    display: flex;
    background: var(--alpha-white-4);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.login-tab {
    flex: 1;
    padding: 9px;
    border: none;
    background: none;
    color: var(--alpha-white-45);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    font-family: inherit;
}
.login-tab.active {
    background: var(--alpha-purple-20);
    color: #c084fc;
}

.login-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 14px;
}

.login-field {
    margin-bottom: 14px;
}
.login-field label {
    display: block;
    font-size: 0.75rem;
    color: var(--alpha-white-45);
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.login-field input {
    width: 100%;
    background: var(--alpha-white-4);
    border: 1px solid var(--alpha-purple-20);
    border-radius: 10px;
    color: #fff;
    padding: 11px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-field input:focus {
    border-color: var(--alpha-purple-60);
    box-shadow: 0 0 0 3px var(--alpha-purple-10);
}

.login-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--twitch-purple), #6d28d9);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}
.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--alpha-purple-40);
}
.login-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-bonus-hint {
    text-align: center;
    font-size: 0.82rem;
    color: var(--neon-cyan);
    margin: 12px 0 0;
}

@media (max-width: 440px) {
    .login-modal {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }
}

/* ============================================================
   USER ACCOUNT DROPDOWN
   ============================================================ */
.nav-user-dropdown-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-user-dropdown-wrap .nav-user-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    min-width: 90px;
}
/* Override old red hover — keep purple, don't hide name */
.nav-user-dropdown-wrap .nav-user-pill:hover {
    background: var(--alpha-purple-20);
    border-color: var(--alpha-purple-50);
    box-shadow: 0 0 12px var(--alpha-purple-20);
}

.nud-chevron {
    transition: transform 0.2s;
    opacity: 0.7;
}
.nav-user-dropdown.open ~ * .nud-chevron,
.nav-user-pill:has(+ .nav-user-dropdown.open) .nud-chevron {
    transform: rotate(180deg);
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: rgba(12, 10, 20, 0.97);
    border: 1px solid var(--alpha-purple-35);
    border-radius: 14px;
    box-shadow: 0 12px 40px var(--alpha-black-60), 0 0 20px var(--alpha-purple-12);
    backdrop-filter: blur(20px);
    overflow: hidden;
    display: none;
    z-index: var(--z-sticky);
}
.nav-user-dropdown.open {
    display: block;
    animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nud-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--twitch-purple);
    border-bottom: 1px solid var(--alpha-purple-20);
}
.nud-header span {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}

/* Close button — hidden on desktop, visible on mobile */
.nud-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--alpha-white-6);
    border: 1px solid var(--alpha-white-10);
    border-radius: 8px;
    color: var(--alpha-white-55);
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nud-close-btn:hover {
    background: var(--alpha-purple-20);
    border-color: var(--alpha-purple-50);
    color: #fff;
}
@media (max-width: 1100px) {
    .nud-close-btn { display: flex; }
}

.nud-menu {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.nud-menu-item {
    width: 100%;
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--alpha-white-85);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.nud-menu-item:hover {
    background: var(--alpha-purple-15);
    color: #fff;
}

.nud-logout-btn {
    width: 100%;
    background: none;
    border: none;
    border-top: 1px solid var(--alpha-purple-20);
    padding: 10px 16px;
    font-size: 0.85rem;
    color: #ff6b9d;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
    font-family: inherit;
}
.nud-logout-btn:hover {
    background: rgba(255, 107, 157, 0.12);
}

/* ── Mobile account dropdown — right-side drawer like hamburger (MUST come after base dropdown rules) ── */
@media (max-width: 1100px) {
    .nav-user-dropdown {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        bottom: auto;
        width: min(300px, 85vw);
        height: 100dvh;
        min-width: unset;
        border-radius: 0;
        border: none;
        border-left: 1px solid var(--alpha-purple-15);
        background: rgba(6, 6, 18, 0.99);
        box-shadow: -16px 0 60px var(--alpha-black-70);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        z-index: var(--z-nav-dropdown);
        padding-top: var(--nav-height);
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        overflow-y: auto;
        overflow-x: hidden;
        /* Use visibility+transform instead of display for smooth transition */
        display: block !important;
        visibility: hidden;
        transform: translateX(110%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
        animation: none;
    }
    .nav-user-dropdown.open {
        visibility: visible;
        transform: translateX(0);
        animation: none;
    }
    .nud-header {
        padding: 18px 20px 14px;
        font-size: 1.05rem;
        text-align: left;
        position: relative;
        border-bottom: 1px solid var(--alpha-purple-12);
    }
    .nud-header::before {
        display: none;
    }
    .nud-coins-row {
        padding: 14px 20px 10px;
        font-size: 0.9rem;
    }
    .nud-menu-item {
        padding: 14px 20px;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--alpha-white-4);
    }
    .nud-logout-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* ============================================================
   ACCOUNT MODAL EXTRAS
   ============================================================ */
.account-modal {
    max-height: 90vh;
    overflow-y: auto;
}
.account-modal::-webkit-scrollbar { width: 4px; }
.account-modal::-webkit-scrollbar-track { background: transparent; }
.account-modal::-webkit-scrollbar-thumb { background: var(--alpha-purple-40); border-radius: 2px; }

.acc-info {
    background: var(--alpha-purple-8);
    border: 1px solid var(--alpha-purple-20);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
}
.acc-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.83rem;
    padding: 4px 0;
    color: var(--alpha-white-70);
}
.acc-info-item:not(:last-child) {
    border-bottom: 1px solid var(--alpha-white-6);
}
.acc-info-item strong {
    color: #fff;
    font-weight: 600;
}

.acc-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--twitch-purple);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
}

.login-success {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: var(--neon-success);
    margin-bottom: 12px;
}

.login-verify-msg {
    background: var(--alpha-cyan-10);
    border: 1px solid var(--alpha-cyan-30);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.85rem;
    color: #e0f7ff;
    margin-bottom: 16px;
    line-height: 1.5;
}
.login-dev-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--neon-cyan);
    font-size: 0.8rem;
    word-break: break-all;
}

.login-resend-btn {
    background: none;
    border: 1px solid var(--alpha-purple-50);
    border-radius: 6px;
    color: var(--twitch-purple);
    font-size: 0.78rem;
    padding: 3px 8px;
    cursor: pointer;
    font-family: inherit;
    margin-left: 6px;
    transition: background 0.15s;
}
.login-resend-btn:hover {
    background: var(--alpha-purple-15);
}

/* Wins list */
.acc-wins-list {
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.acc-wins-loading,
.acc-wins-empty {
    text-align: center;
    color: var(--alpha-white-45);
    font-size: 0.85rem;
    padding: 24px 0;
}
.acc-win-card {
    background: var(--alpha-purple-6);
    border: 1px solid var(--alpha-purple-20);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: border-color 0.2s;
}
.acc-win-card:hover {
    border-color: var(--alpha-purple-40);
}
.acc-win-card.acc-win-unseen {
    border-left: 3px solid #f59e0b;
}
.acc-win-info {
    flex: 1;
    min-width: 0;
}
.acc-win-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}
.acc-win-type {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border: 1px solid;
}
.acc-win-type-daily {
    color: var(--neon-success);
    background: rgba(74,222,128,0.12);
    border-color: rgba(74,222,128,0.3);
}
.acc-win-type-weekly {
    color: var(--neon-cyan);
    background: var(--alpha-cyan-10);
    border-color: var(--alpha-cyan-30);
}
.acc-win-type-monthly {
    color: #fbbf24;
    background: rgba(251,191,36,0.12);
    border-color: rgba(251,191,36,0.3);
}
.acc-win-type-special {
    color: #f472b6;
    background: rgba(244,114,182,0.12);
    border-color: rgba(244,114,182,0.3);
}
.acc-win-prize {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.acc-win-badge-new {
    font-size: 0.55rem;
    font-weight: 800;
    background: #f59e0b;
    color: #000;
    padding: 1px 6px;
    border-radius: 6px;
    white-space: nowrap;
}
.acc-win-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--alpha-white-45);
    margin-top: 2px;
}
.acc-win-chat-btn {
    flex-shrink: 0;
    background: var(--alpha-purple-15);
    border: 1px solid var(--alpha-purple-35);
    color: #c084fc;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.acc-win-chat-btn:hover {
    background: var(--alpha-purple-30);
    border-color: var(--alpha-purple-60);
}
.acc-win-msg-badge {
    background: var(--twitch-purple);
    color: #fff;
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 6px;
}


/* ── Orders badge on tab ── */
.acc-orders-badge,
.nud-menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--twitch-purple);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    padding: 0 4px;
    margin-left: 3px;
    vertical-align: middle;
}

/* ── Order cards in account modal ── */
.ord-card {
    background: var(--alpha-purple-6);
    border: 1px solid var(--alpha-purple-20);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.ord-card:hover { border-color: var(--alpha-purple-40); }
.ord-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.ord-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ord-card-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}
.ord-card-price {
    font-size: 0.78rem;
    color: var(--alpha-white-50);
}
.ord-card-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ord-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--alpha-white-45);
}
.ord-card-meta strong { color: var(--alpha-white-70); }
.ord-card-date { margin-left: auto; }

/* ── Status badges ── */
.ord-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}
.ord-status-pending    { background: rgba(251,191,36,0.15);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.ord-status-processing { background: var(--alpha-cyan-10);   color: var(--neon-cyan); border: 1px solid var(--alpha-cyan-30); }
.ord-status-done       { background: rgba(74,222,128,0.12);  color: var(--neon-success); border: 1px solid rgba(74,222,128,0.3); }
.ord-status-cancelled  { background: rgba(239,68,68,0.12);   color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

/* ── Chat button ── */
.ord-chat-btn {
    background: var(--alpha-purple-15);
    border: 1px solid var(--alpha-purple-35);
    color: #c084fc;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
.ord-chat-btn:hover { background: var(--alpha-purple-30); border-color: var(--alpha-purple-60); }
.ord-chat-btn-reply {
    background: var(--alpha-purple-25);
    border-color: var(--twitch-purple);
    color: #fff;
}

/* ── Order Chat Modal ── */
.ord-chat-overlay {
    position: fixed;
    inset: 0;
    background: var(--alpha-black-70);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-overlay);
    padding: 16px;
}
.ord-chat-box {
    background: #12121e;
    border: 1px solid var(--alpha-purple-35);
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--alpha-black-70), 0 0 0 1px var(--alpha-purple-15);
}
.ord-chat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--alpha-white-6);
    flex-shrink: 0;
}
.ord-chat-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ord-chat-title span:first-child {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}
.ord-chat-close {
    background: none;
    border: none;
    color: var(--alpha-white-40);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}
.ord-chat-close:hover { color: #fff; }
.ord-chat-meta {
    padding: 8px 20px 10px;
    font-size: 0.76rem;
    color: var(--alpha-white-45);
    border-bottom: 1px solid var(--alpha-white-5);
    flex-shrink: 0;
}
.ord-chat-meta strong { color: var(--alpha-white-70); }
.ord-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 150px;
    max-height: 340px;
}
.ord-chat-messages::-webkit-scrollbar { width: 4px; }
.ord-chat-messages::-webkit-scrollbar-thumb { background: var(--alpha-purple-40); border-radius: 2px; }
.ord-msg { display: flex; flex-direction: column; }
.ord-msg-user  { align-items: flex-end; }
.ord-msg-admin { align-items: flex-start; }
.ord-msg-bubble {
    max-width: 85%;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: break-word;
}
.ord-msg-user  .ord-msg-bubble { background: var(--alpha-purple-25); color: #e9d5ff; border-bottom-right-radius: 4px; }
.ord-msg-admin .ord-msg-bubble { background: var(--alpha-cyan-10); color: #cffafe; border: 1px solid var(--alpha-cyan-20); border-bottom-left-radius: 4px; }
.ord-msg-time {
    font-size: 0.68rem;
    color: var(--alpha-white-30);
    margin-top: 3px;
    padding: 0 2px;
}
.ord-chat-input-wrap {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--alpha-white-6);
    flex-shrink: 0;
}
.ord-chat-input {
    flex: 1;
    background: var(--alpha-white-5);
    border: 1px solid var(--alpha-purple-30);
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    padding: 9px 12px;
    resize: none;
    font-family: inherit;
    transition: border-color 0.15s;
}
.ord-chat-input:focus { outline: none; border-color: var(--twitch-purple); }
.ord-chat-input::placeholder { color: var(--alpha-white-30); }
.ord-chat-send {
    background: var(--twitch-purple);
    border: none;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    align-self: flex-end;
}
.ord-chat-send:hover { background: #7c3aed; }
.ord-chat-send:disabled { opacity: 0.5; cursor: default; }

/* Username change remaining counter */
.acc-section-title { display: flex; align-items: center; gap: 8px; }
.acc-changes-left {
    font-size: 0.72rem;
    color: var(--alpha-white-30);
    font-weight: 400;
    font-family: var(--font-body, 'Montserrat', sans-serif);
}

/* ============================================
   1080p FIX — keep navbar readable despite
   global 20% rem shrink
   ============================================ */
@media (max-width: 1920px) and (min-width: 1101px) {
    .navbar {
        height: 72px;
    }
    .navbar.scrolled {
        height: 62px;
    }
    .nav-link {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
    .nav-logo {
        font-size: 1.25rem;
    }
    .logo-image {
        height: 40px;
    }
    .nav-container {
        padding: 0 36px;
    }
}
