﻿/* ==========================================================================
   GHOST QUEUE - Premium 3D Character & Legal Case Intelligence Platform
   Aesthetic: Refined Futuristic Legal-Tech / Cinematic Dark Navy & Ice Cyan
   ========================================================================== */

:root {
    --bg-darkest: #050811;
    --bg-darker: #080e1c;
    --bg-card: rgba(13, 22, 42, 0.72);
    --bg-card-hover: rgba(20, 34, 64, 0.85);
    --bg-surface: #0e172e;
    --border-subtle: rgba(56, 189, 248, 0.14);
    --border-active: rgba(56, 189, 248, 0.45);
    --border-stalled: rgba(244, 63, 94, 0.45);
    --border-success: rgba(16, 185, 129, 0.45);

    --primary-cyan: #00e5ff;
    --primary-blue: #38bdf8;
    --primary-indigo: #818cf8;
    --accent-glow: rgba(0, 229, 255, 0.25);
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --alert-red: #f43f5e;
    --alert-amber: #f59e0b;
    --success-emerald: #10b981;

    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, 'Courier New', monospace;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-darkest);
    color: var(--text-white);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 10%, #0d1a36 0%, #060b14 70%, #03050a 100%);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background grid line overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* Three.js Canvas Container */
#three-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
    transition: opacity var(--transition-smooth);
}

/* Content wrapper */
.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 11, 20, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    filter: drop-shadow(0 0 8px var(--primary-cyan));
    transition: transform var(--transition-fast);
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-4deg);
}

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

.brand-title {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    font-weight: 800;
    text-transform: uppercase;
}

.brand-tag {
    font-size: 0.65rem;
    color: var(--primary-cyan);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.4rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-cyan);
    transition: width var(--transition-fast);
    box-shadow: 0 0 8px var(--primary-cyan);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    height: 100%;
}

.nav-actions > * {
    height: 38px !important;
    max-height: 38px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

.nav-actions #nav-btn-duel {
    padding: 0 1rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 14px rgba(0, 229, 255, 0.4) !important;
}

/* Sound toggle button */
.btn-sound {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-sound:hover {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Mascot modal launcher */
.btn-mascot-peek {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--primary-blue);
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-mascot-peek:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.btn-mascot-peek img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

/* Primary CTA pill */
.btn-primary {
    background: linear-gradient(135deg, #00e5ff 0%, #38bdf8 50%, #2563eb 100%);
    color: #060b14;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.65rem 1.4rem;
    border-radius: 24px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.02em;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 18px rgba(0, 229, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 229, 255, 0.55);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.65rem 1.3rem;
    border-radius: 24px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-backdrop-courthouse {
    position: absolute;
    top: 60px;
    right: 5%;
    width: 480px;
    height: 320px;
    background-image: url('assets/courthouse_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    filter: blur(1px) contrast(1.2);
    mask-image: radial-gradient(circle, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

/* ==========================================================================
   HERO BRAND LINE & PERFECTLY PROPORTIONED 2-LINE HEADLINE
   ========================================================================== */
.hero-brand-line {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.85rem;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 20px;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.1);
}

.hero-brand-pill {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-brand-logo {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.hero-brand-title {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--primary-cyan);
    letter-spacing: 0.08em;
}

.hero-brand-sep {
    color: var(--text-dim);
    font-size: 0.7rem;
}

.hero-brand-tagline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.2rem, 3.5vw, 3.3rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

.hero-title-line.title-system {
    color: #f1f5f9;
}

.hero-title-line.title-court {
    background: linear-gradient(135deg, #00e5ff 10%, #38bdf8 55%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 35px rgba(0, 229, 255, 0.35);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ==========================================================================
   HERO ACTIONS BUTTONS: CLEAN 2-TIER ALIGNED LAYOUT
   ========================================================================== */
.hero-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2.25rem;
    max-width: 620px;
}

.hero-actions-primary-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: nowrap;
}

.hero-btn-primary {
    height: 48px;
    padding: 0 1.3rem;
    background: linear-gradient(135deg, #00e5ff 0%, #38bdf8 50%, #2563eb 100%);
    color: #060b14;
    font-weight: 800;
    font-size: 0.86rem;
    border-radius: 24px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.45);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 229, 255, 0.65);
    filter: brightness(1.08);
}

.hero-btn-icon {
    font-size: 1rem;
}

.hero-btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.hero-btn-primary:hover .hero-btn-arrow {
    transform: translateX(3px);
}

.hero-btn-partner {
    height: 48px;
    padding: 0 1.25rem;
    background: rgba(14, 23, 46, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 24px;
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-btn-partner:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0, 229, 255, 0.25);
    color: var(--primary-cyan);
}

.hero-btn-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-actions-secondary-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.hero-btn-pill {
    height: 38px;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 19px;
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.hero-btn-pill:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
}


/* Hero Live Case Hologram Cards */
.hero-visual-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

/* Floating 3D Mascot Character Stage in Hero */
.hero-mascot-stage {
    position: relative;
    width: 100%;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mascot-img-wrap {
    position: relative;
    max-width: 440px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 35px rgba(56, 189, 248, 0.25));
    transition: transform var(--transition-fast);
    animation: floatMascot 5s ease-in-out infinite;
}

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

.hero-mascot-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}

/* Floating companion ghost avatar in hero */
.hero-ghost-float {
    position: absolute;
    top: 15%;
    right: 4%;
    width: 95px;
    animation: floatGhost 3.8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--primary-cyan));
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.hero-ghost-float:hover {
    transform: scale(1.15) rotate(5deg);
}

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

/* Hologram Case Card Overlay */
.holo-card-case {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-active);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(56, 189, 248, 0.08);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.holo-card-case::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-cyan), #3b82f6);
}

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

.case-id-badge {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-cyan);
    letter-spacing: 0.08em;
}

.case-status-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid var(--border-stalled);
    color: var(--alert-red);
    font-weight: 600;
}

.case-alert-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-alert-text span {
    color: var(--alert-red);
    text-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

/* Mini Timeline Scrubber in Hero */
.mini-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0.6rem 0;
}

.mini-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
    z-index: 1;
}

.mini-timeline-progress {
    position: absolute;
    top: 50%;
    left: 0;
    width: 75%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-cyan), var(--alert-red));
    transform: translateY(-50%);
    z-index: 2;
}

.mini-node {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.mini-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.mini-node.active .mini-dot {
    background: var(--primary-cyan);
    border-color: #fff;
    box-shadow: 0 0 8px var(--primary-cyan);
}

.mini-node.stalled .mini-dot {
    background: var(--alert-red);
    border-color: #fff;
    box-shadow: 0 0 12px var(--alert-red);
    animation: stalledPulse 1.5s infinite;
}

@keyframes stalledPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 6px var(--alert-red); }
    50% { transform: scale(1.3); box-shadow: 0 0 16px var(--alert-red); }
}

.mini-node-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.mini-node.active .mini-node-label {
    color: var(--primary-cyan);
}

.mini-node.stalled .mini-node-label {
    color: var(--alert-red);
    font-weight: 700;
}

/* Comparison banner: System vs Ghost Queue */
.system-comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.compare-col {
    background: rgba(10, 16, 32, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.compare-col.ghost-queue {
    border-color: rgba(244, 63, 94, 0.35);
    background: rgba(244, 63, 94, 0.05);
}

.compare-label {
    font-size: 0.68rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
}

.compare-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.compare-val.stalled-text {
    color: var(--alert-red);
    text-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse-wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 6px;
    background: var(--primary-cyan);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: mouseScroll 2s infinite ease-in-out;
}

@keyframes mouseScroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* ==========================================================================
   PERSISTENT 3D MASCOT COMPANION DOCK (Scroll Interactive HUD)
   ========================================================================== */
.mascot-companion-dock {
    position: fixed;
    bottom: 24px;
    right: 28px;
    z-index: 99;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    pointer-events: none;
    transition: all var(--transition-smooth);
}

.mascot-companion-dock * {
    pointer-events: auto;
}

.mascot-speech-bubble {
    background: rgba(10, 18, 36, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-active);
    border-radius: 16px 16px 4px 16px;
    padding: 1rem 1.25rem;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 18px var(--accent-glow);
    position: relative;
    transition: all var(--transition-fast);
    animation: bubblePop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mascot-bubble-speaker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.35rem;
}

.mascot-bubble-text {
    font-size: 0.88rem;
    color: var(--text-white);
    line-height: 1.45;
    font-weight: 500;
}

.mascot-dock-character {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: transform var(--transition-fast);
}

.mascot-dock-character:hover {
    transform: translateY(-4px) scale(1.04);
}

.mascot-dock-avatar-frame {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, #1e3a8a 0%, #060b14 80%);
    border: 2px solid var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-dock-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-fast);
}

.mascot-dock-ghost {
    position: absolute;
    top: -16px;
    right: -14px;
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 10px var(--primary-cyan));
    animation: miniGhostFloat 3s infinite ease-in-out;
}

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

.mascot-dock-badge {
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-size: 0.65rem;
    font-family: var(--font-mono);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    margin-top: 0.35rem;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-cyan);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 2px;
    background: var(--primary-cyan);
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* ==========================================================================
   01. RECONSTRUCT SECTION
   ========================================================================== */
.reconstruct-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: flex-start;
}

/* Interactive Timeline Carousel / Step cards */
.timeline-stepper-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-cards-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.timeline-step-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.timeline-step-card:hover {
    border-color: var(--border-active);
    transform: translateY(-3px);
    background: var(--bg-card-hover);
}

.timeline-step-card.active {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
    background: rgba(14, 25, 50, 0.9);
}

.timeline-step-card.stalled-card {
    border-color: var(--alert-red);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.25);
}

.step-card-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary-cyan);
}

.step-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
}

.step-card-day {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.step-card-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Timeline Detail Spotlight Viewer */
.timeline-detail-stage {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-active);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.timeline-detail-stage::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.stage-mascot-visual {
    flex-shrink: 0;
    width: 220px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
}

.stage-mascot-visual img {
    width: 100%;
    display: block;
}

.stage-content-info {
    flex: 1;
}

.stage-badge-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-cyan);
    display: inline-block;
    margin-bottom: 0.6rem;
}

.stage-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.stage-quote {
    font-size: 1.05rem;
    color: #e2e8f0;
    font-style: italic;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-cyan);
    padding-left: 0.75rem;
}

.stage-audit-log {
    background: rgba(5, 10, 22, 0.7);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.audit-log-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.audit-log-row:last-child {
    margin-bottom: 0;
}

.audit-key {
    color: var(--text-dim);
}

.audit-val {
    color: var(--text-white);
    font-weight: 600;
}

.audit-val.alert {
    color: var(--alert-red);
}

/* Sherlock Investigation Lens Panel */
.investigation-lens-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lens-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.lens-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
}

.lens-title span {
    color: var(--primary-cyan);
}

.lens-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.lens-btn {
    background: rgba(14, 23, 46, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lens-btn:hover {
    border-color: var(--primary-cyan);
    background: rgba(20, 35, 70, 0.9);
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(0, 229, 255, 0.15);
}

.lens-btn.active {
    border-color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.12);
    color: var(--primary-cyan);
    font-weight: 700;
}

.lens-arrow {
    color: var(--text-dim);
    transition: transform var(--transition-fast);
}

.lens-btn:hover .lens-arrow {
    color: var(--primary-cyan);
    transform: translateX(3px);
}

/* Investigation Deduction Output Drawer */
.lens-deduction-box {
    background: rgba(6, 12, 26, 0.9);
    border: 1px solid var(--primary-cyan);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.lens-deduction-box.active {
    display: block;
}

.lens-deduction-title {
    font-size: 0.78rem;
    color: var(--primary-cyan);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.lens-deduction-text {
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.5;
}

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

/* ==========================================================================
   02. GHOST QUEUE INTELLIGENCE (ROOT CAUSES)
   ========================================================================== */
.ghost-intelligence-section {
    background: linear-gradient(180deg, rgba(6, 11, 22, 0) 0%, rgba(14, 23, 46, 0.6) 50%, rgba(6, 11, 22, 0) 100%);
}

.ghost-risk-banner {
    background: radial-gradient(circle at 10% 50%, rgba(244, 63, 94, 0.18) 0%, rgba(14, 23, 46, 0.8) 70%);
    border: 1px solid var(--border-stalled);
    border-radius: 20px;
    padding: 2.2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 16px 45px rgba(244, 63, 94, 0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.risk-score-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.risk-score-gauge {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid var(--alert-red);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 16, 32, 0.9);
}

.risk-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--alert-red);
    line-height: 1;
}

.risk-denom {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.risk-info-title {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--alert-red);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.risk-headline {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.risk-explanation {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 4 Signals Grid */
.signals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.signal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.signal-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.15);
}

.signal-card.highlighted {
    border-color: var(--alert-red);
    box-shadow: 0 0 24px rgba(244, 63, 94, 0.25);
    background: rgba(244, 63, 94, 0.06);
}

.signal-icon-tag {
    font-size: 1.3rem;
}

.signal-metric {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-white);
}

.signal-title {
    font-size: 0.85rem;
    color: var(--primary-cyan);
    font-weight: 600;
}

.signal-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   03. COURTROOM DEBATE SECTION
   ========================================================================== */
.courtroom-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.courtroom-arena {
    background: radial-gradient(circle at 50% 0%, rgba(30, 58, 138, 0.35) 0%, rgba(10, 16, 32, 0.95) 70%);
    border: 1px solid var(--border-active);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(56, 189, 248, 0.1);
    position: relative;
    overflow: hidden;
}

.courtroom-tabs {
    display: flex;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.court-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.court-tab-btn:hover {
    color: var(--text-white);
}

.court-tab-btn.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--primary-blue);
    color: var(--primary-cyan);
}

/* Courtroom Stage with Opposing Counsel */
.courtroom-stage-scene {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-subtle);
}

.courtroom-stage-scene img {
    width: 100%;
    display: block;
}

/* Live Dialogue Interaction Box */
.courtroom-exchange-box {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.dialogue-bubble {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    position: relative;
}

.dialogue-bubble.ai-counsel {
    background: rgba(14, 25, 52, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-left: 4px solid var(--primary-cyan);
}

.dialogue-bubble.student-reply {
    background: rgba(16, 32, 64, 0.85);
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-left: 4px solid var(--primary-indigo);
}

.dialogue-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #090f1d;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.dialogue-content {
    flex: 1;
}

.dialogue-author {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

/* Interactive Argument Selector */
.argument-choices-title {
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.argument-choices-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.arg-choice-btn {
    background: rgba(14, 23, 46, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.9rem 1.15rem;
    color: var(--text-white);
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.arg-choice-btn:hover {
    border-color: var(--primary-cyan);
    background: rgba(20, 36, 72, 0.9);
    transform: translateX(4px);
}

.arg-badge-id {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Custom Argument Input */
.custom-arg-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.custom-arg-input {
    flex: 1;
    background: rgba(5, 10, 22, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-white);
    font-size: 0.88rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.custom-arg-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* AI Synergy Panel & Rubric */
.courtroom-side-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-synergy-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
}

.synergy-header {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.synergy-agents-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.agent-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    background: rgba(14, 23, 46, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.agent-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-cyan);
    box-shadow: 0 0 8px var(--primary-cyan);
}

.agent-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-white);
}

.agent-role-desc {
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* Live Evaluation Rubric */
.judge-rubric-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
}

.rubric-header {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rubric-score-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-emerald);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.rubric-bars {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.rubric-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rubric-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
}

.rubric-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.rubric-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-cyan), #3b82f6);
    border-radius: 3px;
    transition: width var(--transition-smooth);
}

/* ==========================================================================
   04. ALTERNATE REALITY & WHAT COULD HAVE BEEN SAID
   ========================================================================== */
.alternate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.path-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.path-box.actual-case {
    border-color: rgba(244, 63, 94, 0.35);
}

.path-box.actual-case::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--alert-red);
}

.path-box.student-path {
    border-color: rgba(16, 185, 129, 0.35);
}

.path-box.student-path::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--success-emerald);
}

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

.path-title {
    font-size: 1.2rem;
    font-weight: 800;
}

.path-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.path-box.actual-case .path-badge {
    background: rgba(244, 63, 94, 0.15);
    color: var(--alert-red);
}

.path-box.student-path .path-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-emerald);
}

.path-timeline-flow {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.flow-step-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(14, 23, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.flow-step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.path-box.actual-case .flow-step-icon {
    background: rgba(244, 63, 94, 0.2);
    color: var(--alert-red);
}

.path-box.student-path .flow-step-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-emerald);
}

.flow-step-text {
    font-size: 0.88rem;
    color: #e2e8f0;
}

.flow-step-item.final-outcome {
    margin-top: 0.5rem;
    border-width: 1px;
}

.path-box.actual-case .flow-step-item.final-outcome {
    background: rgba(244, 63, 94, 0.12);
    border-color: var(--alert-red);
    color: var(--alert-red);
    font-weight: 700;
}

.path-box.student-path .flow-step-item.final-outcome {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--success-emerald);
    color: var(--success-emerald);
    font-weight: 700;
}

/* Interactive "What Could Have Been Said" Section */
.what-could-box {
    background: var(--bg-card);
    border: 1px solid var(--border-active);
    border-radius: 16px;
    padding: 2.2rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.what-could-header {
    margin-bottom: 1.5rem;
}

.what-could-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.alt-arguments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.alt-arg-card {
    background: rgba(14, 23, 46, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alt-arg-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-3px);
    background: rgba(20, 36, 70, 0.85);
}

.alt-arg-card.selected {
    border-color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

.alt-arg-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--primary-cyan);
}

.alt-arg-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
}

.alt-arg-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.simulated-verdict-result {
    background: rgba(5, 10, 22, 0.8);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    font-size: 0.88rem;
    color: #cbd5e1;
}

/* ==========================================================================
   05. ADAPTIVE LEARNING SECTION
   ========================================================================== */
.adaptive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.adaptive-profile-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-active);
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5);
}

.profile-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.profile-card-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.75rem;
}

.skill-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
}

.skill-pct {
    font-family: var(--font-mono);
    color: var(--primary-cyan);
}

.skill-pct.challenge-highlight {
    color: var(--alert-amber);
}

.skill-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(to right, #00e5ff, #3b82f6);
    border-radius: 4px;
    transition: width var(--transition-slow);
}

.skill-fill.alert-fill {
    background: linear-gradient(to right, #f59e0b, #f43f5e);
}

.adaptive-partner-note {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.partner-note-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.partner-note-text {
    font-size: 0.85rem;
    color: #fef3c7;
    line-height: 1.4;
}

/* Next Case Card */
.next-case-card {
    background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.15) 0%, rgba(14, 23, 46, 0.8) 70%);
    border: 1px solid var(--border-active);
    border-radius: 20px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5);
}

.next-case-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary-cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.next-case-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.next-case-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ==========================================================================
   06. ARGOSX SECURITY & TRUST LAYER
   ========================================================================== */
.trust-pipeline-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-active);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    margin-bottom: 2rem;
}

.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
    position: relative;
    flex-wrap: wrap;
}

.pipeline-node {
    background: rgba(14, 23, 46, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 150px;
    text-align: center;
    transition: all var(--transition-fast);
}

.pipeline-node:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
}

.pipeline-node.shield-active {
    border-color: var(--success-emerald);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.2);
}

.pipeline-icon {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.pipeline-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
}

.pipeline-desc {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.pipeline-arrow {
    color: var(--primary-cyan);
    font-size: 1.2rem;
    opacity: 0.6;
}

/* Interactive PII Redaction Visualizer */
.pii-visualizer-box {
    background: rgba(5, 10, 22, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
}

.pii-visualizer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pii-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
}

.btn-toggle-pii {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--primary-blue);
    color: var(--primary-cyan);
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-toggle-pii:hover {
    background: rgba(56, 189, 248, 0.25);
}

.pii-code-display {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.pii-token {
    background: rgba(0, 229, 255, 0.15);
    color: var(--primary-cyan);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.pii-redacted {
    background: rgba(244, 63, 94, 0.2);
    color: var(--alert-red);
    text-decoration: line-through;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* Live Trust Status Badge */
.trust-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid var(--border-success);
    border-radius: 12px;
    padding: 1rem 1.5rem;
}

.trust-badge-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--success-emerald);
}

.trust-audit-hash {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ==========================================================================
   07. FINAL BRAND MESSAGE & FOOTER
   ========================================================================== */
.final-brand-section {
    padding: 120px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.brand-quote-lead {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.brand-quote-punch {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--text-white);
    font-weight: 800;
    margin-bottom: 2rem;
}

.brand-finale-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #f8fafc 0%, #00e5ff 60%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.brand-tagline-closing {
    font-size: 1.25rem;
    color: var(--primary-cyan);
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.footer-nav {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ==========================================================================
   INTERACTIVE MASCOT SHOWCASE MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 16, 0.85);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal-container {
    background: #090f1e;
    border: 1px solid var(--border-active);
    border-radius: 24px;
    width: 100%;
    max-width: 980px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 40px var(--accent-glow);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close-btn:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: var(--alert-red);
    color: var(--alert-red);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.showcase-visual-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.showcase-main-preview {
    background: radial-gradient(circle, #172554 0%, #060b14 80%);
    border: 1px solid var(--border-active);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.showcase-main-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all var(--transition-smooth);
}

/* 360 Full Body Views Selector */
.showcase-views-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

.view-thumb-btn {
    background: rgba(14, 23, 46, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.5rem;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-fast);
}

.view-thumb-btn:hover, .view-thumb-btn.active {
    border-color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.12);
}

.view-thumb-btn img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    margin-bottom: 0.25rem;
}

.view-thumb-label {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
}

/* 9 Expressions Selector */
.expressions-selector-title {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.expressions-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.expr-btn {
    background: rgba(14, 23, 46, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.expr-btn:hover, .expr-btn.active {
    border-color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.12);
}

.expr-btn img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.expr-btn span {
    font-size: 0.78rem;
    color: var(--text-white);
}

/* Philosophy Callout */
.philosophy-card {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--border-active);
    border-radius: 14px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.philosophy-quote {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-cyan);
    font-style: italic;
    margin-bottom: 0.4rem;
}

.philosophy-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Responsive queries */
@media (max-width: 992px) {
    .hero-grid,
    .reconstruct-grid,
    .courtroom-grid,
    .alternate-grid,
    .adaptive-grid,
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .timeline-cards-row {
        grid-template-columns: 1fr 1fr;
    }

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

    .alt-arguments-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}


/* ==========================================================================
   02B. CASE TRIAGE INTELLIGENCE SECTION (ADAPTIONLABS INTEGRATION)
   ========================================================================== */
.triage-section {
    background: radial-gradient(circle at 50% 30%, rgba(14, 28, 56, 0.5) 0%, rgba(5, 8, 17, 0.95) 70%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.triage-mode-tabs {
    display: inline-flex;
    background: rgba(14, 23, 46, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    padding: 0.35rem;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.triage-mode-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.triage-mode-btn:hover {
    color: var(--text-white);
}

.triage-mode-btn.active {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2) 0%, rgba(56, 189, 248, 0.25) 100%);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 0 16px var(--accent-glow);
}

/* Two column layout for Native Triage Engine */
.triage-engine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.triage-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-active);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.triage-samples-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.triage-sample-btn {
    background: rgba(14, 23, 46, 0.7);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.triage-sample-btn:hover, .triage-sample-btn.active {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.1);
}

.triage-textarea {
    width: 100%;
    min-height: 220px;
    background: rgba(5, 10, 22, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem;
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.5;
    outline: none;
    resize: vertical;
    transition: border-color var(--transition-fast);
}

.triage-textarea:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 14px var(--accent-glow);
}

/* Status Classifications in Triage Results */
.status-pill-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    border-radius: 12px;
    border-width: 1px;
    border-style: solid;
}

.status-pill-banner.stalled {
    background: rgba(244, 63, 94, 0.12);
    border-color: var(--alert-red);
    color: var(--alert-red);
}

.status-pill-banner.delay {
    background: rgba(245, 158, 11, 0.12);
    border-color: var(--alert-amber);
    color: var(--alert-amber);
}

.status-pill-banner.normal {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--success-emerald);
    color: var(--success-emerald);
}

.status-val-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.triage-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 10, 22, 0.6);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.triage-data-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.triage-data-item {
    font-size: 0.82rem;
    color: #cbd5e1;
    background: rgba(14, 23, 46, 0.5);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-cyan);
}

.triage-data-item.blocker {
    border-left-color: var(--alert-red);
    color: #fecdd3;
}

.triage-action-box {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--primary-blue);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
    color: var(--primary-cyan);
}

/* AdaptionLabs Live Cloud Iframe Container */
.cloud-iframe-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-active);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    height: 720px;
}

.cloud-iframe-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: rgba(6, 11, 22, 0.9);
    border-bottom: 1px solid var(--border-subtle);
}

.cloud-iframe-url {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cloud-iframe-url span.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success-emerald);
    box-shadow: 0 0 6px var(--success-emerald);
}

.cloud-iframe-actions {
    display: flex;
    gap: 0.6rem;
}

.cloud-app-iframe {
    width: 100%;
    flex: 1;
    border: none;
    background: #ffffff;
}

/* ==========================================================================
   CASE EXPLORER (POPULAR, COMPLEX & PENDING CASES)
   ========================================================================== */
.case-explorer-section {
    background: radial-gradient(circle at 50% 10%, rgba(14, 25, 52, 0.7) 0%, rgba(5, 8, 17, 0.98) 75%);
    border-top: 1px solid var(--border-subtle);
    position: relative;
}

.case-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    background: rgba(14, 23, 46, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
}

.case-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.case-cat-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.case-cat-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.case-cat-btn.active {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2) 0%, rgba(56, 189, 248, 0.25) 100%);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 0 12px var(--accent-glow);
}

.case-search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(5, 10, 22, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.4rem 0.9rem;
    min-width: 260px;
}

.case-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-size: 0.82rem;
    width: 100%;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.case-repo-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.case-repo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-cyan);
}

.case-repo-card.complex::before {
    background: var(--primary-indigo);
}

.case-repo-card.pending::before {
    background: var(--alert-amber);
}

.case-repo-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 229, 255, 0.15);
}

.case-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.case-cat-pill {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.case-cat-pill.landmark {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-cyan);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.case-cat-pill.complex {
    background: rgba(129, 140, 248, 0.15);
    color: var(--primary-indigo);
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.case-cat-pill.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--alert-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.case-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.35;
}

.case-card-citation {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
}

.case-card-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.case-card-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.btn-case-action {
    background: rgba(14, 23, 46, 0.85);
    border: 1px solid var(--border-subtle);
    color: var(--text-white);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-case-action:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.1);
}

.btn-case-action.primary {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.25) 0%, rgba(56, 189, 248, 0.35) 100%);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

/* ==========================================================================
   DUAL AI LAWYER SHOWDOWN (AI VS AI MOOT COURT)
   ========================================================================== */
.duel-arena-section {
    background: radial-gradient(circle at 50% 20%, rgba(30, 58, 138, 0.3) 0%, rgba(5, 8, 17, 0.98) 75%);
    border-top: 1px solid var(--border-subtle);
    position: relative;
}

.duel-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(14, 23, 46, 0.85);
    border: 1px solid var(--border-active);
    border-radius: 16px;
    padding: 0.85rem 1.5rem;
    margin-bottom: 2rem;
}

.duel-case-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.duel-select-dropdown {
    background: rgba(5, 10, 22, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    outline: none;
    cursor: pointer;
}

.duel-play-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.duel-btn-control {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--primary-blue);
    color: var(--primary-cyan);
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.duel-btn-control:hover {
    background: rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

.duel-btn-control.active {
    background: var(--alert-amber);
    border-color: var(--alert-amber);
    color: #050811;
}

/* Dual Lawyer Arena Grid */
.duel-arena-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.lawyer-podium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.lawyer-podium-card.prosecution {
    border-top: 4px solid var(--primary-cyan);
}

.lawyer-podium-card.defense {
    border-top: 4px solid var(--primary-indigo);
}

.lawyer-podium-card.speaking {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 35px var(--accent-glow);
    background: rgba(14, 28, 58, 0.9);
}

.lawyer-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, #1e3a8a 0%, #060b14 80%);
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
}

.lawyer-podium-card.speaking .lawyer-avatar-circle {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px var(--primary-cyan);
    animation: speakerPulse 1.5s infinite ease-in-out;
}

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

.lawyer-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.lawyer-role-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.lawyer-podium-card.defense .lawyer-role-tag {
    color: var(--primary-indigo);
}

.lawyer-stats-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    text-align: left;
}

/* Center Duel Transcript & Bench */
.duel-center-bench {
    background: var(--bg-card);
    border: 1px solid var(--border-active);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 520px;
    position: relative;
}

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

.bench-gavel-title {
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
}

.duel-turn-counter {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary-cyan);
}

.duel-transcript-stream {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.5rem;
    max-height: 380px;
}

.duel-bubble {
    padding: 1rem 1.25rem;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.duel-bubble.prosecution {
    background: rgba(14, 28, 56, 0.85);
    border-left: 4px solid var(--primary-cyan);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-left-width: 4px;
}

.duel-bubble.defense {
    background: rgba(22, 28, 62, 0.85);
    border-left: 4px solid var(--primary-indigo);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-left-width: 4px;
}

.duel-bubble.judge {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--alert-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left-width: 4px;
}

.duel-bubble-author {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.duel-bubble.prosecution .duel-bubble-author { color: var(--primary-cyan); }
.duel-bubble.defense .duel-bubble-author { color: var(--primary-indigo); }
.duel-bubble.judge .duel-bubble-author { color: var(--alert-amber); }

/* ==========================================================================
   VOICE & CHAT MOOT COURT (FIGHT THE CASE YOURSELF)
   ========================================================================== */
.voice-court-section {
    background: radial-gradient(circle at 50% 80%, rgba(16, 28, 58, 0.6) 0%, rgba(5, 8, 17, 0.98) 75%);
    border-top: 1px solid var(--border-subtle);
    position: relative;
}

.voice-arena-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 2rem;
    align-items: stretch;
}

.voice-podium-box {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-active);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
}

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

.voice-mic-control-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(5, 10, 22, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
}

.btn-mic-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-mic-toggle:hover {
    background: rgba(0, 229, 255, 0.3);
    transform: scale(1.08);
}

.btn-mic-toggle.recording {
    background: var(--alert-red);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.7);
    animation: micWave 1.2s infinite ease-in-out;
}

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

.voice-speech-transcript {
    flex: 1;
    font-size: 0.88rem;
    color: #e2e8f0;
    min-height: 24px;
}

.voice-speech-transcript.placeholder {
    color: var(--text-dim);
    font-style: italic;
}

.objection-btn-pill {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid var(--alert-red);
    color: var(--alert-red);
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.objection-btn-pill:hover {
    background: rgba(244, 63, 94, 0.3);
    transform: scale(1.04);
}

/* Objection Popup Toast Alert */
.objection-toast-banner {
    background: rgba(244, 63, 94, 0.2);
    border: 2px solid var(--alert-red);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    animation: bubblePop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.objection-toast-banner.active {
    display: flex;
}

/* ==========================================================================
   3D BACKGROUND SHERLOCK HOLMES & FLOATING FX DOCK STYLES
   ========================================================================== */

/* Hero Holographic 3D Viewport Frame */
.hero-sherlock-hud-frame {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    padding: 1.25rem;
    margin-top: 1rem;
}

.hero-sherlock-telemetry {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--primary-cyan);
    background: rgba(8, 14, 28, 0.82);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

.live-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: livePulse 1.8s infinite;
}

/* Hologram Cyber Reticle Box */
.hero-sherlock-reticle-box {
    position: relative;
    width: 100%;
    height: 340px;
    border: 1px dashed rgba(56, 189, 248, 0.15);
    border-radius: 16px;
    overflow: hidden;
}

.reticle-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--primary-cyan);
    border-style: solid;
    pointer-events: none;
}

.reticle-corner.tl {
    top: 6px;
    left: 6px;
    border-width: 2px 0 0 2px;
}

.reticle-corner.tr {
    top: 6px;
    right: 6px;
    border-width: 2px 2px 0 0;
}

.reticle-corner.bl {
    bottom: 6px;
    left: 6px;
    border-width: 0 0 2px 2px;
}

.reticle-corner.br {
    bottom: 6px;
    right: 6px;
    border-width: 0 2px 2px 0;
}

.reticle-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-cyan) 50%, transparent 100%);
    box-shadow: 0 0 12px var(--primary-cyan);
    animation: verticalScan 4s ease-in-out infinite alternate;
}

@keyframes verticalScan {
    0% { top: 4%; opacity: 0.2; }
    50% { opacity: 0.9; }
    100% { top: 92%; opacity: 0.2; }
}

.reticle-target-label {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(56, 189, 248, 0.7);
    letter-spacing: 0.08em;
}

/* Floating 3D Background Sherlock FX Controls Dock */
.sherlock-fx-dock {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99;
    background: rgba(8, 15, 30, 0.88);
    border: 1px solid var(--border-active);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 229, 255, 0.18);
    backdrop-filter: blur(14px);
    border-radius: 30px;
    padding: 0.4rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all var(--transition-smooth);
}

.sherlock-fx-dock:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.3);
}

.fx-dock-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-left: 0.4rem;
}

.live-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--primary-cyan);
    box-shadow: 0 0 8px var(--primary-cyan);
    animation: livePulse 1.6s infinite;
}

.fx-dock-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-cyan);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.fx-dock-btn-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.fx-pill-btn {
    background: rgba(14, 24, 46, 0.75);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.32rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.fx-pill-btn:hover {
    color: #fff;
    border-color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.12);
    transform: translateY(-1px);
}

.fx-pill-btn.active {
    background: rgba(0, 229, 255, 0.22);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

@media (max-width: 768px) {
    .sherlock-fx-dock {
        bottom: 84px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        max-width: 440px;
        justify-content: space-between;
        overflow-x: auto;
    }
}



/* ==========================================================================
   ENHANCED REAL-TIME AI LAWYER COMBAT & AUDIT EXPLORER STYLES
   ========================================================================== */

/* Courtroom Momentum & Persuasion Gauge */
.courtroom-momentum-box {
    background: rgba(10, 18, 36, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 0.9rem 1.4rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(12px);
}

.momentum-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.momentum-labels .prosecution-label {
    color: var(--primary-cyan);
    font-weight: 700;
}

.momentum-labels .defense-label {
    color: var(--primary-indigo);
    font-weight: 700;
}

.momentum-labels .momentum-title {
    color: var(--text-dim);
    font-size: 0.72rem;
}

.momentum-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.momentum-bar-prosecution {
    height: 100%;
    background: linear-gradient(90deg, #0284c7, var(--primary-cyan));
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.momentum-bar-defense {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-indigo), #a855f7);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.4);
}

/* Podium Header & Status */
.podium-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.podium-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
}

.podium-status-label {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex: 1;
    margin-left: 0.5rem;
    text-align: left;
}

/* Audio Equalizer Wave in Podiums */
.podium-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.lawyer-podium-card.speaking .podium-equalizer {
    opacity: 1;
}

.podium-equalizer span {
    width: 3px;
    height: 4px;
    border-radius: 2px;
    background: var(--text-dim);
    transition: height 0.15s ease;
}

.lawyer-podium-card.prosecution.speaking .podium-equalizer span {
    background: var(--primary-cyan);
    animation: eqWave 0.5s ease-in-out infinite alternate;
}

.lawyer-podium-card.defense.speaking .podium-equalizer span {
    background: var(--primary-indigo);
    animation: eqWave 0.5s ease-in-out infinite alternate;
}

.podium-equalizer span:nth-child(1) { animation-delay: 0.1s; }
.podium-equalizer span:nth-child(2) { animation-delay: 0.3s; }
.podium-equalizer span:nth-child(3) { animation-delay: 0.15s; }
.podium-equalizer span:nth-child(4) { animation-delay: 0.4s; }

@keyframes eqWave {
    0% { height: 3px; }
    100% { height: 16px; }
}

/* Lawyer Podium Dynamic Glow States */
.lawyer-podium-card {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.lawyer-podium-card.prosecution.speaking {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.35), inset 0 0 16px rgba(0, 229, 255, 0.1);
    transform: translateY(-4px);
}

.lawyer-podium-card.prosecution.speaking .podium-status-dot {
    background: var(--primary-cyan);
    box-shadow: 0 0 8px var(--primary-cyan);
}

.lawyer-podium-card.prosecution.speaking .podium-status-label {
    color: var(--primary-cyan);
    font-weight: 700;
}

.lawyer-podium-card.defense.speaking {
    border-color: var(--primary-indigo);
    box-shadow: 0 0 24px rgba(129, 140, 248, 0.35), inset 0 0 16px rgba(129, 140, 248, 0.1);
    transform: translateY(-4px);
}

.lawyer-podium-card.defense.speaking .podium-status-dot {
    background: var(--primary-indigo);
    box-shadow: 0 0 8px var(--primary-indigo);
}

.lawyer-podium-card.defense.speaking .podium-status-label {
    color: var(--primary-indigo);
    font-weight: 700;
}

.lawyer-podium-card.objecting {
    border-color: var(--alert-red) !important;
    box-shadow: 0 0 28px rgba(244, 63, 94, 0.5) !important;
    animation: objectionShake 0.4s ease;
}

@keyframes objectionShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Podium Action Buttons */
.podium-speak-btn {
    margin-top: 1.25rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.podium-speak-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-cyan);
    transform: translateY(-1px);
}

/* Duel Highlight Sparring & Objection Buttons */
.duel-btn-control.btn-spar-action {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(99, 102, 241, 0.25));
    border-color: rgba(56, 189, 248, 0.4);
    color: var(--primary-cyan);
    font-weight: 700;
}

.duel-btn-control.btn-spar-action:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.4), rgba(99, 102, 241, 0.4));
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
    border-color: var(--primary-cyan);
}

.duel-btn-control.btn-objection-action {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.35);
    color: #fda4af;
    font-weight: 700;
}

.duel-btn-control.btn-objection-action:hover {
    background: rgba(244, 63, 94, 0.3);
    border-color: var(--alert-red);
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.4);
    color: #fff;
}

/* Center Bench Objection Banner Overlay */
.duel-objection-banner {
    background: rgba(30, 10, 18, 0.95);
    border: 1px solid var(--alert-red);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
    animation: bannerDrop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.35);
}

.duel-objection-banner.hidden {
    display: none;
}

.objection-banner-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.objection-icon {
    font-size: 1.25rem;
}

.objection-banner-header strong {
    color: #fda4af;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    flex: 1;
}

.ruling-stamp {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ruling-stamp.sustained {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
    border: 1px solid #eab308;
}

.ruling-stamp.overruled {
    background: rgba(14, 165, 233, 0.2);
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
}

.objection-banner-body {
    font-size: 0.84rem;
    color: #f1f5f9;
    line-height: 1.45;
}

@keyframes bannerDrop {
    0% { opacity: 0; transform: translateY(-12px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Case Category Pill for Augmented Cases */
.case-cat-pill.augmented {
    background: rgba(168, 85, 247, 0.18);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.case-repo-card.augmented {
    border-color: rgba(168, 85, 247, 0.25);
}

.case-repo-card.augmented:hover {
    border-color: #a855f7;
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.15);
}

/* Augmented Dataset Case Audit Explorer Table */
.dataset-audit-explorer-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
}

.dataset-audit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dataset-table-filters {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.dataset-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    color: var(--text-dim);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dataset-filter-btn:hover {
    color: #fff;
    border-color: var(--primary-cyan);
}

.dataset-filter-btn.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    font-weight: 700;
}

.dataset-table-container {
    overflow-x: auto;
    max-height: 440px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.dataset-audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.dataset-audit-table thead th {
    position: sticky;
    top: 0;
    background: #090f1e;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 2;
}

.dataset-audit-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.15s ease;
}

.dataset-audit-table tbody tr:hover {
    background: rgba(14, 25, 50, 0.6);
}

.dataset-audit-table td {
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    vertical-align: middle;
}

.table-id-badge {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary-cyan);
}

.table-status-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
}

.table-status-pill.likely-stalled {
    background: rgba(244, 63, 94, 0.15);
    color: var(--alert-red);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.table-status-pill.valid-delay {
    background: rgba(234, 179, 8, 0.15);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.table-status-pill.normal {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.table-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 0.3rem 0.65rem;
    color: #e2e8f0;
    font-size: 0.74rem;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-right: 0.35rem;
}

.table-action-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.table-action-btn.duel-btn {
    border-color: rgba(168, 85, 247, 0.35);
}

.table-action-btn.duel-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #d8b4fe;
}

/* ==========================================================================
   ADVANCED COURTROOM POLISH & EDUCATIONAL GLOSSARY STYLES
   ========================================================================== */

/* Duel Speed Selector */
.duel-speed-pill-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(5, 10, 22, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 3px 6px;
}

.duel-speed-pill-group .speed-label {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    margin-right: 4px;
}

.duel-speed-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    padding: 2px 7px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.duel-speed-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.duel-speed-btn.active {
    background: rgba(0, 229, 255, 0.18);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    font-weight: 700;
}

/* Interactive Objection Dropdown Menu */
.objection-control-wrap {
    position: relative;
    display: inline-flex;
}

.objection-grounds-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 290px;
    background: #090e1c;
    border: 1px solid var(--alert-red);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(244, 63, 94, 0.25);
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    animation: fadeIn 0.2s ease-out;
}

.objection-grounds-menu.hidden {
    display: none;
}

.objection-menu-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #fda4af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    border-bottom: 1px solid rgba(244, 63, 94, 0.2);
    margin-bottom: 0.2rem;
}

.objection-ground-item {
    background: rgba(244, 63, 94, 0.05);
    border: 1px solid rgba(244, 63, 94, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.objection-ground-item strong {
    font-size: 0.78rem;
    color: #fecdd3;
    font-family: var(--font-mono);
}

.objection-ground-item span {
    font-size: 0.7rem;
    color: var(--text-dim);
    line-height: 1.3;
}

.objection-ground-item:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: var(--alert-red);
    transform: translateX(3px);
}

.objection-ground-item:hover strong {
    color: #fff;
}

/* Clickable Legal Doctrine Badge in Transcript */
.legal-cite-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0, 229, 255, 0.12);
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 4px;
    padding: 0.1rem 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    vertical-align: baseline;
}

.legal-cite-badge:hover {
    background: rgba(0, 229, 255, 0.25);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
    transform: translateY(-1px);
}

.legal-cite-badge::after {
    content: " ↗";
    font-size: 0.65rem;
    opacity: 0.8;
}

/* Sherlock Strategic Counsel Card */
.sherlock-strategy-card {
    background: rgba(14, 25, 52, 0.75);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-left: 3px solid var(--primary-cyan);
    border-radius: 12px;
    padding: 0.85rem 1.15rem;
    margin-bottom: 0.85rem;
    backdrop-filter: blur(8px);
}

.strategy-badge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.strategy-next-btn {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: var(--primary-cyan);
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.15s ease;
}

.strategy-next-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--primary-cyan);
}

.strategy-clue-body {
    font-size: 0.84rem;
    color: #e2e8f0;
    line-height: 1.5;
    font-style: italic;
}

/* Augmented Dataset Header Actions */
.dataset-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dataset-search-box {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(5, 10, 22, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
}

.dataset-search-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.78rem;
    outline: none;
    min-width: 190px;
}

.dataset-search-input::placeholder {
    color: var(--text-dim);
}

.dataset-export-btn {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 8px;
    color: var(--success-emerald);
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dataset-export-btn:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: var(--success-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
    color: #fff;
}

.dataset-count-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
}


/* ==========================================================================
   AUTHENTICATION & STUDENT PORTAL STYLES
   ========================================================================== */
.btn-auth-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    background: rgba(129, 140, 248, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.35);
    border-radius: 20px;
    color: #c7d2fe;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-auth-nav:hover {
    background: rgba(129, 140, 248, 0.22);
    border-color: var(--primary-indigo);
    color: #fff;
    box-shadow: 0 0 14px rgba(129, 140, 248, 0.3);
}

.btn-auth-nav.logged-in {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #a7f3d0;
}

.auth-modal-card {
    max-width: 520px !important;
    background: linear-gradient(180deg, rgba(14, 23, 46, 0.98) 0%, rgba(5, 8, 17, 0.99) 100%) !important;
    border: 1px solid rgba(0, 229, 255, 0.35) !important;
    box-shadow: 0 0 45px rgba(0, 229, 255, 0.18), 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--primary-cyan);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.auth-title {
    font-size: 1.55rem;
    font-weight: 900;
    color: #fff;
    margin: 0.25rem 0 0.4rem 0;
}

.auth-subtitle {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Google Auth Button */
.auth-google-wrapper {
    margin-bottom: 1.25rem;
}

.btn-google-auth {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #ffffff;
    color: #1f2937;
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-google-auth:hover {
    background: #f8fafc;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    padding: 0 0.75rem;
}

/* Student Form */
.student-login-form .form-group {
    margin-bottom: 1rem;
}

.student-login-form .form-label {
    display: block;
    font-size: 0.76rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.student-login-form .form-select,
.student-login-form .form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(10, 16, 32, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: #fff;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.student-login-form .form-select:focus,
.student-login-form .form-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap .form-input {
    padding-right: 2.5rem;
}

.btn-pwd-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    opacity: 0.6;
}

.form-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.76rem;
    color: var(--text-dim);
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.demo-fill-btn {
    background: none;
    border: none;
    color: var(--primary-cyan);
    font-size: 0.76rem;
    font-family: var(--font-mono);
    cursor: pointer;
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.92rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-success-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.student-card-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.student-card-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.student-card-school {
    font-size: 0.82rem;
    color: var(--primary-cyan);
}

.student-card-tag {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    margin-top: 0.15rem;
}

.auth-footer-trust {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    margin-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
}

/* ==========================================================================
   LIVE SECURITY CHECKS & AUDIT CONSOLE STYLES
   ========================================================================== */
.security-audit-score-console {
    background: rgba(10, 16, 32, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.75rem;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.08);
}

.security-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.25rem;
}

.overall-security-badge {
    text-align: right;
}

.sec-score-label {
    display: block;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.sec-score-val {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--success-emerald);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.security-checks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.sec-check-card {
    background: rgba(14, 23, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.sec-check-card.passed {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.04);
}

.sec-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sec-check-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
}

.sec-pill.pass {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--success-emerald);
    background: rgba(16, 185, 129, 0.15);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sec-meter-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.sec-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #00e5ff 100%);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    transition: width 0.6s ease;
}

.sec-check-detail {
    font-size: 0.74rem;
    color: #cbd5e1;
    line-height: 1.45;
}


/* ==========================================================================
   INTERACTIVE AI LEGAL LEARNING PARTNER COPILOT DRAWER
   ========================================================================== */
.ai-partner-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 95vw;
    height: 100vh;
    background: linear-gradient(180deg, rgba(8, 14, 28, 0.98) 0%, rgba(5, 8, 17, 0.99) 100%);
    backdrop-filter: blur(24px);
    border-left: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.7), -2px 0 20px rgba(0, 229, 255, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-partner-drawer.active {
    transform: translateX(0);
}

.partner-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 23, 46, 0.5);
}

.partner-header-avatar-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.partner-avatar-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.12);
    border: 1.5px solid var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.partner-avatar-ring img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.partner-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.partner-header-subtitle {
    font-size: 0.72rem;
    color: var(--primary-cyan);
    font-family: var(--font-mono);
}

.partner-header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.partner-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.partner-icon-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--primary-cyan);
    color: #fff;
}

.partner-icon-btn.active {
    background: rgba(0, 229, 255, 0.18);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

/* Mode & Case Strip */
.partner-mode-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    background: rgba(5, 10, 22, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.partner-case-select-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
}

.partner-case-select {
    background: rgba(14, 23, 46, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    outline: none;
    max-width: 170px;
    text-overflow: ellipsis;
}

.partner-mode-pills {
    display: flex;
    gap: 0.35rem;
}

.partner-mode-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.15s ease;
}

.partner-mode-pill:hover {
    border-color: var(--primary-cyan);
    color: #fff;
}

.partner-mode-pill.active {
    background: rgba(0, 229, 255, 0.18);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    font-weight: 700;
}

/* Ghost Signals Radar Bar */
.partner-signals-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.25rem;
    background: rgba(0, 229, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.68rem;
    font-family: var(--font-mono);
}

.signals-label {
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.signals-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.signal-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    color: #cbd5e1;
    font-size: 0.66rem;
}

/* Chat Feed */
.partner-chat-feed {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.partner-message {
    display: flex;
    flex-direction: column;
    max-width: 90%;
}

.partner-message.ai {
    align-self: flex-start;
}

.partner-message.student {
    align-self: flex-end;
}

.partner-bubble {
    padding: 0.95rem 1.15rem;
    border-radius: 14px;
    line-height: 1.55;
    font-size: 0.88rem;
}

.partner-message.ai .partner-bubble {
    background: rgba(14, 23, 46, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: #e2e8f0;
    border-top-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.partner-message.student .partner-bubble {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.75) 0%, rgba(14, 23, 46, 0.9) 100%);
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: #fff;
    border-top-right-radius: 4px;
}

.partner-message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.partner-author-name {
    font-weight: 700;
    color: var(--primary-cyan);
}

.partner-tag-fact {
    background: rgba(0, 229, 255, 0.12);
    color: var(--primary-cyan);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.62rem;
}

.partner-tag-student {
    background: rgba(129, 140, 248, 0.2);
    color: #c7d2fe;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.62rem;
}

.partner-quick-prompts {
    padding: 0.5rem 1.25rem;
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    background: rgba(5, 8, 17, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.partner-chip-btn {
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    color: #94a3b8;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.partner-chip-btn:hover {
    background: rgba(0, 229, 255, 0.12);
    border-color: var(--primary-cyan);
    color: #fff;
}

/* Input Area */
.partner-input-container {
    padding: 0.85rem 1.25rem 1.15rem 1.25rem;
    background: rgba(10, 16, 32, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.partner-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 23, 46, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.4rem 0.75rem;
    transition: border-color 0.2s;
}

.partner-input-wrap:focus-within {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
}

.partner-input-text {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.86rem;
    outline: none;
    resize: none;
    max-height: 80px;
    font-family: inherit;
    line-height: 1.4;
}

.btn-partner-mic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-partner-mic:hover {
    background: rgba(0, 229, 255, 0.2);
    color: var(--primary-cyan);
}

.btn-partner-mic.recording {
    background: rgba(244, 63, 94, 0.25) !important;
    border-color: var(--alert-red) !important;
    color: var(--alert-red) !important;
    animation: micPulse 1s infinite alternate;
}

.btn-partner-send {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: var(--primary-cyan);
    color: #050811;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-partner-send:hover {
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
    transform: scale(1.05);
}

.partner-input-subtext {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    font-size: 0.66rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}


/* ==========================================================================
   AI PARTNER TYPING INDICATOR & RICH FACT / INFERENCE STYLES
   ========================================================================== */
.partner-typing-bubble {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 1rem !important;
}

.partner-typing-dot {
    width: 7px;
    height: 7px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: partnerDotBounce 1.4s infinite ease-in-out both;
}

.partner-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.partner-typing-dot:nth-child(2) { animation-delay: -0.16s; }
.partner-typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes partnerDotBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px var(--primary-cyan); }
}

@keyframes micPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4); }
    100% { transform: scale(1.1); box-shadow: 0 0 16px 4px rgba(244, 63, 94, 0.6); }
}

.partner-tag-inference {
    background: rgba(245, 158, 11, 0.15);
    color: var(--alert-amber);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.62rem;
    font-family: var(--font-mono);
}

.partner-tag-unknown {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.62rem;
    font-family: var(--font-mono);
}

.partner-tag-counter {
    background: rgba(244, 63, 94, 0.15);
    color: var(--alert-red);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.62rem;
    font-family: var(--font-mono);
}

.partner-time {
    color: var(--text-dim);
    font-size: 0.62rem;
    font-family: var(--font-mono);
    margin-left: auto;
}

.partner-question-quote {
    margin: 0.6rem 0;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 229, 255, 0.08);
    border-left: 3px solid var(--primary-cyan);
    border-radius: 4px;
    color: #e0f2fe;
    font-weight: 500;
}

.partner-signal-highlight {
    color: var(--primary-cyan);
    font-weight: 700;
    text-decoration: underline dotted var(--primary-cyan);
    cursor: pointer;
}

.partner-signal-highlight:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--primary-cyan);
}

.partner-chat-feed::-webkit-scrollbar {
    width: 6px;
}
.partner-chat-feed::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.partner-chat-feed::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.25);
    border-radius: 3px;
}
.partner-chat-feed::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.5);
}
