/* ==========================================================================
   PhishGuard AI — High-End Cybersecurity Intelligence Platform
   Palette: Near-Black (#02050D) • Dark Navy (#080D1C) • Cyan Precision Accent
   Typography: Cormorant Garamond Editorial Serif & Plus Jakarta Sans
   ========================================================================== */

/* --------------------------------------------------------------------------
   DESIGN TOKENS & SYSTEM VARIABLES
   -------------------------------------------------------------------------- */
:root {
    /* Cosmic Void Foundation (Deep Midnight Obsidian) */
    --bg-base: #010206;
    --bg-surface: #040711;
    --bg-surface-elevated: #080d1e;
    --bg-card: rgba(6, 12, 24, 0.75);
    --bg-input: rgba(4, 8, 18, 0.88);

    /* Hairline Precision Diamond & Platinum Borders */
    --border-hairline: rgba(255, 255, 255, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.22);
    --border-hover: rgba(56, 189, 248, 0.65);

    /* Typography Colors */
    --text-white: #ffffff;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;

    /* Liquid Silver, Incandescent Diamond & Relativistic Cyan Jet */
    --accent-silver: #ffffff;
    --accent-diamond: #f8fafc;
    --accent-cyan: #38bdf8;
    --accent-cyan-dim: #0284c7;
    --accent-glow: rgba(255, 255, 255, 0.32);
    --accent-glow-cyan: rgba(56, 189, 248, 0.28);
    --accent-pill-border: rgba(255, 255, 255, 0.45);

    /* Light Space Blue Precision Tokens */
    --space-blue: #38bdf8;
    --space-blue-light: #7dd3fc;
    --space-blue-glow: rgba(56, 189, 248, 0.65);

    /* Metallic Chrome Split Gradients: Half Pure White / Half Space Blue */
    --gradient-metallic-split: linear-gradient(
        180deg,
        #ffffff 0%,
        #ffffff 42%,
        #cbe5fe 48%,
        #38bdf8 54%,
        #0284c7 82%,
        #0369a1 100%
    );
    --gradient-metallic-accent: linear-gradient(
        180deg,
        #ffffff 0%,
        #e0f2fe 32%,
        #7dd3fc 48%,
        #38bdf8 65%,
        #0284c7 90%,
        #0369a1 100%
    );
    --gradient-metallic-h: linear-gradient(
        135deg,
        #ffffff 0%,
        #ffffff 40%,
        #7dd3fc 52%,
        #38bdf8 72%,
        #0284c7 100%
    );
    --text-heading: #ffffff;

    /* Backward compatibility aliases mapped to Silver / Cyan Jet Palette */
    --accent-gold: #ffffff;
    --accent-gold-hot: #f8fafc;
    --accent-amber: #38bdf8;
    --accent-amber-dim: #0284c7;
    --accent-interactive: #0284c7;
    --accent-interactive-hover: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.45);

    /* Celestial Status Indicators */
    --status-safe: #10b981;
    --status-safe-bg: rgba(16, 185, 129, 0.12);
    --status-safe-border: rgba(16, 185, 129, 0.35);
    --status-phish: #ff3366;
    --status-phish-bg: rgba(255, 51, 102, 0.12);
    --status-phish-border: rgba(255, 51, 102, 0.4);
    --status-warn: #f59e0b;
    --status-warn-bg: rgba(245, 158, 11, 0.14);

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Metrics & Geometry */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-card: 0 18px 40px -10px rgba(0, 0, 0, 0.92);
    --shadow-hover: 0 24px 50px -10px rgba(0, 0, 0, 0.98);

    /* Spacing Rhythm */
    --section-gap: 130px;
}

/* --------------------------------------------------------------------------
   GLOBAL FOUNDATIONS & RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body.cyber-platform-body {
    background-color: var(--bg-base);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   SCROLL PROGRESS INDICATOR
   -------------------------------------------------------------------------- */
.scroll-progress-line {
    position: fixed;
    top: 0;
    left: 0;
    height: 2.5px;
    width: 0%;
    background: linear-gradient(90deg, #38bdf8 0%, #ffffff 60%, #e0f2fe 100%);
    z-index: 1000;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.85);
    transition: width 0.08s ease-out;
}

/* --------------------------------------------------------------------------
   CUSTOM TRAILING CURSOR (DISCREET & RESTRAINED)
   -------------------------------------------------------------------------- */
.cursor-dot {
    width: 5px;
    height: 5px;
    background: var(--accent-silver);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    transition: opacity 0.2s;
}

.cursor-ring {
    width: 28px;
    height: 28px;
    border: 1.2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.22s ease-out, height 0.22s ease-out, background-color 0.22s, border-color 0.22s;
    opacity: 0.65;
}

.cursor-ring.cursor-active {
    width: 48px;
    height: 48px;
    background-color: var(--accent-glow);
    border-color: #ffffff;
    opacity: 0.85;
}

@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none !important; }
}

/* --------------------------------------------------------------------------
   3D WEBGL & FAINT ATMOSPHERIC BACKGROUND
   -------------------------------------------------------------------------- */
.webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
    transition: opacity 0.8s ease;
}

.ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.25;
}

.ambient-vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 38%, rgba(1, 2, 6, 0.75) 80%, var(--bg-base) 100%);
    pointer-events: none;
    z-index: 1;
}

.ambient-radial-glow {
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 850px;
    height: 700px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.07) 0%, rgba(56, 189, 248, 0.04) 45%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   MINIMAL TRANSPARENT NAVIGATION (STICKY)
   -------------------------------------------------------------------------- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    background: rgba(1, 3, 8, 0.80);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-hairline);
    z-index: 100;
}

.nav-container {
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand-shield-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(3, 7, 18, 0.95) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5), inset 0 0 10px rgba(56, 189, 248, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    flex-shrink: 0;
}

.brand-shield-mark:hover {
    transform: scale(1.1);
    border-color: #38bdf8;
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.85), inset 0 0 14px rgba(56, 189, 248, 0.6);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.brand-meta {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    background: var(--gradient-metallic-split);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
}

.brand-sub {
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    color: var(--accent-cyan);
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.menu-item {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    position: relative;
    padding: 0.35rem 0;
    transition: color 0.25s;
}

.menu-item:hover, .menu-item.active {
    color: #ffffff;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item:hover::after, .menu-item.active::after {
    width: 100%;
}

.nav-cta-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Sound Effects Audio Toggle Pill */
.btn-sound-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(56, 189, 248, 0.06);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: all 0.22s ease;
    user-select: none;
}

.btn-sound-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.btn-sound-toggle.muted {
    opacity: 0.6;
    color: var(--text-dim);
    border-color: var(--border-hairline);
    background: rgba(255, 255, 255, 0.03);
}

.btn-sound-toggle.muted:hover {
    opacity: 0.9;
    color: var(--text-white);
    border-color: var(--border-subtle);
}

@media (max-width: 680px) {
    #sound-text { display: none; }
    .btn-sound-toggle { padding: 0.5rem 0.65rem; }
}

/* Outlined Pill CTA Button */
.btn-pill-outlined {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.35rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--accent-pill-border);
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.04);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-pill-outlined:hover {
    background: var(--accent-cyan);
    color: var(--bg-base);
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
}

.bar-line {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s;
}

.mobile-drawer {
    display: none;
}

@media (max-width: 880px) {
    .nav-links { display: none; }
    .mobile-toggle-btn { display: flex; }
    
    .mobile-drawer {
        display: flex;
        flex-direction: column;
        padding: 1.25rem 2rem 1.5rem;
        background: rgba(2, 5, 13, 0.95);
        backdrop-filter: blur(25px);
        border-bottom: 1px solid var(--border-hairline);
        gap: 0.75rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mobile-drawer.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-link {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.14em;
        padding: 0.5rem 0;
    }

    .mobile-link:hover { color: var(--accent-cyan); }
}

/* --------------------------------------------------------------------------
   STORY SECTIONS & GENERous WHITESPACE
   -------------------------------------------------------------------------- */
.page-content {
    position: relative;
    z-index: 2;
}

.story-section {
    padding: var(--section-gap) 2rem;
    position: relative;
}

.hero-story {
    padding-top: calc(var(--section-gap) + 40px);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* Eyebrow Label */
.eyebrow-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.26em;
    color: #ffffff;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.6rem;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.chip-pulse {
    width: 6px;
    height: 6px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8;
    animation: chipPulse 2s infinite;
}

@keyframes chipPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

/* Editorial Serif Headlines */
.display-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.2vw, 4.3rem);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -0.015em;
    background: var(--gradient-metallic-split);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    color: transparent;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 25px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 25px rgba(56, 189, 248, 0.25));
}

.display-headline em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    background: var(--gradient-metallic-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.65));
}

.section-lead {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   HERO ASYMMETRIC SPLIT & 3D STAGE
   -------------------------------------------------------------------------- */
.hero-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3.5rem;
    min-height: 520px;
    margin-bottom: 4.5rem;
    text-align: left;
}

.hero-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 5;
}

.hero-title-split {
    text-align: left;
    margin-bottom: 1.5rem;
}

.hero-lead-split {
    text-align: left;
    margin: 0 0 2.25rem 0;
    max-width: 580px;
    font-size: 1.12rem;
    line-height: 1.75;
}

.hero-action-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn-hero-cta {
    padding: 0.85rem 1.95rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff !important;
    border: 1px solid rgba(56, 189, 248, 0.65);
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.5), 0 0 16px rgba(56, 189, 248, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-cta:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
    border-color: #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.65), 0 6px 26px rgba(37, 99, 235, 0.7);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-decoration: none;
    transition: color 0.25s, transform 0.25s;
}

.btn-hero-secondary:hover {
    color: var(--accent-interactive);
    transform: translateY(-2px);
}

.hero-visual-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 460px;
    pointer-events: none;
}

.hero-3d-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 60% 50%, rgba(0, 242, 254, 0.04) 0%, transparent 70%);
}

.turbine-depth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(8, 13, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.65rem;
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.badge-pulse {
    width: 6px;
    height: 6px;
    background: var(--accent-interactive);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-interactive);
    animation: chipPulse 1.8s infinite;
}

.turbine-sub-badge {
    font-size: 0.62rem;
    font-family: var(--font-mono);
    letter-spacing: 0.22em;
    color: rgba(148, 163, 184, 0.5);
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    .hero-text-col {
        align-items: center;
    }
    .hero-title-split, .hero-lead-split {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-action-row {
        justify-content: center;
    }
    .hero-visual-col {
        min-height: 320px;
    }
    .hero-3d-stage {
        align-items: center;
    }
}

/* --------------------------------------------------------------------------
   INTELLIGENCE CARDS (RESTRAINED, DEEP NAVY, CLEAN HOVER)
   -------------------------------------------------------------------------- */
.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    text-align: left;
}

@media (max-width: 900px) {
    .feature-cards-grid { grid-template-columns: 1fr; }
}

.intel-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 2.1rem;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
}

.intel-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover), 0 0 25px rgba(0, 242, 254, 0.08);
}

.intel-card-tag {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    color: var(--accent-interactive);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.intel-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

.intel-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Downward Cue */
.scroll-cue-wrapper {
    margin-top: 4.5rem;
}

.scroll-cue-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--text-dim);
    transition: color 0.2s, transform 0.2s;
}

.scroll-cue-link:hover {
    color: var(--accent-interactive);
    transform: translateY(3px);
}

.cue-text {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.cue-arrow {
    font-size: 1.1rem;
    animation: bounceDown 1.8s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* --------------------------------------------------------------------------
   STAGE 04: LIVE OPERATIONS CENTER & SCANNER
   -------------------------------------------------------------------------- */
.ops-center-section {
    border-top: 1px solid var(--border-hairline);
    background: linear-gradient(180deg, var(--bg-base) 0%, #050a16 100%);
    padding-top: 6rem;
}

.ops-center-heading {
    max-width: 820px;
    margin: 0 auto 3.5rem;
}

/* Segmented Sub-Tabs */
.ops-segmented-tabs {
    display: inline-flex;
    background: rgba(8, 13, 28, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-full);
    padding: 0.35rem;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.ops-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.65rem 1.45rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s;
}

.ops-tab-btn:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.12);
}

.ops-tab-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(56, 189, 248, 0.6) !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.ops-tab-btn.active svg {
    color: #ffffff !important;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

.ops-tab-btn.active span {
    color: #ffffff !important;
    font-weight: 800;
}

.ops-tab-btn.active:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%) !important;
    box-shadow: 0 0 26px rgba(56, 189, 248, 0.65) !important;
    color: #ffffff !important;
}

.ops-subpane {
    display: block;
    animation: subpaneFade 0.35s ease-out;
}

.ops-subpane.hidden {
    display: none;
}

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

/* --------------------------------------------------------------------------
   SCANNER INPUT CARD
   -------------------------------------------------------------------------- */
.scanner-input-card {
    background: var(--bg-card);
    backdrop-filter: blur(26px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.input-shell {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.75rem 0.55rem 1.25rem;
    gap: 0.85rem;
    transition: all 0.25s;
}

.input-shell:focus-within {
    border-color: var(--space-blue);
    box-shadow: 0 0 24px var(--space-blue-glow);
}

.input-lead-icon {
    color: var(--space-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px var(--space-blue-glow));
    transition: transform 0.25s, filter 0.25s;
    flex-shrink: 0;
}

.input-shell:hover .input-lead-icon {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px var(--space-blue));
}

.url-input-control {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-family: var(--font-mono);
    font-size: 0.98rem;
    width: 100%;
}

.url-input-control::placeholder {
    color: var(--text-dim);
    font-family: var(--font-sans);
    font-size: 0.94rem;
}

/* Light Space Blue Click-to-Paste Button */
.btn-paste-url {
    background: rgba(56, 189, 248, 0.12);
    color: var(--space-blue);
    border: 1px solid rgba(56, 189, 248, 0.42);
    border-radius: var(--radius-sm);
    padding: 0.58rem 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45));
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-paste-url svg {
    color: var(--space-blue);
    filter: drop-shadow(0 0 5px var(--space-blue));
}

.btn-paste-url:hover {
    background: rgba(56, 189, 248, 0.26);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
    transform: translateY(-1px);
}

.btn-paste-url:active {
    transform: scale(0.96);
    background: rgba(56, 189, 248, 0.42);
}

.btn-paste-url.pasted-flash {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6) !important;
}

.btn-execute-scan {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(56, 189, 248, 0.65) !important;
    outline: none;
    padding: 0.85rem 1.85rem;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.55), 0 0 16px rgba(56, 189, 248, 0.45) !important;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-execute-scan:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 50%, #1e40af 100%) !important;
    border-color: #38bdf8 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(37, 99, 235, 0.75), 0 0 24px rgba(56, 189, 248, 0.7) !important;
    color: #ffffff !important;
}

.btn-execute-scan:active {
    transform: scale(0.98);
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.scan-loading-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spinCircle 0.75s linear infinite;
}

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

/* Holographic Laser Beam Indicator */
.scan-beam-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.scan-beam-ray {
    width: 100%;
    height: 70px;
    background: linear-gradient(180deg, rgba(0, 242, 254, 0.35) 0%, rgba(0, 242, 254, 0) 100%);
    position: absolute;
    top: -70px;
    left: 0;
    animation: laserSweep 1.5s ease-in-out infinite;
}

@keyframes laserSweep {
    0% { top: -70px; opacity: 0; }
    35% { opacity: 0.85; }
    85% { opacity: 0.85; }
    100% { top: 100%; opacity: 0; }
}

/* Quick Test Chips */
.quick-samples-row {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.samples-lead-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--text-dim);
}

.sample-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.38rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-hairline);
    background: rgba(11, 17, 35, 0.8);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    color: #ffffff;
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.chip.chip-legit {
    border-color: rgba(16, 185, 129, 0.25);
    color: #a7f3d0;
}

.chip.chip-legit:hover { background: var(--status-safe-bg); }

.chip.chip-phish {
    border-color: rgba(255, 51, 102, 0.25);
    color: #fecdd3;
}

.chip.chip-phish:hover { background: var(--status-phish-bg); }

/* Alert Box */
.alert-box-error {
    padding: 0.9rem 1.3rem;
    border-radius: var(--radius-md);
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    background: var(--status-phish-bg);
    border: 1px solid var(--status-phish-border);
    color: #ffe4e6;
}

/* --------------------------------------------------------------------------
   VERDICT SUMMARY CARD & THREAT GAUGE
   -------------------------------------------------------------------------- */
.results-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: subpaneFade 0.4s ease-out;
}

.verdict-summary-card {
    background: var(--bg-card);
    backdrop-filter: blur(26px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.85rem;
    box-shadow: var(--shadow-card);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.verdict-summary-card.state-safe {
    border-color: var(--status-safe);
    box-shadow: 0 0 35px var(--status-safe-glow), var(--shadow-card);
}

.verdict-summary-card.state-phishing {
    border-color: var(--status-phish);
    box-shadow: 0 0 35px var(--status-phish-glow), var(--shadow-card);
}

.verdict-left-block {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.verdict-badge-shield {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.state-safe .verdict-badge-shield {
    background: var(--status-safe-bg);
    color: var(--status-safe);
}

.state-phishing .verdict-badge-shield {
    background: var(--status-phish-bg);
    color: var(--status-phish);
}

.verdict-overline {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: var(--text-dim);
}

.verdict-heading {
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.2rem 0;
}

.state-safe .verdict-heading { color: var(--status-safe); }
.state-phishing .verdict-heading { color: var(--status-phish); }

.evaluated-url-row {
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.target-url-icon {
    color: var(--space-blue);
    display: inline-flex;
    align-items: center;
    filter: drop-shadow(0 0 6px var(--space-blue-glow));
}

.target-label { color: var(--text-dim); font-weight: 700; }
.target-mono { font-family: var(--font-mono); color: #ffffff; word-break: break-all; }

.verdict-metrics-group {
    display: flex;
    gap: 0.95rem;
    flex-wrap: wrap;
}

.metric-pill-box {
    background: rgba(6, 10, 22, 0.7);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.35rem;
    min-width: 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pill-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--text-dim);
}

.pill-val {
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 0.2rem;
    color: #ffffff;
}

.cyan-highlight { color: var(--accent-cyan); }
.small-val { font-size: 1.05rem; }

/* Threat Probability Card */
.probability-monitor-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 1.6rem 2rem;
}

.prob-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.prob-title { font-size: 0.98rem; font-weight: 700; }
.prob-subtext { font-size: 0.78rem; color: var(--text-dim); }

.prob-score-val {
    font-family: var(--font-mono);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.prob-track-outer {
    height: 12px;
    background: rgba(6, 10, 22, 0.9);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-hairline);
}

.prob-track-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--status-safe) 0%, var(--status-warn) 50%, var(--status-phish) 100%);
    border-radius: var(--radius-full);
    transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.prob-scale-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    color: var(--text-dim);
    margin-top: 0.55rem;
}

.legend-safe { color: var(--status-safe); }
.legend-danger { color: var(--status-phish); }

/* --------------------------------------------------------------------------
   2-COLUMN ANALYTICS MATRIX
   -------------------------------------------------------------------------- */
.analytics-matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.85rem;
}

@media (max-width: 960px) {
    .analytics-matrix-grid { grid-template-columns: 1fr; }
}

.matrix-card-pane {
    background: var(--bg-card);
    backdrop-filter: blur(26px);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    box-shadow: var(--shadow-card);
}

.matrix-card-topbar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--border-hairline);
    margin-bottom: 1.35rem;
}

.topbar-badge {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-warn { background: var(--status-warn-bg); color: var(--status-warn); }
.badge-matrix { background: var(--accent-glow); color: var(--accent-cyan); }
.badge-cm { background: var(--accent-glow); color: var(--accent-cyan); }
.badge-imp { background: var(--status-safe-bg); color: var(--status-safe); }

.matrix-pane-title { font-size: 1.1rem; font-weight: 700; }
.matrix-pane-desc { font-size: 0.8rem; color: var(--text-dim); }

/* Explanations List */
.explanations-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.reason-bullet-card {
    background: rgba(6, 10, 22, 0.65);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    transition: transform 0.2s, border-color 0.2s;
}

.reason-bullet-card:hover {
    transform: translateX(4px);
    border-color: var(--border-subtle);
}

.reason-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.reason-name-text { font-weight: 700; font-size: 0.9rem; color: #ffffff; }

.sev-tag-badge {
    font-size: 0.64rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.sev-high { background: var(--status-phish-bg); color: var(--status-phish); border: 1px solid var(--status-phish-border); }
.sev-medium { background: var(--status-warn-bg); color: var(--status-warn); border: 1px solid rgba(245, 158, 11, 0.4); }
.sev-low { background: var(--accent-glow); color: var(--accent-cyan); border: 1px solid rgba(0, 242, 254, 0.3); }
.sev-safe { background: var(--status-safe-bg); color: var(--status-safe); border: 1px solid var(--status-safe-border); }

.reason-description-text {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Feature Table */
.table-scroll-wrapper {
    overflow-x: auto;
    max-height: 420px;
}

.platform-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.platform-table th {
    text-align: left;
    padding: 0.8rem 0.95rem;
    color: var(--text-dim);
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1px solid var(--border-hairline);
    position: sticky;
    top: 0;
    background: #080d1c;
}

.platform-table td {
    padding: 0.7rem 0.95rem;
    border-bottom: 1px solid var(--border-hairline);
}

.mono-cell {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   SUB-PANE 2: MODEL BENCHMARK
   -------------------------------------------------------------------------- */
.benchmark-container-card {
    background: var(--bg-card);
    backdrop-filter: blur(26px);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    margin-bottom: 1.85rem;
    box-shadow: var(--shadow-card);
}

.benchmark-table-scroller {
    overflow-x: auto;
}

.platform-benchmark-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.platform-benchmark-table th, .platform-benchmark-table td {
    padding: 1.05rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-hairline);
}

.platform-benchmark-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

.active-winner-tag {
    background: var(--status-safe-bg);
    color: var(--status-safe);
    border: 1px solid var(--status-safe);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-left: 0.5rem;
}

.benchmark-dual-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.85rem;
}

@media (max-width: 900px) {
    .benchmark-dual-columns { grid-template-columns: 1fr; }
}

/* Confusion Matrix */
.cm-display-shell {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.cm-matrix-layout {
    display: grid;
    grid-template-columns: 125px 140px 140px;
    grid-template-rows: 38px 105px 105px;
    gap: 10px;
    text-align: center;
}

.cm-col-tag, .cm-row-tag {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-row-tag { justify-content: flex-end; padding-right: 0.8rem; }

.cm-metric-cell {
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-hairline);
    transition: transform 0.2s;
}

.cm-metric-cell:hover { transform: scale(1.03); }

.cm-cell-safe { background: var(--status-safe-bg); border-color: var(--status-safe-border); }
.cm-cell-danger { background: var(--status-phish-bg); border-color: var(--status-phish-border); }

.cm-big-num {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-heading);
}

.cm-desc-tag {
    font-size: 0.66rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Feature Importance */
.feature-importance-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.imp-bar-unit {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.imp-label-split {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
}

.imp-label-split span:first-child { font-family: var(--font-mono); font-weight: 600; }
.imp-val-cyan { color: var(--accent-interactive); font-weight: 700; }

.imp-track-bg {
    height: 7px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.imp-track-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan-dim) 0%, var(--accent-interactive) 100%);
    border-radius: var(--radius-full);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   SUB-PANE 3: VIVA MASTER CARDS
   -------------------------------------------------------------------------- */
.viva-master-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1.85rem;
}

.viva-brief-card {
    background: var(--bg-card);
    backdrop-filter: blur(26px);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 2.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s, border-color 0.25s;
}

.viva-brief-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.viva-order-index {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
}

.viva-domain-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--accent-interactive);
}

.viva-card-head {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-heading);
}

.viva-card-copy {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.formula-callout {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--accent-interactive);
    text-align: center;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.platform-footer {
    border-top: 1px solid var(--border-hairline);
    background: var(--bg-base);
    padding: 2.5rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.84rem;
    color: var(--text-dim);
}

.footer-title {
    font-weight: 800;
    letter-spacing: 0.12em;
    background: var(--gradient-metallic-split);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-right: 0.75rem;
}

.cyan-accent { color: var(--accent-cyan); }

.footer-back-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    transition: transform 0.2s;
}

.footer-back-link:hover { transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   AI SECURITY COPILOT ASSISTANT WIDGET
   -------------------------------------------------------------------------- */
.ai-assistant-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ai-assistant-toggle-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(56, 189, 248, 0.7);
    background: radial-gradient(circle at 35% 30%, rgba(14, 30, 72, 0.95), rgba(3, 8, 22, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9), 
                0 0 25px rgba(56, 189, 248, 0.55), 
                0 0 55px rgba(99, 102, 241, 0.25), 
                inset 0 0 18px rgba(56, 189, 248, 0.22);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease;
    animation: akeraOrbLevitate 3.6s ease-in-out infinite;
}

.ai-assistant-toggle-btn:hover {
    transform: translateY(-4px) scale(1.12);
    border-color: #38bdf8;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.95), 
                0 0 35px rgba(56, 189, 248, 0.9), 
                0 0 70px rgba(99, 102, 241, 0.45), 
                inset 0 0 24px rgba(56, 189, 248, 0.35);
}

.ai-assistant-toggle-btn:active {
    transform: scale(0.95);
}

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

.akera-pulse-wave {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(56, 189, 248, 0.75);
    pointer-events: none;
}

.akera-pulse-wave.ring-1 {
    animation: akeraPulseWave 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite 0s;
}

.akera-pulse-wave.ring-2 {
    animation: akeraPulseWave 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite 1.2s;
}

@keyframes akeraPulseWave {
    0% { transform: scale(0.92); opacity: 0.95; }
    100% { transform: scale(1.75); opacity: 0; }
}

.ai-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.akera-orb-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.85)) drop-shadow(0 0 20px rgba(99, 102, 241, 0.45));
    display: block;
    animation: akeraSmileyBreathe 3s ease-in-out infinite;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.ai-assistant-toggle-btn:hover .akera-orb-icon {
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 1)) drop-shadow(0 0 28px rgba(99, 102, 241, 0.75));
}

@keyframes akeraSmileyBreathe {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.75)) drop-shadow(0 0 16px rgba(99, 102, 241, 0.35));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 14px rgba(56, 189, 248, 1)) drop-shadow(0 0 26px rgba(16, 185, 129, 0.65));
    }
}

.ai-assistant-panel {
    position: fixed;
    bottom: 86px;
    right: 24px;
    width: 410px;
    max-width: calc(100vw - 32px);
    height: 560px;
    max-height: calc(100vh - 110px);
    background: rgba(5, 10, 22, 0.96);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.95), 0 0 45px rgba(255, 255, 255, 0.15), inset 0 0 24px rgba(56, 189, 248, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    animation: aiPanelSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.akera-scanline-fx {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%), linear-gradient(90deg, rgba(56, 189, 248, 0.02), rgba(0, 0, 0, 0), rgba(56, 189, 248, 0.02));
    background-size: 100% 3px, 6px 100%;
    pointer-events: none;
    opacity: 0.55;
    z-index: 1;
}

@keyframes aiPanelSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-panel-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(10, 18, 36, 0.92) 0%, rgba(6, 11, 24, 0.88) 100%);
}

.ai-panel-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.akera-avatar-badge {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, rgba(6, 11, 24, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.akera-avatar-orb-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.85));
    animation: akeraOrbBreathing 4s ease-in-out infinite;
    display: block;
}

@keyframes akeraOrbBreathing {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.7));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.95)) drop-shadow(0 0 24px rgba(52, 211, 153, 0.6));
    }
}

.akera-avatar-radar {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px dashed rgba(56, 189, 248, 0.65);
    animation: akeraSpin 10s linear infinite;
}

@keyframes akeraSpin {
    100% { transform: rotate(360deg); }
}

.akera-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.akera-chip-ver {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    padding: 0.1rem 0.42rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.ai-panel-title {
    font-size: 0.98rem;
    font-weight: 800;
    margin: 0;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    background: var(--gradient-metallic-split);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85));
}

.ai-panel-subtitle {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-cyan);
    letter-spacing: 0.08em;
    display: block;
    margin-top: 1px;
}

.ai-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 0.35rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
}

.ai-btn-ghost:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.ai-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    scroll-behavior: smooth;
}

.ai-messages-container::-webkit-scrollbar {
    width: 4px;
}
.ai-messages-container::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.2);
    border-radius: 4px;
}

.ai-msg {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ai-msg-user {
    align-items: flex-end;
}

.ai-msg-bot {
    align-items: flex-start;
}

.ai-msg-user .ai-msg-bubble {
    position: relative;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(14, 165, 233, 0.14) 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    border-radius: 14px 14px 2px 14px;
    padding: 0.7rem 1rem;
    font-size: 0.84rem;
    max-width: 85%;
    line-height: 1.45;
    word-break: break-word;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.ai-msg-bot .ai-msg-bubble {
    position: relative;
    background: rgba(6, 12, 26, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 3px solid var(--accent-cyan);
    color: var(--text-light);
    border-radius: 2px 14px 14px 14px;
    padding: 0.85rem 1.05rem;
    font-size: 0.84rem;
    max-width: 92%;
    line-height: 1.55;
    word-break: break-word;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), inset 0 0 16px rgba(56, 189, 248, 0.03);
}

.akera-agent-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    margin-bottom: 0.4rem;
    padding: 0.16rem 0.55rem 0.16rem 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.akera-agent-tag::before {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    background: url('images/akera_orb.png') center / contain no-repeat;
    border-radius: 50%;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.85));
    flex-shrink: 0;
}

.akera-user-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
    text-align: right;
}

.akera-inline-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.chip-glow-bullet {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan);
    margin-right: 0.35rem;
}

.ai-msg-bot .ai-msg-bubble p {
    margin: 0 0 0.55rem 0;
}
.ai-msg-bot .ai-msg-bubble p:last-child {
    margin-bottom: 0;
}
.ai-msg-bot .ai-msg-bubble strong {
    color: #ffffff;
}
.ai-msg-bot .ai-msg-bubble code {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}
.ai-msg-bot .ai-msg-bubble ul {
    margin: 0.35rem 0 0.55rem 1.15rem;
    padding: 0;
}
.ai-msg-bot .ai-msg-bubble li {
    margin-bottom: 0.3rem;
}

/* Threat Report Card Inside AI Chat */
.ai-report-card {
    background: rgba(4, 8, 18, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 0.9rem;
    margin: 0.55rem 0;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}
.ai-report-card.report-phish {
    border-color: rgba(255, 59, 48, 0.55);
    background: rgba(255, 59, 48, 0.08);
    box-shadow: 0 0 16px rgba(255, 59, 48, 0.15);
}
.ai-report-card.report-safe {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.12);
}
.ai-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
    font-weight: 700;
}
.ai-report-tag {
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}
.ai-report-tag.tag-phish {
    background: var(--status-phish);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
}
.ai-report-tag.tag-safe {
    background: rgba(0, 242, 254, 0.25);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.35);
}

.ai-suggestions-wrap {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.ai-suggestions-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.ai-suggestions-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ai-sugg-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-light);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    user-select: none;
}

.ai-sugg-chip:hover {
    color: #ffffff;
    border-color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
    transform: translateY(-1px);
}

/* Typing Indicator Animation */
.ai-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.4rem 0.6rem;
}
.ai-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    opacity: 0.4;
    animation: typingBounce 1.2s infinite ease-in-out;
}
.ai-typing-dot:nth-child(1) { animation-delay: 0s; }
.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40% { transform: scale(1.15); opacity: 1; }
}

.ai-chat-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    border-top: 1px solid var(--border-hairline);
    background: rgba(4, 8, 18, 0.88);
}

.ai-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-hairline);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s;
}

.ai-chat-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.ai-chat-input::placeholder {
    color: var(--text-dim);
    font-size: 0.78rem;
}

.ai-paste-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.12);
    color: var(--space-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
    transition: all 0.2s ease;
}

.ai-paste-btn:hover {
    background: rgba(56, 189, 248, 0.28);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.65);
    transform: translateY(-1px);
}

.ai-paste-btn:active {
    transform: scale(0.95);
    background: rgba(56, 189, 248, 0.45);
}

/* Voice Assistant Microphone Button */
.ai-voice-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
    transition: all 0.2s ease;
}

.ai-voice-btn:hover {
    background: rgba(56, 189, 248, 0.28);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.65);
    transform: translateY(-1px);
}

.ai-voice-btn:active {
    transform: scale(0.95);
}

/* --------------------------------------------------------------------------
   VOICE ASSISTANT & LISTENING ANIMATION SUITE
   -------------------------------------------------------------------------- */

/* Panel Listening Breathing Border Aura */
.ai-assistant-panel.is-listening {
    border-color: rgba(56, 189, 248, 0.7) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.95), 
                0 0 40px rgba(56, 189, 248, 0.38), 
                0 0 85px rgba(99, 102, 241, 0.22), 
                inset 0 0 25px rgba(56, 189, 248, 0.12) !important;
    animation: panelListeningBreath 2.2s infinite ease-in-out;
}

@keyframes panelListeningBreath {
    0%, 100% {
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.3), 0 0 70px rgba(99, 102, 241, 0.15), inset 0 0 20px rgba(56, 189, 248, 0.08);
    }
    50% {
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.95), 0 0 58px rgba(56, 189, 248, 0.6), 0 0 115px rgba(99, 102, 241, 0.35), inset 0 0 38px rgba(56, 189, 248, 0.22);
    }
}

/* Header Subtitle Listening Glow */
.listening-glow-text {
    color: #38bdf8 !important;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.75);
    animation: listeningTextPulse 1.2s infinite alternate;
}

@keyframes listeningTextPulse {
    0% { opacity: 0.75; }
    100% { opacity: 1; text-shadow: 0 0 14px rgba(56, 189, 248, 1); }
}

/* Speaking Aura for Akera Header Orb */
.ai-panel-header.speaking-active .ai-avatar-orb {
    animation: speakingOrbPulse 1.1s infinite ease-in-out;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.95), 0 0 50px rgba(99, 102, 241, 0.6) !important;
}

@keyframes speakingOrbPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.09); filter: brightness(1.25) drop-shadow(0 0 16px #38bdf8); }
}

/* Microphone Button in Listening Mode */
.ai-voice-btn.listening {
    background: rgba(56, 189, 248, 0.22) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.8), inset 0 0 10px rgba(56, 189, 248, 0.4);
    animation: voiceButtonPulse 1.2s infinite ease-in-out;
}

@keyframes voiceButtonPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(56, 189, 248, 0.5); }
    50% { transform: scale(1.08); box-shadow: 0 0 26px rgba(56, 189, 248, 0.95); }
}

.ai-voice-btn .mic-ping-ring {
    display: none;
}

.ai-voice-btn.listening .mic-ping-ring {
    display: block;
    position: absolute;
    inset: -4px;
    border-radius: 12px;
    border: 1.5px solid rgba(56, 189, 248, 0.85);
    pointer-events: none;
}

.ai-voice-btn.listening .mic-ping-ring.ring-1 {
    animation: micPingWave 1.4s cubic-bezier(0.1, 0.4, 0.6, 1) infinite 0s;
}
.ai-voice-btn.listening .mic-ping-ring.ring-2 {
    animation: micPingWave 1.4s cubic-bezier(0.1, 0.4, 0.6, 1) infinite 0.45s;
}
.ai-voice-btn.listening .mic-ping-ring.ring-3 {
    animation: micPingWave 1.4s cubic-bezier(0.1, 0.4, 0.6, 1) infinite 0.9s;
}

@keyframes micPingWave {
    0% { transform: scale(0.95); opacity: 0.95; }
    100% { transform: scale(2.1); opacity: 0; }
}

/* Docked Voice Listening HUD Banner */
.ai-voice-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.95rem;
    background: rgba(3, 8, 22, 0.97);
    border-top: 1px solid rgba(56, 189, 248, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #e0f2fe;
    box-shadow: 0 -4px 18px rgba(56, 189, 248, 0.15);
    animation: voiceStatusSlide 0.22s ease-out;
}

.ai-voice-status.hidden {
    display: none !important;
}

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

.voice-status-core {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.voice-radar-pulse {
    position: relative;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.radar-circle {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid #38bdf8;
    pointer-events: none;
}

.radar-circle.rc-1 {
    animation: radarRipple 1.4s infinite cubic-bezier(0, 0.2, 0.8, 1);
}
.radar-circle.rc-2 {
    animation: radarRipple 1.4s infinite cubic-bezier(0, 0.2, 0.8, 1) 0.55s;
}

@keyframes radarRipple {
    0% { transform: scale(0.55); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

.voice-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: liveBlink 0.85s infinite;
}

.voice-status-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.voice-status-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.voice-status-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.1em;
}

.voice-status-freq {
    font-size: 0.52rem;
    font-weight: 700;
    color: #94a3b8;
    padding: 0.05rem 0.3rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.voice-status-text {
    color: #e2e8f0;
    font-size: 0.66rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Docked Equalizer Multi-Bars (12 Bars) */
.voice-equalizer-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 15px;
    flex-shrink: 0;
}

.voice-equalizer-bars span {
    width: 2.5px;
    border-radius: 2px;
    background: linear-gradient(180deg, #38bdf8, #818cf8);
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
    height: 3px;
}

.voice-equalizer-bars span:nth-child(1)  { animation: eqBounceA 0.55s ease-in-out infinite alternate 0.0s; }
.voice-equalizer-bars span:nth-child(2)  { animation: eqBounceB 0.70s ease-in-out infinite alternate 0.1s; }
.voice-equalizer-bars span:nth-child(3)  { animation: eqBounceC 0.62s ease-in-out infinite alternate 0.2s; }
.voice-equalizer-bars span:nth-child(4)  { animation: eqBounceA 0.50s ease-in-out infinite alternate 0.15s; }
.voice-equalizer-bars span:nth-child(5)  { animation: eqBounceB 0.80s ease-in-out infinite alternate 0.25s; }
.voice-equalizer-bars span:nth-child(6)  { animation: eqBounceC 0.58s ease-in-out infinite alternate 0.05s; }
.voice-equalizer-bars span:nth-child(7)  { animation: eqBounceA 0.72s ease-in-out infinite alternate 0.3s; }
.voice-equalizer-bars span:nth-child(8)  { animation: eqBounceB 0.64s ease-in-out infinite alternate 0.18s; }
.voice-equalizer-bars span:nth-child(9)  { animation: eqBounceC 0.52s ease-in-out infinite alternate 0.22s; }
.voice-equalizer-bars span:nth-child(10) { animation: eqBounceA 0.68s ease-in-out infinite alternate 0.08s; }
.voice-equalizer-bars span:nth-child(11) { animation: eqBounceB 0.60s ease-in-out infinite alternate 0.28s; }
.voice-equalizer-bars span:nth-child(12) { animation: eqBounceC 0.75s ease-in-out infinite alternate 0.12s; }

@keyframes eqBounceA { 0% { height: 2px; } 100% { height: 14px; } }
@keyframes eqBounceB { 0% { height: 4px; } 100% { height: 12px; } }
@keyframes eqBounceC { 0% { height: 3px; } 100% { height: 15px; } }

/* --------------------------------------------------------------------------
   IN-CHAT ACTIVE LISTENING ANIMATION CARD & HOLOGRAPHIC WAVEFORM
   -------------------------------------------------------------------------- */
.ai-listening-active-card {
    animation: listeningCardAppear 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin-bottom: 0.85rem;
}

@keyframes listeningCardAppear {
    from { opacity: 0; transform: translateY(14px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.listening-avatar-halo {
    position: relative;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listening-avatar-orb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    animation: avatarListeningSpin 4s linear infinite;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.85));
}

@keyframes avatarListeningSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.listening-halo-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.75);
    animation: haloPulse 1.4s ease-out infinite;
    pointer-events: none;
}

@keyframes haloPulse {
    0% { transform: scale(0.85); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.voice-listening-bubble {
    background: linear-gradient(135deg, rgba(8, 20, 52, 0.94), rgba(4, 10, 28, 0.98)) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 28px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
    padding: 0.95rem 1.05rem !important;
    border-radius: 14px !important;
    width: 100%;
    max-width: 340px;
}

.listening-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

.listening-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.listening-sonar-ping {
    position: absolute;
    left: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid #38bdf8;
    animation: sonarPing 1.2s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

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

.listening-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: liveDotPulse 0.8s infinite alternate;
}

@keyframes liveDotPulse {
    0% { transform: scale(0.85); box-shadow: 0 0 6px #38bdf8; }
    100% { transform: scale(1.15); box-shadow: 0 0 14px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.6); }
}

.listening-live-label {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #e0f2fe;
}

.listening-freq-tag {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    font-weight: 700;
    color: #38bdf8;
    padding: 0.15rem 0.45rem;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 10px;
    letter-spacing: 0.08em;
}

/* Wave Stage: 20 Glowing Multi-Band Frequency Bars & Siri Glow Beam */
.listening-wave-stage {
    position: relative;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.55rem 0 0.8rem 0;
    background: rgba(2, 6, 18, 0.65);
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    overflow: hidden;
}

.listening-wave-glow-beam {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.3) 0%, rgba(99, 102, 241, 0.15) 50%, transparent 75%);
    pointer-events: none;
    animation: waveGlowShift 2.5s infinite ease-in-out alternate;
}

@keyframes waveGlowShift {
    0% { opacity: 0.6; transform: scaleX(0.9); }
    100% { opacity: 1; transform: scaleX(1.1); }
}

.listening-soundwave-bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5px;
    height: 50px;
    z-index: 2;
    position: relative;
}

.sw-bar {
    width: 3.5px;
    border-radius: 4px;
    background: linear-gradient(180deg, #38bdf8 0%, #818cf8 50%, #06b6d4 100%);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.55);
    transform-origin: center;
    height: 6px;
}

/* Staggered high-fidelity wave harmonics across 20 bars */
.sw-bar.w-1  { animation: waveBounceA 0.88s infinite ease-in-out alternate 0.0s; }
.sw-bar.w-2  { animation: waveBounceB 0.72s infinite ease-in-out alternate 0.08s; }
.sw-bar.w-3  { animation: waveBounceC 0.82s infinite ease-in-out alternate 0.18s; }
.sw-bar.w-4  { animation: waveBounceD 0.62s infinite ease-in-out alternate 0.04s; }
.sw-bar.w-5  { animation: waveBounceA 0.78s infinite ease-in-out alternate 0.22s; }
.sw-bar.w-6  { animation: waveBounceC 0.92s infinite ease-in-out alternate 0.12s; }
.sw-bar.w-7  { animation: waveBounceB 0.68s infinite ease-in-out alternate 0.28s; }
.sw-bar.w-8  { animation: waveBounceD 0.84s infinite ease-in-out alternate 0.08s; }
.sw-bar.w-9  { animation: waveBounceA 0.58s infinite ease-in-out alternate 0.32s; }
.sw-bar.w-10 { animation: waveBounceC 0.88s infinite ease-in-out alternate 0.04s; }
.sw-bar.w-11 { animation: waveBounceB 0.78s infinite ease-in-out alternate 0.18s; }
.sw-bar.w-12 { animation: waveBounceD 0.64s infinite ease-in-out alternate 0.14s; }
.sw-bar.w-13 { animation: waveBounceA 0.82s infinite ease-in-out alternate 0.28s; }
.sw-bar.w-14 { animation: waveBounceC 0.68s infinite ease-in-out alternate 0.08s; }
.sw-bar.w-15 { animation: waveBounceB 0.86s infinite ease-in-out alternate 0.24s; }
.sw-bar.w-16 { animation: waveBounceD 0.72s infinite ease-in-out alternate 0.04s; }
.sw-bar.w-17 { animation: waveBounceA 0.78s infinite ease-in-out alternate 0.18s; }
.sw-bar.w-18 { animation: waveBounceC 0.82s infinite ease-in-out alternate 0.08s; }
.sw-bar.w-19 { animation: waveBounceB 0.68s infinite ease-in-out alternate 0.28s; }
.sw-bar.w-20 { animation: waveBounceD 0.92s infinite ease-in-out alternate 0.12s; }

@keyframes waveBounceA {
    0% { height: 6px; opacity: 0.45; filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.4)); }
    100% { height: 44px; opacity: 1; filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.95)); }
}
@keyframes waveBounceB {
    0% { height: 10px; opacity: 0.55; filter: drop-shadow(0 0 4px rgba(129, 140, 248, 0.4)); }
    100% { height: 38px; opacity: 1; filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.9)); }
}
@keyframes waveBounceC {
    0% { height: 5px; opacity: 0.4; filter: drop-shadow(0 0 2px rgba(6, 182, 212, 0.4)); }
    100% { height: 48px; opacity: 1; filter: drop-shadow(0 0 14px rgba(6, 182, 212, 1)); }
}
@keyframes waveBounceD {
    0% { height: 12px; opacity: 0.6; filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.5)); }
    100% { height: 34px; opacity: 1; filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.85)); }
}

/* Dynamic speech intensity amplifier */
.ai-listening-active-card.speech-detected .sw-bar {
    filter: drop-shadow(0 0 16px #38bdf8) !important;
}

/* Live speech feedback row */
.listening-speech-feedback {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.speech-status-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.78rem;
    color: #e0f2fe;
}

.mic-wave-icon {
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.speech-feedback-text {
    flex: 1;
    line-height: 1.45;
}

.interim-spoken {
    color: #38bdf8;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.65);
    background: rgba(56, 189, 248, 0.12);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.listening-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.45rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.listening-hint-pill {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #94a3b8;
}

.listening-stop-btn {
    background: rgba(255, 59, 48, 0.16);
    border: 1px solid rgba(255, 59, 48, 0.45);
    color: #fca5a5;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.listening-stop-btn:hover {
    background: rgba(255, 59, 48, 0.35);
    border-color: #ff3b30;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 59, 48, 0.5);
    transform: translateY(-1px);
}

.voice-starter-chip {
    border-color: rgba(56, 189, 248, 0.5) !important;
    background: rgba(56, 189, 248, 0.15) !important;
    color: #e0f2fe !important;
    font-weight: 700 !important;
}

.voice-mic-chip {
    border-color: rgba(99, 102, 241, 0.5) !important;
    background: rgba(99, 102, 241, 0.15) !important;
    color: #e0e7ff !important;
    font-weight: 700 !important;
}

.voice-mic-chip:hover {
    border-color: #818cf8 !important;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.4) !important;
}

/* Conversational Follow-Up Card */
.akera-followup-card {
    margin-top: 0.85rem;
    padding: 0.65rem 0.85rem;
    background: rgba(3, 9, 24, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(56, 189, 248, 0.05);
}

.akera-followup-prompt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
}

.followup-sparkle {
    font-size: 0.85rem;
    animation: sparkleSpin 2.2s infinite ease-in-out alternate;
}

@keyframes sparkleSpin {
    0% { transform: scale(0.85) rotate(-10deg); opacity: 0.7; }
    100% { transform: scale(1.15) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 6px #38bdf8); }
}

.followup-text {
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, #ffffff 0%, #7dd3fc 70%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.akera-followup-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Command Grid Inside Chat */
.akera-cmd-card {
    background: rgba(2, 6, 18, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    margin: 0.5rem 0;
    font-size: 0.76rem;
}

.cmd-category-title {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.12em;
    margin: 0.55rem 0 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cmd-category-title:first-child {
    margin-top: 0;
}

.cmd-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.45rem;
}

.cmd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.32rem 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.cmd-item:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateX(2px);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.cmd-name {
    font-family: var(--font-mono);
    color: #e0f2fe;
    font-weight: 700;
    font-size: 0.74rem;
}

.cmd-desc {
    color: #94a3b8;
    font-size: 0.66rem;
}

.ai-btn-ghost.muted {
    opacity: 0.45;
    color: var(--text-dim) !important;
}

/* Google Gemini & OpenAI ChatGPT Key Button & Modal */
.ai-btn-ghost.gemini-btn,
.ai-btn-ghost.chatgpt-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(56, 189, 248, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #e0f2fe;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-btn-ghost.gemini-btn:hover,
.ai-btn-ghost.chatgpt-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(56, 189, 248, 0.4));
    border-color: #34d399;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.ai-btn-ghost.gemini-btn.has-key,
.ai-btn-ghost.chatgpt-btn.has-key {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(56, 189, 248, 0.25));
    color: #6ee7b7;
}

.gemini-sparkle-icon,
.chatgpt-sparkle-icon {
    font-size: 0.72rem;
    animation: geminiPulse 2s infinite ease-in-out;
}

@keyframes geminiPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.18); opacity: 1; filter: drop-shadow(0 0 4px #10b981); }
}

.gemini-key-label,
.chatgpt-key-label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
}

/* Gemini Configuration Drawer / Modal */
.ai-gemini-modal {
    position: absolute;
    top: 52px;
    left: 10px;
    right: 10px;
    background: rgba(4, 9, 26, 0.96);
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.85rem;
    animation: geminiModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-gemini-modal.hidden {
    display: none !important;
}

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

.gemini-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.gemini-modal-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    color: #d8b4fe;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.gemini-modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.gemini-modal-close-btn:hover {
    color: #ffffff;
}

.gemini-modal-desc {
    font-size: 0.7rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 0.65rem;
}

.gemini-input-group label {
    display: block;
    font-size: 0.62rem;
    color: #94a3b8;
    font-family: var(--font-mono);
    margin-bottom: 0.3rem;
}

.gemini-input-row {
    display: flex;
    gap: 0.45rem;
}

.gemini-input-row input {
    flex: 1;
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
    color: #ffffff;
    font-family: var(--font-mono);
    outline: none;
    transition: border-color 0.2s;
}

.gemini-input-row input:focus {
    border-color: #c084fc;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.gemini-input-row button {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.gemini-input-row button:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.gemini-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.65rem;
    font-size: 0.64rem;
}

.gemini-key-status {
    color: #94a3b8;
    font-family: var(--font-mono);
}

.gemini-key-status.active {
    color: #4ade80;
    font-weight: 700;
}

.gemini-get-key-link {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.gemini-get-key-link:hover {
    color: #7dd3fc;
}

/* Gemini & ChatGPT & Offline Neural Core Agent Tags */
.akera-agent-tag.gemini-tag,
.akera-agent-tag.chatgpt-tag {
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.22), rgba(56, 189, 248, 0.12));
}

.akera-agent-tag.gemini-tag span,
.akera-agent-tag.chatgpt-tag span {
    color: #a7f3d0;
}

.akera-agent-tag.offline-tag {
    border-color: rgba(56, 189, 248, 0.45);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(129, 140, 248, 0.12));
}

.akera-agent-tag.offline-tag span {
    color: #7dd3fc;
}

.gemini-response-text,
.chatgpt-response-text {
    line-height: 1.5;
    font-size: 0.81rem;
    color: #f1f5f9;
}

.gemini-response-text p,
.chatgpt-response-text p {
    margin-bottom: 0.5rem;
}

.gemini-response-text p:last-child,
.chatgpt-response-text p:last-child {
    margin-bottom: 0;
}

.gemini-response-text ul, .gemini-response-text ol,
.chatgpt-response-text ul, .chatgpt-response-text ol {
    margin: 0.35rem 0 0.5rem 1.15rem;
    padding: 0;
}

.gemini-response-text li,
.chatgpt-response-text li {
    margin-bottom: 0.25rem;
}

.gemini-open-key-btn,
.chatgpt-open-key-btn {
    background: transparent;
    border: 1px dashed rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
    transition: all 0.2s;
}

.gemini-open-key-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: #c084fc;
}

.ai-chat-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-chat-send-btn:hover {
    background: #ffffff;
    color: #02050d;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

@media (max-width: 640px) {
    .ai-assistant-widget {
        bottom: 16px;
        right: 16px;
    }
    .ai-assistant-panel {
        bottom: 74px;
        right: 12px;
        left: 12px;
        width: auto;
        height: 480px;
        max-width: none;
    }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* --------------------------------------------------------------------------
   COSMIC HERO CENTERPIECE (MATCHING CODEUNIVI UNIVERSE REFERENCE)
   -------------------------------------------------------------------------- */
.hero-cosmic-center {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 28px;
    background: radial-gradient(ellipse at center, rgba(1, 2, 6, 0.45) 0%, rgba(1, 2, 6, 0.15) 60%, transparent 80%);
}

.hero-cosmic-title {
    font-family: var(--font-sans);
    font-size: clamp(2.8rem, 6.2vw, 5.0rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    background: var(--gradient-metallic-split);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    color: transparent;
    margin-bottom: 1.6rem;
    filter: drop-shadow(0 4px 35px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 35px rgba(56, 189, 248, 0.28));
}

.hero-cosmic-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.08em;
    background: var(--gradient-metallic-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 0 35px rgba(56, 189, 248, 0.9)) drop-shadow(0 0 65px rgba(56, 189, 248, 0.55));
}

.hero-cosmic-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
    font-weight: 400;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.95), 0 1px 6px rgba(0, 0, 0, 0.9);
}

.hero-cosmic-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Luminous Universe White/Gold Pill Button matching "Create your plan" */
.btn-universe-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #ffffff;
    color: #030712 !important;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.82rem 2.1rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.55), 0 0 65px rgba(56, 189, 248, 0.3), 0 8px 24px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.95);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-universe-pill:hover {
    background: #ffffff;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 0 55px rgba(255, 255, 255, 0.85), 0 0 85px rgba(56, 189, 248, 0.5), 0 12px 30px rgba(0, 0, 0, 0.85);
}

.btn-universe-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 14, 28, 0.65);
    backdrop-filter: blur(12px);
    transition: all 0.22s;
}

.btn-universe-ghost:hover {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(14, 24, 48, 0.85);
    transform: translateY(-2px);
}


/* --------------------------------------------------------------------------
   MULTI-LAYERED UI ENHANCEMENTS (COSMIC TELEMETRY HUD & CODE WATERFALL)
   -------------------------------------------------------------------------- */

/* Top Floating Cosmic HUD Strip */
.cosmic-hud-strip {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(2, 6, 14, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-hairline);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    padding: 0.35rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    overflow-x: auto;
    white-space: nowrap;
}

.cosmic-hud-strip strong {
    color: #ffffff;
    font-weight: 700;
}

.hud-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hud-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.45);
}

.hud-dot.live-blink {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: liveBlink 1.6s infinite;
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.25); }
}

/* Ambient Right-Edge Code Waterfall Stream Overlay (Matching Pinterest Pin) */
.hud-code-waterfall-stream {
    position: fixed;
    top: 110px;
    right: 24px;
    width: 320px;
    height: calc(100vh - 140px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, transparent 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1100px) {
    .hud-code-waterfall-stream { display: none; }
}

.code-stream-inner {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    color: rgba(224, 242, 254, 0.88);
    letter-spacing: 0.04em;
    animation: codeStreamScroll 22s linear infinite;
}

.code-stream-inner span {
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

@keyframes codeStreamScroll {
    0% { transform: translateY(0%); }
    100% { transform: translateY(-50%); }
}

/* Hero Multi-Layer Stats Badges */
.hero-layer-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.95rem;
    flex-wrap: wrap;
    margin-top: 2.25rem;
}

.layer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(8, 14, 28, 0.72);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    padding: 0.42rem 1.15rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transition: all 0.25s ease;
}

.layer-pill:hover {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(14, 24, 46, 0.9);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.25);
}

.layer-pill svg {
    color: #ffffff;
}

.layer-pill strong {
    color: #ffffff;
    font-weight: 700;
}

/* Multi-Tier Glass Card Highlights (Corner Cyber Brackets & Layer Depth) */
.intel-card, .matrix-card, .chart-card, .table-card {
    position: relative;
    border: 1px solid var(--border-hairline) !important;
    background: rgba(6, 11, 24, 0.8) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.intel-card::before, .matrix-card::before, .chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    pointer-events: none;
}

.intel-card:hover, .matrix-card:hover, .chart-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.95), 0 0 40px rgba(56, 189, 248, 0.2) !important;
}

/* ==========================================================================
   CREATION OF ADAM: TWO HANDS LIQUID CHROME CINEMATIC INTRO
   ========================================================================== */
.intro-hand-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.85s;
    will-change: opacity, transform;
}

.intro-hand-overlay.revealing {
    opacity: 0 !important;
    transform: scale(1.06) !important;
    pointer-events: none !important;
}

.intro-hand-overlay.hidden-finished {
    display: none !important;
}

/* Stardust & subtle deep void gradient */
.intro-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(12, 22, 40, 0.5) 0%, #000000 70%);
    pointer-events: none;
}

.intro-stardust {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1.5px 1.5px at 70% 25%, rgba(56, 189, 248, 0.5), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1.5px 1.5px at 85% 65%, rgba(255, 255, 255, 0.4), transparent);
    background-size: 550px 550px;
    opacity: 0.6;
    pointer-events: none;
}

/* Intro Stage holding the two hands */
.intro-stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Hand wrappers: Left and Right */
.hand-wrapper {
    position: absolute;
    top: 50%;
    transform: translate3d(0, -50%, 0);
    width: min(54vw, 720px);
    max-height: 480px;
    display: flex;
    align-items: center;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
}

.hand-img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transition: filter 0.3s ease;
}

/* Left Hand (Adam): starts hidden/offset until image is decoded, then glides */
.hand-left-wrapper {
    right: 50%;
    justify-content: flex-end;
    transform: translate3d(-42vw, -50%, 0);
    opacity: 0;
}

.hand-left-wrapper.animate-glide {
    animation: leftHandGlideIn 2.2s cubic-bezier(0.12, 0.95, 0.28, 1) forwards;
}

/* Right Hand (Divine/AI Matrix): starts hidden/offset until image is decoded, then glides */
.hand-right-wrapper {
    left: 50%;
    justify-content: flex-start;
    transform: translate3d(42vw, -50%, 0);
    opacity: 0;
}

.hand-right-wrapper.animate-glide {
    animation: rightHandGlideIn 2.2s cubic-bezier(0.12, 0.95, 0.28, 1) forwards;
}

/* Contact glow state triggered on fingertip meeting */
.hand-wrapper.contact-glow .hand-img {
    filter: drop-shadow(0 0 35px rgba(56, 189, 248, 0.95)) brightness(1.25);
}

/* Fast-forward state when skipped or clicked */
.hand-left-wrapper.fast-glide {
    animation-duration: 0.35s !important;
}

.hand-right-wrapper.fast-glide {
    animation-duration: 0.35s !important;
}

/* Smooth keyframes using translate3d for 60fps/120fps hardware acceleration */
@keyframes leftHandGlideIn {
    0% {
        transform: translate3d(-42vw, -50%, 0);
        opacity: 0.15;
    }
    35% {
        opacity: 0.9;
    }
    85% {
        transform: translate3d(-2px, -50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate3d(0px, -50%, 0);
        opacity: 1;
    }
}

@keyframes rightHandGlideIn {
    0% {
        transform: translate3d(42vw, -50%, 0);
        opacity: 0.15;
    }
    35% {
        opacity: 0.9;
    }
    85% {
        transform: translate3d(2px, -50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate3d(0px, -50%, 0);
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   CENTRAL CONTACT SPARK & SHOCKWAVE SYSTEM
   -------------------------------------------------------------------------- */
.intro-contact-point {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 2px;
    pointer-events: none;
    z-index: 100;
}

.contact-core-spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    box-shadow: 0 0 20px #ffffff, 0 0 45px #38bdf8, 0 0 90px rgba(56, 189, 248, 0.85);
    opacity: 0;
}

.contact-rays-spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38bdf8, #ffffff, #38bdf8, transparent);
    transform: translate(-50%, -50%) scaleX(0);
    opacity: 0;
    filter: drop-shadow(0 0 14px #38bdf8);
}

.contact-wave-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.7);
}

.contact-wave-ring.ring-2 {
    border-color: rgba(56, 189, 248, 0.85);
    border-width: 1.5px;
}

.contact-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, rgba(56, 189, 248, 0.12) 40%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}

/* Activated state triggers */
.intro-contact-point.triggered .contact-core-spark {
    opacity: 1;
    animation: sparkPulse 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-contact-point.triggered .contact-rays-spark {
    opacity: 1;
    animation: sparkRaysBurst 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-contact-point.triggered .ring-1 {
    animation: shockwaveExpand 0.95s cubic-bezier(0.12, 0.9, 0.28, 1) forwards;
}

.intro-contact-point.triggered .ring-2 {
    animation: shockwaveExpand 1.05s 0.08s cubic-bezier(0.12, 0.9, 0.28, 1) forwards;
}

.intro-contact-point.triggered .contact-ambient-glow {
    animation: ambientGlowFlash 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sparkPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    25% {
        transform: translate(-50%, -50%) scale(4.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(7.0);
        opacity: 0;
    }
}

@keyframes sparkRaysBurst {
    0% {
        transform: translate(-50%, -50%) scaleX(0.2) rotate(0deg);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scaleX(3.5) rotate(15deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scaleX(5.5) rotate(35deg);
        opacity: 0;
    }
}

@keyframes shockwaveExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 1;
    }
    60% {
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(8.5);
        opacity: 0;
    }
}

@keyframes ambientGlowFlash {
    0% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 0;
    }
    25% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.8);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   HUD LABELS & SKIP BUTTON
   -------------------------------------------------------------------------- */
.intro-footer-hud {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    text-align: center;
    z-index: 50;
    animation: hudFadeIn 1.5s ease forwards;
}

.intro-hud-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(8, 15, 30, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: #cbd5e1;
}

.hud-blink-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: hudBlink 1.2s infinite ease-in-out;
}

.intro-hud-prompt {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    color: var(--text-dim);
    margin: 0;
}

.intro-skip-btn {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: rgba(12, 20, 36, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    padding: 0.45rem 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    z-index: 200;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.intro-skip-btn:hover {
    color: #ffffff;
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.18);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.skip-key {
    color: #38bdf8;
    font-size: 0.7rem;
}

@keyframes hudFadeIn {
    0% { opacity: 0; transform: translateX(-50%) translateY(12px); }
    100% { opacity: 0.9; transform: translateX(-50%) translateY(0); }
}

@keyframes hudBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}

@media (max-width: 768px) {
    .hand-wrapper {
        width: min(72vw, 420px);
    }
    .intro-footer-hud {
        bottom: 2rem;
    }
    .intro-hud-prompt {
        font-size: 0.65rem;
    }
    .intro-skip-btn {
        top: 1.25rem;
        right: 1.25rem;
        padding: 0.35rem 0.75rem;
    }
}

/* ==========================================================================
   METALLIC CHROME BLUE SHADING SYSTEM (HALF WHITE / HALF BLUE)
   ========================================================================== */
.text-metallic-split,
.metallic-text {
    background: var(--gradient-metallic-split) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-fill-color: transparent !important;
    color: transparent !important;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 25px rgba(56, 189, 248, 0.3));
}

.text-metallic-accent {
    background: var(--gradient-metallic-accent) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-fill-color: transparent !important;
    filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.7));
}

.intel-card-title,
.scanner-title,
.viva-card-head {
    background: var(--gradient-metallic-split);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   AKERA COSMIC VOICE MODE ANIMATED OVERLAY (MATCHES media_1791290656710.png)
   ========================================================================== */
.akera-voice-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.akera-voice-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.voice-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.voice-overlay-card {
    position: relative;
    z-index: 10;
    width: min(92vw, 420px);
    height: min(90vh, 580px);
    min-height: 500px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(13, 23, 46, 0.94) 0%, rgba(7, 13, 28, 0.97) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.9), 0 0 50px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transform: scale(1) translateY(0);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.akera-voice-overlay.hidden .voice-overlay-card {
    transform: scale(0.92) translateY(18px);
}

/* Ambient Blue Atmospheric Arc Behind Card (Visible glow around card edges) */
.voice-card-ambient-arc {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.55) 0%, rgba(56, 189, 248, 0.2) 42%, transparent 72%);
    filter: blur(28px);
    pointer-events: none;
    z-index: 1;
}

/* Circular Close Button (X) */
.voice-overlay-close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 30;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.voice-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

/* Header & Live Transcription Area */
.voice-overlay-transcript-wrap {
    position: relative;
    z-index: 15;
    padding: 26px 24px 6px 24px;
}

.voice-agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 14px;
    margin-bottom: 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.voice-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: liveBlink 0.85s infinite;
}

.voice-badge-text {
    font-size: 0.62rem;
    font-weight: 700;
    color: #7dd3fc;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.voice-overlay-transcript {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.45;
    color: #cbd5e1;
    letter-spacing: -0.01em;
    min-height: 70px;
    max-height: 140px;
    overflow-y: auto;
    word-break: break-word;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.voice-overlay-transcript::-webkit-scrollbar {
    width: 4px;
}
.voice-overlay-transcript::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}

.voice-spoken-lead {
    color: #94a3b8;
}

.voice-spoken-active {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
}

/* Voice Overlay Pre-Commands Quick Action Bar */
.voice-pre-commands-wrap {
    position: relative;
    z-index: 20;
    width: 100%;
    padding: 4px 20px 2px 20px;
}

.voice-pre-commands-scroll {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 3px 2px 6px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.voice-pre-commands-scroll::-webkit-scrollbar {
    display: none;
}

.voice-cmd-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.voice-cmd-chip:hover {
    color: #ffffff;
    background: rgba(30, 58, 138, 0.85);
    border-color: rgba(56, 189, 248, 0.7);
    transform: translateY(-1.5px) scale(1.03);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

.voice-cmd-chip:active {
    transform: scale(0.96);
}

/* Center Glowing Sine Wave Canvas Container */
.voice-waveform-container {
    position: relative;
    z-index: 15;
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-sine-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Bottom Radiant Sapphire Bloom & White Circular Mic Button */
.voice-overlay-bottom-zone {
    position: relative;
    z-index: 15;
    width: 100%;
    padding: 0 20px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.voice-bottom-bloom {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 85%, rgba(37, 99, 235, 0.95) 0%, rgba(29, 78, 216, 0.5) 45%, rgba(10, 18, 38, 0) 78%);
    pointer-events: none;
    z-index: 1;
    filter: blur(8px);
}

.voice-mic-button-wrapper {
    position: relative;
    z-index: 5;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.voice-ripple-ring {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1.5px solid rgba(56, 189, 248, 0.7);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voice-mic-button-wrapper.mic-active .voice-ripple-ring {
    opacity: 1;
}

.voice-mic-button-wrapper.mic-active .voice-ripple-ring.ring-1 {
    animation: voiceRingExpand 2.2s infinite cubic-bezier(0.1, 0.7, 0.1, 1);
}
.voice-mic-button-wrapper.mic-active .voice-ripple-ring.ring-2 {
    animation: voiceRingExpand 2.2s infinite cubic-bezier(0.1, 0.7, 0.1, 1) 0.7s;
}
.voice-mic-button-wrapper.mic-active .voice-ripple-ring.ring-3 {
    animation: voiceRingExpand 2.2s infinite cubic-bezier(0.1, 0.7, 0.1, 1) 1.4s;
}

@keyframes voiceRingExpand {
    0% {
        transform: scale(0.65);
        opacity: 0.95;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ------------------------------------------------------------- */
/* MIC BUTTON - CLOSED STATE (Default / Standby)                 */
/* Dark cyber-obsidian disc with slate border & muted mic icon   */
/* ------------------------------------------------------------- */
.voice-overlay-mic-button {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid rgba(148, 163, 184, 0.35);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.voice-overlay-mic-button .voice-mic-svg {
    color: #94a3b8;
    transition: color 0.25s ease, transform 0.25s ease;
}

.voice-overlay-mic-button:hover {
    transform: scale(1.06);
    border-color: #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4), 0 4px 20px rgba(0, 0, 0, 0.6);
}

.voice-overlay-mic-button:hover .voice-mic-svg {
    color: #38bdf8;
}

.voice-overlay-mic-button:active {
    transform: scale(0.95);
}

/* ------------------------------------------------------------- */
/* MIC BUTTON - OPEN / LISTENING STATE                           */
/* Radiant glowing pure white & electric cyan aura               */
/* ------------------------------------------------------------- */
.voice-overlay-mic-button.mic-open,
.voice-overlay-mic-button.is-listening {
    background: #ffffff;
    border: 2.5px solid #38bdf8;
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.95), 0 0 55px rgba(56, 189, 248, 0.9), 0 0 85px rgba(59, 130, 246, 0.85);
    animation: voiceMicPulse 1.6s infinite ease-in-out;
}

.voice-overlay-mic-button.mic-open .voice-mic-svg,
.voice-overlay-mic-button.is-listening .voice-mic-svg {
    color: #0284c7;
    transform: scale(1.1);
}

.voice-overlay-mic-button.mic-open:hover,
.voice-overlay-mic-button.is-listening:hover {
    transform: scale(1.08);
    box-shadow: 0 0 35px #ffffff, 0 0 70px rgba(56, 189, 248, 1), 0 0 100px rgba(59, 130, 246, 0.95);
}

@keyframes voiceMicPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 28px rgba(255, 255, 255, 0.95), 0 0 55px rgba(56, 189, 248, 0.9), 0 0 85px rgba(59, 130, 246, 0.85);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 38px #ffffff, 0 0 68px rgba(56, 189, 248, 1), 0 0 100px rgba(59, 130, 246, 0.95);
    }
}

.voice-status-subtext {
    position: relative;
    z-index: 5;
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.02em;
}

@media (max-width: 480px) {
    .voice-overlay-card {
        width: 94vw;
        height: 82vh;
        min-height: 440px;
    }
    .voice-overlay-transcript {
        font-size: 1.05rem;
    }
}

.voice-gemini-searching,
.voice-chatgpt-searching {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 1.05rem;
    color: #93c5fd;
}
.voice-gemini-searching strong,
.voice-chatgpt-searching strong {
    color: #ffffff;
    font-weight: 600;
}
.voice-gemini-response,
.voice-chatgpt-response {
    font-size: 1.05rem;
    line-height: 1.45;
    color: #f1f5f9;
}
.voice-gemini-response p,
.voice-chatgpt-response p {
    margin: 0 0 6px 0;
}
.voice-gemini-response strong,
.voice-chatgpt-response strong {
    color: #38bdf8;
}
.voice-gemini-key-card,
.voice-chatgpt-key-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.92rem;
    color: #fde68a;
}
.voice-key-btn {
    align-self: flex-start;
    padding: 7px 16px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
    transition: transform 0.2s ease;
}
.voice-key-btn:hover {
    transform: scale(1.05);
}
