/* ═══════════════════════════════════════════════════════════════════════════
   AutomateWin WebUI — AutomateWin A.I. ULTRA PREMIUM Interface 2026
   🦎 This file is fully modifiable by Chameleon Mode
   Design: Cinematic AI Command Center — Photorealistic Futurism
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Premium Font Imports ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties (Theme tokens — Chameleon modifies THESE) ── */
:root {
    /* Background — Translucent glass over space universe */
    --bg-main: transparent;
    --bg-secondary: rgba(6, 10, 24, 0.7);
    --bg-sidebar: rgba(3, 5, 12, 0.92);
    --bg-card: rgba(8, 14, 32, 0.45);
    --bg-card-hover: rgba(12, 20, 44, 0.55);
    --bg-glass: rgba(8, 14, 32, 0.55);
    --bg-glass-border: rgba(100, 180, 255, 0.1);

    /* Text — Higher contrast, more hierarchy */
    --fg-primary: #eef2ff;
    --fg-secondary: #7b8db8;
    --fg-muted: #3d4a6a;

    /* Accent — Electric cyan with purple shift */
    --accent: #00c8ff;
    --accent-secondary: #7c5dfa;
    --accent-glow: rgba(0, 200, 255, 0.35);
    --accent-hover: #40d8ff;
    --accent-gradient: linear-gradient(135deg, #00c8ff, #7c5dfa);
    --accent-gradient-warm: linear-gradient(135deg, #ff6b35, #ff2d78);
    --accent-gradient-emerald: linear-gradient(135deg, #00d68f, #00b4d8);

    /* Semantic — Richer, more saturated */
    --success: #00d68f;
    --warning: #ffb547;
    --error: #ff4757;

    /* Borders / Shadows — Deeper, more cinematic */
    --border: rgba(100, 160, 255, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 200, 255, 0.05);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 200, 255, 0.08);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 200, 255, 0.1);
    --shadow-glow: 0 0 40px var(--accent-glow), 0 0 80px rgba(124, 93, 250, 0.1);

    /* Layout */
    --sidebar-width: 240px;
    --sidebar-collapsed: 72px;
    --topbar-height: 64px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 28px;

    /* Timing — Smoother, more premium */
    --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

    /* Font — Premium typography */
    --font: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --font-display: 'Outfit', sans-serif;
}

/* ── Reset & Global ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-main);
    color: var(--fg-primary);
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    /* 🔒 LOCKED 2026-02-26 Anti-FOUC: hidden until JS marks body as loaded. NEVER REMOVE. */
    opacity: 0;
    transition: opacity 0.35s ease;
}

body.loaded {
    opacity: 1;
}

/* ── VIVID Animated Background Mesh — visible, alive, breathing ── */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 900px 700px at 15% 15%, rgba(0, 200, 255, 0.12) 0%, transparent 65%),
        radial-gradient(ellipse 700px 900px at 85% 75%, rgba(124, 93, 250, 0.10) 0%, transparent 65%),
        radial-gradient(ellipse 1000px 600px at 55% 5%, rgba(0, 214, 143, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 600px 800px at 5% 85%, rgba(255, 107, 53, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 500px 500px at 50% 50%, rgba(0, 200, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 800px 400px at 75% 30%, rgba(255, 45, 120, 0.04) 0%, transparent 60%);
    animation: meshDrift 20s ease-in-out infinite alternate;
}

/* ── Holographic grid overlay — visible tech depth ── */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background:
        linear-gradient(rgba(0, 200, 255, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 255, 0.4) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 15%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 15%, transparent 65%);
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes meshDrift {
    0% {
        background-position: 0% 0%;
        filter: hue-rotate(0deg) brightness(1);
    }

    33% {
        filter: hue-rotate(5deg) brightness(1.1);
    }

    66% {
        filter: hue-rotate(-3deg) brightness(1.05);
    }

    100% {
        background-position: 100% 100%;
        filter: hue-rotate(0deg) brightness(1);
    }
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.03;
    }

    50% {
        opacity: 0.06;
    }
}

/* ── Scrollbar — Premium with glow ── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 200, 255, 0.3), rgba(124, 93, 250, 0.3));
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0, 200, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 200, 255, 0.5), rgba(124, 93, 250, 0.5));
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.3);
}

/* ── Glassmorphism utility — ENHANCED ── */
.glass {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR — ULTRA PREMIUM 3D COMMAND CENTER
   The most beautiful sidebar ever created
   ═══════════════════════════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background:
        linear-gradient(180deg,
            rgba(4, 4, 12, 0.97) 0%,
            rgba(6, 6, 18, 0.95) 30%,
            rgba(3, 5, 14, 0.96) 70%,
            rgba(4, 4, 12, 0.98) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-right: 1px solid transparent;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: width var(--transition);
    box-shadow:
        4px 0 40px rgba(0, 0, 0, 0.6),
        2px 0 0 rgba(0, 200, 255, 0.04),
        inset -1px 0 0 rgba(0, 200, 255, 0.03);
    overflow: hidden;
}

/* ── Animated holographic edge light ── */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 200, 255, 0.0) 10%,
            rgba(0, 200, 255, 0.4) 25%,
            rgba(124, 93, 250, 0.5) 40%,
            rgba(0, 214, 143, 0.3) 55%,
            rgba(124, 93, 250, 0.4) 70%,
            rgba(0, 200, 255, 0.3) 85%,
            transparent 100%);
    z-index: 10;
    animation: sidebarEdgeGlow 6s ease-in-out infinite;
    filter: blur(0.5px);
}

/* ── Subtle internal ambient glow ── */
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 120px 200px at 100% 15%, rgba(0, 200, 255, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 100px 300px at 100% 60%, rgba(124, 93, 250, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 150px 150px at 50% 95%, rgba(0, 214, 143, 0.025) 0%, transparent 70%);
    z-index: 0;
    animation: sidebarAmbient 15s ease-in-out infinite alternate;
}

@keyframes sidebarEdgeGlow {

    0%,
    100% {
        opacity: 0.6;
        background-size: 100% 200%;
        background-position: 0% 0%;
    }

    50% {
        opacity: 1;
        background-size: 100% 200%;
        background-position: 0% 100%;
    }
}

@keyframes sidebarAmbient {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

/* ── Logo Area — Premium 3D with Depth ── */
.sidebar-logo {
    padding: 18px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 200, 255, 0.06);
    position: relative;
    z-index: 2;
}

/* Glow line under logo */
.sidebar-logo::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 200, 255, 0.3),
            rgba(124, 93, 250, 0.3),
            transparent);
    filter: blur(0.5px);
}

/* 3D perspective wrapper — creates depth illusion */
.logo-3d-wrapper {
    perspective: 400px;
    perspective-origin: center center;
    flex-shrink: 0;
}

.logo-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, #0d0d1f, #06060f);
    border: 1px solid rgba(0, 200, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px;
    transform-style: preserve-3d;
    position: relative;
    /* 3D depth shadow */
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 200, 255, 0.08),
        0 0 40px rgba(124, 93, 250, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Reflection/shine effect on face */
.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(105deg,
            transparent 35%,
            rgba(255, 255, 255, 0.04) 42%,
            rgba(255, 255, 255, 0.12) 50%,
            rgba(255, 255, 255, 0.04) 58%,
            transparent 65%);
    background-size: 300% 100%;
    animation: shineSwipe 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes shineSwipe {

    0%,
    100% {
        background-position: 150% center;
    }

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

/* Slow continuous 3D Y rotation */
.logo-spin {
    animation: logo3dSpin 12s linear infinite;
    backface-visibility: visible;
}

@keyframes logo3dSpin {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.logo-icon:hover {
    animation-play-state: paused;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(0, 200, 255, 0.25),
        0 0 80px rgba(124, 93, 250, 0.1);
    border-color: rgba(0, 200, 255, 0.35);
    transition: all 0.4s ease;
}

.logo-spin:hover {
    animation-play-state: paused;
}

.logo-svg {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.5)) drop-shadow(0 0 12px rgba(124, 93, 250, 0.2));
}

/* Brand text: A(logo) + utomateWin */
.logo-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    color: #00c8ff;
    white-space: nowrap;
    letter-spacing: -0.3px;
    text-shadow:
        0 0 12px rgba(0, 200, 255, 0.4),
        0 0 30px rgba(0, 200, 255, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.5);
}

.logo-brand-dim {
    color: var(--fg-secondary);
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ── Navigation Area ── */
.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 200, 255, 0.12) transparent;
    position: relative;
    z-index: 2;
}

.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 200, 255, 0.2), rgba(124, 93, 250, 0.2));
    border-radius: 4px;
}

/* ── Section Headers ── */
.nav-section {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 10px 10px 5px;
    margin-top: 6px;
    opacity: 0.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.nav-section:hover {
    background: rgba(0, 200, 255, 0.04);
    opacity: 1;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.3);
}

.section-arrow {
    font-size: 10px;
    opacity: 0.4;
    transition: transform 0.3s ease;
}

.nav-section:hover .section-arrow {
    opacity: 0.8;
}

.nav-item.sub {
    padding: 6px 14px 6px 22px;
    font-size: 12px;
}

.nav-item.sub svg {
    display: none;
}

/* ── Navigation Items — 3D Holographic ── */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(140, 180, 220, 0.72);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    white-space: nowrap;
    transform-origin: left center;
    will-change: transform, background;
    border-left: 2px solid transparent;
    position: relative;
    perspective: 800px;
    overflow: hidden;
}

/* ── Hover glow underlay ── */
.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(90deg,
            rgba(0, 200, 255, 0.08) 0%,
            rgba(124, 93, 250, 0.04) 40%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: -1;
}

/* ── Glass light sweep ── */
.nav-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.06),
            transparent);
    transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
}

.nav-item span {
    display: inline-block;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 2;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 1.8;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    filter: drop-shadow(0 0 0px transparent);
    position: relative;
    z-index: 2;
}

/* ── HOVER STATE — Full holographic 3D effect ── */
.nav-item:hover {
    background: transparent;
    border-left-color: rgba(0, 200, 255, 0.6);
    transform: translateX(5px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 2px 12px rgba(0, 0, 0, 0.2);
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item:hover::after {
    left: 150%;
}

.nav-item:hover span {
    background: linear-gradient(90deg, #00c8ff, #7c5dfa, #00d68f, #00c8ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: navColorFlash 2s ease-in-out infinite;
    transform: perspective(600px) translateZ(10px);
    filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.35));
}

.nav-item:hover svg {
    stroke: #00c8ff;
    filter:
        drop-shadow(0 0 6px rgba(0, 200, 255, 0.5)) drop-shadow(0 0 12px rgba(124, 93, 250, 0.3));
    transform: scale(1.18) translateZ(15px);
}

@keyframes navColorFlash {
    0% {
        background-position: 0% center;
    }

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

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

/* ── Active state ── */
.nav-item.active {
    background: transparent !important;
    border-left-color: transparent !important;
    box-shadow: none !important;
    color: rgba(140, 180, 220, 0.72) !important;
    transform: none !important;
}

.nav-item.active::before,
.nav-item.active::after {
    opacity: 0 !important;
}

.nav-item.active svg {
    filter: none !important;
}

/* Active item lights up fully ONLY on hover */
.nav-item.active:hover {
    background: transparent !important;
    transform: translateX(5px) !important;
}

.nav-item.active:hover::before {
    opacity: 1 !important;
    background: linear-gradient(90deg,
            rgba(0, 200, 255, 0.1) 0%,
            rgba(124, 93, 250, 0.06) 40%,
            transparent 100%) !important;
}

.nav-item.active:hover span {
    background: linear-gradient(90deg, #00c8ff, #7c5dfa, #00d68f, #00c8ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: navColorFlash 2s ease-in-out infinite;
    transform: perspective(600px) translateZ(10px);
    filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.35));
}

.nav-item.active:hover svg {
    stroke: #00c8ff;
    filter:
        drop-shadow(0 0 6px rgba(0, 200, 255, 0.5)) drop-shadow(0 0 12px rgba(124, 93, 250, 0.3));
    transform: scale(1.18) translateZ(15px);
}

/* ── Sidebar Bottom ── */
.sidebar-bottom {
    padding: 14px 8px;
    border-top: 1px solid rgba(0, 200, 255, 0.04);
    position: relative;
    z-index: 2;
}

/* Glow line above bottom */
.sidebar-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 200, 255, 0.15),
            rgba(124, 93, 250, 0.15),
            transparent);
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    transition: margin-left var(--transition);
    position: relative;
    z-index: 1;
}

/* ── TOPBAR — Floating Glass Command Bar ── */
.topbar {
    height: var(--topbar-height);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(100, 160, 255, 0.05);
    position: sticky;
    top: 0;
    background: rgba(3, 3, 8, 0.75);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    z-index: 50;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Animated glow line under topbar */
.topbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 200, 255, 0.15) 20%,
            rgba(124, 93, 250, 0.2) 50%,
            rgba(0, 200, 255, 0.15) 80%,
            transparent 100%);
    animation: topbarGlow 8s ease-in-out infinite;
}

@keyframes topbarGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.page-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--fg-primary), var(--fg-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 12px;
    color: var(--fg-muted);
    margin-left: 12px;
}

.topbar-center {
    display: flex;
    gap: 8px;
    align-items: center;
}

.quick-btn {
    padding: 8px 16px;
    border: 1px solid rgba(100, 160, 255, 0.08);
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--fg-primary, #eef2ff);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Glass shine sweep on hover */
.quick-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.quick-btn:hover::before {
    left: 120%;
}

.quick-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 200, 255, 0.2);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 200, 255, 0.08);
}

.quick-btn:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.1s;
}

/* Each button gets a subtle accent border-bottom glow */
.quick-btn.tv {
    border-bottom: 2px solid rgba(102, 126, 234, 0.5);
}

.quick-btn.tv:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(102, 126, 234, 0.15);
}

.quick-btn.radio {
    border-bottom: 2px solid rgba(255, 165, 0, 0.4);
}

.quick-btn.radio:hover {
    border-color: rgba(255, 165, 0, 0.6);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 165, 0, 0.15);
}

.quick-btn.files {
    border-bottom: 2px solid rgba(240, 147, 251, 0.4);
}

.quick-btn.files:hover {
    border-color: rgba(240, 147, 251, 0.6);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(240, 147, 251, 0.15);
}

.quick-btn.full {
    border-bottom: 2px solid rgba(79, 172, 254, 0.4);
}

.quick-btn.full:hover {
    border-color: rgba(79, 172, 254, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(79, 172, 254, 0.2);
}

.quick-btn.full.is-active {
    background: rgba(79, 172, 254, 0.14);
    border-color: rgba(79, 172, 254, 0.45);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 18px rgba(79, 172, 254, 0.22);
}

.quick-btn.mic {
    border-bottom: 2px solid rgba(67, 233, 123, 0.4);
}

.quick-btn.mic:hover {
    border-color: rgba(67, 233, 123, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(67, 233, 123, 0.2);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
}

.theme-toggle:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
    transform: scale(1.1);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0, 206, 201, 0.1);
    border: 1px solid rgba(0, 206, 201, 0.2);
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.topbar-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-secondary);
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════
   PAGES — with ambient glow
   ═══════════════════════════════════════════════════════════════ */
.page {
    display: none;
    padding: 32px;
    animation: fadeIn 0.4s ease-out;
    position: relative;
}

/* ── Hub Card Grid (auto-generated pages) ── */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.hub-card {
    padding: 0;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

/* ── Favicon as card background ── */
.hub-card-favicon-bg {
    position: absolute;
    inset: 0;
    background-size: 80px 80px;
    background-repeat: no-repeat;
    background-position: center 28px;
    opacity: 0.12;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: blur(0px);
    pointer-events: none;
    /* CRITICAL: don't block button clicks */
    z-index: 0;
}

.hub-card:hover .hub-card-favicon-bg {
    opacity: 0.22;
    transform: scale(1.08);
}

/* Glow behind the favicon on hover */
.hub-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hub-card:hover::before {
    opacity: 1;
}

/* Action-only cards (no URL → play icon) */
.hub-card-action-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.15);
    background-image: none !important;
}

/* ── Card content overlaid ── */
.hub-card-content {
    position: relative;
    z-index: 2;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.hub-card-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--fg-primary);
}

.hub-desc {
    font-size: 12px;
    color: var(--fg-secondary);
    margin: 4px 0 8px;
    line-height: 1.4;
}

.hub-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.hub-feature {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.hub-meta {
    font-size: 11px;
    color: var(--fg-muted);
    margin-top: 4px;
}

.hub-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: var(--accent-gradient);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hub-btn:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.hub-btn.action {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #000;
}


.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   VOICE HERO (Dashboard) — SPECTACULAR 3D Animated Pulse
   ═══════════════════════════════════════════════════════════════ */
.voice-hero {
    text-align: center;
    padding: 50px 0 35px;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.voice-hero .voice-pulse-container,
.voice-hero .voice-status,
.voice-hero .voice-transcript {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.voice-hero.listening-mode .voice-pulse-container,
.voice-hero.listening-mode .voice-status,
.voice-hero.listening-mode .voice-transcript {
    transform: translateX(-200px);
}

/* 🔮 HOLOGRAM AVATAR STYLES */
.hologram-container {
    position: absolute;
    left: 75%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
    width: 380px;
    height: 380px;
    pointer-events: none;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.voice-hero.listening-mode ~ .hologram-container {
    position: absolute;
    left: 75%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

#hologram-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen; /* Le Saint Graal : Rends le fond noir invisible ! */
    filter: drop-shadow(0 0 25px rgba(0, 210, 255, 0.8)) brightness(1.2) contrast(1.15) sepia(0.3) hue-rotate(-10deg);
    -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 75%);
    mask-image: radial-gradient(circle at center, black 35%, transparent 75%);
    border-radius: 50%;
}


/* ── Animated Nebula Background Behind Voice Hero ── */
.voice-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 200px 200px at 40% 40%, rgba(0, 200, 255, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 250px 180px at 60% 60%, rgba(124, 93, 250, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 180px 250px at 50% 30%, rgba(0, 214, 143, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: nebulaBreath 8s ease-in-out infinite alternate;
    filter: blur(30px);
}

/* ── Secondary glow ring ── */
.voice-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(0, 200, 255, 0.06);
    box-shadow:
        0 0 40px rgba(0, 200, 255, 0.05),
        inset 0 0 40px rgba(0, 200, 255, 0.03);
    pointer-events: none;
    z-index: 0;
    animation: heroRingPulse 4s ease-in-out infinite;
}

@keyframes nebulaBreath {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        filter: blur(30px) hue-rotate(0deg);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        filter: blur(35px) hue-rotate(10deg);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: blur(30px) hue-rotate(-5deg);
    }
}

@keyframes heroRingPulse {

    0%,
    100% {
        transform: translate(-50%, -55%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -55%) scale(1.15);
        opacity: 0.8;
    }
}

.voice-pulse-container {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    animation: pulse-expand 3s ease-out infinite;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.15);
}

.ring-2 {
    animation-delay: 1s;
    border-color: rgba(124, 93, 250, 0.6);
}

.ring-3 {
    animation-delay: 2s;
    border-color: rgba(0, 214, 143, 0.5);
}

@keyframes pulse-expand {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }

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

/* ── Voice Center Button — Full 3D with layered glow ── */
.voice-center {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
    position: relative;
    /* 3D depth layers */
    box-shadow:
        0 0 20px rgba(0, 200, 255, 0.3),
        0 0 40px rgba(0, 200, 255, 0.15),
        0 0 80px rgba(124, 93, 250, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

/* Inner glass reflection */
.voice-center::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 10%;
    width: 80%;
    height: 45%;
    border-radius: 50%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.05) 60%,
            transparent 100%);
    pointer-events: none;
}

/* Outer rotating glow ring */
.voice-center::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            rgba(0, 200, 255, 0.3) 20%,
            transparent 40%,
            rgba(124, 93, 250, 0.3) 60%,
            transparent 80%);
    animation: voiceGlowSpin 3s linear infinite;
    z-index: -1;
    filter: blur(3px);
}

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

.voice-center:hover {
    transform: scale(1.12);
    box-shadow:
        0 0 30px rgba(0, 200, 255, 0.5),
        0 0 60px rgba(0, 200, 255, 0.25),
        0 0 120px rgba(124, 93, 250, 0.15),
        0 12px 32px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.voice-center svg {
    width: 30px;
    height: 30px;
    stroke: white;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

.voice-status {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--fg-secondary);
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.voice-transcript {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    min-height: 24px;
    text-shadow: 0 0 12px rgba(0, 200, 255, 0.3);
    position: relative;
    z-index: 1;
}

/* ── Voice Hero listening state ── */
.voice-pulse-container.listening .pulse-ring {
    border-color: var(--success);
    animation-duration: 1.5s;
    box-shadow: 0 0 20px rgba(0, 214, 143, 0.2);
}

.voice-pulse-container.listening .voice-center {
    background: linear-gradient(135deg, var(--success), #00b894);
    box-shadow:
        0 0 25px rgba(0, 214, 143, 0.4),
        0 0 50px rgba(0, 214, 143, 0.2),
        0 0 100px rgba(0, 214, 143, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   STATS GRID — Premium Glass Cards with Holographic Borders
   ═══════════════════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: default;
    /* Deep Glassmorphism */
    background: rgba(8, 12, 28, 0.5);
    border: 1px solid rgba(100, 160, 255, 0.06);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    /* 3D setup */
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Animated holographic border on hover */
.stat-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: inherit;
    background: conic-gradient(from var(--edge-angle, 0deg),
            rgba(0, 200, 255, 0) 0%,
            rgba(0, 200, 255, 0.4) 8%,
            rgba(124, 93, 250, 0.4) 16%,
            rgba(0, 200, 255, 0) 24%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: statCardSpin 4s linear infinite;
}

/* Glass reflection sweep */
.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.7s ease;
    pointer-events: none;
}

@keyframes statCardSpin {
    to {
        --edge-angle: 360deg;
    }
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover::after {
    left: 130%;
}

.stat-card:hover {
    background: rgba(12, 16, 32, 0.6);
    transform: perspective(800px) rotateX(-2deg) rotateY(3deg) translateY(-6px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(0, 200, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 200, 255, 0.12);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

/* Glow behind icon */
.stat-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: inherit;
    opacity: 0.2;
    filter: blur(8px);
    z-index: -1;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1.5px;
    display: block;
    line-height: 1;
    background: linear-gradient(135deg, var(--fg-primary) 0%, rgba(0, 200, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 11px;
    color: var(--fg-secondary);
    margin-top: 4px;
    display: block;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION TITLES — Premium with Glow
   ═══════════════════════════════════════════════════════════════ */
.section-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--fg-primary);
    letter-spacing: -0.3px;
    position: relative;
    padding-left: 14px;
}

/* Accent bar before section titles */
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    border-radius: 2px;
    background: var(--accent-gradient);
    box-shadow: 0 0 8px rgba(0, 200, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES GRID — Holographic Premium Cards
   ═══════════════════════════════════════════════════════════════ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.feature-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Deep Glassmorphism */
    background: rgba(8, 12, 28, 0.45);
    border: 1px solid rgba(100, 160, 255, 0.05);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    /* 3D */
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Animated top gradient line */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00c8ff, #7c5dfa, #00d68f);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.35s ease;
    animation: featureLineShift 3s linear infinite;
}

@keyframes featureLineShift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Glass shine sweep */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.feature-card:hover::after {
    left: 130%;
}

.feature-card:hover {
    background: rgba(12, 16, 32, 0.6);
    transform: perspective(600px) rotateX(-3deg) rotateY(2deg) translateY(-7px) scale(1.02);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 200, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 200, 255, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-emoji {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 11px;
    color: var(--fg-secondary);
    line-height: 1.5;
}

.feature-status {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 12px;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-status.active {
    background: rgba(0, 214, 143, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 214, 143, 0.2);
    box-shadow: 0 0 8px rgba(0, 214, 143, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   CHAT CONTAINER
   ═══════════════════════════════════════════════════════════════ */
.chat-container {
    border-radius: var(--radius-lg);
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: chatIn 0.3s ease-out;
}

@keyframes chatIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 200, 255, 0.2);
}

.chat-message.user .chat-avatar {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2);
}

.chat-bubble {
    background: rgba(8, 12, 28, 0.5);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    max-width: 80%;
    border: 1px solid rgba(100, 160, 255, 0.05);
}

.chat-bubble p {
    font-size: 13px;
    line-height: 1.5;
}

.chat-time {
    font-size: 10px;
    color: var(--fg-muted);
    margin-top: 4px;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   VOICE PAGE (Big pulse)
   ═══════════════════════════════════════════════════════════════ */
.voice-page-hero {
    text-align: center;
    padding: 60px 0;
}

.hero-ai-cta {
    position: absolute;
    top: 28px;
    right: 28px;
    left: max(52%, 520px) !important;
    bottom: auto !important;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    width: auto;
    max-width: min(520px, calc(100% - 56px));
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.hero-ai-cta-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.86);
    text-align: left;
    text-wrap: balance;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-ai-cta-button {
    flex: 0 0 auto;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #2be6a8, #0ca678);
    color: #041016;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(12, 166, 120, 0.32);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hero-ai-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(12, 166, 120, 0.4);
}

.voice-quickstart {
    margin: 8px 0 34px;
    padding: 24px 26px;
    border-radius: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
}

.voice-quickstart-wide {
    margin: 0 0 28px;
}

.voice-quickstart-copy h2 {
    margin: 8px 0 10px;
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
}

.voice-quickstart-copy p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.voice-quickstart-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 200, 255, 0.12);
    border: 1px solid rgba(0, 200, 255, 0.18);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.voice-quickstart-steps {
    display: grid;
    gap: 14px;
}

.voice-quickstart-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.voice-quickstart-step strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.voice-quickstart-step p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.voice-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.95), rgba(124, 93, 250, 0.9));
    color: white;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(0, 200, 255, 0.22);
}

.voice-quickstart-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.voice-quickstart-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.voice-quickstart-btn.primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 12px 28px rgba(0, 200, 255, 0.22);
}

.voice-quickstart-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-quickstart-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .hero-ai-cta {
        position: static;
        margin: 18px auto 0;
        flex-direction: column;
        align-items: stretch;
        width: min(100%, 360px);
    }

    .hero-ai-cta-label {
        text-align: center;
    }

    .voice-quickstart {
        grid-template-columns: 1fr;
        padding: 20px 18px;
        gap: 20px;
    }

    .voice-quickstart-actions {
        flex-direction: column;
    }

    .voice-quickstart-btn {
        width: 100%;
    }
}

.big-pulse-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.big-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    animation: pulse-expand 4s ease-out infinite;
}

.big-pulse-ring.ring-2 {
    animation-delay: 1s;
}

.big-pulse-ring.ring-3 {
    animation-delay: 2s;
}

.big-pulse-ring.ring-4 {
    animation-delay: 3s;
}

.big-voice-center {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    transition: all var(--transition);
    z-index: 2;
}

.big-voice-center:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px var(--accent-glow), 0 0 100px rgba(124, 93, 250, 0.15);
}

.big-voice-center svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.voice-big-status {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.voice-big-transcript {
    font-size: 16px;
    color: var(--accent);
    min-height: 24px;
}

.voice-commands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.voice-cmd {
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--fg-secondary);
    cursor: pointer;
    transition: all var(--transition);
    background: rgba(8, 12, 28, 0.3);
    border: 1px solid rgba(100, 160, 255, 0.04);
}

.voice-cmd:hover {
    background: rgba(12, 16, 32, 0.5);
    color: var(--fg-primary);
    transform: translateY(-3px);
    border-color: rgba(0, 200, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   CHAMELEON PAGE
   ═══════════════════════════════════════════════════════════════ */
.chameleon-header {
    text-align: center;
    margin-bottom: 32px;
}

.chameleon-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.chameleon-header p {
    color: var(--fg-secondary);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.theme-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.theme-preview {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
}

.theme-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition);
}

.theme-card:hover .theme-swatch {
    transform: scale(1.2);
}

.theme-info {
    padding: 16px;
    background: var(--bg-secondary);
}

.theme-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.theme-info p {
    font-size: 11px;
    color: var(--fg-secondary);
    line-height: 1.4;
}

.chameleon-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   CODE RUNNER PAGE
   ═══════════════════════════════════════════════════════════════ */
.code-header {
    margin-bottom: 24px;
}

.code-header h2 {
    font-size: 24px;
    margin-bottom: 4px;
}

.code-header p {
    color: var(--fg-secondary);
}

.code-area {
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}

.code-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.code-filename {
    font-size: 12px;
    color: var(--fg-secondary);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

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

.btn-icon {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    color: var(--fg-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition);
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    color: var(--fg-primary);
    border-color: var(--accent);
}

.code-content {
    padding: 16px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--fg-primary);
    overflow-x: auto;
    tab-size: 4;
}

.code-output {
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
}

.output-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
}

.output-content {
    padding: 16px;
    font-family: monospace;
    font-size: 12px;
    color: var(--success);
    line-height: 1.5;
}

.barrier-display {
    margin-top: 24px;
}

.barrier-display h3 {
    font-size: 14px;
    margin-bottom: 12px;
}

.barriers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.barrier-item {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
}

.barrier-item span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
}

.barrier-item.ok {
    border-color: rgba(0, 206, 201, 0.2);
}

.barrier-item.ok span {
    background: rgba(0, 206, 201, 0.15);
    color: var(--success);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn-primary {
    padding: 10px 24px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: white;
    border: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 200, 255, 0.15);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 120%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 200, 255, 0.25), 0 0 30px rgba(0, 200, 255, 0.1);
}

.btn-secondary {
    padding: 10px 24px;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--fg-secondary);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--fg-primary);
    border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   QUICK ACTIONS (TV, Music pages)
   ═══════════════════════════════════════════════════════════════ */
.page-desc {
    color: var(--fg-secondary);
    margin-bottom: 24px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.quick-action {
    padding: 22px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    color: var(--fg-primary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: var(--font-display);
    text-align: center;
    background: rgba(8, 14, 32, 0.45);
    border: 1px solid rgba(100, 160, 255, 0.06);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.quick-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.quick-action:hover::before {
    left: 130%;
}

.quick-action:hover {
    background: rgba(12, 20, 44, 0.6);
    transform: perspective(600px) rotateX(-2deg) translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 200, 255, 0.06);
    border-color: rgba(0, 200, 255, 0.15);
}

.tv-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.tv-section {
    padding: 22px;
    border-radius: var(--radius-md);
    background: rgba(8, 14, 32, 0.4);
    border: 1px solid rgba(100, 160, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.tv-section:hover {
    background: rgba(12, 20, 44, 0.5);
    border-color: rgba(0, 200, 255, 0.1);
}

.tv-section h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════════════════════════════════════ */
.search-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-lg);
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--fg-primary);
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    transition: border-color var(--transition);
}

.search-input:focus {
    border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   SETTINGS PAGE
   ═══════════════════════════════════════════════════════════════ */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.setting-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(8, 14, 32, 0.4);
    border: 1px solid rgba(100, 160, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.setting-card:hover {
    background: rgba(12, 20, 44, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 200, 255, 0.05);
    border-color: rgba(0, 200, 255, 0.12);
}

.setting-card h3 {
    font-family: var(--font-display);
    font-size: 14px;
    margin-bottom: 4px;
}

.setting-card p {
    font-size: 12px;
    color: var(--fg-secondary);
    margin-bottom: 8px;
}

/* ── Full-width settings field (API keys) ── */
.settings-field.full {
    flex: 1 1 100%;
    min-width: 100%;
}

/* ── Password/API key inputs ── */
.settings-field input[type="password"],
.settings-field input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(100, 160, 255, 0.1);
    border-radius: 10px;
    color: var(--fg-primary);
    font-size: 13px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    transition: all 0.3s ease;
}

.settings-field input[type="password"]:focus,
.settings-field input[type="number"]:focus {
    outline: none;
    border-color: var(--accent, #00c8ff);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

/* ── Premium Range Sliders ── */
.settings-field input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(0, 200, 255, 0.15), rgba(124, 93, 250, 0.15));
    outline: none;
    cursor: pointer;
    margin: 8px 0;
}

.settings-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c8ff, #7c5dfa);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.3), 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.settings-field input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 18px rgba(0, 200, 255, 0.5), 0 3px 10px rgba(0, 0, 0, 0.4);
}

.settings-field input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c8ff, #7c5dfa);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — See comprehensive breakpoints at bottom of file
   (Levels 1-4: 1440px → 1280px → 1024px → 768px + height fix)
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   SYSTEM CONSOLE — Holographic Terminal Panel
   ═══════════════════════════════════════════════════════════════ */
.system-console {
    position: fixed;
    bottom: 54px;
    left: var(--sidebar-width, 260px);
    right: 0;
    z-index: 900;
    background: rgba(5, 8, 20, 0.85);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid rgba(0, 200, 255, 0.12);
    font-family: var(--font-mono, 'JetBrains Mono', 'Consolas', monospace);
    font-size: 12px;
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: none !important; /* Hides console so it does not overlap S1m0ne */
}

/* Animated glow line on top */
.system-console::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 200, 255, 0.3) 20%,
            rgba(124, 93, 250, 0.3) 50%,
            rgba(0, 200, 255, 0.3) 80%,
            transparent 100%);
    animation: consoleGlow 6s ease-in-out infinite;
}

@keyframes consoleGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.system-console.collapsed .console-body {
    display: none;
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 16px;
    cursor: pointer;
    color: var(--accent, #00c8ff);
    font-weight: 600;
    font-size: 13px;
    font-family: var(--font-display, 'Outfit', sans-serif);
    background: rgba(0, 200, 255, 0.04);
    user-select: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.console-header:hover {
    background: rgba(0, 200, 255, 0.08);
}

.console-toggle {
    font-size: 16px;
    transition: transform 0.2s;
}

.system-console.collapsed .console-toggle {
    transform: rotate(-90deg);
}

.console-body {
    max-height: 200px;
    overflow-y: auto;
    padding: 8px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 200, 255, 0.3) transparent;
    background: rgba(3, 5, 15, 0.4);
}

.console-output {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.console-line {
    color: #7db4d0;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    text-shadow: 0 0 1px rgba(125, 180, 208, 0.3);
}

.console-line.error {
    color: #ff6b6b;
    text-shadow: 0 0 4px rgba(255, 107, 107, 0.3);
}

.console-line.system {
    color: #00c8ff;
    text-shadow: 0 0 4px rgba(0, 200, 255, 0.3);
}

.console-line.warning {
    color: #ffa502;
    text-shadow: 0 0 4px rgba(255, 165, 2, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   COMMAND INPUT BAR — Floating Glass Command Center
   ═══════════════════════════════════════════════════════════════ */
.command-bar {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width, 260px);
    right: 0;
    z-index: 1000;
    background: rgba(5, 8, 20, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(100, 160, 255, 0.08);
    padding: 8px 16px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

/* Animated accent line */
.command-bar::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 200, 255, 0.2) 30%,
            rgba(124, 93, 250, 0.15) 50%,
            rgba(0, 200, 255, 0.2) 70%,
            transparent 100%);
}

.command-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Mic Button — 3D with rotating glow ── */
.mic-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 200, 255, 0.5);
    background: rgba(0, 200, 255, 0.08);
    color: var(--accent, #00c8ff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    box-shadow:
        0 0 12px rgba(0, 200, 255, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.mic-btn:hover {
    background: rgba(0, 200, 255, 0.15);
    box-shadow:
        0 0 20px rgba(0, 200, 255, 0.25),
        0 0 40px rgba(0, 200, 255, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    border-color: rgba(0, 200, 255, 0.7);
}

.mic-btn.listening {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
    animation: mic-pulse 1.2s ease-in-out infinite;
    box-shadow:
        0 0 15px rgba(255, 68, 68, 0.3),
        0 0 30px rgba(255, 68, 68, 0.15);
}

@keyframes mic-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4),
            0 0 15px rgba(255, 68, 68, 0.2);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(255, 68, 68, 0),
            0 0 25px rgba(255, 68, 68, 0.3);
    }
}

/* ── Command Input — Frosted Glass ── */
.command-input {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(100, 160, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--fg-primary, #eef2ff);
    padding: 0 16px;
    font-size: 14px;
    font-family: var(--font, 'Outfit', sans-serif);
    outline: none;
    transition: all 0.35s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.command-input:focus {
    border-color: rgba(0, 200, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(0, 200, 255, 0.08);
}

.command-input::placeholder {
    color: rgba(100, 120, 160, 0.5);
}

/* ── Send Button — Premium 3D Gradient ── */
.send-btn {
    height: 40px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: var(--accent-gradient, linear-gradient(135deg, #00c8ff, #0091e3));
    color: #fff;
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(0, 200, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Shine sweep on hover */
.send-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.send-btn:hover::before {
    left: 120%;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(0, 200, 255, 0.3),
        0 0 30px rgba(0, 200, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.send-btn:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.1s;
}

/* Extra bottom padding so main content isn't hidden behind fixed bars */
.main-content {
    padding-bottom: 280px !important;
}

/* Responsive: console and command bar for small screens */
@media (max-width: 768px) {

    .system-console,
    .command-bar {
        left: var(--sidebar-collapsed, 72px);
    }
}

/* ═══════════════════════════════════════════════════════════════
   ONBOARDING WIZARD
   ═══════════════════════════════════════════════════════════════ */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: radial-gradient(ellipse at 30% 20%, rgba(0, 100, 200, 0.15), transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(120, 0, 200, 0.1), transparent 50%),
        rgba(5, 5, 15, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: obFadeIn 0.6s ease-out;
}

@keyframes obFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.onboarding-card {
    width: min(560px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(15, 15, 25, 0.85);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 0 80px rgba(0, 100, 255, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    animation: obSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

@keyframes obSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.onboarding-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.onboarding-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #a855f7);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.onboarding-step {
    display: none;
    padding: 40px 40px 36px;
    text-align: center;
    animation: obStepIn 0.4s ease-out;
}

.onboarding-step.active {
    display: block;
}

@keyframes obStepIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.onboarding-hero-icon {
    font-size: 64px;
    margin-bottom: 16px;
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
    animation: obIconFloat 3s ease-in-out infinite;
}

@keyframes obIconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.onboarding-done-icon {
    animation: obConfetti 0.6s ease-out;
}

@keyframes obConfetti {
    0% {
        transform: scale(0.3) rotate(-20deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.3) rotate(5deg);
    }

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

.onboarding-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #f0f0f5, #00d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.onboarding-desc {
    font-size: 14px;
    color: var(--fg-secondary);
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.onboarding-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.onboarding-feat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.08);
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-primary);
    transition: all 0.2s ease;
}

.onboarding-feat:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.onboarding-feat span {
    font-size: 18px;
    flex-shrink: 0;
}

/* Form inputs */
.onboarding-form {
    text-align: left;
    margin-bottom: 24px;
}

.onboarding-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.onboarding-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.onboarding-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-secondary);
    letter-spacing: 0.3px;
}

.onboarding-field input,
.onboarding-field select {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--fg-primary);
    font-size: 14px;
    font-family: var(--font);
    transition: all 0.2s ease;
    outline: none;
}

.onboarding-field input:focus,
.onboarding-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.onboarding-field input::placeholder {
    color: var(--fg-muted);
}

.onboarding-field select option {
    background: rgba(12, 16, 36, 0.95);
    color: var(--fg-primary);
}

/* Child mode toggle */
.onboarding-child-toggle {
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 200, 0, 0.04);
    border: 1px solid rgba(255, 200, 0, 0.1);
}

.onboarding-switch-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--fg-primary);
    font-weight: 500;
    user-select: none;
}

.onboarding-switch-label input {
    display: none;
}

.onboarding-switch {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.onboarding-switch::after {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.onboarding-switch-label input:checked+.onboarding-switch {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.onboarding-switch-label input:checked+.onboarding-switch::after {
    left: 23px;
}

/* Buttons */
.onboarding-btn-primary {
    padding: 14px 36px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #00d4ff, #0091e3);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.onboarding-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
    filter: brightness(1.1);
}

.onboarding-btn-primary:active {
    transform: translateY(0);
}

.onboarding-btn-secondary {
    padding: 14px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    color: var(--fg-secondary);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.onboarding-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--fg-primary);
}

.onboarding-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   LICENSE TIER BADGES
   ═══════════════════════════════════════════════════════════════ */
.license-tier-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--fg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.license-tier-badge.pro {
    background: linear-gradient(135deg, #00d4ff, #0091e3);
    color: #fff;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 212, 255, 0.3);
}

.license-tier-badge.family {
    background: linear-gradient(135deg, #a855f7, #6c5ce7);
    color: #fff;
    border: none;
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.3);
}

.license-tier-badge.lifetime {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    border: none;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   🦎 CHAMELEON THEME ENGINE
   ═══════════════════════════════════════════════════════════════ */

.chameleon-header {
    text-align: center;
    margin-bottom: 24px;
}

.chameleon-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.chameleon-header p {
    color: var(--fg-muted);
    font-size: 14px;
}

/* Live preview strip */
.chameleon-preview-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 24px;
}

.preview-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.preview-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-secondary);
    margin-left: auto;
    letter-spacing: 0.5px;
}

/* Theme cards grid */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.theme-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.theme-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.theme-card.active::after {
    content: '✓ ACTIF';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

/* Color preview bar at top of card */
.theme-colors {
    height: 48px;
    display: flex;
    position: relative;
}

.theme-colors>div {
    flex: 1;
    transition: all 0.3s ease;
}

/* Card info */
.theme-info {
    padding: 14px 16px;
}

.theme-info .name {
    font-size: 15px;
    font-weight: 700;
    color: var(--fg-primary);
    margin-bottom: 4px;
}

.theme-info .desc {
    font-size: 11px;
    color: var(--fg-muted);
    line-height: 1.4;
}

.theme-info .tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.theme-tag {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--fg-secondary);
    text-transform: uppercase;
}

.chameleon-actions {
    text-align: center;
    margin-top: 8px;
}

/* Theme transition overlay */
.theme-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-transition-overlay.flash {
    opacity: 1;
    animation: theme-flash 0.6s ease-out forwards;
}

@keyframes theme-flash {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
    }
}

body.theme-transitioning,
body.theme-transitioning * {
    transition: background-color 0.5s ease, color 0.3s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

/* ── Chameleon Section Titles ── */
.chameleon-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 6px;
}

.chameleon-section-icon {
    font-size: 24px;
}

.chameleon-section-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--fg-primary);
    letter-spacing: -0.3px;
}

.chameleon-section-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.12);
    color: var(--accent);
    text-transform: uppercase;
    margin-left: auto;
}

.chameleon-section-desc {
    font-size: 13px;
    color: var(--fg-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ── WRAPPER CARDS GRID ── */
.wrappers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 16px;
}

.wrapper-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.wrapper-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
}

.wrapper-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 25px var(--accent-glow);
}

.wrapper-card.active::after {
    content: '✓ ACTIF';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

/* Wrapper preview area — image or gradient simulation */
.wrapper-preview {
    height: 140px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

/* Preview IMAGE — covers the full tile preview area */
.wrapper-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
    z-index: 1;
}

.wrapper-card:hover .wrapper-preview-img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Fallback CSS visual */
.wrapper-preview-visual {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 0;
}

.wrapper-preview-sidebar {
    opacity: 0.9;
}

.wrapper-preview-main {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
}

.wrapper-preview-topbar {
    height: 12px;
    border-radius: 3px;
    opacity: 0.3;
}

.wrapper-preview-cards {
    display: flex;
    gap: 4px;
    flex: 1;
}

.wrapper-preview-card {
    flex: 1;
    border-radius: 3px;
    opacity: 0.2;
}

.wrapper-preview-label {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    z-index: 3;
}

/* ♥ Favorite button */
.wrapper-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.wrapper-card:hover .wrapper-fav-btn {
    opacity: 1;
}

.wrapper-fav-btn:hover {
    background: rgba(255, 50, 80, 0.3);
    color: #ff3250;
    transform: scale(1.15);
}

.wrapper-fav-btn.active {
    opacity: 1;
    color: #ff3250;
    background: rgba(255, 50, 80, 0.2);
    animation: favPulse 0.4s ease;
}

@keyframes favPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* 🗑️ Delete button — AI wrappers only */
.wrapper-delete-btn {
    position: absolute;
    bottom: 6px;
    left: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.wrapper-card:hover .wrapper-delete-btn {
    opacity: 1;
}

.wrapper-delete-btn:hover {
    background: rgba(255, 50, 50, 0.4);
    color: #ff4040;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 50, 50, 0.3);
}

/* ✓ Active badge */
.wrapper-active-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--success);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 6px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 206, 201, 0.4);
}

/* Wrapper info area */
.wrapper-info {
    padding: 14px 16px 16px;
}

.wrapper-info .wrapper-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--fg-primary);
    margin-bottom: 3px;
}

.wrapper-info .wrapper-desc {
    font-size: 11px;
    color: var(--fg-muted);
    line-height: 1.4;
    margin-bottom: 8px;
}

.wrapper-info .wrapper-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.wrapper-tag {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--fg-secondary);
    text-transform: uppercase;
}

.wrapper-tag.tier-free {
    background: rgba(0, 206, 201, 0.1);
    color: var(--success);
}

.wrapper-tag.tier-ai {
    background: rgba(155, 89, 182, 0.15);
    color: #bb86fc;
    box-shadow: 0 0 6px rgba(155, 89, 182, 0.2);
}

/* ── AI GENERATOR PANEL ── */
.ai-generator-panel {
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 8px;
}

.ai-gen-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.ai-gen-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--fg-primary);
    font-size: 14px;
    font-family: var(--font);
    transition: border-color 0.2s ease;
}

.ai-gen-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.ai-gen-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: var(--accent-gradient);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ai-gen-btn:hover {
    transform: scale(1.03);
    filter: brightness(1.15);
}

.ai-gen-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ai-gen-status {
    padding: 8px 0;
    font-size: 13px;
    color: var(--fg-secondary);
}

.ai-gen-step {
    display: inline-block;
}

.ai-gen-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.ai-gen-preset {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--fg-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-gen-preset:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════════════════════
   📻 OLD RADIO CSS — DISABLED (replaced by radio-marantz.css)
   ═══════════════════════════════════════════════════════════════ */
/* All radio styles are now in radio-marantz.css */


/* ═══════════════════════════════════════════════════════════════
   📻 RADIO MONDIALE PAGE
   ═══════════════════════════════════════════════════════════════ */

.radio-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Now Playing Bar ── */
.radio-now-playing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(108, 92, 231, 0.25);
    margin-bottom: 20px;
    animation: fadeIn 0.4s ease-out;
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.radio-np-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

/* Animated waveform bars */
.radio-np-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 28px;
    flex-shrink: 0;
}

.radio-np-wave span {
    width: 4px;
    border-radius: 2px;
    background: var(--accent-gradient);
    animation: radioWave 1s ease-in-out infinite;
}

.radio-np-wave span:nth-child(1) {
    height: 40%;
    animation-delay: 0s;
}

.radio-np-wave span:nth-child(2) {
    height: 70%;
    animation-delay: 0.15s;
}

.radio-np-wave span:nth-child(3) {
    height: 100%;
    animation-delay: 0.3s;
}

.radio-np-wave span:nth-child(4) {
    height: 55%;
    animation-delay: 0.45s;
}

.radio-np-wave span:nth-child(5) {
    height: 85%;
    animation-delay: 0.6s;
}

@keyframes radioWave {

    0%,
    100% {
        transform: scaleY(0.4);
    }

    50% {
        transform: scaleY(1);
    }
}

.radio-np-details {
    min-width: 0;
}

.radio-np-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--fg-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-np-meta {
    font-size: 12px;
    color: var(--fg-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-np-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.radio-btn-fav,
.radio-btn-stop {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-primary);
}

.radio-btn-fav:hover {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
    transform: scale(1.1);
}

.radio-btn-fav.fav-active {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.radio-btn-stop:hover {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.4);
    transform: scale(1.1);
}

/* ── Search Bar ── */
.radio-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.radio-search-bar input {
    flex: 1;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--fg-primary);
    font-size: 14px;
    font-family: var(--font);
    transition: all 0.25s ease;
    outline: none;
}

.radio-search-bar input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px var(--accent-glow);
}

.radio-search-bar input::placeholder {
    color: var(--fg-muted);
}

.radio-btn-discover {
    padding: 12px 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(108, 92, 231, 0.1));
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.radio-btn-discover:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(108, 92, 231, 0.2));
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-1px);
}

/* ── Quick Filters ── */
.radio-quick-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.radio-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.radio-filter-label {
    font-size: 11px;
    color: var(--fg-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 55px;
}

.radio-filter {
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--fg-secondary);
    font-size: 11px;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-filter:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--accent);
    transform: translateY(-1px);
}

/* ── Tabs ── */
.radio-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 3px;
    border: 1px solid var(--border);
}

.radio-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--fg-secondary);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-tab:hover {
    color: var(--fg-primary);
    background: rgba(255, 255, 255, 0.04);
}

.radio-tab.active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 2px 10px var(--accent-glow);
}

/* ── Station Grid ── */
.radio-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.25s ease;
}

.radio-card:hover {
    background: rgba(0, 212, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.15);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.radio-card:active {
    transform: scale(0.99);
}

.radio-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(108, 92, 231, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.radio-card-favicon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.radio-card-emoji {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.radio-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.radio-card-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.radio-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.radio-tag.country {
    background: rgba(67, 233, 123, 0.1);
    color: #43e97b;
    border: 1px solid rgba(67, 233, 123, 0.15);
}

.radio-tag.genre {
    background: rgba(108, 92, 231, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(108, 92, 231, 0.15);
}

.radio-card-quality {
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
    line-height: 1.5;
}

.radio-card-bitrate {
    font-size: 10px;
    color: var(--fg-muted);
    font-weight: 400;
}

/* ── Empty / Loading States ── */
.radio-empty,
.radio-loading {
    text-align: center;
    padding: 48px 24px;
    color: var(--fg-muted);
    font-size: 14px;
}

.radio-loading {
    animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ── Toast notification ── */
.radio-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: rgba(10, 10, 25, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--fg-primary);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.radio-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   🎯 3D EFFECTS, DEPTH & RELIEF — PREMIUM LAYER
   ═══════════════════════════════════════════════════════════════ */

/* ── Perspective container for all pages ── */
.main-content {
    perspective: 1200px;
}

/* ── Hub cards: 3D tilt on hover ── */
.hub-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.hub-card:hover {
    transform: perspective(800px) rotateX(-2deg) rotateY(3deg) translateY(-6px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 212, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ── Inner light effect on hub cards ── */
.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 30% 20%,
            rgba(0, 212, 255, 0.04) 0%,
            transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hub-card:hover::before {
    opacity: 1;
}

/* ── Section titles: floating depth ── */
.section-title,
.page-section-title,
h2 {
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 212, 255, 0.15);
}

/* ── Page title: holographic shimmer ── */
.page-title {
    background: linear-gradient(90deg,
            var(--fg-primary) 0%,
            var(--accent) 25%,
            var(--fg-primary) 50%,
            var(--accent) 75%,
            var(--fg-primary) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holographicShimmer 6s linear infinite;
}

@keyframes holographicShimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* ── Wrapper cards: 3D lift + glow pulse ── */
.wrapper-card {
    transform-style: preserve-3d;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.wrapper-card:hover {
    transform: perspective(600px) rotateX(-1deg) translateY(-8px) scale(1.03);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ── Quick buttons: 3D press effect ── */
.quick-btn {
    transform-style: preserve-3d;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.quick-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 15px rgba(0, 212, 255, 0.15);
}

.quick-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ── Voice pulse: 3D depth ring ── */
.voice-pulse-container {
    transform-style: preserve-3d;
}

.voice-center {
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 60px var(--accent-glow),
        inset 0 -4px 8px rgba(0, 0, 0, 0.3),
        inset 0 4px 8px rgba(255, 255, 255, 0.1);
}

/* ── Topbar: frosted depth ── */
.topbar {
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

/* ── Status badge: embossed 3D ── */
.status-badge {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* ── Sidebar nav items: subtle 3D on hover ── */
.nav-item:hover {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    box-shadow:
        0 2px 12px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset -3px 0 0 var(--accent);
}

/* ── Animated background grid (subtle parallax) ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(100, 100, 255, 0.02) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 212, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: ambientShift 20s ease-in-out infinite alternate;
}

@keyframes ambientShift {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* ── Grid items: staggered entrance animation ── */
.hub-grid .hub-card {
    animation: cardEntrance 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.hub-grid .hub-card:nth-child(1) {
    animation-delay: 0.05s;
}

.hub-grid .hub-card:nth-child(2) {
    animation-delay: 0.1s;
}

.hub-grid .hub-card:nth-child(3) {
    animation-delay: 0.15s;
}

.hub-grid .hub-card:nth-child(4) {
    animation-delay: 0.2s;
}

.hub-grid .hub-card:nth-child(5) {
    animation-delay: 0.25s;
}

.hub-grid .hub-card:nth-child(6) {
    animation-delay: 0.3s;
}

.hub-grid .hub-card:nth-child(7) {
    animation-delay: 0.35s;
}

.hub-grid .hub-card:nth-child(8) {
    animation-delay: 0.4s;
}

.hub-grid .hub-card:nth-child(9) {
    animation-delay: 0.45s;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: perspective(800px) rotateX(-5deg) translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: perspective(800px) rotateX(0) translateY(0) scale(1);
    }
}

/* ── Wrappers grid: staggered entrance ── */
#wrappers-grid .wrapper-card {
    animation: wrapperEntrance 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

#wrappers-grid .wrapper-card:nth-child(1) {
    animation-delay: 0.03s;
}

#wrappers-grid .wrapper-card:nth-child(2) {
    animation-delay: 0.06s;
}

#wrappers-grid .wrapper-card:nth-child(3) {
    animation-delay: 0.09s;
}

#wrappers-grid .wrapper-card:nth-child(4) {
    animation-delay: 0.12s;
}

#wrappers-grid .wrapper-card:nth-child(5) {
    animation-delay: 0.15s;
}

#wrappers-grid .wrapper-card:nth-child(6) {
    animation-delay: 0.18s;
}

#wrappers-grid .wrapper-card:nth-child(7) {
    animation-delay: 0.21s;
}

#wrappers-grid .wrapper-card:nth-child(8) {
    animation-delay: 0.24s;
}

#wrappers-grid .wrapper-card:nth-child(9) {
    animation-delay: 0.27s;
}

#wrappers-grid .wrapper-card:nth-child(10) {
    animation-delay: 0.30s;
}

#wrappers-grid .wrapper-card:nth-child(11) {
    animation-delay: 0.33s;
}

#wrappers-grid .wrapper-card:nth-child(12) {
    animation-delay: 0.36s;
}

#wrappers-grid .wrapper-card:nth-child(13) {
    animation-delay: 0.39s;
}

@keyframes wrapperEntrance {
    from {
        opacity: 0;
        transform: perspective(600px) rotateY(-8deg) translateX(-20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: perspective(600px) rotateY(0) translateX(0) scale(1);
    }
}

/* ── Glass panels: inner light reflection ── */
.glass,
.ai-generator-panel,
.chat-bubble {
    position: relative;
    overflow: hidden;
}

.glass::after,
.ai-generator-panel::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.02) 0%,
            transparent 70%);
    transform: rotate(-15deg);
    pointer-events: none;
}

/* ── Hub buttons: micro bounce on hover ── */
.hub-btn {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hub-btn:hover {
    animation: microBounce 0.3s ease;
}

@keyframes microBounce {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.08);
    }

    70% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1.05);
    }
}

/* ── Feature tags: subtle float ── */
.hub-feature {
    transition: all 0.2s ease;
}

.hub-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 212, 255, 0.15);
    background: rgba(0, 212, 255, 0.15);
}

/* ── Console: depth embed ── */
.console-container {
    box-shadow:
        inset 0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(0, 0, 0, 0.3),
        0 -1px 0 rgba(255, 255, 255, 0.03);
}

/* ── Input bar: recessed 3D field ── */
.chat-input-container input,
.chat-input-container textarea {
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

/* ── Sidebar: depth edge highlights ── */
.sidebar {
    box-shadow:
        4px 0 20px rgba(0, 0, 0, 0.4),
        inset -1px 0 0 rgba(255, 255, 255, 0.03),
        inset 1px 0 0 rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   🖥️ RESPONSIVE — LAPTOP SCREENS (1366x768 and similar)
   This is the CRITICAL section for small-screen support.
   ═══════════════════════════════════════════════════════════════ */

/* ── Level 1: Screens ≤1440px (most laptops) ── */
@media (max-width: 1440px) {
    :root {
        --sidebar-width: 200px;
    }

    .sidebar-logo {
        padding: 12px 10px;
    }

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

    .logo-text h1 {
        font-size: 14px;
    }

    .topbar {
        padding: 0 20px;
        height: 56px;
    }

    .page-title {
        font-size: 18px;
    }

    .page-content {
        padding: 16px 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .hub-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 12px;
    }

    .hub-card {
        padding: 16px;
    }

    .hub-card-header h3 {
        font-size: 14px;
    }

    .stat-card {
        padding: 14px;
    }
}

/* ── Level 2: Screens ≤1280px (small laptops, 1366x768 at 100% scaling) ── */
@media (max-width: 1280px) {
    :root {
        --sidebar-width: 180px;
    }

    html {
        font-size: 13px;
    }


    .sidebar-section-label {
        font-size: 9px;
        padding: 6px 12px 3px;
    }

    .nav-item {
        padding: 7px 10px;
        font-size: 12px;
    }

    .nav-item .nav-icon {
        font-size: 14px;
        min-width: 20px;
    }

    .topbar {
        height: 50px;
        padding: 0 16px;
    }

    .page-title {
        font-size: 16px;
    }

    .page-content {
        padding: 12px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
        gap: 10px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .stat-value {
        font-size: 18px;
    }

    .hub-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 10px;
    }

    .hub-card {
        padding: 14px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    /* Console & command bar: tighter */
    .system-console {
        max-height: 200px;
    }

    .command-bar {
        height: 48px;
    }

    .command-bar input {
        font-size: 12px;
    }

    /* Quick actions smaller */
    .quick-actions .action-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* ── Level 3: Screens ≤1024px (tablets, very small laptops) ── */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: var(--sidebar-collapsed, 72px);
    }

    html {
        font-size: 12px;
    }

    .sidebar .logo-text,
    .sidebar .nav-item span,
    .sidebar .sidebar-section-label {
        display: none;
    }

    .sidebar .nav-item {
        justify-content: center;
        padding: 10px;
    }

    .sidebar .nav-item .nav-icon {
        margin: 0;
    }

    .main-content {
        margin-left: var(--sidebar-collapsed, 72px);
    }

    .system-console,
    .command-bar {
        left: var(--sidebar-collapsed, 72px);
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .hub-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* ── Level 4: Very small (≤768px) ── */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Height fix: short screens (768px height like 1366x768) ── */
@media (max-height: 800px) {
    :root {
        --topbar-height: 50px;
    }

    .sidebar-logo {
        padding: 8px 10px;
    }

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

    .nav-item {
        padding: 6px 10px;
    }

    .page-content {
        padding: 10px 16px;
    }

    .main-content {
        padding-bottom: 200px !important;
    }

    .system-console {
        max-height: 180px;
    }

    .command-bar {
        height: 44px;
    }

    /* Onboarding wizard: shorter */
    .onboarding-card {
        max-height: 85vh;
        overflow-y: auto;
    }
}

/* ══════════════════════════════════════════════════════════════
   🛡️ CONTENT RATING & PARENTAL CONTROLS
   ══════════════════════════════════════════════════════════════ */
.cr-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cr-btn-primary {
    background: var(--accent);
    color: #000;
}

.cr-btn-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.cr-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--fg-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cr-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.cr-btn-danger {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.25);
}

.cr-btn-danger:hover {
    background: rgba(255, 71, 87, 0.25);
}

.cr-feedback {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.cr-feedback-success {
    background: rgba(0, 206, 201, 0.12);
    color: #00cec9;
    border: 1px solid rgba(0, 206, 201, 0.2);
}

.cr-feedback-error {
    background: rgba(255, 71, 87, 0.12);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.cr-rating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.cr-rating-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.cr-rating-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.cr-rating-option.cr-selected {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.06);
}

.cr-rating-option .cr-emoji {
    font-size: 20px;
}

.cr-pin-input {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--fg-primary);
    font-size: 14px;
    text-align: center;
    letter-spacing: 6px;
    font-family: 'Inter', monospace;
    width: 160px;
}

.cr-pin-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.cr-pin-input-large {
    font-size: 22px;
    padding: 12px 16px;
    width: 200px;
}

.cr-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cr-toggle-row:last-child {
    border-bottom: none;
}

.cr-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.cr-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.cr-status-icon {
    font-size: 18px;
    min-width: 24px;
    text-align: center;
}

.cr-pin-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-pin-dialog {
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    max-width: 380px;
    width: 90%;
}

.cr-pin-dialog h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.cr-pin-dialog p {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: var(--fg-muted);
}

/* ══════════════════════════════════════════════════════════════
   🗣️ TTS VOICE STRATEGY — Engine Selection Cards
   ══════════════════════════════════════════════════════════════ */
.tts-engines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.tts-engine-card {
    background: var(--bg-card);
    border: 2px solid var(--bg-glass-border);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.tts-engine-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tts-engine-card.tts-active {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.06);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.12);
}

.tts-engine-card.tts-active::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.tts-engine-card.tts-unavailable {
    opacity: 0.45;
    cursor: not-allowed;
}

.tts-engine-card.tts-unavailable:hover {
    transform: none;
}

.tts-engine-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tts-engine-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.tts-engine-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--fg-primary);
    line-height: 1.2;
}

.tts-engine-desc {
    font-size: 12px;
    color: var(--fg-muted);
    margin-bottom: 10px;
    line-height: 1.4;
}

.tts-engine-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tts-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tts-badge-safe {
    background: rgba(0, 206, 201, 0.15);
    color: #00cec9;
}

.tts-badge-personal {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa502;
}

.tts-badge-offline {
    background: rgba(108, 92, 231, 0.15);
    color: #a29bfe;
}

.tts-badge-cloud {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
}

.tts-badge-key {
    background: rgba(253, 203, 110, 0.15);
    color: #fdcb6e;
}

.tts-quality-stars {
    font-size: 11px;
    letter-spacing: 1px;
    color: #fdcb6e;
}

.tts-key-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.tts-key-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-secondary);
}

.tts-key-field input {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--fg-primary);
    font-size: 13px;
    font-family: 'Inter', monospace;
    transition: border-color 0.2s;
}

.tts-key-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.tts-key-field input::placeholder {
    color: var(--fg-muted);
}

.tts-key-field .tts-key-status {
    font-size: 11px;
    margin-top: 2px;
}

.tts-key-set {
    color: var(--success);
}

.tts-key-missing {
    color: var(--fg-muted);
}

/* ══════════════════════════════════════════════════════════════
   🌍 ALFRED TRANSLATOR — Premium Interactive Page
   ══════════════════════════════════════════════════════════════ */

/* ── Page Layout ── */
.trad-page {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.trad-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.trad-header h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Main Row: Globe left + Languages right ── */
.trad-main-row {
    display: flex;
    gap: 12px;
    flex: 1;
    min-height: 500px;
    margin-bottom: 0;
}

.trad-globe-col {
    flex: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 480px;
}

.trad-lang-col {
    flex: 0 0 auto;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.trad-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 600;
}

.trad-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4757;
    animation: trad-dot-pulse 2s ease-in-out infinite;
}

.trad-status-dot.active {
    background: #00ff88;
}

@keyframes trad-dot-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ── 3D Globe ── */
.trad-globe-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 480px;
    aspect-ratio: 1;
    overflow: visible;
}

#trad-globe-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

#trad-globe-webgl {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border-radius: 16px;
    cursor: grab;
}

#trad-globe-canvas:active {
    cursor: grabbing;
}

.trad-globe-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 35% 30%, rgba(100, 180, 255, 0.12) 0%, rgba(0, 120, 255, 0.05) 40%, transparent 70%);
    z-index: 0;
}

.trad-globe-label {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(0, 212, 255, 0.25);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    white-space: nowrap;
}

.trad-globe-label.visible {
    opacity: 1;
}

/* ── Fullscreen Immersive Globe Mode ── */
.trad-globe-container.globe-fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none !important;
    width: 100vw !important;
    height: 100vh !important;
    aspect-ratio: auto !important;
    z-index: 99999;
    background: rgba(2, 3, 8, 0.98);
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: globe-fullscreen-in 0.6s ease-out;
}

.trad-globe-container.globe-fullscreen #trad-globe-canvas,
.trad-globe-container.globe-fullscreen #trad-globe-webgl {
    border-radius: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw;
    max-height: 100vh;
}

.trad-globe-container.globe-fullscreen .trad-globe-glow {
    inset: 0;
}

.trad-globe-container.globe-fullscreen .trad-globe-label {
    bottom: 60px;
    font-size: 22px;
    padding: 14px 36px;
    border-radius: 30px;
    background: rgba(5, 8, 20, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 200, 255, 0.2);
    letter-spacing: 1px;
}

/* Country name overlay during cinematic */
.globe-country-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 80px);
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    z-index: 10;
    letter-spacing: 2px;
}

.globe-country-name.visible {
    opacity: 1;
}

@keyframes globe-fullscreen-in {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

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

/* ── Language Search Bar ── */
.trad-lang-search-wrap {
    position: relative;
    flex-shrink: 0;
}

.trad-lang-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    opacity: 0.6;
}

.trad-lang-search {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px 8px 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.15);
    color: var(--fg-primary);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.trad-lang-search:focus {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.trad-lang-search::placeholder {
    color: var(--fg-muted);
    font-weight: 500;
}

/* ── Language Grid ── */
.trad-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.trad-lang-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-primary);
    font-family: 'Inter', sans-serif;
}

.trad-lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.trad-lang-btn.trad-lang-active {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.08);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.12);
}

.trad-lang-btn .trad-flag {
    font-size: 16px;
}

.trad-lang-btn .trad-lang-name {
    font-size: 12px;
    line-height: 1.2;
}

/* ── Translation Chat Section ── */
.trad-chat-section {
    display: none;
}

.trad-chat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.trad-input-col,
.trad-output-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trad-input-col label,
.trad-output-col label {
    font-size: 13px;
    font-weight: 700;
    color: var(--fg-secondary);
}

#trad-input {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--fg-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.5;
}

#trad-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

#trad-input::placeholder {
    color: var(--fg-muted);
    font-style: italic;
}

.trad-output {
    background: rgba(255, 71, 87, 0.04);
    border: 1px solid rgba(255, 71, 87, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    min-height: 100px;
    color: var(--fg-primary);
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.trad-output::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #ff4757, #ff6b81);
    border-radius: 3px 0 0 3px;
}

.trad-output-placeholder {
    color: var(--fg-muted);
    font-style: italic;
    font-size: 14px;
}

.trad-output-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.trad-output-lang {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 71, 87, 0.1);
    color: #ff6b81;
    font-weight: 600;
}

/* ── Action Buttons ── */
.trad-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.trad-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.trad-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.trad-btn span {
    font-size: 16px;
}

.trad-btn-translate {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #000;
}

.trad-btn-translate:hover {
    background: linear-gradient(135deg, #00e5ff, #00aadd);
}

.trad-btn-speak {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
}

.trad-btn-speak:hover {
    background: linear-gradient(135deg, #ff5a6b, #ff7e94);
}

.trad-btn-listen {
    background: rgba(255, 255, 255, 0.08);
    color: var(--fg-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.trad-btn-listen:hover {
    background: rgba(255, 255, 255, 0.14);
}

.trad-btn-clear {
    background: rgba(255, 255, 255, 0.04);
    color: var(--fg-muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.trad-btn-clear:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--fg-primary);
}

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

.trad-btn.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 6px;
}

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

/* ── History ── */
.trad-history-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--fg-secondary);
}

.trad-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.trad-history-item {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s;
}

.trad-history-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.trad-history-original {
    font-size: 13px;
    color: var(--fg-muted);
    margin-bottom: 4px;
}

.trad-history-translation {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg-primary);
}

.trad-history-meta {
    font-size: 11px;
    color: var(--fg-muted);
    margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .trad-chat-row {
        grid-template-columns: 1fr;
    }

    .trad-lang-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    .trad-actions {
        flex-direction: column;
    }

    .trad-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   AI BRAIN PAGE — Neural Centre Dashboard
   ═══════════════════════════════════════════════════════════════ */

.ai-brain-page {
    position: relative;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
}

.ai-brain-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Header */
.ai-brain-header {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px 10px;
}

.ai-brain-title {
    font-size: 2.4em;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #a855f7, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brainTitleShimmer 4s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes brainTitleShimmer {

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

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

.ai-brain-icon {
    font-size: 1.2em;
    -webkit-text-fill-color: initial;
    animation: brainBounce 3s ease-in-out infinite;
}

@keyframes brainBounce {

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

    50% {
        transform: translateY(-5px) scale(1.08);
    }
}

.ai-brain-pulse-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #22d3ee;
    border-radius: 50%;
    box-shadow: 0 0 12px #22d3ee, 0 0 24px rgba(34, 211, 238, 0.4);
    animation: brainPulseDot 1.5s ease-in-out infinite;
}

@keyframes brainPulseDot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 12px #22d3ee, 0 0 24px rgba(34, 211, 238, 0.4);
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 6px #22d3ee, 0 0 12px rgba(34, 211, 238, 0.2);
    }
}

.ai-brain-subtitle {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95em;
    margin: 4px 0 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Stats Strip */
.ai-brain-stats {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 14px;
    padding: 20px 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.ai-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 22px;
    border-radius: 16px;
    min-width: 110px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    cursor: default;
}

.ai-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
    background: rgba(139, 92, 246, 0.12);
}

.ai-stat-icon {
    font-size: 1.6em;
    margin-bottom: 4px;
}

.ai-stat-value {
    font-size: 1.5em;
    font-weight: 800;
    color: #e0e7ff;
    line-height: 1.2;
}

.ai-stat-label {
    font-size: 0.72em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Capabilities Grid */
.ai-brain-capabilities {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    padding: 10px 30px 40px;
}

.ai-cap-card {
    position: relative;
    padding: 24px;
    border-radius: 18px;
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.15);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.ai-cap-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2), 0 0 60px rgba(139, 92, 246, 0.08);
}

.ai-cap-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.06), transparent 60%);
    pointer-events: none;
    transition: opacity 0.4s;
    opacity: 0;
}

.ai-cap-card:hover .ai-cap-glow {
    opacity: 1;
}

.ai-cap-icon {
    font-size: 2.2em;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

.ai-cap-card h3 {
    margin: 0 0 6px;
    font-size: 1.1em;
    font-weight: 700;
    color: #e0e7ff;
}

.ai-cap-card p {
    margin: 0 0 14px;
    font-size: 0.82em;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}

.ai-cap-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
}

.ai-cap-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: barPulse 3s ease-in-out infinite;
}

@keyframes barPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 18px rgba(6, 182, 212, 0.5);
    }
}

.ai-cap-pct {
    display: block;
    text-align: right;
    font-size: 0.75em;
    font-weight: 700;
    color: #a78bfa;
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 900px) {
    .ai-brain-title {
        font-size: 1.6em;
    }

    .ai-brain-stats {
        padding: 12px 15px;
        gap: 8px;
    }

    .ai-stat-card {
        min-width: 80px;
        padding: 12px 14px;
    }

    .ai-brain-capabilities {
        padding: 10px 15px 30px;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .ai-brain-capabilities {
        grid-template-columns: 1fr;
    }

    .ai-stat-card {
        min-width: 70px;
    }
}

/* Section Titles */
.ai-brain-section-title {
    position: relative;
    z-index: 2;
    font-size: 1.2em;
    font-weight: 700;
    color: #a78bfa;
    padding: 20px 30px 8px;
    letter-spacing: 0.5px;
}

/* Quick Actions */
.ai-quick-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 30px 20px;
}

.ai-qa-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.06);
    color: #e0e7ff;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ai-qa-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.ai-qa-btn:hover::before {
    width: 200px;
    height: 200px;
}

.ai-qa-btn:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.12);
}

.ai-qa-btn:active {
    transform: translateY(0) scale(0.98);
}

.ai-qa-icon {
    font-size: 1.3em;
}

/* Activity Feed */
.ai-activity-feed {
    position: relative;
    z-index: 2;
    padding: 0 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-activity-empty {
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
    font-size: 0.85em;
    padding: 14px;
}

.ai-activity-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    animation: activitySlideIn 0.4s ease;
}

@keyframes activitySlideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.ai-activity-icon {
    font-size: 1.2em;
    width: 28px;
    text-align: center;
}

.ai-activity-text {
    flex: 1;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.ai-activity-time {
    font-size: 0.72em;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .ai-quick-actions {
        padding: 0 15px 15px;
    }

    .ai-qa-btn {
        padding: 10px 14px;
        font-size: 0.82em;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FINANCE & CRYPTO PAGE
   ═══════════════════════════════════════════════════════════════ */

.finance-page {
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a1a 0%, #0d1117 50%, #0a0f1a 100%);
}

/* Ticker Tape */
.finance-ticker-tape {
    width: 100%;
    background: rgba(0, 255, 136, 0.06);
    border-bottom: 1px solid rgba(0, 255, 136, 0.15);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
}

.finance-ticker-content {
    display: inline-block;
    animation: tickerScroll 30s linear infinite;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

@keyframes tickerScroll {
    from {
        transform: translateX(100%);
    }

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

/* Header */
.finance-header {
    padding: 30px 30px 10px;
}

.finance-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8em;
    font-weight: 800;
    background: linear-gradient(135deg, #00ff88, #06b6d4, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.finance-live-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    animation: financePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px #00ff88;
}

@keyframes financePulse {

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

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

.finance-live-label {
    font-size: 0.4em;
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 1px;
    -webkit-text-fill-color: #00ff88;
}

.finance-subtitle {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9em;
    padding-left: 2px;
}

/* Summary Cards */
.finance-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 30px;
}

.finance-sum-card {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    background: rgba(0, 255, 136, 0.03);
}

.finance-sum-label {
    font-size: 0.78em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
    font-weight: 600;
}

.finance-sum-value {
    font-size: 1.6em;
    font-weight: 800;
    color: #e0e7ff;
}

.finance-sum-sub {
    font-size: 0.78em;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
}

/* Quick Quote */
.finance-quick-quote {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.finance-quick-quote input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 10px;
    padding: 8px 14px;
    color: #e0e7ff;
    font-size: 0.85em;
    outline: none;
    transition: border-color 0.3s;
}

.finance-quick-quote input:focus {
    border-color: #00ff88;
}

.finance-quick-quote button {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
}

.finance-quick-quote button:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: scale(1.05);
}

.finance-quote-result {
    font-size: 0.85em;
    margin-top: 8px;
    min-height: 20px;
    color: rgba(255, 255, 255, 0.6);
}

/* Section titles */
.finance-section-title {
    font-size: 1.15em;
    font-weight: 700;
    color: #00ff88;
    padding: 16px 30px 8px;
}

/* Watchlist */
.finance-watchlist {
    padding: 0 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.finance-loading {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.finance-row {
    display: grid;
    grid-template-columns: 40px 2fr 1.5fr 1fr 1fr;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s;
    gap: 12px;
}

.finance-row:hover {
    background: rgba(0, 255, 136, 0.04);
    border-color: rgba(0, 255, 136, 0.15);
    transform: translateX(4px);
}

.finance-row-rank {
    font-size: 0.82em;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    font-weight: 700;
}

.finance-row-name {
    display: flex;
    flex-direction: column;
}

.finance-row-name strong {
    color: #e0e7ff;
    font-size: 0.95em;
}

.finance-row-name span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75em;
}

.finance-row-price {
    font-weight: 700;
    font-size: 1em;
    color: #e0e7ff;
    text-align: right;
}

.finance-row-change {
    text-align: right;
    font-weight: 700;
    font-size: 0.9em;
    padding: 4px 10px;
    border-radius: 8px;
}

.finance-row-change.up {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.08);
}

.finance-row-change.down {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.08);
}

.finance-row-mcap {
    text-align: right;
    font-size: 0.78em;
    color: rgba(255, 255, 255, 0.3);
}

/* Bank Grid */
.finance-bank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 30px 20px;
}

.finance-bank-region {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    background: rgba(139, 92, 246, 0.03);
}

.finance-bank-flag {
    font-weight: 700;
    font-size: 0.9em;
    color: #a78bfa;
    margin-bottom: 10px;
}

.finance-bank-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.finance-bank-btn {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.finance-bank-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #e0e7ff;
    transform: translateY(-2px);
}

/* Voice Commands */
.finance-voice-help {
    padding: 0 0 30px;
}

.finance-voice-cmds {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 30px;
}

.finance-vcmd {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82em;
    font-style: italic;
}

/* Responsive */
@media (max-width: 900px) {
    .finance-summary {
        grid-template-columns: 1fr;
    }

    .finance-bank-grid {
        grid-template-columns: 1fr;
    }

    .finance-row {
        grid-template-columns: 30px 2fr 1fr 1fr;
    }

    .finance-row-mcap {
        display: none;
    }
}

@media (max-width: 600px) {
    .finance-row {
        grid-template-columns: 25px 1.5fr 1fr 1fr;
        padding: 10px 12px;
        font-size: 0.9em;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ⚙ SETTINGS PAGE
   ═══════════════════════════════════════════════════════════════ */
.settings-page {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.settings-header {
    text-align: center;
    margin-bottom: 32px;
}

.settings-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.settings-subtitle {
    color: var(--fg-secondary);
    font-size: 14px;
    margin-top: 6px;
}

/* Tabs */
.settings-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 4px;
    border: 1px solid var(--border);
}

.settings-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--fg-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
}

.settings-tab:hover {
    color: var(--fg-primary);
    background: rgba(255, 255, 255, 0.04);
}

.settings-tab.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Panels */
.settings-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.settings-panel.active {
    display: block;
}

/* Cards */
.settings-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.settings-advanced-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    background:
        linear-gradient(135deg, rgba(0, 200, 255, 0.08), rgba(124, 93, 250, 0.08)),
        var(--bg-card);
    border: 1px solid rgba(0, 200, 255, 0.12);
}

.settings-advanced-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #8fdfff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.settings-advanced-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.settings-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    padding: 11px 22px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--fg-primary);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.settings-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 200, 255, 0.2);
    transform: translateY(-1px);
}

.settings-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.settings-card-desc {
    font-size: 13px;
    color: var(--fg-secondary);
    margin-bottom: 20px;
}

.ai-advisor-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 200, 255, 0.08), rgba(124, 93, 250, 0.08)),
        var(--bg-card);
    border: 1px solid rgba(0, 200, 255, 0.12);
}

.ai-advisor-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(0, 200, 255, 0.12), transparent 35%),
        radial-gradient(circle at bottom left, rgba(124, 93, 250, 0.08), transparent 38%);
}

.ai-advisor-shell,
.ai-advisor-summary,
.ai-advisor-grid,
.ai-advisor-actions {
    position: relative;
    z-index: 1;
}

.ai-advisor-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ai-advisor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.ai-advisor-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-advisor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 200, 255, 0.12);
    border: 1px solid rgba(0, 200, 255, 0.18);
    color: #89e7ff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ai-advisor-inline-status {
    color: var(--fg-secondary);
    font-size: 13px;
}

.ai-advisor-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-advisor-summary h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--fg-primary);
}

.ai-advisor-summary p {
    color: var(--fg-secondary);
    line-height: 1.55;
    font-size: 13px;
}

.ai-advisor-meta {
    color: #8fdfff;
    font-size: 12px;
    font-weight: 600;
}

.ai-advisor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 16px;
}

.ai-advisor-panel {
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(6, 10, 24, 0.45);
    border: 1px solid rgba(100, 180, 255, 0.08);
}

.ai-advisor-panel h4,
.ai-advisor-panel h5 {
    font-size: 13px;
    font-weight: 800;
    color: var(--fg-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ai-advisor-checks,
.ai-advisor-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.ai-advisor-check,
.ai-advisor-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--fg-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.ai-advisor-check-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    margin-top: 4px;
    border-radius: 50%;
    background: rgba(255, 181, 71, 0.9);
    box-shadow: 0 0 12px rgba(255, 181, 71, 0.35);
}

.ai-advisor-check.ok .ai-advisor-check-dot {
    background: rgba(0, 214, 143, 0.95);
    box-shadow: 0 0 12px rgba(0, 214, 143, 0.35);
}

.ai-advisor-check.warn .ai-advisor-check-dot {
    background: rgba(255, 181, 71, 0.95);
}

.ai-advisor-recommendation {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(0, 214, 143, 0.08);
    border: 1px solid rgba(0, 214, 143, 0.15);
    color: #b9ffea;
    font-size: 13px;
    line-height: 1.5;
}

.ai-advisor-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 820px) {
    .settings-advanced-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .settings-advanced-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .ai-advisor-grid {
        grid-template-columns: 1fr;
    }
}

/* Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-row {
    display: flex;
    gap: 16px;
}

.settings-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-field.full {
    flex: 1 0 100%;
}

.settings-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-field input,
.settings-field select {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--fg-primary);
    font-size: 14px;
    font-family: var(--font);
    transition: all 0.25s ease;
    outline: none;
}

.settings-field input:focus,
.settings-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.settings-field input::placeholder {
    color: var(--fg-muted);
}

.settings-field select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Toggle Switch */
.settings-child-toggle {
    margin-top: 8px;
}

.settings-switch-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--fg-primary);
}

.settings-switch-label input {
    display: none;
}

.settings-switch {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.settings-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
}

.settings-switch-label input:checked+.settings-switch {
    background: var(--accent);
}

.settings-switch-label input:checked+.settings-switch::after {
    transform: translateX(20px);
}

/* Save Button */
.settings-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 11px 28px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #00d4ff, #7c5dfa);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font);
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.settings-save-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}

.settings-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 212, 255, 0.4);
}

.settings-save-btn:hover::before {
    opacity: 1;
}

.settings-save-btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.settings-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Danger button (reset, delete) — même style pill que save-btn mais rouge */
.settings-danger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 11px 24px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font);
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(255, 50, 50, 0.2);
}

.settings-danger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 50, 50, 0.4);
}

.settings-danger-btn:active {
    transform: translateY(0) scale(0.97);
}

.settings-save-status {
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.settings-save-status.success {
    color: var(--success);
}

.settings-save-status.error {
    color: var(--error);
}

@media (max-width: 600px) {
    .settings-row {
        flex-direction: column;
    }

    .settings-tabs {
        flex-direction: column;
    }
}

/* 🐢 LOW PERFORMANCE MODE OVERRIDES (8GB Laptops / 2026-02-25) */
.low-perf-mode {
    --bg-secondary: rgba(10, 10, 20, 0.95);
    --bg-sidebar: rgba(5, 5, 10, 0.98);
    --bg-card: rgba(15, 15, 30, 0.85);
    --bg-glass: rgba(10, 10, 20, 0.9);
}

.low-perf-mode * {
    animation-duration: 0.1ms !important;
    /* Effectively disable animations */
    animation-iteration-count: 1 !important;
    transition-duration: 0.1ms !important;
    /* Instant transitions */
}

/* Re-enable ONLY critical animations with simplified logic */
.low-perf-mode .logo-spin {
    animation: none !important;
}

.low-perf-mode .glass,
.low-perf-mode .sidebar,
.low-perf-mode .topbar,
.low-perf-mode .sidebar::before,
.low-perf-mode .sidebar::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: var(--bg-secondary) !important;
}

.low-perf-mode body::before,
.low-perf-mode body::after {
    display: none !important;
    /* Disable mesh drift and grid pulse */
}

.low-perf-mode .space-universe {
    display: none !important;
}

.low-perf-mode .voice-pulse-container .pulse-ring {
    display: none !important;
    /* Disable pulsing rings on mic */
}

/* ═══════════════════════════════════════════════════════════════
   📖 GUIDE PAGE — Professional User Documentation
   🔒 LOCKED 2026-02-26 — Critical for user onboarding. NEVER REMOVE.
   ═══════════════════════════════════════════════════════════════ */

.guide-container {
    padding: 24px 32px 80px;
    max-width: 960px;
    margin: 0 auto;
}

/* ── Hero ── */
.guide-hero {
    text-align: center;
    padding: 40px 24px 32px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.06) 0%, rgba(124, 93, 250, 0.06) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 200, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.guide-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(0, 200, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(124, 93, 250, 0.04) 0%, transparent 50%);
    animation: guideHeroDrift 20s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes guideHeroDrift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(5%, 3%) rotate(2deg);
    }
}

.guide-hero-icon {
    font-size: 3em;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.3));
    animation: guideIconPulse 3s ease-in-out infinite;
}

@keyframes guideIconPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.3));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(0, 200, 255, 0.5));
    }
}

.guide-hero-title {
    font-family: var(--font-display);
    font-size: 1.8em;
    font-weight: 800;
    background: linear-gradient(135deg, #00c8ff, #7c5dfa, #00d68f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    position: relative;
}

.guide-hero-subtitle {
    color: var(--fg-secondary);
    font-size: 1em;
    margin-bottom: 20px;
    position: relative;
}

.guide-hero-tip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.15);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85em;
    color: var(--fg-secondary);
    position: relative;
}

.guide-tip-icon {
    font-size: 1.2em;
}

.guide-hero-tip strong {
    color: #00c8ff;
}

/* ── Section ── */
.guide-section {
    margin-bottom: 36px;
}

.guide-section-title {
    font-family: var(--font-display);
    font-size: 1.3em;
    font-weight: 700;
    color: var(--fg-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 200, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-section-icon {
    font-size: 1.2em;
}

.guide-section-desc {
    color: var(--fg-secondary);
    margin-bottom: 16px;
    font-size: 0.9em;
}

/* ── Getting Started Steps ── */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(100, 180, 255, 0.06);
    transition: all 0.3s ease;
}

.guide-step:hover {
    border-color: rgba(0, 200, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 200, 255, 0.06);
    transform: translateX(4px);
}

.guide-step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c8ff, #7c5dfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1em;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 200, 255, 0.25);
}

.guide-step-content strong {
    display: block;
    color: var(--fg-primary);
    margin-bottom: 4px;
    font-size: 0.95em;
}

.guide-step-content p {
    color: var(--fg-secondary);
    font-size: 0.85em;
    line-height: 1.5;
}

.guide-step-content kbd {
    display: inline;
    background: rgba(0, 200, 255, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: var(--font-mono);
    font-size: 0.88em;
    color: #00d8ff;
}

/* ── Command Cards ── */
.guide-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(100, 180, 255, 0.06);
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.guide-card:hover {
    border-color: rgba(0, 200, 255, 0.12);
}

.guide-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(0, 200, 255, 0.03);
    border-bottom: 1px solid rgba(100, 180, 255, 0.05);
}

.guide-card-icon {
    font-size: 1.3em;
}

.guide-card-header h4 {
    font-family: var(--font-display);
    font-size: 0.95em;
    font-weight: 700;
    color: var(--fg-primary);
}

.guide-cmd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.guide-cmd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(100, 180, 255, 0.03);
    transition: background 0.2s ease;
}

.guide-cmd:hover {
    background: rgba(0, 200, 255, 0.04);
}

.guide-cmd:nth-child(odd) {
    border-right: 1px solid rgba(100, 180, 255, 0.03);
}

.guide-cmd kbd {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.1), rgba(124, 93, 250, 0.08));
    border: 1px solid rgba(0, 200, 255, 0.18);
    border-radius: 6px;
    padding: 3px 10px;
    font-family: var(--font-mono);
    font-size: 0.78em;
    color: #00d8ff;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.guide-cmd:hover kbd {
    border-color: rgba(0, 200, 255, 0.35);
    box-shadow: 0 2px 12px rgba(0, 200, 255, 0.12);
    color: #40e8ff;
}

.guide-cmd span {
    color: var(--fg-secondary);
    font-size: 0.82em;
    text-align: right;
}

/* ── Features Grid ── */
.guide-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.guide-feature {
    padding: 20px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(100, 180, 255, 0.06);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guide-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00c8ff, #7c5dfa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guide-feature:hover {
    border-color: rgba(0, 200, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 200, 255, 0.05);
}

.guide-feature:hover::before {
    opacity: 1;
}

.gf-icon {
    font-size: 1.8em;
    display: block;
    margin-bottom: 8px;
}

.guide-feature strong {
    display: block;
    color: var(--fg-primary);
    font-size: 0.9em;
    margin-bottom: 6px;
}

.guide-feature p {
    color: var(--fg-secondary);
    font-size: 0.78em;
    line-height: 1.45;
}

/* ── FAQ Accordion ── */
.guide-faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(100, 180, 255, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.guide-faq-item[open] {
    border-color: rgba(0, 200, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 200, 255, 0.05);
}

.guide-faq-item summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--fg-primary);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
}

.guide-faq-item summary::before {
    content: '▸';
    color: #00c8ff;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.guide-faq-item[open] summary::before {
    transform: rotate(90deg);
}

.guide-faq-item summary:hover {
    color: #00c8ff;
}

.guide-faq-item summary::-webkit-details-marker {
    display: none;
}

.guide-faq-item p {
    padding: 0 18px 16px;
    color: var(--fg-secondary);
    font-size: 0.85em;
    line-height: 1.6;
}

.guide-faq-item a {
    color: #00c8ff;
    text-decoration: none;
}

.guide-faq-item a:hover {
    text-decoration: underline;
}

.guide-faq-item code {
    background: rgba(0, 200, 255, 0.1);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: #00d8ff;
}

/* ── Keyboard Shortcuts Grid ── */
.guide-shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.guide-shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(100, 180, 255, 0.06);
}

.guide-shortcut kbd {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 0.82em;
    color: var(--fg-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.guide-shortcut span {
    color: var(--fg-secondary);
    font-size: 0.82em;
}

/* ── Credits ── */
.guide-credits-content {
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(100, 180, 255, 0.06);
    text-align: center;
}

.guide-credits-content p {
    color: var(--fg-secondary);
    font-size: 0.85em;
    margin-bottom: 4px;
}

.guide-credits-content p:first-child {
    color: var(--fg-primary);
    font-size: 0.95em;
    margin-bottom: 2px;
}

.guide-credits-small {
    font-size: 0.75em !important;
    color: var(--fg-muted) !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .guide-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-cmd-grid {
        grid-template-columns: 1fr;
    }

    .guide-cmd:nth-child(odd) {
        border-right: none;
    }

    .guide-shortcuts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .guide-container {
        padding: 12px 16px 60px;
    }

    .guide-features-grid {
        grid-template-columns: 1fr;
    }

    .guide-hero-title {
        font-size: 1.3em;
    }
}

/* ═══════════════════════════════════════════════════════════════
   🔮 S1M0NE HOLOGRAPHIC AVATAR — THE FACE OF AUTOMATEWIN A.I.
   Règle sacrée: MP4 Swap UNIQUEMENT. Jamais de Wav2Lip client.
   ═══════════════════════════════════════════════════════════════ */

/* ── Container: hidden by default, revealed when STT is active ── */
.s1m0ne-hologram-container {
    position: fixed;
    right: -600px;
    top: 50%;
    transform: translateY(-50%);
    width: 550px;
    height: 550px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ── When S1m0ne is active: slide in from right ── */
body.s1m0ne-active .s1m0ne-hologram-container {
    right: 20px;
    pointer-events: auto;
}

/* ── Holographic Podium ── */
.hologram-podium {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    /* COMPLETELY TRANSPARENT - No 'bubble' */
    background: transparent;
}

/* ── S1m0ne Video ── */
.hologram-podium video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Blend the black video backgound into transparency perfectly */
    mix-blend-mode: screen;
    filter: contrast(1.1) brightness(1.2) saturate(1.1);
    /* Softly fade only the extreme edges so the square video border is never seen */
    mask-image: radial-gradient(circle at center, black 35%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 60%);
    position: relative;
    z-index: 2;
}

/* ── Holographic Glow Rings ── */
.hologram-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.25);
    pointer-events: none;
    z-index: 1;
}

.hologram-ring-1 {
    width: 280px;
    height: 280px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%) rotateX(75deg);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15), inset 0 0 30px rgba(0, 212, 255, 0.05);
    animation: holoRingSpin 8s linear infinite;
}

.hologram-ring-2 {
    width: 320px;
    height: 320px;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) rotateX(75deg);
    border-color: rgba(124, 93, 250, 0.2);
    box-shadow: 0 0 20px rgba(124, 93, 250, 0.1);
    animation: holoRingSpin 12s linear infinite reverse;
}

.hologram-ring-3 {
    width: 360px;
    height: 360px;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) rotateX(75deg);
    border-color: rgba(0, 255, 136, 0.12);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.06);
    animation: holoRingSpin 16s linear infinite;
}

@keyframes holoRingSpin {
    from { transform: translateX(-50%) rotateX(75deg) rotateZ(0deg); }
    to   { transform: translateX(-50%) rotateX(75deg) rotateZ(360deg); }
}

/* ── Scanline Overlay (holographic effect) ── */
.hologram-scanlines {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: 20px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 212, 255, 0.03) 2px,
        rgba(0, 212, 255, 0.03) 4px
    );
    animation: holoScanMove 4s linear infinite;
    display: none; /* Désactivé à la demande pour une image nette */
}

@keyframes holoScanMove {
    from { background-position: 0 0; }
    to   { background-position: 0 100px; }
}

/* ── Bottom Glow Pedestal ── */
.hologram-glow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: holoPulse 3s ease-in-out infinite;
}

@keyframes holoPulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1;   transform: translateX(-50%) scale(1.15); }
}

/* ── Emotion Label ── */
.hologram-emotion-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: rgba(0, 212, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    min-height: 18px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
}

.hologram-emotion-label.emotion-angry {
    color: rgba(255, 100, 100, 0.9);
    text-shadow: 0 0 10px rgba(255, 100, 100, 0.5);
}

.hologram-emotion-label.emotion-pensive {
    color: rgba(160, 140, 255, 0.9);
    text-shadow: 0 0 10px rgba(160, 140, 255, 0.5);
}

.hologram-emotion-label.emotion-sarcastic {
    color: rgba(255, 200, 60, 0.9);
    text-shadow: 0 0 10px rgba(255, 200, 60, 0.5);
}

/* ── Chat Container (hologram overlay) ── */
.hologram-chat {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.2) transparent;
}

.hologram-chat::-webkit-scrollbar {
    width: 4px;
}

.hologram-chat::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.2);
    border-radius: 4px;
}

/* ── Chat Message Bubbles ── */
.chat-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: chatFadeIn 0.3s ease-out;
}

.chat-message.user {
    flex-direction: row-reverse;
}

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

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
}

.chat-message.user .chat-avatar {
    background: rgba(124, 93, 250, 0.15);
    border-color: rgba(124, 93, 250, 0.3);
    color: #a78bfa;
}

.chat-bubble {
    background: rgba(10, 10, 30, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 14px;
    padding: 10px 14px;
    max-width: 280px;
}

.chat-message.user .chat-bubble {
    border-color: rgba(124, 93, 250, 0.15);
}

.chat-bubble p {
    color: rgba(240, 240, 255, 0.9);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.chat-time {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 4px;
    text-align: right;
}

/* ── Speaking Animation (when S1m0ne talks) ── */
body.s1m0ne-speaking .hologram-podium video {
    filter: contrast(1.15) brightness(1.25) saturate(1.3);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

body.s1m0ne-speaking .hologram-glow {
    animation: holoPulseFast 1s ease-in-out infinite;
}

@keyframes holoPulseFast {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1;   transform: translateX(-50%) scale(1.3); }
}

/* ── Responsive: smaller screens ── */
@media (max-width: 1280px) {
    .s1m0ne-hologram-container {
        width: 320px;
    }

    body.s1m0ne-active .main-content {
        margin-right: 330px;
    }

    .hologram-podium {
        width: 260px;
        height: 330px;
    }
}

@media (max-width: 1024px) {
    .s1m0ne-hologram-container {
        width: 280px;
    }

    body.s1m0ne-active .main-content {
        margin-right: 290px;
    }

    .hologram-podium {
        width: 220px;
        height: 280px;
    }
}