/* ============================================================
   OUTBID.VIP — High-Octane Obsidian Dark Theme & Glass UI
   ============================================================ */

:root {
    --bg-base: #060913;
    --bg-card: rgba(15, 22, 38, 0.90);
    --bg-glass: rgba(13, 19, 33, 0.78);
    --bg-input: rgba(7, 11, 22, 0.85);
    --bg-overlay: rgba(4, 7, 15, 0.78);
    --bg-subbox: rgba(0, 0, 0, 0.35);
    --bg-hover: rgba(255, 255, 255, 0.12);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.18);
    --border-brand: rgba(14, 165, 233, 0.45);
    
    --brand: #0ea5e9;
    --brand-light: #38bdf8;
    --brand-dark: #0284c7;
    --brand-glow: rgba(14, 165, 233, 0.35);
    
    --emerald: #10b981;
    --violet: #8b5cf6;
    --blue: #0ea5e9;
    --pink: #ec4899;
    --red: #ef4444;
    
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    
    --shadow-glass: 0 16px 48px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-brand: 0 10px 30px -4px rgba(14, 165, 233, 0.38);

    --nav-fade: linear-gradient(180deg, rgba(6, 9, 19, 0.88) 0%, rgba(6, 9, 19, 0) 100%);
}

/* Auto Adaptive System Light Mode */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg-base: #f8fafc;
        --bg-card: rgba(255, 255, 255, 0.95);
        --bg-glass: rgba(255, 255, 255, 0.88);
        --bg-input: #ffffff;
        --bg-overlay: rgba(15, 23, 42, 0.45);
        --bg-subbox: rgba(241, 245, 249, 0.85);
        --bg-hover: rgba(0, 0, 0, 0.06);
        
        --border-subtle: rgba(15, 23, 42, 0.1);
        --border-highlight: rgba(15, 23, 42, 0.2);
        --border-brand: rgba(14, 165, 233, 0.4);
        
        --brand: #0284c7;
        --brand-light: #0ea5e9;
        --brand-dark: #0369a1;
        --brand-glow: rgba(14, 165, 233, 0.25);
        
        --text-main: #0f172a;
        --text-dim: #334155;
        --text-muted: #64748b;
        
        --shadow-glass: 0 12px 36px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.06);
        --shadow-brand: 0 8px 24px -4px rgba(14, 165, 233, 0.25);

        --nav-fade: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0) 100%);
    }
}

/* Explicit Light Mode Override */
[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.88);
    --bg-input: #ffffff;
    --bg-overlay: rgba(15, 23, 42, 0.45);
    --bg-subbox: rgba(241, 245, 249, 0.85);
    --bg-hover: rgba(0, 0, 0, 0.06);
    
    --border-subtle: rgba(15, 23, 42, 0.1);
    --border-highlight: rgba(15, 23, 42, 0.2);
    --border-brand: rgba(14, 165, 233, 0.4);
    
    --brand: #0284c7;
    --brand-light: #0ea5e9;
    --brand-dark: #0369a1;
    --brand-glow: rgba(14, 165, 233, 0.25);
    
    --text-main: #0f172a;
    --text-dim: #334155;
    --text-muted: #64748b;
    
    --shadow-glass: 0 12px 36px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.06);
    --shadow-brand: 0 8px 24px -4px rgba(14, 165, 233, 0.25);

    --nav-fade: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0) 100%);
}

/* Explicit Dark Mode Override */
[data-theme="dark"] {
    --bg-base: #060913;
    --bg-card: rgba(15, 22, 38, 0.90);
    --bg-glass: rgba(13, 19, 33, 0.78);
    --bg-input: rgba(7, 11, 22, 0.85);
    --bg-overlay: rgba(4, 7, 15, 0.78);
    --bg-subbox: rgba(0, 0, 0, 0.35);
    --bg-hover: rgba(255, 255, 255, 0.12);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.18);
    --border-brand: rgba(14, 165, 233, 0.45);
    
    --brand: #0ea5e9;
    --brand-light: #38bdf8;
    --brand-dark: #0284c7;
    --brand-glow: rgba(14, 165, 233, 0.35);
    
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    
    --shadow-glass: 0 16px 48px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-brand: 0 10px 30px -4px rgba(14, 165, 233, 0.38);

    --nav-fade: linear-gradient(180deg, rgba(6, 9, 19, 0.88) 0%, rgba(6, 9, 19, 0) 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

input, textarea {
    user-select: text;
    -webkit-user-select: text;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   1. FULL SCREEN CANVAS
   ============================================================ */
#balls-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: block;
    cursor: default;
}

/* ============================================================
   2. FLOATING TOP NAVBAR
   ============================================================ */
.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: var(--nav-fade);
    pointer-events: none;
}

.floating-nav > * {
    pointer-events: auto;
}

.nav-brand-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-glass);
}

.brand-crown {
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.4));
}

.brand-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.brand-accent {
    color: var(--brand-light);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

/* Nav Center Ticker */
.nav-center-ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    box-shadow: var(--shadow-glass);
}

.live-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--emerald);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ticker-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
}

.ticker-item.highlight {
    font-weight: 700;
    color: var(--brand-light);
}

.ticker-sep {
    color: var(--text-muted);
}

/* Nav Right Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.viewer-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow-glass);
}

.viewer-eye {
    font-size: 13px;
}

.viewer-count {
    font-family: var(--font-mono);
    color: var(--brand-light);
}

.viewer-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-glass);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-highlight);
    transform: translateY(-1px);
}

.nav-pill-btn {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-glass);
}

.nav-pill-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-highlight);
    transform: translateY(-1px);
}

.nav-btn-bid {
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-dark) 100%);
    border: none;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.45);
}

.nav-btn-bid:hover {
    background: linear-gradient(135deg, #00d2ff 0%, #0284c7 100%);
    box-shadow: 0 0 24px rgba(14, 165, 233, 0.65);
    transform: translateY(-1px) scale(1.03);
}

/* ============================================================
   2.5 HERO ATTENTION BANNER
   ============================================================ */
.hero-attention-banner {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 35;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-brand);
    padding: 8px 14px 8px 18px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-glass), 0 0 20px rgba(14, 165, 233, 0.18);
    animation: bannerFloat 4s ease-in-out infinite;
    max-width: min(680px, calc(100vw - 28px));
}

@keyframes bannerFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}

.hero-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-fire-badge {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-tagline-text {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 600;
}

.btn-hero-bid {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    border: none;
    color: #ffffff;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.5);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn-hero-bid:hover {
    transform: scale(1.06);
    box-shadow: 0 0 24px rgba(14, 165, 233, 0.8);
}

.btn-hero-bid:active {
    transform: scale(0.98);
}

/* ============================================================
   2.6 BEAUTIFUL BID DIALOG MODAL
   ============================================================ */
.bid-dialog-card {
    background: var(--bg-card);
    backdrop-filter: blur(36px);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 24px;
    width: min(440px, 94vw);
    padding: 26px;
    position: relative;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(14, 165, 233, 0.2);
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bid-dialog-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.dialog-mascot {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.5);
}

.dialog-title-wrap {
    flex: 1;
}

.dialog-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 3px 0;
    letter-spacing: -0.02em;
}

.dialog-subtitle {
    font-size: 12px;
    color: var(--text-dim);
    margin: 0;
}

.dialog-preview-stage {
    background: var(--bg-subbox);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    min-height: 140px;
}

.dialog-preview-bubble {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #38bdf8 0%, #0284c7 60%, #0369a1 100%);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 8px;
}

.dialog-bubble-specular {
    position: absolute;
    top: 6px;
    left: 12px;
    right: 12px;
    height: 40%;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

#dialog-preview-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    margin-bottom: 2px;
}

#dialog-preview-avatar {
    font-size: 20px;
    line-height: 1;
    margin-bottom: 2px;
}

.dialog-preview-val {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.dialog-preview-name {
    font-size: 10px;
    font-weight: 700;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.dialog-preview-rank-badge {
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.dialog-input-group {
    margin-bottom: 14px;
}

.dialog-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dialog-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0 14px;
    transition: all 0.2s ease;
}

.dialog-input-wrap:focus-within {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.dialog-input-icon {
    font-size: 14px;
    color: var(--text-muted);
    margin-right: 8px;
    font-family: var(--font-mono);
}

.dialog-input-wrap input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 0;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.dialog-chips-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dialog-chip-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dialog-chip-btn:hover {
    background: rgba(14, 165, 233, 0.18);
    border-color: var(--brand-light);
    color: var(--text-main);
    transform: translateY(-1px);
}

.dialog-chip-btn.chip-king-preset {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.45);
    color: var(--brand-light);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.2);
}

.btn-dialog-submit {
    width: 100%;
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    border: none;
    color: #ffffff;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -4px rgba(14, 165, 233, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-dialog-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(14, 165, 233, 0.7);
}

.dialog-security-foot {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
}

/* ============================================================
   3. FLOATING BOTTOM BID HUB
   ============================================================ */
.floating-bid-hub {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    width: min(720px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.floating-bid-hub > * {
    pointer-events: auto;
}

/* Quick Action Chips */
.quick-chips-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip-action {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-glass);
}

.chip-action:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    border-color: var(--border-highlight);
    transform: translateY(-1px);
}

.chip-action.chip-king {
    background: rgba(245, 158, 11, 0.12);
    border-color: var(--border-gold);
    color: var(--gold-light);
    font-weight: 700;
}

.chip-action.chip-king:hover {
    background: rgba(245, 158, 11, 0.25);
    box-shadow: 0 4px 14px var(--gold-glow);
}

/* Live Metadata Preview Card */
.live-meta-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    box-shadow: var(--shadow-glass), 0 0 20px rgba(245, 158, 11, 0.15);
    animation: slideUpFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.meta-preview-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.meta-preview-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.meta-preview-text {
    flex: 1;
    min-width: 0;
}

.meta-preview-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-preview-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 1px;
}

.meta-preview-url {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-preview-rank-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.meta-preview-clear {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.meta-preview-clear:hover {
    color: var(--text-main);
}

/* Main Input Bar */
.bid-input-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-glass);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bid-input-bar:focus-within {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glass), 0 0 24px rgba(255, 255, 255, 0.06);
}

.input-slot {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 0 14px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.input-slot:focus-within {
    border-color: rgba(255, 255, 255, 0.14);
}

.input-url-slot {
    flex: 1;
}

.input-amount-slot {
    flex: 0 0 130px;
}

.input-icon {
    font-size: 14px;
    margin-right: 8px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.amount-dollar {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--gold);
}

.input-slot input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 14px;
    padding: 13px 0;
    width: 100%;
    outline: none;
}

.input-slot input::placeholder {
    color: var(--text-muted);
}

.input-amount-slot input {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 15px;
}

.input-amount-slot input::-webkit-outer-spin-button,
.input-amount-slot input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-bid-submit {
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-dark) 100%);
    border: none;
    color: #ffffff;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow: var(--shadow-brand);
}

.btn-bid-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.45);
}

.btn-bid-submit:active {
    transform: translateY(0);
}

.btn-bid-submit.loading {
    opacity: 0.7;
    pointer-events: none;
}

.bid-tagline {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* ============================================================
   4. MODALS (CHECKOUT & VICTORY)
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 7, 15, 0.75);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.checkout-card, .victory-card {
    background: var(--bg-card);
    backdrop-filter: blur(32px);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    width: min(460px, 95vw);
    padding: 28px;
    position: relative;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

/* Checkout Specifics */
.checkout-badge {
    display: inline-block;
    background: rgba(14, 165, 233, 0.15);
    color: var(--brand-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 8px;
}

.checkout-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.checkout-subtitle {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
    margin-bottom: 20px;
}

.checkout-target-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-subbox);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.checkout-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.checkout-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.checkout-target-info {
    flex: 1;
    min-width: 0;
}

.checkout-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-url {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.checkout-rank-pill {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid var(--border-brand);
    color: var(--brand-light);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

.checkout-amount-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.amount-label {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 600;
}

.amount-val {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-light);
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.pay-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dim);
}

.pay-method-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.pay-method-btn.active {
    background: rgba(14, 165, 233, 0.12);
    border-color: var(--brand-light);
    color: var(--text-main);
}

.pay-icon {
    font-size: 18px;
}

.pay-name {
    font-size: 12px;
    font-weight: 700;
}

.pay-tag {
    font-size: 10px;
    color: var(--text-muted);
}

.btn-confirm-pay {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-dark) 100%);
    border: none;
    color: #ffffff;
    padding: 15px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow: var(--shadow-brand);
}

.btn-confirm-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.45);
}

.pay-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.checkout-security-notice {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
}

/* Victory Modal Specifics */
.victory-card {
    text-align: center;
}

.victory-crown {
    font-size: 48px;
    margin-bottom: 12px;
    animation: bounceCrown 1.5s infinite;
}

@keyframes bounceCrown {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(4deg); }
}

.victory-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.victory-msg {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.victory-stats-box {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.v-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v-stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
}

.v-stat-val {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.v-stat-val.gold {
    color: var(--gold-light);
}

.victory-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-share-x {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 13px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-share-x:hover {
    background: #111;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.btn-continue {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-continue:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

/* ============================================================
   5. LEADERBOARD DRAWER SIDEBAR
   ============================================================ */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 7, 15, 0.6);
    backdrop-filter: blur(8px);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.leaderboard-drawer {
    position: fixed;
    top: 0;
    right: -460px;
    width: min(440px, 92vw);
    height: 100vh;
    background: var(--bg-card);
    backdrop-filter: blur(32px);
    border-left: 1px solid var(--border-highlight);
    z-index: 501;
    display: flex;
    flex-direction: column;
    box-shadow: -16px 0 64px rgba(0, 0, 0, 0.75);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.leaderboard-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.drawer-title-wrap h3 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.drawer-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.drawer-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 16px 16px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.2);
}

.d-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.d-lbl {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.d-val {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 2px;
}

.drawer-search-wrap {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.drawer-search-wrap input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.drawer-search-wrap input:focus {
    border-color: var(--border-highlight);
}

.drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

.drawer-list::-webkit-scrollbar {
    width: 4px;
}

.drawer-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* VIP Monarch Spotlight Card */
.drawer-monarch-spotlight {
    position: relative;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.14) 0%, rgba(2, 132, 199, 0.04) 100%);
    border: 1px solid rgba(14, 165, 233, 0.45);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px -6px rgba(14, 165, 233, 0.25);
    overflow: hidden;
}

.monarch-glow-backdrop {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.monarch-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.5);
    color: var(--brand-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
}

.monarch-hero-body {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.monarch-logo-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.monarch-logo-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    border: 2px solid var(--brand-light);
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.5);
}

.monarch-avatar-box {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.2);
    border: 2px solid var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.5);
}

.monarch-crown-floating {
    position: absolute;
    top: -10px;
    right: -6px;
    font-size: 18px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    animation: crownFloat 2s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.monarch-info {
    flex: 1;
    min-width: 0;
}

.monarch-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.monarch-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.monarch-verified {
    color: var(--brand-light);
    font-size: 13px;
    font-weight: 800;
}

.monarch-domain {
    font-size: 12px;
    color: var(--brand-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    opacity: 0.9;
}

.monarch-domain:hover {
    text-decoration: underline;
    opacity: 1;
}

.monarch-tagline {
    font-size: 12px;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.monarch-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: var(--bg-subbox);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    margin-bottom: 12px;
    text-align: center;
}

.m-stat-box .m-lbl {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.m-stat-box .m-val {
    font-size: 13px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-main);
}

.m-stat-box .m-val.highlight {
    color: var(--brand-light);
}

.monarch-actions {
    display: flex;
    gap: 8px;
}

.btn-monarch-outbid {
    flex: 1;
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    border: none;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-monarch-outbid:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.btn-monarch-visit {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-monarch-visit:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* Detailed Rank Cards in Drawer */
.drawer-rank-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.drawer-rank-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}

.drawer-rank-card.rank-1 {
    border-left: 4px solid var(--brand);
    background: rgba(14, 165, 233, 0.06);
}

.drawer-rank-card.rank-2 {
    border-left: 4px solid var(--emerald);
}

.drawer-rank-card.rank-3 {
    border-left: 4px solid var(--violet);
}

.d-card-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.d-rank-num {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 28px;
    text-align: center;
}

.rank-1 .d-rank-num { color: var(--brand-light); }
.rank-2 .d-rank-num { color: var(--emerald); }
.rank-3 .d-rank-num { color: var(--violet); }

.d-rank-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.d-rank-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.d-rank-info {
    flex: 1;
    min-width: 0;
}

.d-rank-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.d-rank-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.d-rank-domain {
    font-size: 11px;
    color: var(--brand-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    opacity: 0.85;
}

.d-rank-domain:hover {
    text-decoration: underline;
    opacity: 1;
}

.d-rank-amount-badge {
    text-align: right;
    flex-shrink: 0;
}

.d-rank-amount {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 800;
    color: var(--brand-light);
    white-space: nowrap;
}

.d-rank-tagline {
    font-size: 11px;
    color: var(--text-dim);
    font-style: italic;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.d-card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.d-rank-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.d-meta-clicks {
    color: var(--brand-light);
    font-weight: 700;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.d-meta-likes-btn {
    color: var(--pink);
    font-weight: 700;
    background: rgba(236, 72, 153, 0.12);
    border: 1px solid rgba(236, 72, 153, 0.25);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.d-meta-likes-btn:hover {
    background: rgba(236, 72, 153, 0.25);
    transform: scale(1.05);
}

.d-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.d-btn-visit {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s;
}

.d-btn-visit:hover {
    background: rgba(255, 255, 255, 0.14);
}

.d-btn-outbid {
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid var(--border-brand);
    color: var(--brand-light);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.d-btn-outbid:hover {
    background: var(--brand);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

/* ============================================================
   6. TOAST NOTIFICATIONS
   ============================================================ */
.toast-stack {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
    width: min(440px, 92vw);
}

.toast-item {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    animation: toastPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    max-width: 100%;
    text-align: center;
}

.toast-item.success {
    border-color: var(--border-gold);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.2);
}

.toast-item.error {
    border-color: rgba(239, 68, 68, 0.4);
}

.toast-item.closing {
    animation: toastFadeOut 0.25s forwards;
}

@keyframes toastPop {
    from { opacity: 0; transform: translateY(-12px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastFadeOut {
    to { opacity: 0; transform: translateY(-8px) scale(0.94); }
}

/* ============================================================
   7. COMPREHENSIVE MOBILE RESPONSIVENESS
   ============================================================ */
@media (max-width: 768px) {
    .floating-nav {
        padding: 8px 12px;
    }
    
    .nav-center-ticker {
        display: none;
    }
    
    .lifetime-pill {
        display: none; /* Hide lifetime stats on mobile to preserve navbar space */
    }
    
    .nav-actions {
        gap: 5px;
        flex-shrink: 0;
    }

    .viewer-pill {
        padding: 5px 8px;
        font-size: 11px;
        gap: 4px;
    }

    .viewer-lbl {
        font-size: 10px;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .nav-pill-btn {
        padding: 6px 11px;
        font-size: 12px;
        flex-shrink: 0;
    }

    #btn-toggle-leaderboard {
        display: inline-flex !important;
        background: var(--bg-glass);
        border: 1px solid var(--border-brand);
        color: var(--brand-light);
        font-weight: 700;
        box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
    }

    .hero-attention-banner {
        top: 56px;
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        padding: 6px 10px 6px 12px;
        gap: 8px;
        justify-content: space-between;
    }

    .hero-banner-content {
        flex: 1;
        min-width: 0;
        gap: 6px;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .hero-fire-badge {
        font-size: 11px;
        white-space: nowrap;
    }

    .hero-tagline-text {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-hero-bid {
        padding: 6px 12px;
        font-size: 11px;
        flex-shrink: 0;
    }

    .leaderboard-drawer {
        width: 100vw;
        max-width: 100vw;
        border-left: none;
    }

    .drawer-header {
        padding: 14px 16px;
    }

    .drawer-stats-strip {
        padding: 10px 12px;
        gap: 4px;
    }

    .d-lbl {
        font-size: 9px;
    }

    .d-val {
        font-size: 12px;
    }

    .monarch-stats-grid {
        gap: 4px;
        padding: 6px;
    }

    .m-stat-box .m-lbl {
        font-size: 8px;
    }

    .m-stat-box .m-val {
        font-size: 11px;
    }

    .checkout-card, .victory-card, .bid-dialog-card {
        width: 100%;
        max-width: min(420px, calc(100vw - 20px));
        padding: 18px 16px;
        max-height: 88vh;
        overflow-y: auto;
    }
}

@media (max-width: 640px) {
    .nav-btn-bid {
        display: none; /* Hide duplicate nav bid button since Hero Banner right below has prominent ⚡ BID NOW */
    }
}

@media (max-width: 480px) {
    .floating-nav {
        padding: 6px 8px;
    }

    .nav-brand-wrap {
        padding: 5px 8px;
        gap: 5px;
    }

    .brand-name {
        font-size: 13px;
    }

    .nav-brand-wrap img {
        width: 22px !important;
        height: 22px !important;
    }

    .nav-actions {
        gap: 4px;
    }

    .viewer-pill {
        padding: 4px 6px;
        font-size: 10px;
    }

    .icon-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .nav-pill-btn {
        padding: 5px 9px;
        font-size: 11px;
    }

    .hero-tagline-text {
        display: none; /* Keep hero banner slim & single-line on small phones */
    }
}

@media (max-width: 380px) {
    .viewer-lbl {
        display: none; /* Only show dot + number on ultra small screens */
    }

    .hero-fire-badge {
        font-size: 10px;
    }

    .btn-hero-bid {
        padding: 4px 8px;
        font-size: 10px;
    }
}
