:root {
    --bg-void: #03060a;
    --bg-panel: rgba(6, 15, 28, 0.88);
    --border-neon: rgba(0, 242, 255, 0.35);
    --neon-cyan: #00f2ff;
    --neon-cyan-glow: rgba(0, 242, 255, 0.4);
    --neon-purple: #c084fc;
    --neon-green: #00ff66;
    --neon-gold: #ffd700;
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --font-heading: 'Orbitron', monospace, sans-serif;
    --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Future World Theme Variables */
    --fw-cyan: #00f2ff;
    --fw-cyan-glow: rgba(0, 242, 255, 0.5);
    --fw-magenta: #a855f7;
    --fw-magenta-glow: rgba(168, 85, 247, 0.4);
    --fw-emerald: #00ff66;
    --fw-emerald-glow: rgba(0, 255, 102, 0.4);
    --fw-gold: #ffd700;
    --fw-bg-glass: rgba(4, 12, 28, 0.80);
    --fw-bg-card: rgba(4, 14, 30, 0.92);
    --fw-border-glass: rgba(0, 242, 255, 0.3);
}

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

body {
    background-color: var(--bg-void);
    color: var(--text-main);
    font-family: var(--font-body);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 3D WebGL Engine & 2D HUD Canvas Layer (Hardware GPU Direct Compositing matching client.php) */
#webglCanvas, #worldCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
}

#webglCanvas {
    z-index: 1;
}

#worldCanvas {
    z-index: 2;
}

/* CRT Scanline & Vignette Effect (Disabled by default to ensure clean, razor-sharp 3D Augmented Reality visuals) */
.crt-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.65) 100%),
        repeating-linear-gradient(0deg, rgba(0, 242, 255, 0.015) 0px, transparent 1px, transparent 2px);
    pointer-events: none;
    z-index: 10;
}

/* Top Navigation Bar */
/* Top-Left Dropdown Menu */
.menu-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.menu-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(0, 10, 20, 0.97);
    border: 1.5px solid var(--neon-cyan, #00f2ff);
    border-radius: 10px;
    padding: 10px;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 242, 255, 0.35);
    backdrop-filter: blur(16px);
    z-index: 999999 !important;
    min-width: 235px;
    max-width: 90vw;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.menu-content::-webkit-scrollbar {
    width: 6px;
}
.menu-content::-webkit-scrollbar-thumb {
    background: var(--neon-cyan, #00f2ff);
    border-radius: 3px;
}
.menu-content::-webkit-scrollbar-track {
    background: rgba(0, 20, 40, 0.5);
    border-radius: 3px;
}

.menu-content.show {
    display: flex !important;
}

.menu-content .hud-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 8px 12px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.menu-content .hud-btn:hover {
    background: rgba(0, 242, 255, 0.25);
    transform: translateX(3px);
}

.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    min-height: 52px;
    height: auto;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(3, 10, 20, 0.96);
    border-bottom: 1.5px solid rgba(0, 242, 255, 0.40);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85), 0 0 15px rgba(0, 242, 255, 0.15);
    z-index: 1000;
    backdrop-filter: blur(12px);
    overflow: visible;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand h1 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan-glow);
}

.brand .badge {
    font-family: 'Orbitron', monospace;
    font-size: 0.82rem;
    font-weight: 900;
    padding: 3px 10px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.2), rgba(255, 215, 0, 0.25));
    border: 1.5px solid #ffd700;
    border-radius: 12px;
    color: #ffffff;
    text-shadow: 0 0 8px #ffd700;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.4), 0 0 24px rgba(0, 242, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.version-badge-20 {
    font-size: 0.88rem !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    padding: 3px 12px !important;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.28), rgba(255, 215, 0, 0.35)) !important;
    border: 2px solid #ffd700 !important;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.6), 0 0 28px rgba(0, 242, 255, 0.35) !important;
    color: #ffffff !important;
    text-shadow: 0 0 8px #ffd700 !important;
    border-radius: 14px !important;
    display: inline-block !important;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
}

.hud-btn {
    background: rgba(8, 20, 36, 0.85);
    border: 1px solid var(--border-neon);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hud-btn:hover {
    background: rgba(0, 242, 255, 0.18);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 14px var(--neon-cyan-glow);
    transform: translateY(-1px);
}

.hud-btn.active {
    background: rgba(0, 255, 102, 0.18);
    border-color: var(--neon-green);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(0, 255, 102, 0.35);
}

#skeletonToggleBtn.active {
    background: rgba(0, 242, 255, 0.22);
    border-color: var(--neon-cyan);
    color: #ffffff;
    box-shadow: 0 0 16px var(--neon-cyan-glow);
}

#tvCastToggleBtn.active {
    background: rgba(192, 132, 252, 0.25);
    border-color: var(--neon-purple);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(192, 132, 252, 0.45);
}

#mountToggleBtn.active {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.40);
}

#wideFovToggleBtn.active {
    background: rgba(250, 204, 21, 0.22);
    border-color: #facc15;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.40);
}

#tvCastToggleBtn.active {
    background: rgba(192, 132, 252, 0.25);
    border-color: var(--neon-purple);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(192, 132, 252, 0.45);
}

#mountToggleBtn.active {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.40);
}

#wideFovToggleBtn.active {
    background: rgba(250, 204, 21, 0.22);
    border-color: #facc15;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.40);
}

/* DLSS 5 Neural Super Resolution HUD & Menu Controls */
#btnToggleDlss {
    border-color: #00ffaa;
    color: #00ffaa;
    background: rgba(0, 255, 170, 0.12);
    font-weight: 700;
}
#btnToggleDlss:hover {
    background: rgba(0, 255, 170, 0.25);
    border-color: #00ffaa;
    box-shadow: 0 0 16px rgba(0, 255, 170, 0.45);
}

#hudDlssPill {
    color: #00ffaa;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(0, 255, 170, 0.5);
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0, 255, 170, 0.12);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    user-select: none;
    transition: all 0.25s ease;
}
#hudDlssPill:hover {
    background: rgba(0, 255, 170, 0.25);
    box-shadow: 0 0 12px rgba(0, 255, 170, 0.5);
    transform: scale(1.03);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(3, 12, 24, 0.94);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 242, 255, 0.45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 242, 255, 0.25);
    font-family: monospace;
    font-size: 0.72rem;
    flex: 0 1 auto;
    min-width: 0;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.status-indicator::-webkit-scrollbar {
    display: none;
}

#weaponTierBadge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tier-desc-text {
    display: none;
}
@media (min-width: 1400px) {
    .tier-desc-text {
        display: inline;
    }
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffaa00;
    box-shadow: 0 0 8px #ffaa00;
    animation: pulse 1.5s infinite alternate;
}

.status-dot.online {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

@keyframes pulse {
    0% { opacity: 0.4; }
    100% { opacity: 1.0; }
}

/* Spatial Controls Hint - Pinned to bottom of viewport */
.controls-hint {
    position: fixed;
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
    left: max(16px, env(safe-area-inset-left, 16px));
    right: max(16px, env(safe-area-inset-right, 16px));
    background: rgba(5, 12, 24, 0.85);
    border: 1px solid rgba(0, 242, 255, 0.3);
    padding: 6px 14px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.68rem;
    line-height: 1.4;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.controls-hint span {
    color: var(--text-muted, #cbd5e1);
    white-space: nowrap;
}

.controls-hint span strong {
    color: var(--neon-cyan, #00f2ff);
}

/* Character / Skin Selection Carousel HUD */
.character-select-hud {
    position: fixed;
    bottom: max(24px, env(safe-area-inset-bottom, 24px));
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: min(94vw, 1100px);
    background: var(--bg-panel);
    border: 1px solid var(--border-neon);
    border-radius: 12px;
    padding: 12px 18px;
    z-index: 1000;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.7), 0 0 20px rgba(0, 242, 255, 0.15);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, pointer-events 0.35s ease;
    opacity: 1;
    pointer-events: auto;
}

.character-select-hud.hidden {
    transform: translateX(-50%) translateY(160%);
    opacity: 0;
    pointer-events: none;
}

.character-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.character-header h3 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--neon-cyan);
}

.character-header .active-skin-badge {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--neon-gold);
}

.skin-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.2s ease;
}

.skin-close-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: #ef4444;
}

.skin-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    max-height: 250px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    touch-action: pan-y !important;
    overscroll-behavior-x: none !important;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 4px 10px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) rgba(0,0,0,0.3);
}

.skin-carousel::-webkit-scrollbar {
    width: 4px;
    height: 0px;
}

.skin-carousel::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 2px;
}

.skin-card {
    flex: none;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(10, 22, 38, 0.75);
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 8px;
    padding: 10px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.skin-card:hover {
    background: rgba(0, 242, 255, 0.15);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 14px var(--neon-cyan-glow);
    transform: translateY(-3px);
}

.skin-card.active {
    background: rgba(0, 242, 255, 0.25);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 18px var(--neon-cyan-glow), inset 0 0 10px var(--neon-cyan-glow);
    transform: translateY(-2px);
}

.skin-card .skin-icon {
    font-size: 1.6rem;
}

.skin-card .skin-name {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
}

.skin-card .skin-desc {
    font-size: 0.62rem;
    color: var(--text-dim);
    line-height: 1.2;
}

/* Floating Chat HUD Disabled - Pure In-World Experience */
.chat-hud {
    display: none !important;
}

.chat-collapse-btn {
    background: rgba(0, 242, 255, 0.15);
    border: 1px solid var(--border-neon);
    color: var(--neon-cyan);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.65rem;
    cursor: pointer;
    line-height: 1;
}

.chat-collapse-btn:hover {
    background: rgba(0, 242, 255, 0.35);
}

.chat-header {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--neon-cyan);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 255, 0.4) transparent;
}

.chat-msg {
    background: rgba(12, 26, 44, 0.6);
    border-left: 3px solid var(--neon-cyan);
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
    line-height: 1.35;
    word-break: break-word;
}

.chat-msg .sender {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 2px;
    display: flex;
    justify-content: space-between;
}

.chat-msg.voice-msg {
    border-left-color: var(--neon-green);
}

.chat-input-bar {
    padding: 8px;
    border-top: 1px solid rgba(0, 242, 255, 0.15);
    display: flex;
    gap: 6px;
}

.chat-input {
    flex: 1;
    background: rgba(4, 10, 18, 0.8);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    outline: none;
}

.chat-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan-glow);
}

.chat-send-btn {
    background: rgba(0, 242, 255, 0.15);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 0 12px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    background: var(--neon-cyan);
    color: #000000;
}

/* Webcam Preview PiP (Picture in Picture) */
.webcam-pip {
    position: fixed !important;
    bottom: max(96px, calc(env(safe-area-inset-bottom, 12px) + 84px)) !important;
    right: max(20px, env(safe-area-inset-right, 20px)) !important;
    top: auto !important;
    left: auto !important;
    width: 280px;
    height: 210px;
    max-height: calc(100vh - 120px);
    background: #000000;
    border: 2px solid var(--neon-cyan, #00f2ff);
    border-radius: 10px;
    overflow: hidden;
    z-index: 10000;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 242, 255, 0.45);
    transition: all 0.3s ease;
    display: block;
}

.webcam-pip.camera-off {
    display: none !important;
}

.webcam-pip canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
}

.webcam-pip video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.001;
    pointer-events: none;
    z-index: 1;
}

.webcam-pip .pip-action-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    color: #00ffaa;
    background: rgba(2, 8, 20, 0.92);
    border: 1.2px solid #00ffaa;
    border-radius: 6px;
    padding: 5px 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 8px rgba(0, 255, 170, 0.25);
    pointer-events: none;
    transition: all 0.15s ease;
}

.webcam-pip .pip-label {
    position: absolute;
    bottom: 4px;
    left: 6px;
    font-family: 'Orbitron', monospace;
    font-size: 0.60rem;
    font-weight: 700;
    color: var(--neon-cyan, #00f2ff);
    background: rgba(0, 0, 0, 0.75);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    z-index: 5;
}

/* Pitch black camera off state */
.webcam-pip.camera-off {
    background: #000000 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.8) !important;
}

.webcam-pip.camera-off video {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ── Direct Incoming Face Call Overlay on OpenCV Viewer ── */
.webcam-pip.has-incoming-call,
.webcam-pip.camera-off.has-incoming-call {
    display: block !important;
    border-color: #00ff66 !important;
    box-shadow: 0 0 24px rgba(0, 255, 102, 0.65), 0 8px 32px rgba(0, 0, 0, 0.9) !important;
    animation: pipIncomingBorderPulse 1.2s infinite alternate ease-in-out;
}

@keyframes pipIncomingBorderPulse {
    0% {
        border-color: #00ff66;
        box-shadow: 0 0 14px rgba(0, 255, 102, 0.4), 0 8px 32px rgba(0, 0, 0, 0.9);
    }
    100% {
        border-color: #00f2ff;
        box-shadow: 0 0 28px rgba(0, 255, 102, 0.8), 0 0 16px rgba(0, 242, 255, 0.5), 0 8px 32px rgba(0, 0, 0, 0.95);
    }
}

.pip-incoming-call-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(2, 12, 26, 0.88) 0%, rgba(2, 12, 26, 0.96) 60%, rgba(1, 8, 18, 0.98) 100%);
    border-top: 2px solid #00ff66;
    z-index: 25;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px 12px;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.pip-call-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Orbitron', monospace;
    font-size: 0.70rem;
    font-weight: 800;
    color: #00ff66;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pip-call-icon {
    font-size: 0.85rem;
    animation: pipRingBounce 0.8s infinite ease-in-out alternate;
}

@keyframes pipRingBounce {
    0% { transform: scale(1.0) rotate(0deg); }
    100% { transform: scale(1.15) rotate(10deg); }
}

.pip-caller-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Orbitron', monospace;
    margin: 4px 0 6px;
}

.pip-caller-name {
    font-size: 0.92rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.7);
}

.pip-call-countdown {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00ff66;
}

.pip-call-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.pip-call-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00ff66, #00f2ff);
    box-shadow: 0 0 8px #00ff66;
    transition: width 0.15s linear;
}

.pip-call-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.pip-call-btn {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 4px;
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.15s ease-in-out;
    outline: none;
    user-select: none;
}

.pip-call-btn.ans-btn {
    background: rgba(0, 255, 102, 0.18);
    border: 1.5px solid #00ff66;
    color: #00ff66;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.pip-call-btn.ans-btn:hover,
.pip-call-btn.ans-btn:active {
    background: rgba(0, 255, 102, 0.40);
    box-shadow: 0 0 16px rgba(0, 255, 102, 0.7);
    color: #ffffff;
    transform: translateY(-1px);
}

.pip-call-btn.dny-btn {
    background: rgba(239, 68, 68, 0.18);
    border: 1.5px solid #ef4444;
    color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.pip-call-btn.dny-btn:hover,
.pip-call-btn.dny-btn:active {
    background: rgba(239, 68, 68, 0.40);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.7);
    color: #ffffff;
    transform: translateY(-1px);
}

.pip-dwell-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    transition: width 0.05s linear;
}

.pip-call-btn.ans-btn .pip-dwell-fill {
    background: #00ff66;
    box-shadow: 0 0 6px #00ff66;
}

.pip-call-btn.dny-btn .pip-dwell-fill {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

/* Hidden Vision Canvas for Pose Inference */
#visionCanvas {
    display: none;
}

/* Mobile Quick-Access Floating Skin Button */
.mobile-skin-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 18px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.30), rgba(0, 119, 255, 0.40));
    border: 1.5px solid var(--neon-cyan);
    color: #ffffff;
    border-radius: 24px;
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-size: 0.80rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 900;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 242, 255, 0.40), inset 0 0 10px rgba(0, 242, 255, 0.25);
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.mobile-skin-fab:active {
    transform: scale(0.94);
    background: rgba(0, 242, 255, 0.5);
}


/* Responsive adjustments for Mobile Portrait and Small Screens */
@media (max-width: 768px) {
    /* Top-Left Dropdown Menu */
.menu-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.menu-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(0, 10, 20, 0.97);
    border: 1.5px solid var(--neon-cyan, #00f2ff);
    border-radius: 10px;
    padding: 10px;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 242, 255, 0.35);
    backdrop-filter: blur(16px);
    z-index: 999999 !important;
    min-width: 235px;
    max-width: 90vw;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.menu-content::-webkit-scrollbar {
    width: 6px;
}
.menu-content::-webkit-scrollbar-thumb {
    background: var(--neon-cyan, #00f2ff);
    border-radius: 3px;
}
.menu-content::-webkit-scrollbar-track {
    background: rgba(0, 20, 40, 0.5);
    border-radius: 3px;
}

.menu-content.show {
    display: flex !important;
}

.menu-content .hud-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 8px 12px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.menu-content .hud-btn:hover {
    background: rgba(0, 242, 255, 0.25);
    transform: translateX(3px);
}

.top-nav {
        height: auto;
        min-height: 52px;
        padding: 6px 10px;
        flex-wrap: wrap;
        gap: 6px;
    }
    .brand h1 {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }
    .brand .badge {
        display: none;
    }
    .nav-controls {
        gap: 5px;
        flex-wrap: wrap;
    }
    .hud-btn {
        padding: 6px 8px;
        font-size: 0.66rem;
        gap: 4px;
    }
    .status-indicator {
        padding: 4px 8px;
        font-size: 0.62rem;
    }
    .controls-hint {
        display: none; /* Auto-hide on mobile to keep 3D view clean */
    }
    .chat-hud {
        width: 210px;
        height: 180px;
        left: 8px !important;
        right: auto !important;
        top: 125px;
        z-index: 25;
    }
    .character-select-hud {
        position: fixed !important;
        width: calc(100vw - 16px) !important;
        max-width: 480px !important;
        bottom: max(75px, calc(env(safe-area-inset-bottom, 20px) + 65px)) !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(0) !important;
        padding: 12px 14px !important;
        z-index: 9999 !important;
        background: rgba(4, 12, 24, 0.96) !important;
        border: 2px solid var(--neon-cyan) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 242, 255, 0.35) !important;
        border-radius: 14px !important;
        max-height: 250px !important;
    }
    .character-select-hud.hidden {
        transform: translateX(-50%) translateY(200%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    .skin-carousel {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)) !important;
        gap: 8px !important;
        max-height: 220px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: none !important;
        padding: 6px 4px 12px 4px !important;
        touch-action: pan-y !important;
        overscroll-behavior-x: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .skin-card {
        flex: none !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        scroll-snap-align: none !important;
        padding: 10px 8px !important;
        background: rgba(8, 22, 38, 0.95) !important;
        border: 1.5px solid rgba(0, 242, 255, 0.35) !important;
        border-radius: 10px !important;
    }
    .skin-card .skin-icon {
        font-size: 1.6rem !important;
        margin-bottom: 2px !important;
    }
    .skin-card .skin-name {
        font-size: 0.68rem !important;
        font-weight: 700 !important;
    }
    .skin-card .skin-desc {
        display: block !important;
        font-size: 0.58rem !important;
        color: #94a3b8 !important;
        line-height: 1.2 !important;
        margin-top: 2px !important;
    }
    .webcam-pip {
        position: fixed !important;
        top: auto !important;
        bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
        right: max(14px, env(safe-area-inset-right, 14px)) !important;
        left: auto !important;
        width: min(220px, 46vw) !important;
        height: min(165px, 34.5vw) !important;
        border-radius: 8px !important;
        z-index: 999999 !important;
    }
    .mobile-skin-fab {
        display: flex !important;
        position: fixed !important;
        bottom: max(24px, calc(env(safe-area-inset-bottom, 16px) + 16px)) !important;
        left: 16px !important;
        z-index: 9990 !important;
    }
}

/* =========================================================================
   DEDICATED LANDSCAPE SMARTPHONE COMPATIBILITY (Pixel 9 Pro, Galaxy, iPhone)
   Optimized for landscape gameplay & TV / Chromecast casting.
   ========================================================================= */
@media (orientation: landscape) and (max-height: 550px), (max-width: 1024px) and (max-height: 550px) {
    .top-nav {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left)) !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
        z-index: 1000 !important;
    }
    .brand h1 {
        font-size: 0.85rem !important;
        letter-spacing: 1px !important;
    }
    .brand .badge {
        font-size: 0.68rem !important;
        padding: 2px 6px !important;
        display: inline-block !important;
    }
    .nav-left {
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    .nav-right {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        justify-content: flex-end !important;
        overflow: visible !important;
    }
    .nav-controls {
        gap: 6px !important;
        flex-wrap: nowrap !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: visible !important;
        justify-content: flex-end !important;
    }
    .menu-dropdown {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        z-index: 1001 !important;
    }
    #mainMenuBtn {
        touch-action: manipulation !important;
        cursor: pointer !important;
    }
    .menu-content {
        display: none;
        position: absolute !important;
        top: calc(100% + 5px) !important;
        left: 0 !important;
        right: auto !important;
        background: rgba(0, 10, 20, 0.98) !important;
        border: 1.5px solid var(--neon-cyan, #00f2ff) !important;
        border-radius: 10px !important;
        padding: 8px !important;
        flex-direction: column !important;
        gap: 5px !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 242, 255, 0.4) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        z-index: 999999 !important;
        min-width: 220px !important;
        max-width: min(320px, 85vw) !important;
        max-height: calc(100vh - 52px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .menu-content.show {
        display: flex !important;
    }
    .menu-content .hud-btn {
        width: 100% !important;
        justify-content: flex-start !important;
        padding: 6px 10px !important;
        font-size: 0.65rem !important;
        min-height: 28px !important;
        letter-spacing: 0.5px !important;
        touch-action: manipulation !important;
        white-space: nowrap !important;
    }
    .menu-content .hud-btn:hover,
    .menu-content .hud-btn:active {
        background: rgba(0, 242, 255, 0.25) !important;
        transform: translateX(3px) !important;
    }
    .hud-btn {
        padding: 3px 7px !important;
        font-size: 0.60rem !important;
        gap: 3px !important;
        white-space: nowrap !important;
        border-radius: 4px !important;
        touch-action: manipulation !important;
    }
    .status-indicator {
        padding: 3px 8px !important;
        font-size: 0.64rem !important;
        gap: 6px !important;
        white-space: nowrap !important;
        max-width: 100% !important;
        width: auto !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        flex-shrink: 0 !important;
        justify-content: flex-end !important;
    }
    .status-indicator::-webkit-scrollbar {
        display: none !important;
    }
    /* Ensure all essential telemetry badges are visible, crisp, and beautifully styled */
    .status-indicator #battlePointsBadge,
    .status-indicator #battleLootBadge,
    .status-indicator #battleKillsBadge,
    .status-indicator #timeOfDayBadge {
        display: inline-flex !important;
        align-items: center !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }
    .status-indicator #openCvStatusBadge,
    .status-indicator #peerCountBadge {
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
    }
    #weaponTierBadge {
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        padding: 2px 6px !important;
        font-size: 0.64rem !important;
        flex-shrink: 0 !important;
    }
    @media (max-width: 720px) {
        .status-indicator #openCvStatusBadge {
            display: none !important;
        }
        .status-indicator #peerCountBadge {
            display: inline-flex !important;
            align-items: center !important;
            color: var(--neon-cyan, #00f2ff) !important;
            font-weight: 800 !important;
            font-size: 0.62rem !important;
            white-space: nowrap !important;
        }
        .status-indicator {
            font-size: 0.58rem !important;
            padding: 2px 5px !important;
            gap: 4px !important;
        }
    }
    .controls-hint {
        display: none !important; /* Conceal on landscape phone to preserve clean cast */
    }
    .chat-hud {
        width: 220px !important;
        height: 150px !important;
        top: 118px !important;
        left: max(8px, env(safe-area-inset-left)) !important;
        right: auto !important;
        border-radius: 8px !important;
        opacity: 0.98 !important;
        background: rgba(4, 14, 28, 0.95) !important;
    }
    .chat-hud.collapsed {
        height: 32px !important;
        min-height: 32px !important;
        width: 140px !important;
        opacity: 0.95 !important;
        background: rgba(4, 14, 28, 0.95) !important;
    }
    .chat-header {
        padding: 5px 8px !important;
        font-size: 0.68rem !important;
    }
    .chat-messages {
        padding: 4px 6px !important;
        font-size: 0.62rem !important;
    }
    .chat-input {
        padding: 4px 6px !important;
        font-size: 0.62rem !important;
    }
    .chat-send-btn {
        padding: 4px 8px !important;
        font-size: 0.58rem !important;
    }
    .webcam-pip {
        position: fixed !important;
        top: auto !important;
        bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
        right: max(14px, env(safe-area-inset-right, 14px)) !important;
        left: auto !important;
        width: min(210px, 34vw) !important;
        height: min(158px, 25.5vw) !important;
        border-radius: 6px !important;
        z-index: 999999 !important;
    }
    .character-select-hud {
        max-height: 160px !important;
        padding: 8px 12px !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
    }
    .character-header {
        margin-bottom: 4px !important;
    }
    .character-header h3 {
        font-size: 0.70rem !important;
    }
    .skin-card {
        flex: 0 0 95px !important;
        min-width: 95px !important;
        padding: 6px 4px !important;
    }
    .skin-card .skin-icon {
        font-size: 1.2rem !important;
    }
    .skin-card .skin-name {
        font-size: 0.60rem !important;
    }
    .skin-card .skin-desc {
        font-size: 0.52rem !important;
    }
    /* Login Modal Landscape Optimization */
    .login-terminal-card {
        padding: 14px 20px !important;
        max-height: 94vh !important;
        width: min(94vw, 720px) !important;
    }
    .terminal-header {
        padding-bottom: 8px !important;
        margin-bottom: 12px !important;
    }
    .terminal-title h2 {
        font-size: 1.15rem !important;
    }
    .terminal-sub {
        font-size: 0.62rem !important;
    }
    .login-step {
        margin-bottom: 12px !important;
    }
    .step-label {
        font-size: 0.70rem !important;
    }
    .archetype-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
        gap: 6px !important;
        max-height: 160px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        touch-action: pan-y !important;
        overscroll-behavior-x: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .archetype-card {
        padding: 6px 4px !important;
    }
    .archetype-icon, .arch-icon {
        font-size: 1.1rem !important;
    }
    .archetype-name, .arch-name {
        font-size: 0.60rem !important;
    }
    .archetype-status, .arch-status {
        font-size: 0.50rem !important;
    }
    .cyber-enter-btn {
        padding: 8px 16px !important;
        font-size: 0.78rem !important;
    }
}

/* Fullscreen Surrender Quit Modal */
.quit-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 12, 0.92);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    text-align: center;
    padding: 24px;
}

.quit-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.quit-box {
    background: rgba(8, 22, 36, 0.95);
    border: 1px solid rgba(255, 0, 85, 0.5);
    box-shadow: 0 0 40px rgba(255, 0, 85, 0.25);
    border-radius: 12px;
    padding: 36px 44px;
    max-width: 480px;
}

.quit-icon {
    font-size: 3.2rem;
    margin-bottom: 12px;
}

.quit-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #ff0055;
    text-shadow: 0 0 16px rgba(255, 0, 85, 0.6);
    margin-bottom: 8px;
}

.quit-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.rejoin-btn {
    background: linear-gradient(135deg, #00f2ff, #0077ff);
    color: #000;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.rejoin-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 28px rgba(0, 242, 255, 0.7);
}

/* ==========================================================================
   MANDATORY OPERATOR ENTRANCE GATE & EXCLUSIVE ARCHETYPE TERMINAL
   — "FUTURE WORLD" HOLOGRAPHIC COMMAND CENTER —
   ========================================================================== */

/* ── @property Declarations for Animated Custom Properties ──────────────── */
@property --fw-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@property --fw-energy {
    syntax: '<percentage>';
    initial-value: 0%;
    inherits: false;
}

@property --fw-scan-pos {
    syntax: '<percentage>';
    initial-value: 0%;
    inherits: false;
}

/* ── Keyframe Animations ─────────────────────────────────────────────────── */
@keyframes fwBorderEnergy {
    0%   { --fw-angle: 0deg; }
    100% { --fw-angle: 360deg; }
}

@keyframes fwTitleHolo {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fwSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); filter: blur(6px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

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

@keyframes fwDataRain {
    0%   { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}

@keyframes fwScanLine {
    0%   { top: -2px; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes fwPulseRing {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes fwCardFloat {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50%      { transform: translateY(-5px) rotateX(0.3deg); }
}

@keyframes fwGlitchFlicker {
    0%, 92%, 100% { opacity: 1; transform: translateX(0); }
    93%  { opacity: 0.8; transform: translateX(-2px); clip-path: inset(20% 0 40% 0); }
    94%  { opacity: 1; transform: translateX(2px); clip-path: inset(60% 0 10% 0); }
    95%  { opacity: 0.9; transform: translateX(-1px); clip-path: inset(0); }
}

@keyframes fwPulseBtn {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 242, 255, 0.4), 0 0 60px rgba(0, 242, 255, 0.12), inset 0 0 30px rgba(0, 242, 255, 0.06); }
    50%      { box-shadow: 0 0 35px rgba(0, 242, 255, 0.6), 0 0 90px rgba(0, 242, 255, 0.2), inset 0 0 40px rgba(0, 242, 255, 0.1); }
}

@keyframes fwScanSweep {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes fwHexShimmer {
    0%, 100% { opacity: 0.03; }
    50%      { opacity: 0.08; }
}

/* ── Overlay — Deep Space with Hex Grid ──────────────────────────────────── */
.login-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 242, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(1, 3, 8, 1) 0%, rgba(1, 3, 8, 1) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000 !important;
    padding: 20px;
    overflow: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 3D Holographic Scene & Starfield Canvas */
#loginStarCanvas,
#login3DSceneCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── Terminal Card — Crystalline Glass Panel ─────────────────────────────── */
.login-terminal-card {
    position: relative;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(4, 12, 28, 0.70) 0%, rgba(8, 16, 36, 0.62) 50%, rgba(4, 10, 24, 0.70) 100%);
    backdrop-filter: blur(14px) saturate(1.4) brightness(0.95);
    -webkit-backdrop-filter: blur(14px) saturate(1.4) brightness(0.95);
    border: 1.5px solid transparent;
    border-image: conic-gradient(from var(--fw-angle), #00f2ff, #a855f7, #ffd700, #00ff66, #00f2ff) 1;
    border-radius: 18px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    touch-action: pan-y !important;
    overscroll-behavior-x: none !important;
    box-sizing: border-box !important;
    padding: 24px 36px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 255, 0.5) rgba(0, 0, 0, 0.25);
    animation:
        fwBorderEnergy 6s linear infinite,
        fwSlideIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        fwCardFloat 10s ease-in-out 2s infinite;
    box-shadow:
        0 0 50px rgba(0, 242, 255, 0.12),
        0 0 120px rgba(168, 85, 247, 0.06),
        0 24px 80px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.4s ease;
}

/* border-radius doesn't work with border-image — use clip + outline trick */
.login-terminal-card {
    border-image: none;
    border-color: rgba(0, 242, 255, 0.45);
    background-clip: padding-box;
}

/* Circuit-trace top accent line with energy flow */
.login-terminal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #00f2ff 15%,
        #a855f7 35%,
        #ffd700 50%,
        #a855f7 65%,
        #00f2ff 85%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: fwTitleHolo 6s ease-in-out infinite;
    border-radius: 18px 18px 0 0;
    opacity: 1;
    z-index: 2;
}

/* Hexagonal grid overlay */
.login-terminal-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 18px;
    background-image:
        repeating-conic-gradient(
            rgba(0, 242, 255, 0.03) 0deg 60deg,
            transparent 60deg 120deg
        );
    background-size: 30px 30px;
    animation: fwHexShimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

.login-terminal-card:hover {
    box-shadow:
        0 0 65px rgba(0, 242, 255, 0.18),
        0 0 140px rgba(168, 85, 247, 0.1),
        0 24px 80px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Terminal Header ─────────────────────────────────────────────────────── */
.terminal-header {
    text-align: center;
    border-bottom: 1px solid rgba(0, 242, 255, 0.12);
    padding-bottom: 12px;
    margin-bottom: 14px;
    animation: fwFadeIn 1s ease both 0.3s;
    position: relative;
}

/* Decorative bottom energy line */
.terminal-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.4), rgba(168, 85, 247, 0.3), transparent);
}

.terminal-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 6px;
}

.terminal-title h2 {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 8px;
    margin: 0;
    background: linear-gradient(135deg, #00f2ff 0%, #a855f7 25%, #ffd700 50%, #00ff66 75%, #00f2ff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fwTitleHolo 8s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(0, 242, 255, 0.5));
    position: relative;
}

.terminal-title h2:hover {
    animation: fwTitleHolo 8s ease-in-out infinite, fwGlitchFlicker 4s step-end infinite;
}

.terminal-glitch-icon {
    font-size: 2.0rem;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 12px rgba(0, 242, 255, 0.7)) drop-shadow(0 0 25px rgba(0, 242, 255, 0.3));
    animation: fwPulseBtn 3s ease-in-out infinite;
}

.terminal-sub {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    color: var(--neon-cyan);
    letter-spacing: 4px;
    opacity: 0.7;
    margin-top: 4px;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.3);
}

.terminal-lore-badge {
    margin-top: 8px;
    font-size: 0.70rem;
    color: rgba(125, 211, 252, 0.9);
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.06) 0%, rgba(168, 85, 247, 0.04) 100%);
    border: 1px solid rgba(0, 242, 255, 0.18);
    border-radius: 8px;
    padding: 6px 14px;
    line-height: 1.35;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on lore badge */
.terminal-lore-badge::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(115deg, transparent 40%, rgba(0, 242, 255, 0.06) 48%, rgba(255, 255, 255, 0.08) 50%, rgba(0, 242, 255, 0.06) 52%, transparent 60%);
    animation: fwScanSweep 6s ease-in-out infinite;
    pointer-events: none;
}

.terminal-quick-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Section Dividers — Energy Lines ─────────────────────────────────────── */
.login-section-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 242, 255, 0.15) 15%,
        rgba(0, 242, 255, 0.35) 30%,
        rgba(168, 85, 247, 0.3) 50%,
        rgba(0, 242, 255, 0.35) 70%,
        rgba(0, 242, 255, 0.15) 85%,
        transparent 100%
    );
    margin: 4px 0 14px;
    border: none;
    position: relative;
}

.login-section-divider::after {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 3px;
    background: inherit;
    filter: blur(4px);
    opacity: 0.5;
}

/* ── Login Steps — Staggered Entrance with Spring ────────────────────────── */
.login-step {
    margin-bottom: 14px;
    animation: fwSlideIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    position: relative;
}
.login-step.cinematic-delay-1 { animation-delay: 0.4s; }
.login-step.cinematic-delay-2 { animation-delay: 0.55s; }
.login-step.cinematic-delay-3 { animation-delay: 0.7s; }
.login-step.cinematic-delay-4 { animation-delay: 0.85s; }
.login-step.cinematic-delay-5 { animation-delay: 1.0s; }

.step-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.80rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.step-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.step-num {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.22), rgba(168, 85, 247, 0.18));
    color: var(--neon-cyan);
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 0.70rem;
    font-weight: 800;
    margin-right: 8px;
    border: 1px solid rgba(0, 242, 255, 0.35);
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(0, 242, 255, 0.4);
}

.step-note {
    font-size: 0.70rem;
    color: #facc15;
    font-family: var(--font-body);
    opacity: 0.85;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.2);
}

/* ── Username Input — Energy Focus Ring ──────────────────────────────────── */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Focus energy underline */
.input-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: linear-gradient(90deg, #00f2ff, #a855f7);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 10px 10px;
    filter: blur(0.5px);
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.4);
    opacity: 0;
    z-index: 2;
}

.input-wrapper:focus-within::after {
    left: 5%;
    right: 5%;
    opacity: 1;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 0 6px rgba(0, 242, 255, 0.4));
    transition: filter 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.7));
}

.cyber-input {
    width: 100%;
    background: rgba(2, 8, 18, 0.85);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 10px;
    padding: 14px 18px 14px 48px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-heading);
    font-size: 1.02rem;
    letter-spacing: 1.2px;
    outline: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.cyber-input:focus {
    border-color: rgba(0, 242, 255, 0.6);
    box-shadow:
        0 0 24px rgba(0, 242, 255, 0.2),
        0 0 48px rgba(0, 242, 255, 0.08),
        inset 0 0 16px rgba(0, 242, 255, 0.04);
    background: rgba(4, 12, 28, 0.95);
    color: #ffffff;
}

.cyber-input::placeholder {
    color: rgba(148, 163, 184, 0.45);
    letter-spacing: 1px;
}

/* ── Archetype Grid — Holographic Cards ──────────────────────────────────── */
.archetype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 10px;
    max-height: 195px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    touch-action: pan-y !important;
    overscroll-behavior-x: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 4px 12px 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 255, 0.5) rgba(0, 0, 0, 0.2);
    container-type: inline-size;
}

.archetype-card {
    background: rgba(4, 12, 28, 0.75);
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 10px;
    padding: 12px 8px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Holographic foil sweep effect */
.archetype-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: 0; bottom: 0;
    width: 300%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(0, 242, 255, 0.08) 60deg,
        rgba(168, 85, 247, 0.08) 120deg,
        rgba(255, 215, 0, 0.06) 180deg,
        rgba(0, 255, 102, 0.06) 240deg,
        rgba(0, 242, 255, 0.08) 300deg,
        transparent 360deg
    );
    transition: none;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.archetype-card:hover:not(.occupied)::before {
    animation: fwScanSweep 1.5s ease-in-out;
    opacity: 1;
}

.archetype-card:hover:not(.occupied) {
    background: rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.55);
    box-shadow:
        0 0 20px rgba(0, 242, 255, 0.15),
        0 6px 24px rgba(0, 0, 0, 0.3),
        inset 0 0 12px rgba(0, 242, 255, 0.04);
    transform: translateY(-3px) scale(1.02);
}

.archetype-card.selected {
    background: rgba(0, 242, 255, 0.15);
    border: 1.5px solid var(--neon-cyan);
    box-shadow:
        0 0 24px rgba(0, 242, 255, 0.3),
        0 0 48px rgba(0, 242, 255, 0.1),
        inset 0 0 16px rgba(0, 242, 255, 0.06);
    transform: translateY(-3px) scale(1.04);
}

.archetype-card.occupied {
    background: rgba(20, 10, 18, 0.5);
    border: 1px solid rgba(239, 68, 68, 0.3);
    opacity: 0.45;
    cursor: not-allowed;
    filter: saturate(0.3);
}

/* Scanline overlay on occupied cards */
.archetype-card.occupied::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(239, 68, 68, 0.05) 2px,
        rgba(239, 68, 68, 0.05) 4px
    );
    pointer-events: none;
    z-index: 1;
    border-radius: 10px;
}

.archetype-card .arch-icon {
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.archetype-card:hover:not(.occupied) .arch-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.5));
}

.archetype-card .arch-name {
    font-family: var(--font-heading);
    font-size: 0.70rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    position: relative;
    z-index: 1;
}

.archetype-card .arch-status {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

.archetype-card.selected .arch-status {
    background: rgba(0, 242, 255, 0.25);
    color: var(--neon-cyan);
    text-shadow: 0 0 6px rgba(0, 242, 255, 0.5);
}

.archetype-card.occupied .arch-status {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* ── Modular Avatar Synthesis Studio (400³ = 64,000,000 Combos) ────────── */
.modular-avatar-studio {
    width: 100%;
    margin-bottom: 12px;
}

.modular-studio-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
}

@media (min-width: 640px) {
    .modular-studio-layout {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: start;
    }
}

.modular-controls-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.part-modulator-card {
    background: rgba(4, 14, 30, 0.85);
    border: 1px solid rgba(0, 242, 255, 0.22);
    border-radius: 10px;
    padding: 10px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 242, 255, 0.03);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.part-modulator-card:hover {
    border-color: rgba(0, 242, 255, 0.45);
    box-shadow: 0 0 18px rgba(0, 242, 255, 0.15), inset 0 0 12px rgba(0, 242, 255, 0.05);
}

.part-modulator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.part-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.part-cat-icon {
    font-size: 1.05rem;
}

.part-cat-title {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    color: #e2e8f0;
    letter-spacing: 1px;
}

.part-header-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.part-tier-badge {
    font-size: 0.62rem;
    font-weight: 800;
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.part-index-badge {
    font-size: 0.66rem;
    font-weight: 800;
    background: rgba(0, 242, 255, 0.15);
    color: #00f2ff;
    border: 1px solid rgba(0, 242, 255, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    font-family: monospace;
}

.part-modulator-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.part-step-btn {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.35);
    color: #00f2ff;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.part-step-btn:hover {
    background: rgba(0, 242, 255, 0.25);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
    transform: scale(1.05);
}

.part-range-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 4px;
    background: rgba(2, 6, 18, 0.9);
    border: 1px solid rgba(0, 242, 255, 0.2);
    outline: none;
    cursor: pointer;
}

.part-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00f2ff;
    cursor: pointer;
    box-shadow: 0 0 10px #00f2ff;
    border: 2px solid #ffffff;
    transition: transform 0.15s ease;
}

.part-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.part-range-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00f2ff;
    cursor: pointer;
    box-shadow: 0 0 10px #00f2ff;
    border: 2px solid #ffffff;
}

.part-num-wrapper {
    flex-shrink: 0;
}

.part-num-input {
    width: 52px;
    height: 28px;
    background: rgba(2, 8, 20, 0.95);
    border: 1px solid rgba(0, 242, 255, 0.35);
    border-radius: 6px;
    color: #00f2ff;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    padding: 0 4px;
    outline: none;
}

.part-num-input:focus {
    border-color: #00f2ff;
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.4);
}

.part-modulator-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
}

.part-name-text {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.part-meta-text {
    color: rgba(148, 163, 184, 0.85);
    font-size: 0.64rem;
}

.combo-signature-bar {
    background: rgba(2, 8, 20, 0.85);
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.combo-sig-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.combo-sig-label {
    font-size: 0.60rem;
    font-family: var(--font-heading);
    color: rgba(148, 163, 184, 0.75);
    letter-spacing: 1px;
}

.combo-sig-code {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    letter-spacing: 1px;
}

.combo-status-pill {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    letter-spacing: 0.5px;
}

.combo-status-pill.available {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.combo-status-pill.occupied {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    text-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.randomize-combo-btn {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.18), rgba(168, 85, 247, 0.18));
    border: 1px solid rgba(0, 242, 255, 0.45);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.randomize-combo-btn:hover {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.35), rgba(168, 85, 247, 0.35));
    border-color: #00f2ff;
    box-shadow: 0 0 16px rgba(0, 242, 255, 0.35);
    transform: translateY(-2px);
}

.modular-preview-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-stage-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.login-preview-canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(0, 242, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 0 28px rgba(0, 242, 255, 0.18), 0 8px 32px rgba(0, 0, 0, 0.4);
    background: radial-gradient(circle at center, #06182c 0%, #01060e 100%);
}

.mirror-webcam-toggle-btn {
    width: 100%;
    padding: 7px 10px;
    font-size: 0.68rem;
    background: rgba(0, 242, 255, 0.06);
    border: 1px solid rgba(0, 242, 255, 0.25);
    color: #38bdf8;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.mirror-webcam-toggle-btn:hover {
    background: rgba(0, 242, 255, 0.16);
    border-color: #00f2ff;
    color: #ffffff;
}

.mirror-webcam-toggle-btn.active {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

/* ── Error / Success Banners — Energy Glow ───────────────────────────────── */
.login-error-banner {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 16px;
    text-align: center;
    font-family: var(--font-heading);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.12), inset 0 0 16px rgba(239, 68, 68, 0.04);
    position: relative;
    overflow: hidden;
}

/* Scanning red line on error */
.login-error-banner::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent 40%, rgba(239, 68, 68, 0.08) 50%, transparent 60%);
    animation: fwScanSweep 3s ease-in-out infinite;
    pointer-events: none;
}

.login-success-banner {
    background: rgba(0, 255, 102, 0.06);
    border: 1px solid rgba(0, 255, 102, 0.35);
    color: #86efac;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 16px;
    text-align: center;
    font-family: var(--font-heading);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 24px rgba(0, 255, 102, 0.12), inset 0 0 16px rgba(0, 255, 102, 0.04);
    position: relative;
    overflow: hidden;
}

.login-success-banner::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent 40%, rgba(0, 255, 102, 0.06) 50%, transparent 60%);
    animation: fwScanSweep 4s ease-in-out infinite;
    pointer-events: none;
}

/* ── Procedural Stream Telemetry HUD (Login Screen) ───────────────────────── */
.procedural-stream-hud {
    width: 100%;
    margin: 10px 0 14px 0;
    padding: 10px 14px;
    background: rgba(4, 15, 30, 0.75);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(0, 242, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.procedural-stream-hud.ready {
    border-color: rgba(0, 255, 102, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(0, 255, 102, 0.08);
}

.stream-hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.stream-hud-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #38bdf8;
    text-transform: uppercase;
}

.stream-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00f2ff;
    box-shadow: 0 0 8px #00f2ff;
    animation: streamDotPulse 1.2s infinite alternate ease-in-out;
}

.procedural-stream-hud.ready .stream-pulse-dot {
    background: #00ff66;
    box-shadow: 0 0 8px #00ff66;
    animation: none;
}

@keyframes streamDotPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 1.0; }
}

.stream-hud-pct {
    font-family: var(--font-mono, monospace);
    font-size: 0.85rem;
    font-weight: 900;
    color: #00f2ff;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
}

.procedural-stream-hud.ready .stream-hud-pct {
    color: #00ff66;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

.stream-hud-track {
    width: 100%;
    height: 6px;
    background: rgba(2, 6, 14, 0.8);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.stream-hud-bar {
    height: 100%;
    background: linear-gradient(90deg, #00f2ff, #38bdf8, #ffd700);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.6);
    border-radius: 3px;
    transition: width 0.2s ease-out;
}

.procedural-stream-hud.ready .stream-hud-bar {
    background: linear-gradient(90deg, #00ff66, #10b981);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.6);
}

.stream-hud-status {
    margin-top: 5px;
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    letter-spacing: 1px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.procedural-stream-hud.ready .stream-hud-status {
    color: #10b981;
}

/* ── Enter Button — Energy Pulse Gateway ─────────────────────────────────── */
.cyber-enter-btn {
    width: 100%;
    background: linear-gradient(135deg, #00f2ff 0%, #0077ff 40%, #a855f7 100%);
    background-size: 200% 200%;
    animation: fwTitleHolo 4s ease-in-out infinite, fwPulseBtn 3s ease-in-out infinite;
    color: #030812;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 3px;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scan-line sweep across button */
.cyber-enter-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: fwScanSweep 4s ease-in-out infinite 2s;
}

/* Expanding pulse ring */
.cyber-enter-btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 12px;
    border: 2px solid rgba(0, 242, 255, 0.4);
    opacity: 0;
    pointer-events: none;
}

.cyber-enter-btn:hover {
    transform: scale(1.025) translateY(-2px);
    box-shadow:
        0 0 50px rgba(0, 242, 255, 0.6),
        0 0 100px rgba(0, 242, 255, 0.2),
        0 8px 32px rgba(0, 119, 255, 0.3);
    filter: brightness(1.1);
}

.cyber-enter-btn:hover::after {
    animation: fwPulseRing 1.5s ease-out infinite;
}

.cyber-enter-btn:active {
    transform: scale(0.97);
    filter: brightness(0.95);
}

/* ── 3D Preview Section ──────────────────────────────────────────────────── */
.login-preview-section {
    text-align: center;
    margin-top: 8px;
}

/* ── Skin Stats HUD — Consolidated ───────────────────────────────────────── */
.skin-stats-hud {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
    background: rgba(4, 14, 28, 0.8);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    backdrop-filter: blur(8px);
}

.skin-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.skin-stat-label {
    font-family: var(--font-heading);
    font-size: 0.60rem;
    color: rgba(148, 163, 184, 0.7);
    letter-spacing: 1.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.skin-stat-val {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: 0 0 6px rgba(0, 242, 255, 0.3);
}

/* ── Saved Profiles & Profile Pills — Future World ───────────────────────── */
.saved-profiles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.profile-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(4, 12, 28, 0.8);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.profile-pill::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent 40%, rgba(0, 242, 255, 0.06) 50%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-pill:hover::before {
    animation: fwScanSweep 1.5s ease-in-out;
    opacity: 1;
}

.profile-pill:hover {
    border-color: rgba(0, 242, 255, 0.6);
    background: rgba(0, 242, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 242, 255, 0.2), 0 0 24px rgba(0, 242, 255, 0.08);
}

.profile-pill.active {
    border-color: #00ff66;
    background: rgba(0, 255, 102, 0.12);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.3), 0 0 40px rgba(0, 255, 102, 0.08);
}

.profile-pill-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 4px rgba(0, 242, 255, 0.3));
}

.profile-pill-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.profile-pill-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.profile-pill-meta {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
}

.profile-pill-actions {
    display: flex;
    gap: 6px;
    margin-left: 6px;
}

.profile-pill-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 0.7rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-pill-btn.key-btn {
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.45);
    color: #ffd700;
    font-weight: 700;
}

.profile-pill-btn.key-btn:hover {
    background: rgba(255, 215, 0, 0.35);
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.profile-pill-btn:hover {
    background: rgba(0, 242, 255, 0.25);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.3);
}

.profile-pill-btn.unstuck-btn {
    background: rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.4);
    color: #00f2ff;
    font-weight: 700;
}

.profile-pill-btn.unstuck-btn:hover {
    background: rgba(0, 242, 255, 0.35);
    border-color: #00f2ff;
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.55);
    color: #ffffff;
}

.profile-pill-btn.delete:hover {
    background: rgba(255, 0, 85, 0.35);
    border-color: #ff0055;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
}

.new-profile-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 242, 255, 0.06);
    border: 1px dashed rgba(0, 242, 255, 0.4);
    border-radius: 8px;
    padding: 8px 14px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-cyan);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.new-profile-btn:hover {
    background: rgba(0, 242, 255, 0.18);
    border-color: #00f2ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 242, 255, 0.2);
}

/* ── Mobile Responsive — Future World ────────────────────────────────────── */
@media (max-width: 768px) {
    .login-terminal-card {
        padding: 24px 20px 20px;
        border-radius: 14px;
        max-width: 100%;
    }

    .terminal-title h2 {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }

    .terminal-glitch-icon {
        font-size: 1.5rem;
    }

    .terminal-sub {
        font-size: 0.60rem;
        letter-spacing: 2.5px;
    }

    .terminal-lore-badge {
        font-size: 0.64rem;
        padding: 5px 10px;
    }

    .step-label-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .archetype-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
        max-height: 220px;
    }

    .archetype-card {
        padding: 10px 6px 8px;
    }

    .archetype-card .arch-icon {
        font-size: 1.5rem;
    }

    .cyber-enter-btn {
        font-size: 0.95rem;
        padding: 15px 18px;
        letter-spacing: 2px;
    }

    .skin-stats-hud {
        gap: 10px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .login-modal-overlay {
        padding: 10px;
    }

    .login-terminal-card {
        padding: 18px 14px 16px;
        border-radius: 12px;
    }

    .terminal-title h2 {
        font-size: 1.35rem;
        letter-spacing: 2px;
    }

    .terminal-title {
        gap: 8px;
    }

    .terminal-quick-actions {
        gap: 6px;
    }

    .terminal-quick-actions .sjh-action-btn {
        font-size: 0.68rem;
        padding: 5px 10px;
    }

    .archetype-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 6px;
        max-height: 200px;
    }

    .archetype-card .arch-icon {
        font-size: 1.3rem;
    }

    .archetype-card .arch-name {
        font-size: 0.62rem;
    }

    .cyber-enter-btn {
        font-size: 0.88rem;
        padding: 14px;
    }

    .cyber-input {
        font-size: 0.92rem;
        padding: 12px 14px 12px 42px;
    }

    .skin-stats-hud {
        gap: 8px;
        padding: 5px 8px;
    }
}

/* ── Smartphone Landscape Optimization — Keep Left Avatars in Plain Sight ── */
@media (max-height: 520px) and (orientation: landscape), (max-height: 520px) {
    .login-modal-overlay {
        padding: 6px 12px !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    .login-terminal-card {
        min-width: 0 !important;
        width: 46vw !important;
        max-width: 46vw !important;
        margin-left: auto !important;
        margin-right: 6px !important;
        max-height: 96vh !important;
        padding: 10px 14px 8px !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, rgba(4, 12, 28, 0.85) 0%, rgba(8, 16, 36, 0.78) 50%, rgba(4, 10, 24, 0.85) 100%) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        box-sizing: border-box !important;
    }

    .terminal-title {
        gap: 6px !important;
        flex-wrap: wrap !important;
        min-width: 0 !important;
    }

    .terminal-title h2 {
        font-size: 1.15rem !important;
        letter-spacing: 1.5px !important;
    }

    .terminal-sub {
        font-size: 0.50rem !important;
        letter-spacing: 1px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .terminal-lore-badge {
        display: none !important;
    }

    .terminal-quick-actions {
        display: none !important;
    }

    .login-step {
        margin-bottom: 6px !important;
        min-width: 0 !important;
    }

    .step-label {
        font-size: 0.68rem !important;
    }

    .step-num {
        font-size: 0.65rem !important;
    }

    .input-wrapper {
        min-width: 0 !important;
    }

    .cyber-input {
        font-size: 0.78rem !important;
        padding: 6px 10px 6px 32px !important;
        min-width: 0 !important;
    }

    .step-label-row {
        gap: 4px !important;
        flex-wrap: wrap !important;
    }

    .step-label-row button {
        padding: 2px 6px !important;
        font-size: 9px !important;
    }

    .archetype-grid {
        grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)) !important;
        gap: 4px !important;
        max-height: 105px !important;
        min-width: 0 !important;
    }

    .archetype-card {
        padding: 4px 2px 4px !important;
        min-width: 0 !important;
    }

    .archetype-card .arch-icon {
        font-size: 1.05rem !important;
    }

    .archetype-card .arch-name {
        font-size: 0.52rem !important;
    }

    .archetype-card .arch-status {
        font-size: 0.48rem !important;
    }

    .cyber-enter-btn {
        font-size: 0.80rem !important;
        padding: 8px 12px !important;
        letter-spacing: 1.5px !important;
    }

    .skin-stats-hud {
        display: none !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   SMARTPHONE AR CONSOLE GATEKEEPER & QR MODAL — FUTURE WORLD
   ══════════════════════════════════════════════════════════════════════ */
.gatekeeper-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(0, 242, 255, 0.04) 0%, transparent 60%),
        radial-gradient(circle at center, rgba(4, 14, 28, 0.98) 0%, rgba(1, 4, 10, 0.99) 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.gatekeeper-modal-overlay.hidden {
    display: none !important;
}

.gatekeeper-card {
    background: rgba(4, 14, 30, 0.92);
    border: 1.5px solid rgba(0, 242, 255, 0.45);
    box-shadow:
        0 0 50px rgba(0, 242, 255, 0.2),
        0 0 100px rgba(0, 242, 255, 0.06),
        inset 0 0 30px rgba(0, 242, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    width: 100%;
    max-width: 680px;
    padding: 36px 32px;
    text-align: center;
    color: #ffffff;
    animation: fwPulseBtn 5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Circuit trace accent line */
.gatekeeper-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f2ff 30%, #a855f7 50%, #00f2ff 70%, transparent);
    background-size: 200% 100%;
    animation: fwTitleHolo 5s ease-in-out infinite;
}

.gatekeeper-icon {
    font-size: 3.6rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.6)) drop-shadow(0 0 40px rgba(0, 242, 255, 0.2));
}

.gatekeeper-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 0 24px rgba(0, 242, 255, 0.6);
    margin-bottom: 6px;
}

.gatekeeper-sub {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.3);
}

.gatekeeper-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 24px;
    background: rgba(0, 242, 255, 0.04);
    border-left: 3px solid rgba(0, 242, 255, 0.6);
    padding: 14px 18px;
    border-radius: 6px;
    text-align: left;
    backdrop-filter: blur(4px);
}

.gatekeeper-qr-box {
    background: #ffffff;
    padding: 16px;
    border-radius: 14px;
    display: inline-block;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.45), 0 0 60px rgba(0, 242, 255, 0.15);
    margin-bottom: 12px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gatekeeper-qr-box:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 35px rgba(0, 242, 255, 0.7), 0 0 70px rgba(0, 242, 255, 0.25);
}

.gatekeeper-qr-box canvas {
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* Scanning frame on QR box perimeter */
.gatekeeper-qr-box::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px; right: 3px; bottom: 3px;
    border: 2px solid rgba(0, 242, 255, 0.4);
    border-radius: 11px;
    pointer-events: none;
    animation: fwPulseBtn 3s ease-in-out infinite;
}

.gatekeeper-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.gatekeeper-btn-copy {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.5);
    color: #00f2ff;
    font-family: var(--font-heading);
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gatekeeper-btn-copy::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent 40%, rgba(0, 242, 255, 0.1) 50%, transparent 60%);
    pointer-events: none;
}

.gatekeeper-btn-copy:hover {
    background: rgba(0, 242, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
    border-color: #00f2ff;
}

.gatekeeper-btn-copy:hover::before {
    animation: fwScanSweep 1s ease-in-out;
}

.gatekeeper-btn-override {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #94a3b8;
    font-family: var(--font-heading);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.80rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gatekeeper-btn-override:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

/* ══════════════════════════════════════════════════════════════════════
   LONGOR TRANSIT LOUNGE & LOBBY ENTRANCE PORTAL — FUTURE WORLD
   ══════════════════════════════════════════════════════════════════════ */
.lobby-entrance-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(0, 242, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at center, rgba(4, 14, 28, 0.96) 0%, rgba(1, 4, 10, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    padding: 20px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lobby-entrance-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.lobby-entrance-card {
    background: rgba(4, 14, 30, 0.92);
    border: 1.5px solid rgba(0, 242, 255, 0.4);
    box-shadow:
        0 0 50px rgba(0, 242, 255, 0.2),
        0 0 100px rgba(0, 242, 255, 0.06),
        inset 0 0 30px rgba(0, 242, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    width: 100%;
    max-width: 820px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 28px 32px;
    color: #ffffff;
    text-align: center;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) rgba(0,0,0,0.3);
    position: relative;
    overflow-x: hidden;
}

/* Energy accent line */
.lobby-entrance-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f2ff, #00ff66, #00f2ff, transparent);
    background-size: 200% 100%;
    animation: fwTitleHolo 5s ease-in-out infinite;
    z-index: 1;
}

.lobby-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16, 185, 129, 0.3);
    animation: pulseGlow 1.5s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1.0; transform: scale(1.2); }
}

.lobby-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5), 0 0 40px rgba(0, 242, 255, 0.15);
    margin-bottom: 4px;
}

.lobby-sub {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    color: var(--neon-cyan);
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.3);
}

.lobby-welcome-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 22px;
    text-align: left;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.lobby-welcome-banner::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent 40%, rgba(0, 242, 255, 0.04) 50%, transparent 60%);
    animation: fwScanSweep 8s ease-in-out infinite;
    pointer-events: none;
}

.lobby-avatar-badge {
    font-size: 2.8rem;
    background: rgba(0, 242, 255, 0.12);
    border: 1px solid rgba(0, 242, 255, 0.4);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(0, 242, 255, 0.2);
}

.lobby-welcome-quote {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 6px;
}

.lobby-save-status {
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: var(--font-heading);
}

.lobby-briefing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.briefing-box {
    background: rgba(3, 10, 22, 0.7);
    border: 1px solid rgba(0, 242, 255, 0.18);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.briefing-box:hover {
    border-color: rgba(0, 242, 255, 0.55);
    background: rgba(0, 242, 255, 0.06);
    box-shadow: 0 0 16px rgba(0, 242, 255, 0.12);
    transform: translateY(-2px);
}

.brief-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.brief-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: #00f2ff;
    margin-bottom: 4px;
    text-shadow: 0 0 6px rgba(0, 242, 255, 0.3);
}

.brief-desc {
    font-size: 0.75rem;
    color: #cbd5e1;
    line-height: 1.35;
}

.lobby-live-peers {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.lobby-warp-btn {
    width: 100%;
    background: linear-gradient(135deg, #00f2ff 0%, #00ff66 100%);
    background-size: 200% 200%;
    animation: fwTitleHolo 3s ease-in-out infinite;
    color: #030812;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 2px;
    border: none;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    box-shadow: 0 0 35px rgba(0, 242, 255, 0.4), 0 0 70px rgba(0, 242, 255, 0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lobby-warp-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
    animation: fwScanSweep 5s ease-in-out infinite;
    pointer-events: none;
}

.lobby-warp-btn:hover {
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.7), 0 0 100px rgba(0, 242, 255, 0.2);
}

.lobby-warp-btn:active {
    transform: scale(0.98);
}

/* ═══════════════════════════════════════════════════════════════ */
/* SECOND LIFE STYLE 3D AVATAR STUDIO & WARDROBE MODAL STYLES     */
/* ═══════════════════════════════════════════════════════════════ */
.wardrobe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 4, 10, 0.88);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease-out;
}
.wardrobe-modal-overlay.visible {
    display: flex;
}
.wardrobe-modal-card {
    width: 92vw;
    max-width: 980px;
    height: 85vh;
    max-height: 720px;
    background: rgba(6, 15, 30, 0.96);
    border: 1px solid rgba(0, 242, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.25), inset 0 0 30px rgba(0, 242, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.wardrobe-modal-header {
    padding: 14px 20px;
    background: rgba(0, 242, 255, 0.08);
    border-bottom: 1px solid rgba(0, 242, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wardrobe-modal-title {
    font-family: var(--font-heading, "Orbitron", monospace);
    font-size: 16px;
    font-weight: 800;
    color: var(--neon-cyan, #00f2ff);
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}
.wardrobe-close-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading, monospace);
    font-weight: 700;
    transition: all 0.2s ease;
}
.wardrobe-close-btn:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}
.wardrobe-modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}
.wardrobe-slots-panel {
    flex: 1.4;
    padding: 16px;
    overflow-y: auto;
    border-right: 1px solid rgba(0, 242, 255, 0.2);
}
.wardrobe-slot-section {
    margin-bottom: 20px;
}
.wardrobe-slot-title {
    font-family: var(--font-heading, monospace);
    font-size: 12px;
    font-weight: 700;
    color: var(--neon-cyan, #00f2ff);
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.wardrobe-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}
.wardrobe-item-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.wardrobe-item-card:hover {
    border-color: #00f2ff;
    background: rgba(0, 242, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.3);
}
.wardrobe-item-card.selected {
    border-color: #00ff66;
    background: rgba(0, 255, 102, 0.15);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}
.wardrobe-item-icon {
    font-size: 24px;
    margin-bottom: 4px;
}
.wardrobe-item-name {
    font-family: var(--font-heading, monospace);
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}
.wardrobe-item-desc {
    font-size: 8px;
    color: #94a3b8;
    line-height: 1.2;
}
.wardrobe-preview-panel {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: rgba(3, 8, 18, 0.6);
}
.wardrobe-panel-subtitle {
    font-family: var(--font-heading, monospace);
    font-size: 12px;
    font-weight: 700;
    color: var(--neon-cyan, #00f2ff);
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.wardrobe-color-picker-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    width: 100%;
    justify-content: center;
}
.color-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 9px;
    font-family: var(--font-heading, monospace);
    color: #94a3b8;
    gap: 4px;
}
.color-picker-item input[type="color"] {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 242, 255, 0.5);
    border-radius: 6px;
    background: none;
    cursor: pointer;
}

/* =========================================================================
   CINEMATIC SOLID BLACK LOADING CURTAINS (LONGOR v4.0.1.1)
   ========================================================================= */
.curtain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: all;
    overflow: hidden;
    background: transparent; /* Transparent so parting curtains from the center reveals the 3D world */
}

.curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50vw;
    min-height: 100vh;
    height: 100%;
    background: #000000 !important; /* Pure cinematic solid black */
    z-index: 1;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden; /* Clips opposite half to create seamless two-sided split */
    will-change: transform;
}

.curtain-left {
    left: 0;
    transform: translateX(0);
    transform-origin: left center;
    transition: transform 1.25s cubic-bezier(0.77, 0, 0.175, 1);
    border-right: none !important;
    box-shadow: none !important;
}

.curtain-right {
    right: 0;
    transform: translateX(0);
    transform-origin: right center;
    transition: transform 1.25s cubic-bezier(0.77, 0, 0.175, 1);
    border-left: none !important;
    box-shadow: none !important;
}

/* Two-Sided Inner Wrappers: Full viewport width pinned to screen edges so text aligns at 50vw seam */
.curtain-half-inner {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100vw;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.curtain-half-left {
    left: 0;
}

.curtain-half-right {
    right: 0;
}

.curtain-text {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    width: 90%;
    padding: 24px;
    opacity: 1;
    transform: scale(1);
    box-sizing: border-box;
    will-change: transform;
}

.curtain-brand-title {
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: #00f2ff;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.9), 0 0 40px rgba(0, 242, 255, 0.4);
    margin-bottom: 4px;
}

.curtain-version-tag {
    font-family: 'Orbitron', monospace, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffd700;
    margin-bottom: 18px;
}

.curtain-lore {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e2e8f0;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 24px;
    padding: 0 16px;
}

.curtain-status-msg {
    font-family: 'Orbitron', monospace;
    font-size: 0.78rem;
    letter-spacing: 2px;
    color: #00ff66;
    margin-top: 14px;
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.8);
}

/* Two-Sided Curtain Opening: Curtains slide open from center seam carrying text with them */
.curtain-container.curtains-open,
.curtain-container.loaded {
    pointer-events: none;
}

.curtain-container.curtains-open .curtain-left,
.curtain-container.loaded .curtain-left {
    transform: translateX(-100%);
}

.curtain-container.curtains-open .curtain-right,
.curtain-container.loaded .curtain-right {
    transform: translateX(100%);
}

/* Text remains completely visible and rides outward with each curtain */
.curtain-container.curtains-open .curtain-text,
.curtain-container.loaded .curtain-text {
    opacity: 1;
}

/* ==========================================================================
   QUANTUM VR DUAL-DISPLAY & TV MIRROR PORTAL (CLIENT.PHP)
   ========================================================================== */
.client-portal-banner {
    background: linear-gradient(135deg, rgba(6, 20, 38, 0.94) 0%, rgba(2, 8, 18, 0.98) 100%);
    border: 1.5px solid rgba(0, 242, 255, 0.45);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.18), inset 0 0 20px rgba(0, 242, 255, 0.05);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.client-portal-banner:hover {
    border-color: #00f2ff;
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.28), inset 0 0 25px rgba(0, 242, 255, 0.08);
}

.portal-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.portal-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.portal-badge {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--neon-cyan);
    background: rgba(0, 242, 255, 0.12);
    border: 1px solid rgba(0, 242, 255, 0.35);
    border-radius: 4px;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.portal-badge-green {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--neon-green);
    background: rgba(0, 255, 102, 0.12);
    border: 1px solid rgba(0, 255, 102, 0.35);
    border-radius: 4px;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.portal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(0, 242, 255, 0.5);
}

.portal-desc {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--text-dim);
    margin: 0;
}

.portal-desc strong {
    color: var(--neon-cyan);
}

/* Schematic Flow Diagram */
.portal-schematic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(3, 10, 22, 0.85);
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.schematic-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    min-width: 0;
}

.schematic-node.highlight {
    background: rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.15);
}

.node-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.node-title {
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.schematic-node.highlight .node-title {
    color: var(--neon-cyan);
}

.node-sub {
    font-size: 0.68rem;
    color: #94a3b8;
    white-space: nowrap;
}

.schematic-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 4px;
    color: var(--neon-cyan);
}

.link-arrow {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.8);
    animation: linkPulse 2s ease-in-out infinite;
}

@keyframes linkPulse {
    0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 2px #00f2ff); }
    50% { opacity: 1; filter: drop-shadow(0 0 10px #00f2ff); }
}

.link-desc {
    font-size: 0.64rem;
    color: #38bdf8;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Steps Grid */
.portal-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.portal-step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(10, 20, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 12px;
}

.step-icon {
    font-size: 1.1rem;
    line-height: 1;
    margin-top: 2px;
}

.step-text {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #cbd5e1;
}

.step-text strong {
    color: #ffffff;
}

.step-text code {
    background: rgba(0, 242, 255, 0.15);
    color: var(--neon-cyan);
    padding: 1px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.76rem;
}

/* Actions Row */
.portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.portal-btn-primary {
    background: linear-gradient(135deg, #00f2ff 0%, #0284c7 100%);
    color: #030712;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.35);
}

.portal-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.6);
}

.portal-btn-secondary {
    background: rgba(6, 18, 36, 0.8);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 9px 13px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.portal-btn-secondary:hover {
    border-color: #00f2ff;
    color: #00f2ff;
    background: rgba(0, 242, 255, 0.12);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.portal-btn-outline {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    margin-left: auto;
}

.portal-btn-outline:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* Standalone Modal for Full Guide */
.client-guide-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 14, 0.88);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000000;
    padding: 16px;
    transition: all 0.3s ease;
}

.client-guide-modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.client-guide-card {
    background: rgba(6, 15, 30, 0.96);
    border: 1.5px solid #00f2ff;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.25), 0 20px 60px rgba(0, 0, 0, 0.9);
    border-radius: 14px;
    max-width: 680px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
}

.guide-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guide-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

@media (max-width: 640px) {
    .portal-schematic {
        flex-direction: column;
        gap: 10px;
    }
    .link-arrow {
        transform: rotate(90deg);
        margin: 4px 0;
    }
    .portal-btn-outline {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    .portal-btn-primary, .portal-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   🎬 STEVE JOBS MINIMALIST HERO BAR & LOBBY SIMPLIFICATION
   ========================================================================== */
.steve-jobs-hero-bar {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(2, 6, 23, 0.98) 100%);
    border: 1px solid rgba(0, 242, 255, 0.35);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.steve-jobs-hero-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2ff, #a855f7, #ffd700);
}

.sjh-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sjh-badge {
    background: linear-gradient(135deg, #00f2ff, #a855f7);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sjh-badge-sub {
    font-size: 0.70rem;
    color: #38bdf8;
    letter-spacing: 1px;
    font-weight: 700;
}

.sjh-title {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    margin: 4px 0 2px 0;
    letter-spacing: 0.8px;
}

.sjh-tagline {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

.sjh-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.sjh-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.sjh-action-btn.primary {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.25) 0%, rgba(168, 85, 247, 0.3) 100%);
    border-color: #00f2ff;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(0, 242, 255, 0.3);
}

.sjh-action-btn.primary:hover {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.45) 0%, rgba(168, 85, 247, 0.5) 100%);
    box-shadow: 0 0 24px rgba(0, 242, 255, 0.55);
    transform: translateY(-1px);
}

.sjh-action-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
}

.sjh-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #38bdf8;
    color: #38bdf8;
}

/* Minimalist Lobby Entrance Tutorial Card — Future World */
.lobby-simple-tutorial-card {
    background: linear-gradient(135deg, rgba(4, 12, 28, 0.80) 0%, rgba(8, 16, 36, 0.72) 100%);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.lobby-simple-tutorial-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent 40%, rgba(0, 242, 255, 0.04) 50%, transparent 60%);
    animation: fwScanSweep 8s ease-in-out infinite;
    pointer-events: none;
}

.lst-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lst-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    text-shadow: 0 0 6px rgba(0, 242, 255, 0.3);
}

.lst-title {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.lst-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
}

.lst-btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #00f2ff 0%, #0077ff 40%, #a855f7 100%);
    background-size: 200% 200%;
    color: #030812;
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 0.80rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(0, 242, 255, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lst-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
    pointer-events: none;
}

.lst-btn:hover {
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.lst-btn:hover::before {
    animation: fwScanSweep 1s ease-in-out;
}

/* ==========================================================================
   🎬 VEO 3.1 GESTURE TUTORIALS THEATER MODAL
   ========================================================================== */
.gesture-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(3, 7, 18, 0.92);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    animation: fadeInModal 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gesture-modal-overlay.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.gesture-theater-card {
    width: 100%;
    max-width: 960px;
    max-height: 94vh;
    background: rgba(11, 19, 38, 0.96);
    border: 1px solid rgba(0, 242, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 242, 255, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.gesture-theater-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00f2ff, #a855f7, #ffd700);
}

.gesture-theater-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 14, 28, 0.6);
}

.theater-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.theater-badge-cyan {
    background: rgba(0, 242, 255, 0.15);
    border: 1px solid #00f2ff;
    color: #00f2ff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: 4px;
}

.theater-badge-purple {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid #a855f7;
    color: #c084fc;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: 4px;
}

.theater-title {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.8px;
}

.theater-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

.theater-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theater-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ef4444;
    transform: rotate(90deg);
}

.gesture-theater-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

/* Left: Navigation Drawer */
.gesture-nav-drawer {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 9, 20, 0.75);
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gesture-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.15s ease;
}

.gesture-nav-item:hover {
    background: rgba(0, 242, 255, 0.08);
    border-color: rgba(0, 242, 255, 0.3);
    transform: translateX(2px);
}

.gesture-nav-item.active {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.16) 0%, rgba(168, 85, 247, 0.16) 100%);
    border-color: #00f2ff;
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.2);
}

.gesture-nav-item.highlight-golden {
    border-color: rgba(255, 215, 0, 0.35);
    background: rgba(255, 215, 0, 0.04);
}

.gesture-nav-item.highlight-golden:hover {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.gesture-nav-item.highlight-golden.active {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(245, 158, 11, 0.18) 100%);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.3);
}

.nav-item-num {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 0.65rem;
    font-weight: 900;
    color: #64748b;
    min-width: 16px;
}

.gesture-nav-item.active .nav-item-num {
    color: #00f2ff;
}

.gesture-nav-item.highlight-golden.active .nav-item-num {
    color: #ffd700;
}

.nav-item-icon {
    font-size: 15px;
    line-height: 1;
}

.nav-item-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
    flex: 1;
}

.nav-item-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gesture-nav-item.active .nav-item-title {
    color: #ffffff;
}

.nav-item-badge {
    font-size: 0.60rem;
    color: #94a3b8;
    font-family: monospace;
}

.gesture-nav-item.active .nav-item-badge {
    color: #38bdf8;
}

/* Right: Active Showcase & Video Player */
.gesture-showcase-pane {
    overflow-y: auto;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dummy-video-player-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: clamp(150px, 25vh, 230px);
    aspect-ratio: 16 / 9;
    background: #020617;
    border: 1px solid rgba(0, 242, 255, 0.35);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 18px rgba(0, 242, 255, 0.12);
}

#gestureVideoCanvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #020617;
}

.video-overlay-top {
    position: absolute;
    top: 8px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.video-rec-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: recPulse 1s infinite alternate ease-in-out;
}

@keyframes recPulse {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.video-model-tag {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 0.64rem;
    font-weight: 800;
    color: #00f2ff;
    letter-spacing: 0.8px;
    text-shadow: 0 0 6px rgba(0, 242, 255, 0.6);
}

.video-time-badge {
    margin-left: auto;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    font-size: 0.64rem;
    font-family: monospace;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-transport-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.85) 30%, rgba(2, 6, 23, 0.98) 100%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    backdrop-filter: blur(4px);
}

.video-ctrl-btn {
    background: transparent;
    border: none;
    color: #00f2ff;
    font-size: 13px;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.video-ctrl-btn:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.video-scrubber-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: height 0.15s ease;
}

.video-scrubber-track:hover {
    height: 7px;
}

.video-scrubber-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f2ff, #a855f7);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.6);
}

.video-timecode {
    font-family: monospace;
    font-size: 0.68rem;
    color: #94a3b8;
    min-width: 68px;
    text-align: right;
}

.video-quality-pill {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    background: rgba(0, 242, 255, 0.15);
    border: 1px solid rgba(0, 242, 255, 0.4);
    color: #00f2ff;
    padding: 1px 5px;
    border-radius: 3px;
}

/* Detailed Description Card */
.gesture-details-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gesture-details-card.golden-card-glow {
    border-color: rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.15);
    background: linear-gradient(135deg, rgba(20, 20, 10, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.details-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-icon-box {
    width: 36px;
    height: 36px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.35);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.details-headline-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.details-title {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 0.98rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.details-headline {
    font-size: 0.78rem;
    color: #38bdf8;
    font-style: italic;
    margin: 0;
}

.details-summary {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin: 0;
}

.details-section-label {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-top: 2px;
}

.details-steps-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.details-steps-list li {
    font-size: 0.76rem;
    color: #e2e8f0;
    line-height: 1.35;
}

.pro-tip-box {
    background: rgba(234, 179, 8, 0.08);
    border-left: 3px solid #eab308;
    border-radius: 0 6px 6px 0;
    padding: 6px 10px;
    font-size: 0.75rem;
    color: #fef08a;
    line-height: 1.35;
}

/* Nav Footer */
.theater-nav-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
}

.theater-step-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    border-radius: 5px;
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theater-step-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.theater-step-btn.primary {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.25) 0%, rgba(168, 85, 247, 0.3) 100%);
    border-color: #00f2ff;
    color: #ffffff;
}

.theater-step-btn.primary:hover {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.45) 0%, rgba(168, 85, 247, 0.5) 100%);
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.4);
}

.theater-pagination {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 700;
}

/* ==========================================================================
   📱 MEDIUM RESOLUTION SCREEN COMPATIBILITY (1366x768, 1280x720, 1080p-scaled)
   ========================================================================== */
@media (max-width: 1200px), (max-height: 800px) {
    .login-terminal-card {
        max-width: 780px !important;
        max-height: 94vh !important;
        padding: 14px 18px !important;
    }
    .terminal-header {
        padding-bottom: 8px !important;
        margin-bottom: 10px !important;
    }
    .terminal-title h2 {
        font-size: 1.35rem !important;
    }
    .steve-jobs-hero-bar {
        padding: 8px 12px !important;
        margin-bottom: 10px !important;
        gap: 6px !important;
    }
    .sjh-title {
        font-size: 1.0rem !important;
        margin: 2px 0 !important;
    }
    .sjh-tagline {
        font-size: 0.78rem !important;
    }
    .sjh-action-btn {
        padding: 6px 12px !important;
        font-size: 0.74rem !important;
    }
    .login-step {
        margin-bottom: 10px !important;
    }
    .archetype-grid {
        max-height: 135px !important;
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
        gap: 6px !important;
    }
    .archetype-card {
        padding: 6px 4px !important;
        font-size: 0.78rem !important;
    }
    #previewWrapper {
        margin-top: 6px !important;
    }
    #loginPreviewCanvas {
        max-height: 180px !important;
        width: auto !important;
        aspect-ratio: 320 / 360 !important;
    }
    .skin-stats-hud {
        padding: 4px 8px !important;
        gap: 6px !important;
    }
    .skin-stat-label {
        font-size: 0.65rem !important;
    }
    .skin-stat-val {
        font-size: 0.75rem !important;
    }
    .gesture-theater-card {
        max-height: 95vh !important;
        max-width: 95vw !important;
    }
    .gesture-theater-body {
        grid-template-columns: 200px 1fr !important;
    }
    .dummy-video-player-box {
        height: clamp(140px, 22vh, 195px) !important;
    }
}

@media (max-width: 768px) {
    .gesture-theater-body {
        grid-template-columns: 1fr !important;
        grid-template-rows: 120px 1fr !important;
    }
    .gesture-nav-drawer {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        flex-direction: row !important;
        overflow-x: auto !important;
    }
    .gesture-nav-item {
        min-width: 170px !important;
    }
    .lobby-simple-tutorial-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .lst-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ==========================================================================
   📱 LANDSCAPE SMARTPHONE COMPATIBILITY (Pixel 9 Pro, Galaxy Ultra, iPhone Max)
   ========================================================================== */
@media (orientation: landscape) and (max-height: 650px) {
    .gesture-theater-card {
        max-width: 98vw !important;
        max-height: 98vh !important;
        height: 96vh !important;
        border-radius: 8px !important;
    }
    .gesture-theater-header {
        padding: 5px 12px !important;
        min-height: 36px !important;
    }
    .gesture-theater-header .theater-title {
        font-size: 0.86rem !important;
    }
    .gesture-theater-header .theater-sub {
        display: none !important;
    }
    .gesture-theater-header .theater-close-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 12px !important;
    }
    .gesture-theater-body {
        grid-template-columns: 155px 1fr !important;
        grid-template-rows: 1fr !important;
        overflow: hidden !important;
    }
    .gesture-nav-drawer {
        padding: 4px !important;
        gap: 3px !important;
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-bottom: none !important;
        flex-direction: column !important;
        overflow-y: auto !important;
    }
    .gesture-nav-item {
        min-width: 0 !important;
        padding: 4px 6px !important;
        gap: 6px !important;
    }
    .nav-item-title {
        font-size: 0.68rem !important;
    }
    .nav-item-badge {
        font-size: 0.55rem !important;
    }
    .gesture-showcase-pane {
        display: grid !important;
        grid-template-columns: minmax(280px, 1.2fr) 1fr !important;
        grid-template-rows: 1fr auto !important;
        gap: 10px !important;
        padding: 8px 10px !important;
        overflow: hidden !important;
    }
    .dummy-video-player-box {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: calc(96vh - 80px) !important;
        aspect-ratio: 16 / 9 !important;
        margin: 0 !important;
        align-self: center !important;
    }
    #gestureVideoCanvas {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: contain !important;
    }
    .gesture-details-card {
        padding: 8px 10px !important;
        gap: 5px !important;
        overflow-y: auto !important;
        max-height: calc(96vh - 85px) !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .details-title {
        font-size: 0.85rem !important;
    }
    .details-headline {
        font-size: 0.72rem !important;
    }
    .details-summary {
        font-size: 0.70rem !important;
        line-height: 1.3 !important;
    }
    .details-section-label {
        font-size: 0.62rem !important;
    }
    .details-steps-list li {
        font-size: 0.68rem !important;
        line-height: 1.25 !important;
    }
    .pro-tip-box {
        font-size: 0.66rem !important;
        padding: 4px 6px !important;
        line-height: 1.25 !important;
    }
    .theater-nav-footer {
        grid-column: 1 / -1 !important;
        padding-top: 4px !important;
        margin-top: 0 !important;
    }
    .theater-step-btn {
        padding: 4px 10px !important;
        font-size: 0.68rem !important;
    }
    .theater-pagination {
        font-size: 0.68rem !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   PRE-EXPERIENCE AUDIO LEVELING MATRIX & PREVIEW MODAL STYLES
   ══════════════════════════════════════════════════════════════════════ */
.audio-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100060;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 1;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.audio-modal-overlay.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.audio-modal-card {
    background: linear-gradient(155deg, rgba(13, 25, 48, 0.96) 0%, rgba(6, 12, 24, 0.98) 100%);
    border: 1.5px solid #00f2ff;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.28), inset 0 0 25px rgba(0, 242, 255, 0.06);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 22px 24px;
    color: #f8fafc;
    font-family: var(--font-body, system-ui, -apple-system, sans-serif);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: audioModalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes audioModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.audio-modal-header {
    text-align: center;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    padding-bottom: 14px;
    position: relative;
}

.audio-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 242, 255, 0.12);
    border: 1px solid rgba(0, 242, 255, 0.4);
    color: #00f2ff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 6px;
}

.audio-modal-title {
    font-family: var(--font-heading, 'Orbitron', monospace, sans-serif);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin: 0 0 4px 0;
    text-shadow: 0 0 12px rgba(0, 242, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.audio-modal-subtitle {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

.audio-close-corner-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.audio-close-corner-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.audio-channels-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audio-channel-item {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
}

.audio-channel-item:hover {
    border-color: rgba(0, 242, 255, 0.45);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.audio-channel-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.audio-channel-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-channel-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.audio-channel-text {
    display: flex;
    flex-direction: column;
}

.audio-channel-name {
    font-family: var(--font-heading, 'Orbitron', monospace, sans-serif);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #38bdf8;
}

.audio-channel-desc {
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.2;
}

.audio-channel-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sound Wave Equalizer 4-bar animation */
.audio-wave-anim {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
    width: 20px;
}

.audio-wave-anim .bar {
    width: 3px;
    height: 3px;
    background: #00f2ff;
    border-radius: 2px;
    transition: height 0.15s ease;
}

.audio-wave-anim.pulsing .bar:nth-child(1) { animation: wavePulse 0.45s infinite alternate 0.05s; }
.audio-wave-anim.pulsing .bar:nth-child(2) { animation: wavePulse 0.45s infinite alternate 0.15s; }
.audio-wave-anim.pulsing .bar:nth-child(3) { animation: wavePulse 0.45s infinite alternate 0.25s; }
.audio-wave-anim.pulsing .bar:nth-child(4) { animation: wavePulse 0.45s infinite alternate 0.10s; }

@keyframes wavePulse {
    0% { height: 3px; background: #00f2ff; }
    100% { height: 14px; background: #a855f7; box-shadow: 0 0 6px #a855f7; }
}

.channel-badge {
    font-family: monospace;
    font-size: 0.76rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    min-width: 44px;
    text-align: center;
    transition: all 0.2s ease;
}

.channel-badge.active {
    background: rgba(0, 242, 255, 0.15);
    color: #00f2ff;
    border: 1px solid rgba(0, 242, 255, 0.4);
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.2);
}

.channel-badge.muted {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Slider Controls Row */
.audio-controls-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-mute-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.audio-mute-btn:hover {
    background: rgba(0, 242, 255, 0.15);
    border-color: #00f2ff;
}

.audio-mute-btn.muted {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #f87171;
}

/* Cyber range slider */
.cyber-audio-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cyber-audio-slider:hover {
    border-color: #00f2ff;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.cyber-audio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00f2ff;
    box-shadow: 0 0 10px #00f2ff, inset 0 0 4px #ffffff;
    cursor: pointer;
    border: 2px solid #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cyber-audio-slider::-webkit-slider-thumb:hover,
.cyber-audio-slider::-webkit-slider-thumb:active {
    transform: scale(1.25);
    box-shadow: 0 0 16px #00f2ff, 0 0 6px #ffffff;
}

.cyber-audio-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00f2ff;
    box-shadow: 0 0 10px #00f2ff, inset 0 0 4px #ffffff;
    cursor: pointer;
    border: 2px solid #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.audio-test-btn {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.35);
    color: #38bdf8;
    font-family: var(--font-heading, 'Orbitron', monospace, sans-serif);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.audio-test-btn:hover {
    background: rgba(0, 242, 255, 0.25);
    border-color: #00f2ff;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.35);
}

/* Modal Actions Footer */
.audio-modal-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(0, 242, 255, 0.2);
    padding-top: 14px;
    margin-top: 4px;
}

.audio-modal-footer .btn-subtle {
    flex: 1;
    min-width: 130px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-heading, 'Orbitron', monospace, sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.audio-modal-footer .btn-subtle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.audio-modal-footer .btn-primary {
    flex: 2;
    min-width: 180px;
    padding: 11px 18px;
    background: linear-gradient(135deg, #00f2ff 0%, #0284c7 100%);
    border: 1px solid #00f2ff;
    color: #020617;
    border-radius: 8px;
    font-family: var(--font-heading, 'Orbitron', monospace, sans-serif);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    transition: all 0.25s ease;
}

.audio-modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
    box-shadow: 0 0 28px rgba(0, 242, 255, 0.65);
    transform: translateY(-1px);
}

@media (max-width: 520px) {
    .audio-modal-card {
        padding: 16px;
        gap: 12px;
    }
    .audio-modal-title {
        font-size: 1.15rem;
    }
    .audio-channel-item {
        padding: 10px 12px;
    }
    .audio-modal-footer {
        flex-direction: column;
    }
    .audio-modal-footer .btn-subtle,
    .audio-modal-footer .btn-primary {
        width: 100%;
        min-width: 0;
    }
}

