/* ST Cable AI Voice Interface — Premium Redesign
   Design: Refined minimalism with precision spacing
   Palette: Deep slate base + Teal accent
   Typography: DM Sans (display) + Plus Jakarta Sans (body)
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Color System — Single Cohesive Palette */
    --color-base-950: #0a0c10;
    --color-base-900: #0f1218;
    --color-base-850: #141820;
    --color-base-800: #1a1f2a;
    --color-base-700: #242b3a;
    --color-base-600: #2e3849;
    --color-base-500: #3d4a5f;
    --color-base-400: #5a6a82;
    --color-base-300: #7d8ba0;
    --color-base-200: #a3aebe;
    --color-base-100: #c9d1dc;
    --color-base-50: #e8ecf0;
    
    /* Accent — Sophisticated Teal */
    --color-accent-500: #14b8a6;
    --color-accent-400: #2dd4bf;
    --color-accent-300: #5eead4;
    --color-accent-600: #0d9488;
    --color-accent-glow: rgba(20, 184, 166, 0.25);
    --color-accent-subtle: rgba(20, 184, 166, 0.08);
    
    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Glass Effects */
    --glass-bg: rgba(20, 24, 32, 0.75);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-hover: rgba(255, 255, 255, 0.04);
    
    /* Typography */
    --font-display: 'DM Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    
    /* Spacing Scale (8px base) */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 48px var(--color-accent-glow);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Orb States */
    --orb-idle: var(--color-accent-500);
    --orb-listening: var(--color-success);
    --orb-thinking: var(--color-warning);
    --orb-speaking: var(--color-accent-400);
    --orb-error: var(--color-error);
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--color-base-950);
    color: var(--color-base-100);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   WELCOME MODAL
   ============================================ */
#welcome-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-4);
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

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

#welcome-modal {
    background: var(--color-base-850);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: modalReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-brand {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.brand-mark {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent-400);
    letter-spacing: -0.02em;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-base-100);
    letter-spacing: -0.01em;
}

.modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, var(--color-accent-500), var(--color-accent-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.modal-icon svg {
    color: white;
}

#welcome-modal h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-base-50);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.modal-description {
    font-size: 0.9375rem;
    color: var(--color-base-300);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

/* Language Selector */
.language-selector {
    margin-bottom: var(--space-6);
}

.language-selector label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-base-400);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.language-selector label svg {
    opacity: 0.7;
}

#language-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    background: var(--color-base-800);
    border: 1px solid var(--color-base-700);
    border-radius: var(--radius-md);
    color: var(--color-base-100);
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d8ba0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-10);
}

#language-select:hover {
    border-color: var(--color-base-600);
    background-color: var(--color-base-700);
}

#language-select:focus {
    outline: none;
    border-color: var(--color-accent-500);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

#language-select option {
    background: var(--color-base-800);
    color: var(--color-base-100);
    padding: var(--space-2);
}

#start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-4) var(--space-6);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--color-accent-500), var(--color-accent-600));
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md), 0 0 24px var(--color-accent-glow);
}

#start-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), 0 0 32px var(--color-accent-glow);
}

#start-button:active {
    transform: translateY(0);
}

#start-button svg {
    transition: transform var(--transition-fast);
}

#start-button:hover svg {
    transform: translateX(3px);
}

#start-button:disabled {
    background: var(--color-base-600);
    cursor: not-allowed;
    box-shadow: none;
}

.modal-hint {
    font-size: 0.8125rem;
    color: var(--color-base-500);
    margin-top: var(--space-4);
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
#main-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    height: 100vh;
    width: 100vw;
}

/* ============================================
   VOICE CONTAINER
   ============================================ */
#voice-container {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-base-900);
}

/* Background Effects */
.bg-texture {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, var(--color-base-800) 1px, transparent 0);
    background-size: 32px 32px;
    opacity: 0.4;
    pointer-events: none;
}

.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
}

/* Header */
#header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
}

#logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-mark {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-accent-400);
    letter-spacing: -0.02em;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-base-100);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.logo-tag {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-base-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#language-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
}

#language-indicator svg {
    color: var(--color-base-400);
}

#detected-language {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-base-300);
    letter-spacing: 0.08em;
}

/* Voice Main Area */
#voice-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    position: relative;
    z-index: 10;
}

/* Transcript */
#transcript-container {
    width: 100%;
    max-width: 560px;
    margin-bottom: var(--space-10);
    min-height: 80px;
}

#transcript-display {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-base-100);
    text-align: center;
    padding: var(--space-6);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition-base);
}

#transcript-display.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Voice Orb */
#voice-orb-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: var(--space-8);
}

#voice-orb {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-core {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--orb-idle);
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-slow);
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--color-accent-500);
    opacity: 0;
    transition: all var(--transition-slow);
}

.ring-1 { width: 120px; height: 120px; }
.ring-2 { width: 145px; height: 145px; }
.ring-3 { width: 170px; height: 170px; }

.orb-pulse {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-accent-500);
    opacity: 0;
    pointer-events: none;
}

/* Orb States */
#voice-orb.listening .orb-core {
    background: var(--orb-listening);
    box-shadow: 0 0 48px rgba(16, 185, 129, 0.4);
    animation: orbPulse 2s ease-in-out infinite;
}

#voice-orb.listening .orb-ring {
    opacity: 0.6;
    border-color: var(--color-success);
    animation: ringExpand 2.5s ease-out infinite;
}

#voice-orb.listening .ring-2 { animation-delay: 0.3s; }
#voice-orb.listening .ring-3 { animation-delay: 0.6s; }

#voice-orb.thinking .orb-core {
    background: var(--orb-thinking);
    box-shadow: 0 0 48px rgba(245, 158, 11, 0.4);
    animation: orbSpin 1.5s linear infinite;
}

#voice-orb.thinking .orb-ring {
    opacity: 0.4;
    border-color: var(--color-warning);
    animation: ringSpin 3s linear infinite;
}

#voice-orb.thinking .ring-2 { animation-direction: reverse; }

#voice-orb.speaking .orb-core {
    background: var(--orb-speaking);
    box-shadow: 0 0 48px rgba(45, 212, 191, 0.4);
    animation: orbSpeak 0.8s ease-in-out infinite;
}

#voice-orb.speaking .orb-ring {
    opacity: 0.5;
    border-color: var(--color-accent-400);
}

#voice-orb.error .orb-core {
    background: var(--orb-error);
    box-shadow: 0 0 48px rgba(239, 68, 68, 0.4);
}

#voice-orb.error .orb-ring {
    opacity: 0.4;
    border-color: var(--color-error);
}

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

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

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

@keyframes ringExpand {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 0; }
}

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

/* Status */
#status-container {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

#status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent-500);
    animation: statusPulse 2s ease-in-out infinite;
}

#status-indicator.listening { background: var(--color-success); }
#status-indicator.thinking { background: var(--color-warning); }
#status-indicator.speaking { background: var(--color-accent-400); }
#status-indicator.error { background: var(--color-error); animation: none; }

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#status-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-base-300);
}

/* ============================================
   DEMO PANEL
   ============================================ */
#demo-panel {
    background: var(--color-base-850);
    border-left: 1px solid var(--color-base-800);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-base-800);
    flex-shrink: 0;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.panel-title svg {
    color: var(--color-base-400);
}

.panel-title h2 {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-base-100);
}

.demo-badge {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: var(--space-1) var(--space-3);
    background: var(--color-error);
    color: white;
    border-radius: var(--radius-full);
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.panel-scroll {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Panel Sections */
.panel-section {
    background: var(--color-base-800);
    border: 1px solid var(--color-base-700);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

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

.section-header svg {
    color: var(--color-accent-500);
    flex-shrink: 0;
}

.section-header h3 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-base-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Info Grid */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
}

.info-row.full-width {
    flex-direction: column;
    gap: var(--space-1);
}

.info-label {
    font-size: 0.8125rem;
    color: var(--color-base-500);
    flex-shrink: 0;
}

.info-value {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-base-200);
    text-align: right;
    word-break: break-word;
}

.info-row.full-width .info-value {
    text-align: left;
}

.info-value.pending {
    color: var(--color-base-500);
    font-style: italic;
}

.info-value.highlight {
    color: var(--color-accent-400);
}

.info-value.debt {
    color: var(--color-error);
    font-weight: 600;
}

/* Package Display */
.package-display {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.package-name {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-accent-400);
}

.package-since {
    font-size: 0.75rem;
    color: var(--color-base-500);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--color-base-700);
    color: var(--color-base-400);
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge.connected {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-success);
}

.status-badge.suspended {
    background: rgba(245, 158, 11, 0.12);
    color: var(--color-warning);
}

.status-badge.disconnected {
    background: rgba(239, 68, 68, 0.12);
    color: var(--color-error);
}

/* Classification Badge */
.classification-badge {
    display: inline-flex;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--color-base-700);
    color: var(--color-base-400);
}

.classification-badge.tv {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
}

.classification-badge.internet {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
}

.classification-badge.phone {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-success);
}

.classification-badge.billing {
    background: rgba(245, 158, 11, 0.12);
    color: var(--color-warning);
}

/* Sentiment Display */
.sentiment-display {
    display: flex;
}

.sentiment-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
}

.sentiment-badge svg {
    width: 16px;
    height: 16px;
}

.sentiment-badge.positive {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-success);
}

.sentiment-badge.neutral {
    background: var(--color-base-700);
    color: var(--color-base-400);
}

.sentiment-badge.negative {
    background: rgba(245, 158, 11, 0.12);
    color: var(--color-warning);
}

.sentiment-badge.frustrated {
    background: rgba(239, 68, 68, 0.12);
    color: var(--color-error);
}

/* Data Update Animation */
@keyframes dataUpdate {
    0% { background-color: var(--color-accent-subtle); }
    100% { background-color: transparent; }
}

.info-value.updated {
    animation: dataUpdate 0.5s ease;
    border-radius: var(--radius-sm);
}

/* Hidden Audio */
#audio-player {
    display: none;
}

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

/* Tablet: Stack panels */
@media (max-width: 960px) {
    #main-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    
    #demo-panel {
        border-left: none;
        border-top: 1px solid var(--color-base-800);
        max-height: 45vh;
    }
    
    .panel-scroll {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .panel-header {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --space-6: 1.25rem;
        --space-8: 1.5rem;
        --space-10: 2rem;
    }
    
    #welcome-modal {
        padding: var(--space-8);
    }
    
    #welcome-modal h1 {
        font-size: 1.25rem;
    }
    
    .modal-icon {
        width: 64px;
        height: 64px;
    }
    
    .modal-icon svg {
        width: 28px;
        height: 28px;
    }
    
    #header {
        padding: var(--space-4);
    }
    
    #voice-main {
        padding: var(--space-4);
    }
    
    #transcript-display {
        font-size: 1.0625rem;
        padding: var(--space-4);
    }
    
    #voice-orb-container {
        width: 140px;
        height: 140px;
    }
    
    .orb-core {
        width: 80px;
        height: 80px;
    }
    
    .ring-1 { width: 95px; height: 95px; }
    .ring-2 { width: 115px; height: 115px; }
    .ring-3 { width: 135px; height: 135px; }
    
    .orb-pulse {
        width: 80px;
        height: 80px;
    }
    
    #demo-panel {
        max-height: 50vh;
    }
    
    .panel-scroll {
        grid-template-columns: 1fr;
    }
    
    .panel-section {
        padding: var(--space-3);
    }
    
    .section-header {
        margin-bottom: var(--space-3);
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    #welcome-modal {
        padding: var(--space-6);
    }
    
    #start-button {
        padding: var(--space-3) var(--space-5);
        font-size: 0.9375rem;
    }
    
    .logo-name {
        font-size: 1rem;
    }
    
    .logo-tag {
        font-size: 0.625rem;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    #main-container {
        grid-template-columns: 1fr 400px;
    }
    
    #voice-orb-container {
        width: 200px;
        height: 200px;
    }
    
    .orb-core {
        width: 110px;
        height: 110px;
    }
    
    .ring-1 { width: 130px; height: 130px; }
    .ring-2 { width: 160px; height: 160px; }
    .ring-3 { width: 190px; height: 190px; }
    
    #transcript-display {
        font-size: 1.375rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .bg-glow {
        animation: none;
    }
}

/* Focus States */
button:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-accent-500);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --glass-border: rgba(255, 255, 255, 0.2);
        --color-base-800: #1f2937;
    }
    
    .panel-section {
        border-width: 2px;
    }
}

/* Scrollbar Styling */
.panel-scroll::-webkit-scrollbar {
    width: 6px;
}

.panel-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.panel-scroll::-webkit-scrollbar-thumb {
    background: var(--color-base-700);
    border-radius: var(--radius-full);
}

.panel-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-base-600);
}

/* Add to style.css */

/* Interactive state for the Orb */
#voice-orb.interactive {
    cursor: pointer;
}

#voice-orb.interactive .orb-core {
    transition: transform 0.2s ease, background-color 0.3s ease;
}

#voice-orb.interactive:hover .orb-core {
    transform: scale(1.1);
    background-color: var(--color-accent-400); /* Slightly brighter teal */
    box-shadow: 0 0 30px var(--color-accent-glow);
}

/* Add a "Click me" hint animation */
@keyframes hintPulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.3; }
}

#voice-orb.interactive .orb-ring.ring-1 {
    animation: hintPulse 3s infinite ease-in-out;
    border-color: var(--color-accent-500);
    opacity: 0.3;
}
