/* ============================================
   CivicGuardian AI - Sky-Blue Fluent Design
   Professional Caseworker Command Center
   ============================================ */

/* ============================================
   CINEMATIC FUTURISTIC DESIGN SYSTEM
   Premium AI Security Platform Aesthetic
   ============================================ */

:root {
    /* Cinematic Dark Palette */
    --void-black: #000000;
    --deep-navy: #0A0E1A;
    --space-dark: #0D1117;
    --panel-dark: #161B22;
    --surface-elevated: #1C2128;
    --dark-surface: #0D1117;
    --dark-card: #161B22;
    
    /* Neon Cyan System */
    --neon-cyan: #00F0FF;
    --cyan-primary: #00D9FF;
    --cyan-bright: #00F0FF;
    --electric-blue: #0099FF;
    --blue-electric: #0099FF;
    --cyber-teal: #00D9E8;
    --ice-blue: #B3E5FC;
    
    /* Accent Colors */
    --success-neon: #00FF88;
    --success-glow: #00FF88;
    --warning-amber: #FFB800;
    --warning-glow: #FFB800;
    --danger-red: #FF3366;
    --danger-glow: #FF3366;
    --info-cyan: #00D9FF;
    
    /* Text Hierarchy */
    --text-hero: #FFFFFF;
    --text-primary: #E6EDF3;
    --text-secondary: #8B949E;
    --text-tertiary: #6E7681;
    --text-dim: #484F58;
    
    /* Glow Effects */
    --glow-cyan-sm: 0 0 10px rgba(0, 240, 255, 0.4);
    --glow-cyan-md: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 40px rgba(0, 240, 255, 0.2);
    --glow-cyan-lg: 0 0 30px rgba(0, 240, 255, 0.6), 0 0 60px rgba(0, 240, 255, 0.3), 0 0 90px rgba(0, 240, 255, 0.1);
    --glow-blue: 0 0 20px rgba(0, 153, 255, 0.5), 0 0 40px rgba(0, 153, 255, 0.2);
    
    /* Borders & Lines */
    --border-tech: 1px solid rgba(0, 240, 255, 0.2);
    --border-subtle: 1px solid rgba(139, 148, 158, 0.1);
    --border-medium: rgba(0, 217, 255, 0.3);
    --border-bright: rgba(0, 217, 255, 0.5);
    --border-glow: 1px solid rgba(0, 240, 255, 0.4);
    
    /* Glassmorphism */
    --glass-panel: rgba(22, 27, 34, 0.7);
    --glass-bg: rgba(22, 27, 34, 0.6);
    --glass-border: rgba(0, 217, 255, 0.2);
    --glass-elevated: rgba(28, 33, 40, 0.8);
    --glass-blur: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.8);
    
    /* Typography */
    --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    
    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--void-black);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Animated Tech Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: grid-scroll 20s linear infinite;
}

@keyframes grid-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(60px); }
}

/* Radial Gradient Spotlight */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: pulse-spotlight 8s ease-in-out infinite;
}

@keyframes pulse-spotlight {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* ============================================
   DEMO BANNER
   ============================================ */

.demo-banner {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.95), rgba(255, 140, 0, 0.95));
    color: white;
    padding: var(--space-3) 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(255, 184, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 184, 0, 0.5);
}

.demo-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

/* ============================================
   COMMAND CENTER LAYOUT
   ============================================ */

.command-center {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ============================================
   TECH CORNER BRACKETS (Reusable)
   ============================================ */

.tech-corners {
    position: relative;
}

.tech-corners::before,
.tech-corners::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-cyan);
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.tech-corners::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.tech-corners::after {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}

.tech-corners:hover::before,
.tech-corners:hover::after {
    opacity: 1;
    box-shadow: var(--glow-cyan-sm);
}

/* Bottom corners via pseudo on child */
.tech-corners > *:last-child::before,
.tech-corners > *:last-child::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-cyan);
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.tech-corners > *:last-child::before {
    bottom: -1px;
    left: -1px;
    border-right: none;
    border-top: none;
}

.tech-corners > *:last-child::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

/* ============================================
   SECTION 1: ANALYTICS BAR
   ============================================ */

.analytics-bar {
    background: linear-gradient(135deg, 
        rgba(0, 51, 102, 0.95) 0%, 
        rgba(0, 77, 128, 0.98) 50%,
        rgba(0, 102, 153, 0.95) 100%);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border-bottom: 2px solid rgba(0, 217, 255, 0.4);
    box-shadow: 
        var(--shadow-lg), 
        0 4px 24px rgba(0, 0, 0, 0.5),
        0 8px 48px rgba(0, 217, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 42px;
    z-index: 900;
}

.analytics-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-primary), transparent);
    opacity: 0.5;
}

.analytics-bar-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-8);
    align-items: center;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.brand-icon {
    font-size: 32px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 94, 184, 0.2));
}

.brand-text h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--cyan-primary);
    letter-spacing: -0.02em;
    margin: 0;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.brand-text p {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
}

.brand-strapline {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0.02em;
    margin-top: var(--space-2);
    font-style: italic;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

.kpi-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.kpi-card {
    text-align: center;
    padding: var(--space-3);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.kpi-card:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 217, 255, 0.2);
    transform: translateY(-2px);
}

.kpi-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-1);
}

.kpi-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--cyan-bright);
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
}

.demo-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-dim);
    margin-left: var(--space-2);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.system-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.case-reference {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan-bright);
    background: rgba(0, 217, 255, 0.1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-medium);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.status-separator {
    color: var(--text-dim);
    margin: 0 var(--space-1);
}

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

@keyframes pulse-status {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 10px var(--success-glow), 0 0 20px var(--success-glow);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.2);
        box-shadow: 0 0 15px var(--success-glow), 0 0 30px var(--success-glow);
    }
}

/* ============================================
   BENTO GRID LAYOUT
   ============================================ */

.bento-grid {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-6);
    flex: 1;
}

.bento-item {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan-primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.bento-item:hover {
    border-color: var(--border-bright);
    box-shadow: var(--shadow-xl), var(--glow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

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

/* Grid Positioning */
.drop-zone-section {
    grid-column: span 6;
}

.mission-panel-section {
    grid-column: span 6;
}

.thinking-stream-section {
    grid-column: span 8;
}

.visualization-section {
    grid-column: span 4;
}

.drafting-suite-section {
    grid-column: span 12;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan-primary), transparent);
}

.section-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 102, 255, 0.1));
    color: var(--cyan-bright);
    border: 1px solid var(--border-medium);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

/* ============================================
   SECTION 2: FORENSIC DROP ZONE
   ============================================ */

.drop-zone {
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    padding: var(--space-12);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.03), rgba(0, 102, 255, 0.03));
    position: relative;
    margin-bottom: var(--space-6);
}

.drop-zone::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-lg);
    padding: 3px;
    background: linear-gradient(135deg, var(--cyan-primary), var(--blue-electric));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.drop-zone:hover {
    border-color: transparent;
    box-shadow: var(--glow-cyan), inset 0 0 40px rgba(0, 217, 255, 0.1);
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(0, 102, 255, 0.08));
}

.drop-zone:hover::before {
    opacity: 1;
    animation: border-glow 2s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% { 
        opacity: 0.6;
        filter: brightness(1);
    }
    50% { 
        opacity: 1;
        filter: brightness(1.3);
    }
}

.drop-zone-icon {
    margin-bottom: var(--space-4);
}

.drop-zone-icon svg {
    color: var(--cyan-primary);
    filter: drop-shadow(var(--glow-cyan));
    transition: transform var(--transition-base);
}

.drop-zone:hover .drop-zone-icon svg {
    transform: translateY(-8px) scale(1.1);
    filter: drop-shadow(0 0 40px rgba(0, 217, 255, 0.8));
}

.drop-zone-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.drop-zone-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.drop-zone-formats {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Document Preview */
.document-preview {
    margin-top: var(--space-6);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background: rgba(0, 217, 255, 0.05);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border: 1px solid var(--border-subtle);
    border-bottom: none;
}

.preview-filename {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.preview-filesize {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    background: rgba(0, 217, 255, 0.1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.preview-content {
    padding: var(--space-6);
    background: var(--dark-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   MISSION & IMPACT PANEL
   ============================================ */

.mission-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.mission-section {
    padding: var(--space-4);
    background: rgba(0, 217, 255, 0.03);
    border-left: 3px solid var(--cyan-primary);
    border-radius: var(--radius-md);
}

.mission-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan-bright);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

/* Mission Statement */
.mission-statement {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

.mission-statement strong {
    color: var(--cyan-bright);
    font-weight: 700;
}

/* Target Groups */
.target-groups {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.group-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.group-tag:hover {
    border-color: var(--cyan-primary);
    background: rgba(0, 217, 255, 0.15);
    transform: translateY(-1px);
}

/* Mission Lists */
.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.mission-list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: var(--space-5);
    position: relative;
}

.mission-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--cyan-primary);
    font-weight: bold;
    text-shadow: 0 0 10px var(--cyan-primary);
}

.mission-list li strong {
    color: var(--cyan-bright);
    font-weight: 700;
}

/* Compact Pipeline */
.agent-pipeline-compact {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.pipeline-step-mini {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 12px;
    transition: all var(--transition-base);
}

.pipeline-step-mini:hover {
    border-color: var(--border-medium);
    background: rgba(0, 217, 255, 0.08);
    transform: translateX(4px);
}

.step-number-mini {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--electric-blue));
    color: var(--void-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

.step-label-mini {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}

/* Support Stats */
.support-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.stat-item {
    text-align: center;
    padding: var(--space-3);
    background: rgba(0, 217, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.stat-item:hover {
    border-color: var(--border-medium);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.15);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--cyan-bright);
    margin-bottom: var(--space-2);
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
    line-height: 1.2;
}

.stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* Commitment Items */
.commitment-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.commitment-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    font-size: 12px;
    color: var(--text-secondary);
}

.commitment-icon {
    color: var(--success-neon);
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 10px var(--success-neon);
}

/* Mission Metrics Section */
.mission-metrics {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(0, 102, 255, 0.05));
    border-left-color: var(--electric-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .support-stats {
        grid-template-columns: 1fr;
    }
    
    .target-groups {
        flex-direction: column;
    }
    
    .group-tag {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   SECTION 3: AGENTIC THINKING STREAM
   ============================================ */

.stream-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.stream-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan-primary);
    border-radius: 50%;
    animation: pulse-stream 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--cyan-primary), 0 0 20px var(--cyan-primary);
}

@keyframes pulse-stream {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 10px var(--cyan-primary), 0 0 20px var(--cyan-primary);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.3);
        box-shadow: 0 0 15px var(--cyan-primary), 0 0 30px var(--cyan-primary);
    }
}

.stream-text {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--cyan-bright);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.thinking-stream {
    background: var(--dark-surface);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--cyan-bright);
    max-height: 400px;
    overflow-y: auto;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border-subtle);
    position: relative;
}

.thinking-stream::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-primary), transparent);
    opacity: 0.5;
}

.thinking-log {
    margin-bottom: var(--space-3);
    padding-left: var(--space-4);
    border-left: 2px solid var(--cyan-primary);
    opacity: 0;
    animation: fade-in 0.4s ease-out forwards;
}

@keyframes fade-in {
    from { 
        opacity: 0; 
        transform: translateX(-10px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

.thinking-log .timestamp {
    color: var(--text-dim);
    margin-right: var(--space-2);
}

.thinking-log .message {
    color: var(--cyan-bright);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

/* ============================================
   SECTION 4: RISK ASSESSMENT DASHBOARD
   ============================================ */

.risk-scorecard {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.risk-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.risk-metric-card {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: all var(--transition-base);
}

.risk-metric-card:hover {
    border-color: var(--border-medium);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
    transform: translateY(-2px);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.metric-icon {
    font-size: 20px;
    line-height: 1;
}

.metric-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.metric-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: var(--space-3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.metric-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.metric-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.urgency-fill {
    background: linear-gradient(90deg, #FF3366, #FF6B9D);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

.complexity-fill {
    background: linear-gradient(90deg, #FFB800, #FFD666);
    box-shadow: 0 0 10px rgba(255, 184, 0, 0.5);
}

.confidence-fill {
    background: linear-gradient(90deg, #00FF88, #66FFAA);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.metric-detail {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Priority Banner */
.priority-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-4);
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.15), rgba(255, 107, 157, 0.1));
    border: 2px solid rgba(255, 51, 102, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: 0 0 30px rgba(255, 51, 102, 0.2);
}

.priority-icon {
    font-size: 32px;
    line-height: 1;
    animation: pulse-priority 2s ease-in-out infinite;
}

@keyframes pulse-priority {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1);
    }
}

.priority-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.priority-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.priority-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--danger-red);
    text-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
}

.priority-deadline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-1);
}

.deadline-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.deadline-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* Responsive Risk Scorecard */
@media (max-width: 1200px) {
    .risk-metric-grid {
        grid-template-columns: 1fr;
    }
    
    .priority-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .priority-deadline {
        align-items: center;
    }
}

/* ============================================
   SECTION 5: DRAFTING SUITE
   ============================================ */

.drafting-suite-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    grid-template-rows: auto auto;
}

.drafting-suite-section .section-header {
    grid-column: span 3;
}

.draft-card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
    position: relative;
}

.draft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan-primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.draft-card:hover {
    border-color: var(--border-bright);
    box-shadow: var(--shadow-xl), var(--glow-cyan);
    transform: translateY(-4px);
}

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

.card-header {
    background: linear-gradient(to bottom, rgba(0, 217, 255, 0.08), rgba(0, 217, 255, 0.02));
    padding: var(--space-5);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.card-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.edit-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.edit-icon-btn svg {
    color: var(--cyan-primary);
    transition: all var(--transition-base);
}

.edit-icon-btn:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--cyan-primary);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    transform: translateY(-2px);
}

.edit-icon-btn:hover svg {
    color: var(--cyan-bright);
    filter: drop-shadow(0 0 5px var(--cyan-primary));
}

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

.card-body {
    padding: var(--space-6);
}

/* Badges */
.risk-badge,
.status-badge,
.validation-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 0 20px currentColor;
}

.risk-badge {
    background: rgba(255, 51, 102, 0.15);
    color: var(--danger-glow);
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.status-badge {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-glow);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.validation-badge {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-glow);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* Info Rows */
.info-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.info-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Info Sections */
.info-section {
    margin-top: var(--space-6);
}

.info-section h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
}

.indicator-list,
.rationale-list,
.legislation-list {
    list-style: none;
    padding: 0;
}

.indicator-list li,
.rationale-list li,
.legislation-list li {
    padding: var(--space-2) 0;
    padding-left: var(--space-5);
    position: relative;
    font-size: 13px;
    color: var(--text-secondary);
}

.indicator-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--cyan-primary);
    font-weight: bold;
    text-shadow: 0 0 10px var(--cyan-primary);
}

.rationale-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-glow);
    font-weight: bold;
    text-shadow: 0 0 10px var(--success-glow);
}

.legislation-list li::before {
    content: "§";
    position: absolute;
    left: 0;
    color: var(--cyan-primary);
    font-weight: bold;
    text-shadow: 0 0 10px var(--cyan-primary);
}

/* Draft Text */
.draft-text {
    background: rgba(0, 217, 255, 0.05);
    border-left: 3px solid var(--cyan-primary);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.05);
}

/* Notices */
.safety-notice {
    background: rgba(255, 184, 0, 0.1);
    border-left: 3px solid var(--warning-glow);
    padding: var(--space-4);
    margin-top: var(--space-6);
    font-size: 12px;
    font-weight: 600;
    color: var(--warning-glow);
    border-radius: var(--radius-md);
    box-shadow: 0 0 20px rgba(255, 184, 0, 0.2);
}

.escalation-notice {
    background: rgba(255, 51, 102, 0.1);
    border-left: 3px solid var(--danger-glow);
    padding: var(--space-4);
    margin-top: var(--space-6);
    border-radius: var(--radius-md);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.2);
}

.escalation-notice strong {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--danger-glow);
    font-size: 12px;
    font-weight: 700;
}

.escalation-notice .escalation-reason {
    margin: 0 0 var(--space-4) 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.escalation-triggers {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 51, 102, 0.2);
}

.escalation-trigger-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
}

.trigger-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.trigger-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 51, 102, 0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 51, 102, 0.15);
}

.trigger-icon {
    font-size: 14px;
    line-height: 1;
}

.trigger-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Validation Checks */
.check-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.check-item {
    display: flex;
    align-items: center;
    padding: var(--space-3);
    background: rgba(0, 255, 136, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.check-item-warning {
    background: rgba(255, 184, 0, 0.08);
    border: 1px solid rgba(255, 184, 0, 0.2);
}

.check-item-warning .check-icon {
    color: var(--warning-amber);
    text-shadow: 0 0 10px var(--warning-amber);
}

.check-icon {
    color: var(--success-glow);
    font-weight: bold;
    margin-right: var(--space-3);
    font-size: 16px;
    text-shadow: 0 0 10px var(--success-glow);
}

.check-item span:last-child {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Agent Badge */
.agent-badge {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.agent-badge svg {
    color: var(--cyan-primary);
    filter: drop-shadow(0 0 5px var(--cyan-primary));
}

/* Action Buttons */
.action-buttons {
    grid-column: span 3;
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-ui);
    text-align: center;
}

.btn:focus-visible {
    outline: 3px solid var(--sky-cyan);
    outline-offset: 3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan-primary), var(--blue-electric));
    color: white;
    box-shadow: var(--shadow-md), var(--glow-cyan);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 217, 255, 0.8);
    transform: translateY(-2px);
}

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

.btn-secondary {
    background: rgba(0, 217, 255, 0.05);
    color: var(--cyan-bright);
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--cyan-primary);
    background: rgba(0, 217, 255, 0.1);
    box-shadow: var(--shadow-md), 0 0 20px rgba(0, 217, 255, 0.3);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-glow), #00CC70);
    color: white;
    box-shadow: var(--shadow-md);
    flex: 1;
}

.btn-success:hover {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 255, 136, 0.6);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

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

/* ============================================
   FOOTER
   ============================================ */

.command-footer {
    background: var(--dark-surface);
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
    position: relative;
}

.command-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-primary), transparent);
    opacity: 0.3;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-6);
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-content p {
    margin: var(--space-2) 0;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--cyan-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--cyan-bright);
    text-shadow: 0 0 10px var(--cyan-primary);
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .analytics-bar-inner {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .kpi-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .drop-zone-section,
    .mission-panel-section,
    .thinking-stream-section,
    .visualization-section {
        grid-column: span 12;
    }
    
    .drafting-suite-section {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        padding: var(--space-6) var(--space-4);
        gap: var(--space-4);
    }
    
    .kpi-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }
    
    .kpi-card {
        min-height: 60px;
        padding: var(--space-2);
    }
    
    .kpi-value {
        font-size: 18px;
    }
    
    .kpi-label {
        font-size: 9px;
    }
    
    .demo-label {
        display: none;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .drafting-suite-section {
        grid-template-columns: 1fr;
    }
    
    .drafting-suite-section .section-header {
        grid-column: span 1;
    }
    
    .action-buttons {
        grid-column: span 1;
        flex-direction: column;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

*:focus-visible {
    outline: 3px solid var(--sky-cyan);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

@media (prefers-contrast: high) {
    .bento-item,
    .draft-card {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* ============================================
   AWS BRAND SIGNATURE
   ============================================ */

.aws-signature {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 1000;
    pointer-events: none;
}

.aws-signature-inner {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--glass-panel);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid rgba(255, 153, 0, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all var(--transition-base);
}

.aws-signature-text {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.aws-signature-brand {
    font-size: 13px;
    font-weight: 800;
    color: #FF9900;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
}

/* Subtle hover effect (optional) */
.aws-signature:hover .aws-signature-inner {
    border-color: rgba(255, 153, 0, 0.3);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 153, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .aws-signature {
        bottom: var(--space-4);
        right: var(--space-4);
    }
    
    .aws-signature-inner {
        padding: var(--space-1) var(--space-3);
    }
    
    .aws-signature-text {
        font-size: 10px;
    }
    
    .aws-signature-brand {
        font-size: 12px;
    }
}

/* Ensure it doesn't overlap with footer on small screens */
@media (max-height: 600px) {
    .aws-signature {
        bottom: var(--space-3);
        right: var(--space-3);
    }
}


/* ============================================
   VALUE PROPOSITION LINES
   ============================================ */

.brand-value-props {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-top: var(--space-3);
}

.value-prop-item {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    font-style: italic;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
    line-height: 1.4;
}

.value-prop-separator {
    display: none;
}

/* ============================================
   CLICKABLE KPI CARDS
   ============================================ */

.kpi-card-clickable {
    cursor: pointer;
    position: relative;
}

.kpi-card-clickable::after {
    content: 'ℹ️';
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    font-size: 12px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.kpi-card-clickable:hover::after {
    opacity: 0.6;
}

.kpi-card-clickable:hover {
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
    transform: translateY(-3px);
}

/* ============================================
   KPI TOOLTIP MODAL
   ============================================ */

.kpi-tooltip-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.kpi-tooltip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

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

.kpi-tooltip-content {
    position: relative;
    max-width: 600px;
    width: 100%;
    background: var(--glass-panel);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-2xl), 0 0 60px rgba(0, 217, 255, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.kpi-tooltip-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 32px;
    height: 32px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 50%;
    color: var(--cyan-bright);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.kpi-tooltip-close:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--cyan-primary);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
    transform: rotate(90deg);
}

.kpi-tooltip-body {
    color: var(--text-primary);
}

.kpi-tooltip-body h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--cyan-bright);
    margin-bottom: var(--space-4);
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

.kpi-tooltip-body p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.kpi-tooltip-body p:last-child {
    margin-bottom: 0;
}

.kpi-tooltip-body strong {
    color: var(--cyan-bright);
    font-weight: 700;
}

.kpi-tooltip-body ul {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0;
}

.kpi-tooltip-body ul li {
    padding: var(--space-2) 0 var(--space-2) var(--space-5);
    position: relative;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.kpi-tooltip-body ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--cyan-primary);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .kpi-tooltip-modal {
        padding: var(--space-4);
    }
    
    .kpi-tooltip-content {
        padding: var(--space-6);
    }
}


/* ============================================
   PRODUCT TOUR — SHEPHERD.JS DARK THEME
   ============================================ */

.btn-tour {
    background: rgba(0, 217, 255, 0.1);
    color: var(--cyan-bright);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-1) var(--space-3);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-ui);
    margin-left: var(--space-3);
}

.btn-tour:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--cyan-primary);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    transform: translateY(-1px);
}

/* Shepherd dark theme overrides */
.shepherd-element {
    background: #0d1b2a !important;
    border: 2px solid rgba(0, 217, 255, 0.4) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 217, 255, 0.2) !important;
    max-width: 360px !important;
}

.shepherd-arrow::before {
    background: #0d1b2a !important;
    border-color: rgba(0, 217, 255, 0.4) !important;
}

.shepherd-header {
    background: rgba(0, 217, 255, 0.08) !important;
    padding: 16px 20px 12px !important;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2) !important;
    border-radius: 10px 10px 0 0 !important;
}

.shepherd-title {
    color: #00d9ff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3) !important;
}

.shepherd-cancel-icon {
    color: #8b949e !important;
    font-size: 24px !important;
}

.shepherd-cancel-icon:hover {
    color: #e0e0e0 !important;
}

.shepherd-text {
    color: #e0e0e0 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    padding: 16px 20px !important;
}

.shepherd-footer {
    padding: 12px 20px 16px !important;
    border-top: 1px solid rgba(0, 217, 255, 0.1) !important;
}

.shepherd-button {
    background: linear-gradient(135deg, #00d9ff, #0099ff) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3) !important;
}

.shepherd-button:hover {
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.5) !important;
    transform: translateY(-1px) !important;
}

.shepherd-button-secondary {
    background: transparent !important;
    color: #8b949e !important;
    border: 1px solid rgba(139, 148, 158, 0.3) !important;
    box-shadow: none !important;
}

.shepherd-button-secondary:hover {
    color: #e0e0e0 !important;
    border-color: rgba(139, 148, 158, 0.5) !important;
    box-shadow: none !important;
    transform: none !important;
}

.shepherd-modal-overlay-container {
    fill: rgba(0, 0, 0, 0.75) !important;
}

/* Mobile adjustments for tour */
@media (max-width: 768px) {
    .shepherd-element {
        max-width: 300px !important;
        margin: 0 10px !important;
    }
    
    .shepherd-text {
        font-size: 13px !important;
        padding: 12px 16px !important;
    }
    
    .btn-tour {
        font-size: 10px;
        padding: var(--space-1) var(--space-2);
    }
}
