/* =========================================================
   Enhanced Ballsy Voice Assistant Styles (Blue & Orange)
   ========================================================= */

/* 1. Import the Inter font for clean text */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* 2. Define all the colors and gradients you'll use */
:root {
    /* ---------- Light Theme Colors ---------- */
    --bg-color-light: linear-gradient(135deg, #1da8f3 0%, #f77518 100%);
    --surface-color-light: rgba(255, 255, 255, 0.95);                  /* card/overlay backgrounds */
    --text-color-light: #1a1a1a;                                        /* main text */
    --text-secondary-light: #64748b;                                    /* secondary text */
    --card-bg-light: rgba(255, 255, 255, 0.9);                          /* message bubble interior */
    --border-color-light: rgba(255, 255, 255, 0.2);                     /* borders */

    /* 2.1. Accent colors (blue → orange gradient) */
    --accent-color-light: #2563eb;  /* plain blue for buttons, highlights */
    --accent-gradient-light: linear-gradient(135deg, #1da8f3 20%, #f77518 100%);
    /* ↑ gradient from blue (#3b82f6) to bright orange (#f97316) */

    /* 2.2. Success / error notifications */
    --success-color-light: #10b981;
    --error-color-light: #ef4444;

    /* 2.3. Voice orb color (blue → orange) */
    --orb-color-light: linear-gradient(135deg, #1da8f3 0%, #f77518 100%);
    --orb-glow-light: 0 0 40px rgba(59, 130, 246, 0.4); 
    /* ↑ glow matches the blue side (rgba(59,130,246)) */

    /* 2.4. Shadows */
    --shadow-light: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                   0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-intense-light: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* ---------- Dark Theme Colors ---------- */
  /* Background: solid black gradually shifting to neon green */
    --bg-color-dark: linear-gradient(135deg, #000000 0%, #048a39 100%);

    /* Surface / card backgrounds: mostly black with slight translucency */
    --surface-color-dark: rgba(0, 0, 0, 0.95);

    /* Primary text: a bright off-white so it stands out on pure black */
    --text-color-dark: #e0e0e0;

    /* Secondary text: a muted gray-green to harmonize with neon accent */
    --text-secondary-dark: #aacCAA;  /* you can fine-tune to any light‐green/gray */

    /* Message bubble background: nearly black but slightly see-through */
    --card-bg-dark: rgba(0, 0, 0, 0.8);

    /* Thin borders: very faint greenish-white */
    --border-color-dark: rgba(5, 178, 74, 0.2);

    /* Accent color: pure neon green */
    --accent-color-dark: #05b24a;

    /* Accent gradient: black → neon green for buttons, highlights, etc. */
    --accent-gradient-dark: linear-gradient(135deg, #000000 0%, #03a443 100%);

    /* Success & error (adjusted to match neon palette) */
    --success-color-dark: #00ff7f;  /* a bright “spring green” */
    --error-color-dark:   #ff5555;  /* a neon‐red for errors */

    /* Voice‐orb background (neon‐green glow) */
    --orb-color-dark: linear-gradient(135deg, #04492e 0%, #00aa55 100%);

    --orb-glow-dark: 0 0 30px rgba(4, 147, 61, 0.8);

    /* Shadows under elements (darker, tinted green) */
    --shadow-dark: 
        0 20px 25px -5px rgba(0, 0, 0, 0.5),
        0 10px 10px -5px rgba(5, 178, 74, 0.3);
    --shadow-intense-dark:
        0 25px 50px -12px rgba(0, 0, 0, 0.7);
    

    /* ---------- Default Theme = Light ---------- */
    --bg-color: var(--bg-color-light);
    --surface-color: var(--surface-color-light);
    --text-color: var(--text-color-light);
    --text-secondary: var(--text-secondary-light);
    --card-bg: var(--card-bg-light);
    --border-color: var(--border-color-light);
    --accent-color: var(--accent-color-light);
    --accent-gradient: var(--accent-gradient-light);
    --success-color: var(--success-color-light);
    --error-color: var(--error-color-light);
    --orb-color: var(--orb-color-light);
    --orb-glow: var(--orb-glow-light);
    --shadow: var(--shadow-light);
    --shadow-intense: var(--shadow-intense-light);

    /* ---------- Animation & Spacing Settings ---------- */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    --radius-xs: 0.125rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --backdrop-blur: blur(20px);
}

/* ====== Dark Theme Class: switches all variables over ====== */
body.dark-theme {
  --bg-color:          var(--bg-color-dark);
  --surface-color:     var(--surface-color-dark);
  --text-color:        var(--text-color-dark);
  --text-secondary:    var(--text-secondary-dark);
  --card-bg:           var(--card-bg-dark);
  --border-color:      var(--border-color-dark);
  --accent-color:      var(--accent-color-dark);
  --accent-gradient:   var(--accent-gradient-dark);
  --success-color:     var(--success-color-dark);
  --error-color:       var(--error-color-dark);
  --orb-color:         var(--orb-color-dark);
  --orb-glow:          var(--orb-glow-dark);
  --shadow:            var(--shadow-dark);
  --shadow-intense:    var(--shadow-intense-dark);

  /* For any glass‐like or translucent overlays, we might pick a very dark tint */
  --glass-bg:    rgba(0, 0, 0, 0.2);
  --glass-border: rgba(5, 178, 74, 0.2);
}

/* ====== Reset & Base Styles ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all var(--transition-medium);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    filter: brightness(1.1) saturate(1.1);
    z-index: -1;
}

h1,h2, h3, h4, h5, h6 {
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    transition: all var(--transition-fast);
}

input, select {
    font-family: inherit;
    font-size: inherit;
}

/* ====== SHOW MESSAGE BUBBLES (REMOVED HIDE RULE) ====== */
/* Messages are now visible for chat functionality */

/* ====== Layout Containers ====== */
.app-container {
    filter: brightness(1.2) saturate(1.2);
    max-width: 100%;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: var(--spacing-md);
}
.vibrant-mode {
    filter: brightness(1.3) saturate(1.5) contrast(1.1);
}

.assistant-container {
    
    background: var(--surface-color);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-color);
    border-radius: 80px 80px 80px 80px;
    box-shadow: var(--shadow-intense);
    margin: auto;
    max-width: 480px;
    width: 100%;
    min-height: calc(100vh - var(--spacing-xl) * 2);
    height: auto;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.assistant-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: 1;
}

/* ====== Simple Header ====== */
.assistant-header {
    padding: var(--spacing-lg) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    position: relative;
    flex-shrink: 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: var(--spacing-lg);
}

.status-badge {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

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

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

.assistant-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.05em;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
    text-align: center;
    animation: title-glow 3s ease-in-out infinite;
    margin-bottom: 0;
}

@keyframes title-glow {
    0%, 100% { text-shadow: 0 0 40px rgba(59, 130, 246, 0.5); }
    50% { text-shadow: 0 0 60px rgba(249, 115, 22, 0.7); }
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    width: 100%;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: var(--accent-gradient);
    color: white;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.settings-button {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

.settings-button:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: var(--orb-glow);
}

.settings-button i {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.settings-button:hover i {
    color: white;
}

/* ====== Conversation Container (scrollable) ====== */
.conversation-container {
    display: flex;             /* ← add this line */
    flex-direction: column;    /* ← and this line */
    flex: 1;
    max-height: 350px;
    /* overflow-y: auto; */
    padding: var(--spacing-lg);
    background: transparent;
    position: relative;
}


.conversation-container::-webkit-scrollbar {
    width: 6px;
}

.conversation-container::-webkit-scrollbar-track {
    background: transparent;
}

.conversation-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

.conversation-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

#conversation-history {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-color);
    min-height: 200px;
    position: relative;
    flex: 1;              /* so it stretches to fill its parent vertically */
    overflow-y: auto; 
}

#conversation-history:empty::before {
    content: 'Start a conversation by typing below or clicking the voice orb...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    opacity: 0.7;
}

/* ====== Message Bubbles (NOW VISIBLE) ====== */
.message {
    display: flex;
    margin-bottom: var(--spacing-md);
    animation: messageSlideIn 0.3s ease-out;
}

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

.user-message {
    align-self: flex-end;
    background: var(--accent-gradient);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 75%;
    word-wrap: break-word;
    box-shadow: var(--shadow);
    position: relative;
    font-weight: 500;
    margin-left: auto;
}

.user-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: -1;
}

.user-message:hover::before {
    opacity: 0.1;
}

.assistant-message {
    align-self: flex-start;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 75%;
    word-wrap: break-word;
    box-shadow: var(--shadow);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    position: relative;
}

.assistant-message:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-intense);
}

/* ====== Enhanced Voice Section ====== */
.voice-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    position: relative;
    border-top: 1px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    width: 100%;
    flex-shrink: 0;
}

.voice-indicator {
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto var(--spacing-md) auto;
}

/* Status rings */
.status-ring {
    position: absolute;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse-ring 3s infinite ease-out;
}



@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 0.3; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Floating particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 50%;
    animation: float-particle 4s infinite ease-in-out;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 30%; right: 15%; animation-delay: 1s; }
.particle:nth-child(3) { bottom: 25%; left: 20%; animation-delay: 2s; }
.particle:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 3s; }

@keyframes float-particle {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

.voice-orb {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.4));
    margin: 0 auto;
}

.voice-orb:hover {
    transform: scale(1.08);
}

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

.orb-inner {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--orb-color);
    box-shadow: var(--orb-glow);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    animation: orb-pulse 3s ease-in-out infinite;
}

@keyframes orb-pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: var(--orb-glow);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 60px rgba(59, 130, 246, 0.6);
    }
}

.orb-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    z-index: 2;
}

.orb-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform var(--transition-slow);
}

.voice-orb:hover .orb-inner::before {
    transform: rotate(45deg) translate(20%, 20%);
}

/* ====== Voice Animation States ====== */
.voice-orb.idle .orb-inner {
    animation: enhancedPulse 2s infinite ease-in-out;
}

@keyframes enhancedPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: var(--orb-glow);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 60px rgba(59, 130, 246, 0.6);
    }
}

.voice-orb.listening .orb-inner {
    animation: enhancedListening 1.5s infinite ease-in-out;
}

@keyframes enhancedListening {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: var(--orb-glow);
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 0 80px rgba(59, 130, 246, 0.8);
    }
}

.voice-orb.processing .orb-inner {
    animation: enhancedProcessing 1s infinite ease-in-out;
}

@keyframes enhancedProcessing {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        box-shadow: var(--orb-glow);
    }
    50% { 
        transform: scale(0.9) rotate(180deg); 
        box-shadow: 0 0 100px rgba(59, 130, 246, 1);
    }
}

.voice-orb.speaking .orb-inner {
    animation: enhancedSpeaking 0.6s infinite ease-in-out;
}

@keyframes enhancedSpeaking {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: var(--orb-glow);
    }
    25% { 
        transform: scale(1.15); 
        box-shadow: 0 0 50px rgba(59, 130, 246, 0.7);
    }
    75% { 
        transform: scale(1.05); 
        box-shadow: 0 0 70px rgba(59, 130, 246, 0.5);
    }
}

/* ====== Voice Status Text ====== */
.voice-status {
    text-align: center;
    margin-bottom: var(--spacing-md);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#status-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-medium);
    letter-spacing: 0.025em;
}

.status-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ====== Enhanced Input Section ====== */
.input-section {
    padding: var(--spacing-sm) var(--spacing-md);
    margin-top: -20px;
    border-top: 1px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    flex-shrink: 0;
}

.input-container {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

#text-command {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: all var(--transition-medium);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

#text-command:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#text-command::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

#send-button {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow);
}

#send-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-intense);
}

#send-button:active {
    transform: scale(0.95);
}

/* ====== Settings Panel ====== */
.settings-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--surface-color);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-color);
    z-index: 10;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform: translateX(100%);
    transition: transform var(--transition-medium);
}

.settings-panel.active {
    transform: translateX(0);
}

.hidden {
    display: none;
}

/* ====== Responsive Tweaks ====== */
@media (max-width: 768px) {
    .app-container {
        padding: var(--spacing-sm);
    }
    
    .assistant-container {
        margin: var(--spacing-sm);
        max-width: calc(100% - var(--spacing-md));
        height: calc(100vh - var(--spacing-md));
        border-radius: var(--radius-lg);
    }

    .assistant-header {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .assistant-header h1 {
        font-size: 2.2rem;
    }

    .user-message, .assistant-message {
        max-width: 85%;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .voice-orb {
        width: 120px;
        height: 120px;
    }

    .action-button {
        width: 52px;
        height: 52px;
    }

    .action-button i {
        font-size: 1.2rem;
    }

    .input-section {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .assistant-container {
        margin: var(--spacing-xs);
        max-width: calc(100% - var(--spacing-sm));
        height: calc(100vh - var(--spacing-sm));
        border-radius: var(--radius-md);
    }

    .assistant-header h1 {
        font-size: 1.8rem;
    }

    .voice-orb {
        width: 100px;
        height: 100px;
    }

    .user-message, .assistant-message {
        max-width: 90%;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
    }
}

    .voice-orb {
        width: 130px;
        height: 130px;
    }

    .user-message, .assistant-message {
        max-width: 90%;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
    }

    .quick-actions {
        gap: var(--spacing-sm);
    }

    .action-button {
        width: 48px;
        height: 48px;
    }


@media print {
    .assistant-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .voice-section,
    .settings-button,
    .input-section {
        display: none;
    }
}

/* ====== Loading Animation for Ballsy Typing ====== */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-sm);
    max-width: 75%;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    animation: messageSlideIn 0.3s ease-out;
}

.typing-dots {
    display: flex;
    gap: var(--spacing-xs);
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* ====== Dark Theme Specific Tweaks ====== */
body.dark-theme .assistant-container {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

body.dark-theme .voice-orb {
    filter: drop-shadow(0 0 30px rgba(96, 165, 250, 0.5));
}

body.dark-theme #conversation-history {
    background: rgba(0, 0, 0, 0.2);
}





































/* ====== Enhanced State Animations ====== */

/* 1. IDLE STATE - Gentle breathing effect */
.voice-orb.idle .orb-inner {
    animation: gentleBreathing 3s ease-in-out infinite;
}

@keyframes gentleBreathing {
    0%, 100% { 
        transform: scale(1);
        box-shadow: var(--orb-glow);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
        filter: brightness(1.1);
    }
}

/* 2. LISTENING STATE - Intense pulsing + glowing rings */
.voice-orb.listening .orb-inner {
    animation: listeningPulse 1s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.8) !important;
}

@keyframes listeningPulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1.2) saturate(1.3);
    }
    50% { 
        transform: scale(1.1);
        filter: brightness(1.5) saturate(1.5);
    }
}

/* Enhanced listening rings - more visible */
.voice-orb.listening .status-ring {
    border-color: #3b82f6;
    animation: listeningWaves 1.5s infinite ease-out;
}

@keyframes listeningWaves {
    0% { 
        transform: scale(0.8); 
        opacity: 0.8;
        border-width: 3px;
    }
    100% { 
        transform: scale(1.8); 
        opacity: 0;
        border-width: 1px;
    }
}

/* 3. PROCESSING STATE - Spinning with color shifts */
.voice-orb.processing .orb-inner {
    animation: processingSpinner 2s linear infinite;
}

@keyframes processingSpinner {
    0% { 
        transform: rotate(0deg) scale(1);
        filter: hue-rotate(0deg) brightness(1.2);
    }
    50% { 
        transform: rotate(180deg) scale(0.95);
        filter: hue-rotate(90deg) brightness(1.4);
    }
    100% { 
        transform: rotate(360deg) scale(1);
        filter: hue-rotate(0deg) brightness(1.2);
    }
}

/* 4. SPEAKING STATE - Rhythmic bouncing */
.voice-orb.speaking .orb-inner {
    animation: speakingBounce 0.8s ease-in-out infinite;
}

@keyframes speakingBounce {
    0%, 100% { 
        transform: scale(1) translateY(0);
        filter: brightness(1.3);
    }
    25% { 
        transform: scale(1.05) translateY(-3px);
        filter: brightness(1.5);
    }
    75% { 
        transform: scale(1.02) translateY(3px);
        filter: brightness(1.4);
    }
}/* Particle animations for different states */
.voice-orb.listening .particle {
    animation: listeningParticles 2s infinite ease-in-out;
    width: 6px;
    height: 6px;
}

@keyframes listeningParticles {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-15px) scale(1.2);
        opacity: 1;
    }
}

/* Status text color changes */
.voice-orb.idle + .voice-status #status-text {
    color: var(--text-secondary);
}

.voice-orb.listening + .voice-status #status-text {
    color: #3b82f6;
    animation: textPulse 1s ease-in-out infinite;
}

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

.voice-orb.processing + .voice-status #status-text {
    color: #f97316;
}

.voice-orb.speaking + .voice-status #status-text {
    color: #10b981;
}
/* Orb color changes for clear state indication */
.voice-orb.idle .orb-inner {
    background: var(--orb-color);
}

.voice-orb.listening .orb-inner {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.voice-orb.processing .orb-inner {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.voice-orb.speaking .orb-inner {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}
/* Sound wave effect around orb when listening */
.voice-orb.listening::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: soundWave 1s ease-out infinite;
    top: -50%;
    left: -50%;
}

@keyframes soundWave {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* =========================================================
   Ballsy Nocturne Redesign
   A cinematic command cockpit layered over the legacy hooks.
   ========================================================= */

:root {
    --ink: #090806;
    --charcoal: #11110f;
    --copper: #ff8a3d;
    --ember: #ff4d2d;
    --champagne: #f6dfb5;
    --bone: #fff6df;
    --mint: #8effc1;
    --blue-flame: #77b7ff;
    --smoke: rgba(255, 246, 223, 0.68);
    --panel: rgba(14, 13, 10, 0.72);
    --panel-strong: rgba(22, 19, 14, 0.9);
    --line: rgba(255, 214, 150, 0.18);
    --hot-line: rgba(255, 138, 61, 0.45);
    --bg-color: radial-gradient(circle at 18% 14%, rgba(255, 138, 61, 0.23), transparent 32%),
                radial-gradient(circle at 78% 22%, rgba(119, 183, 255, 0.18), transparent 34%),
                linear-gradient(145deg, #070605 0%, #12100b 48%, #1c1009 100%);
    --surface-color: var(--panel);
    --text-color: var(--bone);
    --text-secondary: var(--smoke);
    --card-bg: rgba(255, 246, 223, 0.07);
    --border-color: var(--line);
    --accent-color: var(--copper);
    --accent-gradient: linear-gradient(135deg, #ffcf7a 0%, #ff7a3d 42%, #ff315f 100%);
    --success-color: var(--mint);
    --error-color: #ff5757;
    --orb-color: radial-gradient(circle at 35% 28%, #fff3c7 0%, #ffb15f 20%, #ff5a32 45%, #45100b 100%);
    --orb-glow: 0 0 32px rgba(255, 111, 48, 0.54), 0 0 88px rgba(255, 49, 95, 0.24);
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
    --shadow-intense: 0 34px 100px rgba(0, 0, 0, 0.56);
    --backdrop-blur: blur(28px);
}

html {
    background: #070605;
}

body {
    min-height: 100vh;
    font-family: 'Bricolage Grotesque', ui-sans-serif, sans-serif;
    background: #070605;
    color: var(--text-color);
}

body::before {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 213, 138, 0.1), transparent 28%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: auto, 54px 54px, 54px 54px;
    filter: none;
    opacity: 0.65;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(rgba(255, 246, 223, 0.16) 0.7px, transparent 0.7px);
    background-size: 3px 3px;
    mix-blend-mode: overlay;
    opacity: 0.18;
}

.ambient-stage {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.aurora {
    position: absolute;
    width: 46vw;
    height: 46vw;
    border-radius: 999px;
    filter: blur(42px);
    opacity: 0.42;
    animation: aurora-drift 13s ease-in-out infinite alternate;
}

.aurora-one {
    top: -12vw;
    left: -10vw;
    background: radial-gradient(circle, rgba(255, 138, 61, 0.76), transparent 66%);
}

.aurora-two {
    right: -16vw;
    bottom: -18vw;
    background: radial-gradient(circle, rgba(119, 183, 255, 0.52), transparent 66%);
    animation-delay: -4s;
}

.signal-grid {
    position: absolute;
    inset: 7%;
    border: 1px solid rgba(255, 214, 150, 0.08);
    border-radius: 42px;
    background:
        linear-gradient(115deg, transparent 0 48%, rgba(255, 138, 61, 0.12) 49%, transparent 50%),
        linear-gradient(rgba(255, 214, 150, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 214, 150, 0.035) 1px, transparent 1px);
    background-size: 100% 100%, 92px 92px, 92px 92px;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 78%, transparent);
}

@keyframes aurora-drift {
    from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    to { transform: translate3d(7vw, 5vh, 0) rotate(18deg) scale(1.1); }
}

.app-container {
    min-height: 100vh;
    height: auto;
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 520px);
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 5vw, 5.5rem);
    padding: clamp(1.25rem, 4vw, 4.5rem);
    filter: none;
    z-index: 1;
}

.brand-panel {
    max-width: 610px;
    color: var(--bone);
    animation: panel-rise 700ms ease both;
}

.brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    color: var(--champagne);
    background: rgba(255, 246, 223, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
}

.brand-kicker::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--mint);
    box-shadow: 0 0 22px rgba(142, 255, 193, 0.8);
}

.brand-panel h2 {
    margin-top: 1.25rem;
    max-width: 8ch;
    font-family: 'Fraunces', serif;
    font-size: clamp(4rem, 10vw, 9.5rem);
    line-height: 0.82;
    letter-spacing: -0.08em;
    text-align: left;
}

.brand-panel p {
    max-width: 34rem;
    margin-top: 1.35rem;
    color: var(--smoke);
    font-size: clamp(1rem, 1.8vw, 1.22rem);
    line-height: 1.65;
}

.brand-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.brand-metrics span {
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 246, 223, 0.055);
    color: var(--smoke);
}

.brand-metrics strong {
    color: var(--bone);
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.assistant-container {
    max-width: 520px;
    min-height: min(860px, calc(100vh - 2.5rem));
    margin: 0;
    border-radius: 38px;
    background:
        linear-gradient(180deg, rgba(255, 246, 223, 0.09), rgba(255, 246, 223, 0.035)),
        var(--panel);
    border: 1px solid rgba(255, 221, 170, 0.19);
    box-shadow: var(--shadow-intense), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
    animation: panel-rise 800ms 120ms ease both;
}

.assistant-container::before {
    height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 18%),
        radial-gradient(circle at 50% -20%, rgba(255, 138, 61, 0.2), transparent 42%);
    pointer-events: none;
}

@keyframes panel-rise {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.assistant-header {
    padding: 1.45rem 1.45rem 1.05rem;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 246, 223, 0.08), rgba(255, 246, 223, 0.025));
}

.header-top {
    margin-bottom: 1.35rem;
}

.status-badge {
    padding: 0.48rem 0.8rem;
    border-color: rgba(142, 255, 193, 0.3);
    background: rgba(142, 255, 193, 0.08);
    color: var(--mint);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-indicator {
    background: var(--mint);
    box-shadow: 0 0 18px rgba(142, 255, 193, 0.9);
}

.assistant-header h1,
.title {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-size: clamp(3.25rem, 9vw, 5.9rem);
    font-weight: 800;
    line-height: 0.86;
    letter-spacing: -0.085em;
    text-align: left;
    background: linear-gradient(105deg, #fff4c7 0%, #ffbd6b 38%, #ff6136 72%, #ffadc4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
    animation: none;
}

.title-subcopy {
    max-width: 25rem;
    margin-top: 0.85rem;
    color: var(--smoke);
    line-height: 1.55;
    font-size: 0.98rem;
}

#dark-toggle {
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: var(--bone);
    background: rgba(255, 246, 223, 0.08);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#dark-toggle:hover {
    transform: translateY(-2px) rotate(-8deg);
    background: rgba(255, 138, 61, 0.16);
    color: var(--champagne);
}

.conversation-container {
    max-height: none;
    min-height: 285px;
    padding: 1rem 1.15rem 0.75rem;
    border-top: 0;
    background: transparent;
}

#conversation-history {
    min-height: 260px;
    border-radius: 28px;
    padding: 1rem;
    gap: 0.75rem;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(255, 246, 223, 0.035)),
        rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 214, 150, 0.13);
    box-shadow: inset 0 14px 34px rgba(0, 0, 0, 0.16);
}

#conversation-history:empty::before {
    content: 'Ask for a roast, a plan, a search, or one clean sentence of courage.';
    width: min(25ch, 76%);
    color: rgba(255, 246, 223, 0.52);
    font-style: normal;
    font-weight: 600;
    line-height: 1.35;
}

.message {
    margin-bottom: 0.1rem;
    animation: messageSlideIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.user-message,
.assistant-message {
    max-width: min(82%, 24rem);
    border-radius: 22px;
    padding: 0.82rem 1rem;
    line-height: 1.45;
    font-weight: 600;
}

.user-message {
    color: #160b05;
    background: linear-gradient(135deg, #ffe6a1, #ff9c4a 55%, #ff7043);
    box-shadow: 0 12px 34px rgba(255, 112, 67, 0.22);
}

.assistant-message {
    color: var(--bone);
    background: rgba(255, 246, 223, 0.075);
    border-color: rgba(255, 214, 150, 0.16);
}

.voice-section {
    padding: 0.7rem 1rem 1.1rem;
    border-top: 0;
    background: transparent;
}

.voice-indicator {
    width: 176px;
    height: 176px;
    margin-bottom: 0.2rem;
}

.status-ring {
    inset: 12px;
    border-color: rgba(255, 208, 130, 0.55);
}

.ring1 {
    inset: 4px;
}

.ring2 {
    inset: 22px;
    animation-delay: 850ms;
}

.voice-orb {
    width: 128px;
    height: 128px;
    filter: drop-shadow(0 0 30px rgba(255, 105, 46, 0.42));
}

.voice-orb:hover {
    transform: scale(1.04) rotate(-2deg);
}

.orb-inner {
    border: 1px solid rgba(255, 241, 194, 0.55);
    background: var(--orb-color);
}

.orb-inner::after {
    content: '';
    position: absolute;
    inset: 20%;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.52), transparent 58%);
    filter: blur(8px);
    opacity: 0.42;
}

.orb-icon {
    font-size: 1.85rem;
    color: #fff6df;
    text-shadow: 0 0 22px rgba(255, 246, 223, 0.75);
}

.particle {
    width: 5px;
    height: 5px;
    background: var(--champagne);
    box-shadow: 0 0 18px rgba(255, 223, 181, 0.8);
}

#status-text {
    color: var(--bone);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.status-subtitle {
    color: rgba(255, 246, 223, 0.54);
    font-size: 0.88rem;
}

.input-section {
    margin-top: 0;
    padding: 0.7rem 1.15rem 1.15rem;
    border-top: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.16));
}

.prompt-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 0 0.75rem;
    scrollbar-width: none;
}

.prompt-chips::-webkit-scrollbar {
    display: none;
}

.prompt-chips button {
    white-space: nowrap;
    border: 1px solid rgba(255, 214, 150, 0.16);
    border-radius: 999px;
    padding: 0.55rem 0.78rem;
    color: rgba(255, 246, 223, 0.74);
    background: rgba(255, 246, 223, 0.055);
    font-size: 0.78rem;
    font-weight: 700;
}

.prompt-chips button:hover {
    color: #160b05;
    background: var(--champagne);
    transform: translateY(-1px);
}

.input-container {
    gap: 0.65rem;
    padding: 0.42rem;
    border: 1px solid rgba(255, 214, 150, 0.18);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#text-command {
    border: 0;
    background: transparent;
    color: var(--bone);
    padding: 0.86rem 1rem;
}

#text-command:focus {
    box-shadow: none;
}

#text-command::placeholder {
    color: rgba(255, 246, 223, 0.46);
}

#send-button {
    width: 48px;
    height: 48px;
    color: #190b03;
    background: linear-gradient(135deg, #fff1bc, #ff9a43 60%, #ff5533);
    box-shadow: 0 10px 30px rgba(255, 110, 46, 0.28);
}

#send-button:hover {
    transform: translateY(-2px) scale(1.03);
}

.typing-indicator {
    color: var(--smoke);
    background: rgba(255, 246, 223, 0.07);
    border-color: rgba(255, 214, 150, 0.16);
}

.typing-dot {
    background: var(--champagne);
}

.voice-orb.listening .orb-inner {
    background: radial-gradient(circle at 35% 28%, #f7ffdc, #9cffd0 30%, #0a805b 100%);
    box-shadow: 0 0 50px rgba(142, 255, 193, 0.62), 0 0 120px rgba(142, 255, 193, 0.22) !important;
}

.voice-orb.processing .orb-inner {
    background: radial-gradient(circle at 35% 28%, #fff2be, #ffb347 35%, #5a2209 100%);
}

.voice-orb.speaking .orb-inner {
    background: radial-gradient(circle at 35% 28%, #fff7c8, #77b7ff 38%, #1b365e 100%);
    animation-duration: 0.54s;
}

@media (max-width: 980px) {
    .app-container {
        grid-template-columns: minmax(320px, 540px);
        align-content: start;
        padding: 1.1rem;
    }

    .brand-panel {
        display: none;
    }

    .assistant-container {
        width: 100%;
        min-height: calc(100vh - 2.2rem);
        border-radius: 30px;
    }
}

@media (max-width: 560px) {
    .app-container {
        padding: 0.55rem;
    }

    .assistant-container {
        min-height: calc(100vh - 1.1rem);
        border-radius: 24px;
    }

    .assistant-header {
        padding: 1.15rem 1rem 0.85rem;
    }

    .title-subcopy {
        max-width: 17rem;
        font-size: 0.9rem;
    }

    .conversation-container {
        padding: 0.75rem;
    }

    #conversation-history {
        min-height: 230px;
        border-radius: 22px;
    }

    .voice-indicator {
        width: 144px;
        height: 144px;
    }

    .voice-orb {
        width: 106px;
        height: 106px;
    }

    .prompt-chips {
        padding-bottom: 0.55rem;
    }
}

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

body.dark-theme {
    --bg-color: radial-gradient(circle at 18% 14%, rgba(255, 138, 61, 0.23), transparent 32%),
                radial-gradient(circle at 78% 22%, rgba(119, 183, 255, 0.18), transparent 34%),
                linear-gradient(145deg, #070605 0%, #12100b 48%, #1c1009 100%);
    --surface-color: var(--panel);
    --text-color: var(--bone);
    --text-secondary: var(--smoke);
    --card-bg: rgba(255, 246, 223, 0.07);
    --border-color: var(--line);
    --accent-color: var(--copper);
    --accent-gradient: linear-gradient(135deg, #ffcf7a 0%, #ff7a3d 42%, #ff315f 100%);
    --success-color: var(--mint);
    --error-color: #ff5757;
    --orb-color: radial-gradient(circle at 35% 28%, #fff3c7 0%, #ffb15f 20%, #ff5a32 45%, #45100b 100%);
    --orb-glow: 0 0 32px rgba(255, 111, 48, 0.54), 0 0 88px rgba(255, 49, 95, 0.24);
    --glass-bg: rgba(255, 246, 223, 0.055);
    --glass-border: rgba(255, 214, 150, 0.18);
}

/* =========================================================
   Minimal B Interface
   Calm, welcoming, and intentionally quieter.
   ========================================================= */

:root,
body.dark-theme {
    --cream: #fbf7ef;
    --paper: rgba(255, 252, 246, 0.88);
    --ink-soft: #1f2933;
    --muted-soft: #6f796f;
    --sage: #8aa38f;
    --sage-deep: #42614d;
    --clay: #d98863;
    --line-soft: rgba(66, 97, 77, 0.14);
    --bg-color: radial-gradient(circle at 18% 18%, rgba(217, 136, 99, 0.16), transparent 30%),
                radial-gradient(circle at 82% 12%, rgba(138, 163, 143, 0.20), transparent 34%),
                linear-gradient(135deg, #f8f1e7 0%, #edf4ea 100%);
    --surface-color: var(--paper);
    --text-color: var(--ink-soft);
    --text-secondary: var(--muted-soft);
    --card-bg: rgba(255, 255, 255, 0.72);
    --border-color: var(--line-soft);
    --accent-color: var(--sage-deep);
    --accent-gradient: linear-gradient(135deg, #42614d, #8aa38f);
    --success-color: #4f8a63;
    --error-color: #c05a48;
    --orb-color: linear-gradient(135deg, #f7dfc8 0%, #d98863 48%, #8aa38f 100%);
    --orb-glow: 0 16px 45px rgba(66, 97, 77, 0.18);
    --shadow: 0 16px 40px rgba(44, 62, 48, 0.09);
    --shadow-intense: 0 24px 70px rgba(44, 62, 48, 0.14);
    --glass-bg: rgba(255, 255, 255, 0.52);
    --glass-border: var(--line-soft);
    --backdrop-blur: blur(18px);
}

html,
body {
    background: #f8f1e7;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Bricolage Grotesque', ui-sans-serif, sans-serif;
    color: var(--text-color);
}

body::before {
    background: var(--bg-color);
    filter: none;
    opacity: 1;
}

body::after,
.ambient-stage,
.brand-panel,
.prompt-chips,
.particles {
    display: none !important;
}

.app-container {
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2rem);
    filter: none;
    overflow: hidden;
}

.assistant-container {
    width: min(100%, 460px);
    height: min(760px, calc(100dvh - 2rem));
    min-height: 0;
    margin: 0;
    border-radius: 34px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-intense);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.assistant-container::before {
    display: none;
}

.assistant-header {
    padding: 1.05rem 1.25rem 0.85rem;
    align-items: center;
    text-align: center;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    width: 100%;
    margin-bottom: 0.95rem;
}

.status-badge {
    margin: 0 auto;
    width: fit-content;
    color: var(--sage-deep);
    background: rgba(138, 163, 143, 0.12);
    border-color: rgba(66, 97, 77, 0.12);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-indicator {
    background: var(--sage);
    box-shadow: 0 0 12px rgba(138, 163, 143, 0.7);
}

.b-logo {
    width: 62px;
    height: 62px;
    border-radius: 21px;
    display: grid;
    place-items: center;
    margin: 0 auto 0.5rem;
    color: #fffaf1;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.55), transparent 30%),
        linear-gradient(145deg, #2f4938, #8aa38f 58%, #d98863);
    box-shadow: 0 16px 38px rgba(66, 97, 77, 0.22);
}

.b-logo span {
    font-family: 'Fraunces', serif;
    font-size: 2.35rem;
    line-height: 1;
    transform: translateY(-1px);
}

.assistant-header h1,
.title {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--ink-soft);
    background: none;
    -webkit-text-fill-color: currentColor;
    text-align: center;
    animation: none;
    text-shadow: none;
}

.title-subcopy {
    max-width: 22rem;
    margin: 0.45rem auto 0;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.5;
}

#dark-toggle {
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: var(--sage-deep);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

#dark-toggle:hover {
    transform: translateY(-1px);
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.86);
}

.conversation-container {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 1rem 1rem 0.7rem;
    background: transparent;
    overflow: hidden;
}

#conversation-history {
    min-height: 0;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    padding: 0.9rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

#conversation-history:empty::before {
    content: 'Ask B anything. Voice or text both work.';
    width: 20ch;
    color: rgba(31, 41, 51, 0.45);
    font-style: normal;
    font-weight: 500;
    line-height: 1.35;
}

.user-message,
.assistant-message,
.typing-indicator {
    max-width: min(84%, 24rem);
    border-radius: 20px;
    padding: 0.78rem 0.95rem;
    line-height: 1.45;
    font-weight: 500;
    box-shadow: none;
}

.user-message {
    color: #fffaf1;
    background: linear-gradient(135deg, #42614d, #6f8b75);
}

.assistant-message,
.typing-indicator {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border-color);
}

.assistant-message:hover {
    transform: none;
    box-shadow: none;
}

.voice-section {
    flex: 0 0 auto;
    padding: 0.65rem 1rem 1rem;
    background: transparent;
    border-top: 0;
}

.voice-indicator {
    width: 116px;
    height: 116px;
    margin: 0 auto 0.45rem;
}

.status-ring {
    inset: 8px;
    border-color: rgba(66, 97, 77, 0.24);
}

.ring1 {
    inset: 2px;
}

.ring2 {
    inset: 18px;
}

.voice-orb {
    width: 84px;
    height: 84px;
    filter: drop-shadow(0 14px 28px rgba(66, 97, 77, 0.18));
}

.voice-orb:hover {
    transform: scale(1.035);
}

.orb-inner {
    background: var(--orb-color);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: var(--orb-glow);
}

.orb-inner::before,
.orb-inner::after {
    display: none;
}

.orb-icon {
    font-size: 1.35rem;
    color: #fffaf1;
    text-shadow: none;
}

#status-text {
    margin-bottom: 0.25rem;
    color: var(--ink-soft);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.status-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-section {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 0.3rem 1rem 1rem;
    border-top: 0;
    background: transparent;
}

.input-container {
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 12px 30px rgba(66, 97, 77, 0.08);
}

#text-command {
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    padding: 0.82rem 0.95rem;
}

#text-command:focus {
    box-shadow: none;
}

#text-command::placeholder {
    color: rgba(31, 41, 51, 0.42);
}

#send-button {
    width: 46px;
    height: 46px;
    color: #fffaf1;
    background: linear-gradient(135deg, #42614d, #8aa38f);
    box-shadow: none;
}

#send-button:hover {
    transform: scale(1.03);
}

.typing-dot {
    background: var(--sage-deep);
}

.voice-orb.listening .orb-inner {
    background: linear-gradient(135deg, #42614d, #8ecfa2);
    box-shadow: 0 0 0 8px rgba(138, 163, 143, 0.12), 0 18px 42px rgba(66, 97, 77, 0.18) !important;
}

.voice-orb.processing .orb-inner {
    background: linear-gradient(135deg, #d98863, #f1c6a7);
}

.voice-orb.speaking .orb-inner {
    background: linear-gradient(135deg, #6d8fb0, #8aa38f);
}

body.dark-theme .assistant-container,
body.dark-theme #conversation-history {
    box-shadow: var(--shadow-intense);
}

@media (max-width: 560px) {
    .app-container {
        padding: 0.65rem;
    }

    .assistant-container {
        height: calc(100dvh - 1.3rem);
        min-height: 0;
        border-radius: 26px;
    }

    .assistant-header {
        padding: 1.15rem 1rem 0.9rem;
    }

    .b-logo {
        width: 56px;
        height: 56px;
        border-radius: 19px;
    }

    .b-logo span {
        font-size: 2.05rem;
    }

    .conversation-container {
        padding: 0.75rem;
    }
}

/* =========================================================
   Ballsy Classic Refresh
   Minimal, welcoming, and closer to the original orb UI.
   ========================================================= */

:root,
body.dark-theme {
    --sky: #2f8fd8;
    --sky-soft: #d9efff;
    --sunset: #f1773a;
    --sunset-soft: #ffe1c7;
    --cream: #fffaf3;
    --ink-soft: #17202a;
    --muted-soft: #697586;
    --line-soft: rgba(47, 143, 216, 0.14);
    --bg-color: radial-gradient(circle at 20% 16%, rgba(47, 143, 216, 0.22), transparent 32%),
                radial-gradient(circle at 80% 10%, rgba(241, 119, 58, 0.20), transparent 30%),
                linear-gradient(135deg, #f7fbff 0%, #fff7ef 100%);
    --surface-color: rgba(255, 255, 255, 0.86);
    --text-color: var(--ink-soft);
    --text-secondary: var(--muted-soft);
    --card-bg: rgba(255, 255, 255, 0.72);
    --border-color: var(--line-soft);
    --accent-color: var(--sky);
    --accent-gradient: linear-gradient(135deg, #2f8fd8 0%, #f1773a 100%);
    --success-color: #38a169;
    --error-color: #d94d3f;
    --orb-color: radial-gradient(circle at 34% 26%, #ffffff 0%, #8fd1ff 19%, #2f8fd8 45%, #f1773a 100%);
    --orb-glow: 0 20px 60px rgba(47, 143, 216, 0.28), 0 10px 34px rgba(241, 119, 58, 0.15);
    --shadow: 0 16px 38px rgba(37, 71, 102, 0.10);
    --shadow-intense: 0 30px 90px rgba(37, 71, 102, 0.16);
}

html,
body {
    background: #f7fbff;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Bricolage Grotesque', ui-sans-serif, sans-serif;
    color: var(--text-color);
}

body::before {
    background: var(--bg-color);
    opacity: 1;
}

body::after,
.ambient-stage,
.brand-panel,
.prompt-chips,
.particles {
    display: none !important;
}

.app-container {
    height: 100dvh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    overflow: hidden;
    filter: none;
}

.assistant-container {
    width: min(100%, 480px);
    height: min(780px, calc(100dvh - 1.5rem));
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.74));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-intense);
    overflow: hidden;
}

.assistant-container::before {
    display: none;
}

.assistant-header {
    flex: 0 0 auto;
    padding: 1.1rem 1.35rem 0.85rem;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(255,255,255,0.56), rgba(255,255,255,0));
}

.header-top {
    margin-bottom: 0.85rem;
}

.status-badge {
    margin: 0 auto;
    width: fit-content;
    background: rgba(47, 143, 216, 0.08);
    border: 1px solid rgba(47, 143, 216, 0.14);
    color: #236fa8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-indicator {
    background: var(--success-color);
    box-shadow: 0 0 13px rgba(56, 161, 105, 0.55);
}

.b-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.52rem;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--accent-gradient);
    box-shadow: 0 18px 42px rgba(47, 143, 216, 0.22);
}

.b-logo span {
    font-family: 'Fraunces', serif;
    font-size: 2.35rem;
    line-height: 1;
}

.assistant-header h1,
.title {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-size: 2.45rem;
    line-height: 0.95;
    letter-spacing: -0.055em;
    color: var(--ink-soft);
    background: none;
    -webkit-text-fill-color: currentColor;
    text-align: center;
    animation: none;
    text-shadow: none;
}

.title-subcopy {
    max-width: 22rem;
    margin: 0.5rem auto 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.45;
}

#dark-toggle {
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: var(--sky);
    background: rgba(255,255,255,0.74);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.conversation-container {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 0.9rem 1rem 0.65rem;
    overflow: hidden;
    background: transparent;
}

#conversation-history {
    height: 100%;
    min-height: 0;
    padding: 0.95rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    border-radius: 26px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.58);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

#conversation-history:empty::before {
    content: 'Ask Ballsy anything. Voice or text both work.';
    width: min(24ch, 80%);
    color: rgba(23, 32, 42, 0.42);
    font-style: normal;
    font-weight: 600;
    line-height: 1.38;
}

.user-message,
.assistant-message,
.typing-indicator {
    max-width: min(84%, 25rem);
    border-radius: 21px;
    padding: 0.78rem 0.98rem;
    line-height: 1.45;
    font-weight: 500;
    box-shadow: none;
}

.user-message {
    color: white;
    background: linear-gradient(135deg, #2f8fd8, #2373b2);
}

.assistant-message,
.typing-indicator {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(47, 143, 216, 0.12);
}

.assistant-message:hover {
    transform: none;
    box-shadow: none;
}

.voice-section {
    flex: 0 0 auto;
    padding: 0.45rem 1rem 0.85rem;
    border-top: 0;
    background: transparent;
}

.voice-indicator {
    width: 122px;
    height: 122px;
    margin: 0 auto 0.35rem;
}

.status-ring {
    inset: 8px;
    border-color: rgba(47, 143, 216, 0.24);
}

.ring1 {
    inset: 2px;
}

.ring2 {
    inset: 18px;
}

.voice-orb {
    width: 88px;
    height: 88px;
    filter: drop-shadow(0 18px 32px rgba(47, 143, 216, 0.20));
}

.voice-orb:hover {
    transform: scale(1.04);
}

.orb-inner {
    background: var(--orb-color);
    border: 1px solid rgba(255,255,255,0.74);
    box-shadow: var(--orb-glow);
}

.orb-inner::before,
.orb-inner::after {
    display: none;
}

.orb-icon {
    color: white;
    font-size: 1.35rem;
    text-shadow: none;
}

#status-text {
    margin-bottom: 0.2rem;
    color: var(--ink-soft);
    font-size: 1rem;
    font-weight: 800;
}

.status-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-section {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 0.2rem 1rem 1rem;
    border-top: 0;
    background: transparent;
}

.input-container {
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.78);
    box-shadow: 0 12px 32px rgba(47, 143, 216, 0.10);
}

#text-command {
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    padding: 0.82rem 0.95rem;
}

#text-command:focus {
    box-shadow: none;
}

#text-command::placeholder {
    color: rgba(23, 32, 42, 0.42);
}

#send-button {
    width: 46px;
    height: 46px;
    color: white;
    background: var(--accent-gradient);
    box-shadow: none;
}

.typing-dot {
    background: var(--sky);
}

.voice-orb.listening .orb-inner {
    background: linear-gradient(135deg, #2f8fd8, #7bd3ff);
    box-shadow: 0 0 0 8px rgba(47, 143, 216, 0.11), 0 18px 44px rgba(47, 143, 216, 0.26) !important;
}

.voice-orb.processing .orb-inner {
    background: linear-gradient(135deg, #f1773a, #ffba7b);
}

.voice-orb.speaking .orb-inner {
    background: linear-gradient(135deg, #38a169, #8ee6b0);
}

@media (max-width: 560px) {
    .app-container {
        padding: 0.6rem;
    }

    .assistant-container {
        height: calc(100dvh - 1.2rem);
        min-height: 0;
        border-radius: 27px;
    }

    .assistant-header {
        padding: 1rem 0.95rem 0.75rem;
    }

    .b-logo {
        width: 56px;
        height: 56px;
        border-radius: 19px;
    }

    .b-logo span {
        font-size: 2.05rem;
    }

    .title {
        font-size: 2.15rem;
    }

    .title-subcopy {
        font-size: 0.88rem;
    }
}

/* --------------------------------------------------------------------------
   Ballsy Product Polish
   Keeps the classic orb, but makes the first screen feel intentional.
-------------------------------------------------------------------------- */
body,
body.dark-theme {
    background:
        radial-gradient(circle at 18% 12%, rgba(47, 143, 216, 0.18), transparent 34rem),
        radial-gradient(circle at 82% 18%, rgba(241, 119, 58, 0.18), transparent 28rem),
        linear-gradient(145deg, #fffaf2 0%, #eef8ff 45%, #f8fbff 100%);
    color: var(--text-color);
}

body::before {
    background-image:
        linear-gradient(rgba(22, 52, 78, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 52, 78, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 82%);
}

.app-container::before {
    content: 'Voice-first answers, searches, and actions';
    position: fixed;
    top: clamp(1rem, 3vw, 1.8rem);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 2rem);
    color: rgba(23, 32, 42, 0.48);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
}

.assistant-container {
    height: min(810px, calc(100dvh - 3.4rem));
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.78)),
        radial-gradient(circle at top, rgba(47, 143, 216, 0.09), transparent 19rem);
}

.assistant-header {
    padding-bottom: 0.75rem;
}

.title-subcopy {
    max-width: 24.5rem;
    color: rgba(23, 32, 42, 0.72);
    font-size: 1rem;
}

.proof-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.42rem;
    margin: 0.7rem auto 0;
}

.proof-strip span {
    border: 1px solid rgba(47, 143, 216, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    color: rgba(23, 32, 42, 0.62);
    padding: 0.34rem 0.58rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.conversation-container {
    padding-top: 0.65rem;
}

#conversation-history {
    display: flex;
    flex-direction: column;
    gap: 0.58rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.54)),
        radial-gradient(circle at 15% 0%, rgba(47, 143, 216, 0.08), transparent 14rem);
}

#conversation-history:empty::before {
    content: 'Your response will appear here. Try a prompt or tap the mic.';
}

.demo-message {
    animation: demoRise 520ms ease both;
}

.demo-message.assistant-message {
    position: relative;
}

.demo-message.assistant-message::after {
    content: 'Try me';
    display: inline-flex;
    margin-left: 0.45rem;
    transform: translateY(-0.06rem);
    border-radius: 999px;
    background: rgba(56, 161, 105, 0.12);
    color: #2f7d52;
    padding: 0.15rem 0.42rem;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.voice-section {
    padding-top: 0.15rem;
}

.voice-indicator {
    margin-bottom: 0.2rem;
}

.prompt-chips {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.8rem auto 0;
    max-width: 25rem;
}

.prompt-chip {
    border: 1px solid rgba(47, 143, 216, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: rgba(23, 32, 42, 0.72);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.54rem 0.72rem;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.prompt-chip:hover,
.prompt-chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(241, 119, 58, 0.34);
    background: #ffffff;
    color: #17202a;
    outline: none;
}

@media (max-width: 560px) {
    html,
    body {
        overflow: hidden;
    }

    .app-container {
        align-items: stretch;
        padding: 0.45rem;
        padding-top: 1.7rem;
    }

    .app-container::before {
        top: 0.55rem;
        font-size: 0.64rem;
        letter-spacing: 0.08em;
    }

    .assistant-container {
        width: 100%;
        height: calc(100dvh - 2.15rem);
        border-radius: 24px;
    }

    .assistant-header {
        padding: 0.85rem 0.78rem 0.52rem;
    }

    .header-top {
        margin-bottom: 0.55rem;
    }

    .b-logo {
        width: 48px;
        height: 48px;
        margin-bottom: 0.4rem;
    }

    .b-logo span {
        font-size: 1.75rem;
    }

    .title {
        font-size: 1.9rem;
    }

    .title-subcopy {
        max-width: 19rem;
        margin-top: 0.38rem;
        font-size: 0.82rem;
        line-height: 1.32;
    }

    .proof-strip {
        gap: 0.3rem;
        margin-top: 0.52rem;
    }

    .proof-strip span {
        padding: 0.25rem 0.42rem;
        font-size: 0.58rem;
    }

    #dark-toggle {
        top: 0.7rem;
        right: 0.7rem;
        width: 34px;
        height: 34px;
    }

    .conversation-container {
        padding: 0.55rem 0.7rem 0.4rem;
    }

    #conversation-history {
        padding: 0.72rem;
        border-radius: 20px;
        gap: 0.45rem;
    }

    .user-message,
    .assistant-message,
    .typing-indicator {
        max-width: 91%;
        padding: 0.66rem 0.78rem;
        font-size: 0.86rem;
        border-radius: 18px;
    }

    .voice-section {
        padding: 0.1rem 0.7rem 0.62rem;
    }

    .voice-indicator {
        width: 92px;
        height: 92px;
    }

    .voice-orb {
        width: 70px;
        height: 70px;
    }

    .ring2 {
        inset: 13px;
    }

    #status-text {
        font-size: 0.9rem;
    }

    .status-subtitle {
        font-size: 0.76rem;
    }

    .prompt-chips {
        gap: 0.32rem;
        margin-top: 0.55rem;
    }

    .prompt-chip {
        padding: 0.42rem 0.5rem;
        font-size: 0.68rem;
    }

    .input-section {
        padding: 0.08rem 0.7rem 0.72rem;
    }

    #text-command {
        padding: 0.7rem 0.72rem;
        font-size: 0.88rem;
    }

    #send-button {
        width: 40px;
        height: 40px;
    }
}

/* --------------------------------------------------------------------------
   Ballsy x The Verge x BMW
   Editorial contrast, precise controls, and a calmer production feel.
-------------------------------------------------------------------------- */
:root {
    --ballsy-canvas: #1b1938;
    --ballsy-canvas-deep: #111025;
    --ballsy-surface: #221f43;
    --ballsy-surface-raised: #2b2852;
    --ballsy-panel: rgba(34, 31, 67, 0.94);
    --ballsy-line: rgba(233, 229, 221, 0.18);
    --ballsy-line-strong: rgba(233, 229, 221, 0.32);
    --ballsy-mint: #cbb7fb;
    --ballsy-blue: #714cb6;
    --ballsy-blue-active: #5d3b9f;
    --ballsy-violet: #cbb7fb;
    --ballsy-cream: #e9e5dd;
    --ballsy-charcoal: #292827;
    --ballsy-ink: #ffffff;
    --ballsy-muted: rgba(255, 255, 255, 0.78);
    --ballsy-dim: rgba(255, 255, 255, 0.56);
    --ballsy-black: #292827;
    --ballsy-display: 'Fraunces', 'Bricolage Grotesque', Georgia, serif;
    --ballsy-ui: 'Bricolage Grotesque', 'Helvetica Neue', Helvetica, sans-serif;
    --ballsy-mono: 'Courier New', Courier, monospace;
}

html,
body {
    height: 100%;
}

body,
body.dark-theme {
    background:
        radial-gradient(circle at 50% 0%, rgba(203, 183, 251, 0.18), transparent 28rem),
        linear-gradient(135deg, #111025 0%, #1b1938 56%, #292827 100%);
    color: var(--ballsy-ink);
    font-family: var(--ballsy-ui);
    overflow: hidden;
}

body::before {
    background:
        linear-gradient(rgba(233, 229, 221, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(233, 229, 221, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    filter: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 78%);
}

body::after {
    content: none;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(90deg, transparent 0 8%, rgba(60, 255, 208, 0.5) 8% calc(8% + 1px), transparent calc(8% + 1px)),
        linear-gradient(90deg, transparent 0 92%, rgba(28, 105, 212, 0.55) 92% calc(92% + 1px), transparent calc(92% + 1px));
    opacity: 0.14;
}

.app-container {
    min-height: 100dvh;
    height: 100dvh;
    padding: clamp(0.9rem, 2.2vw, 1.8rem);
}

.app-container::before {
    content: none;
    top: clamp(0.85rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.58);
    font-family: var(--ballsy-mono);
    font-size: clamp(0.58rem, 1.1vw, 0.74rem);
    font-weight: 700;
    letter-spacing: 0.18em;
}

.assistant-container,
body.dark-theme .assistant-container {
    position: relative;
    width: min(100%, 690px);
    max-width: 690px;
    height: min(835px, calc(100dvh - clamp(1.8rem, 4.4vw, 3.6rem)));
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(233, 229, 221, 0.2);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(27, 25, 56, 0.97), rgba(17, 16, 37, 0.98)),
        var(--ballsy-surface);
    box-shadow: 0 30px 90px rgba(17, 16, 37, 0.46);
    backdrop-filter: none;
}

.assistant-container::before {
    background:
        linear-gradient(90deg, transparent, rgba(203, 183, 251, 0.62), rgba(233, 229, 221, 0.42), transparent);
    height: 1px;
    opacity: 1;
}

.assistant-container::after {
    content: none;
    position: absolute;
    top: 4px;
    left: clamp(1.1rem, 4vw, 2rem);
    bottom: 1rem;
    width: 1px;
    background: linear-gradient(to bottom, rgba(60, 255, 208, 0.64), rgba(60, 255, 208, 0.08));
    pointer-events: none;
}

.assistant-header {
    position: relative;
    z-index: 1;
    padding: clamp(1rem, 2.3vw, 1.45rem) clamp(1.1rem, 4vw, 2.15rem) 0.7rem;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.header-top {
    margin-bottom: 0.72rem;
}

.status-badge {
    border: 1px solid rgba(233, 229, 221, 0.22);
    border-radius: 0;
    background: rgba(233, 229, 221, 0.08);
    color: var(--ballsy-cream);
    font-family: var(--ballsy-ui);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.status-indicator {
    background: var(--ballsy-violet);
    box-shadow: 0 0 14px rgba(203, 183, 251, 0.7);
}

.b-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 0.52rem;
    border: 1px solid rgba(233, 229, 221, 0.26);
    border-radius: 0;
    background:
        linear-gradient(135deg, #1b1938, #714cb6);
    box-shadow: none;
}

.b-logo::before {
    display: none;
}

.b-logo span {
    color: #ffffff;
    font-family: var(--ballsy-display);
    font-size: 2.45rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: none;
}

.title {
    margin: 0;
    color: var(--ballsy-ink);
    -webkit-text-fill-color: var(--ballsy-ink);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    font-family: Impact, var(--ballsy-ui);
    font-size: clamp(3.7rem, 10vw, 6.4rem);
    font-weight: 900;
    letter-spacing: 0.025em;
    line-height: 0.84;
    text-transform: uppercase;
    text-shadow: none;
    animation: none;
}

.title::after {
    content: '.';
    color: var(--ballsy-cream);
    -webkit-text-fill-color: var(--ballsy-cream);
}

.title-subcopy {
    max-width: 31rem;
    margin-top: 0.68rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(0.92rem, 2vw, 1.04rem);
    font-weight: 500;
    line-height: 1.45;
}

.proof-strip {
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.proof-strip span {
    border: 1px solid rgba(233, 229, 221, 0.2);
    border-radius: 0;
    background: rgba(233, 229, 221, 0.06);
    color: var(--ballsy-muted);
    font-family: var(--ballsy-ui);
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.proof-strip span:first-child {
    border-color: rgba(203, 183, 251, 0.62);
    color: var(--ballsy-violet);
}

#dark-toggle {
    top: 1.15rem !important;
    right: 1.15rem !important;
    width: 38px !important;
    height: 38px !important;
    border: 1px solid rgba(233, 229, 221, 0.24) !important;
    border-radius: 0 !important;
    background: rgba(233, 229, 221, 0.06) !important;
    color: var(--ballsy-ink) !important;
    line-height: 38px !important;
}

#dark-toggle:hover {
    background: var(--ballsy-cream) !important;
    color: var(--ballsy-charcoal) !important;
}

.conversation-container {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 0.58rem clamp(0.9rem, 3vw, 1.55rem) 0.45rem;
    overflow: hidden;
}

#conversation-history,
body.dark-theme #conversation-history {
    position: relative;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(233, 229, 221, 0.16);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(233, 229, 221, 0.055), rgba(233, 229, 221, 0.025)),
        rgba(17, 16, 37, 0.48);
    box-shadow: inset 0 1px 0 rgba(233, 229, 221, 0.06);
    scrollbar-color: rgba(203, 183, 251, 0.48) transparent;
}

#conversation-history::before {
    content: none;
    position: absolute;
    top: 0.9rem;
    bottom: 0.9rem;
    left: 1.05rem;
    width: 1px;
    background: linear-gradient(to bottom, var(--ballsy-mint), rgba(28, 105, 212, 0.12));
    opacity: 0.62;
    pointer-events: none;
}

#conversation-history:empty::before {
    content: 'Your response will appear here. Try a prompt or tap the mic.';
    position: static;
    width: auto;
    background: transparent;
    color: rgba(255, 255, 255, 0.48);
    font-family: var(--ballsy-ui);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
}

.message,
.user-message,
.assistant-message,
.typing-indicator {
    border-radius: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    box-shadow: none;
}

.user-message {
    border: 1px solid rgba(203, 183, 251, 0.54);
    background: var(--ballsy-cream);
    color: var(--ballsy-charcoal);
}

.user-message::before {
    display: none;
}

.assistant-message,
.typing-indicator {
    border: 1px solid rgba(233, 229, 221, 0.18);
    background: rgba(41, 40, 39, 0.36);
    color: rgba(255, 255, 255, 0.88);
}

.demo-message.assistant-message::after {
    display: none;
}

.voice-section {
    flex: 0 0 auto;
    padding: 0.36rem clamp(0.9rem, 3vw, 1.55rem) 0.7rem;
}

.voice-indicator {
    width: 112px;
    height: 112px;
    margin-bottom: 0.35rem;
}

.voice-orb {
    width: 82px;
    height: 82px;
    border: 1px solid rgba(233, 229, 221, 0.24);
    border-radius: 0;
}

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

.orb-inner,
.voice-orb.idle .orb-inner {
    background:
        linear-gradient(135deg, var(--ballsy-cream), var(--ballsy-violet) 76%);
    border-radius: 0;
    box-shadow: 0 0 0 8px rgba(203, 183, 251, 0.08), 0 18px 44px rgba(17, 16, 37, 0.34);
}

.status-ring {
    border-color: rgba(203, 183, 251, 0.22);
    border-radius: 0;
}

.ring2 {
    border-color: rgba(233, 229, 221, 0.18);
}

#status-text {
    color: var(--ballsy-ink);
    font-family: var(--ballsy-ui);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.status-subtitle {
    color: var(--ballsy-muted);
    font-size: 0.86rem;
}

.prompt-chips {
    max-width: 31rem;
    gap: 0.5rem;
    margin-top: 0.72rem;
}

.prompt-chip {
    border: 1px solid rgba(233, 229, 221, 0.22);
    border-radius: 0;
    background: rgba(233, 229, 221, 0.055);
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--ballsy-ui);
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.prompt-chip:hover,
.prompt-chip:focus-visible {
    transform: translateY(-1px);
    border-color: var(--ballsy-cream);
    background: var(--ballsy-cream);
    color: var(--ballsy-charcoal);
}

.input-section {
    flex: 0 0 auto;
    padding: 0.08rem clamp(0.9rem, 3vw, 1.55rem) 1rem;
}

.app-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    padding: 0 1rem 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
}

.app-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.app-footer a:hover,
.app-footer a:focus-visible {
    color: var(--ballsy-violet);
    outline: none;
}

.input-container {
    border: 1px solid rgba(233, 229, 221, 0.24);
    border-radius: 0;
    background: rgba(233, 229, 221, 0.05);
    box-shadow: none;
}

#text-command {
    color: white;
    font-family: var(--ballsy-ui);
}

#text-command::placeholder {
    color: rgba(255, 255, 255, 0.44);
}

#text-command:focus {
    outline: none;
}

.input-container:focus-within {
    border-color: var(--ballsy-violet);
    box-shadow: inset 0 -2px 0 var(--ballsy-cream);
}

#send-button {
    border-radius: 0;
    background: var(--ballsy-cream);
    color: var(--ballsy-charcoal);
}

#send-button:hover {
    background: var(--ballsy-violet);
    color: var(--ballsy-charcoal);
}

.voice-orb.listening .orb-inner {
    background: linear-gradient(135deg, var(--ballsy-cream), var(--ballsy-violet)) !important;
    box-shadow: 0 0 0 10px rgba(203, 183, 251, 0.1), 0 18px 48px rgba(203, 183, 251, 0.24) !important;
}

.voice-orb.processing .orb-inner {
    background: linear-gradient(135deg, var(--ballsy-violet), #e9e5dd) !important;
}

.voice-orb.speaking .orb-inner {
    background: linear-gradient(135deg, var(--ballsy-violet), var(--ballsy-mint)) !important;
}

.assistant-container,
.assistant-container *,
.assistant-container *::before,
.assistant-container *::after {
    border-radius: 0 !important;
}

@media (max-width: 560px) {
    body,
    body.dark-theme {
        background:
            radial-gradient(circle at 50% 0%, rgba(203, 183, 251, 0.14), transparent 15rem),
            linear-gradient(145deg, #111025, #1b1938);
    }

    .app-container {
        padding: 1.45rem 0.45rem 0.45rem;
    }

    .app-container::before {
        top: 0.48rem;
        font-size: 0.56rem;
        letter-spacing: 0.1em;
    }

    .assistant-container,
    body.dark-theme .assistant-container {
        width: 100%;
        height: calc(100dvh - 1.9rem);
        border-radius: 0;
    }

    .assistant-container::after {
        display: none;
    }

    .assistant-header {
        padding: 0.78rem 0.76rem 0.48rem;
    }

    .header-top {
        margin-bottom: 0.42rem;
    }

    .b-logo {
        width: 42px;
        height: 42px;
        border-radius: 0;
        margin-bottom: 0.3rem;
    }

    .b-logo span {
        font-size: 1.75rem;
    }

    .title {
        font-size: clamp(2.5rem, 15vw, 3.65rem);
    }

    .title-subcopy {
        max-width: 18.5rem;
        margin-top: 0.45rem;
        font-size: 0.79rem;
        line-height: 1.34;
    }

    .proof-strip {
        margin-top: 0.5rem;
    }

    .proof-strip span {
        padding: 0.22rem 0.38rem;
        font-size: 0.64rem;
        letter-spacing: 0;
    }

    #dark-toggle {
        top: 0.62rem !important;
        right: 0.62rem !important;
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
        font-size: 0.95rem !important;
    }

    .conversation-container {
        padding: 0.42rem 0.64rem 0.35rem;
    }

    #conversation-history,
    body.dark-theme #conversation-history {
        border-radius: 0;
        padding: 0.65rem;
    }

    #conversation-history::before {
        display: none;
    }

    .message,
    .user-message,
    .assistant-message,
    .typing-indicator {
        max-width: 92%;
        padding: 0.62rem 0.74rem;
        border-radius: 0;
        font-size: 0.82rem;
    }

    .voice-section {
        padding: 0.05rem 0.64rem 0.52rem;
    }

    .voice-indicator {
        width: 88px;
        height: 88px;
        margin-bottom: 0.12rem;
    }

    .voice-orb {
        width: 66px;
        height: 66px;
    }

    #status-text {
        font-size: 0.72rem;
    }

    .status-subtitle {
        font-size: 0.72rem;
    }

    .prompt-chips {
        flex-wrap: nowrap;
        justify-content: flex-start;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 0.12rem;
        gap: 0.32rem;
        margin-top: 0.48rem;
        scrollbar-width: none;
    }

    .prompt-chips::-webkit-scrollbar {
        display: none;
    }

    .prompt-chip {
        flex: 0 0 auto;
        padding: 0.38rem 0.44rem;
        font-size: 0.7rem;
        letter-spacing: 0;
    }

    .input-section {
        padding: 0.05rem 0.64rem 0.58rem;
    }

    #text-command {
        padding: 0.64rem 0.7rem;
        font-size: 0.84rem;
    }

    #send-button {
        width: 38px;
        height: 38px;
    }

    .app-footer {
        padding-bottom: 0.48rem;
        font-size: 0.68rem;
    }
}

/* Ballsy product remodel: full-screen assistant stage */
:root {
    --ballsy-stage-bg: #090916;
    --ballsy-stage-ink: #f7f2e8;
    --ballsy-stage-muted: rgba(247, 242, 232, 0.66);
    --ballsy-stage-line: rgba(247, 242, 232, 0.16);
    --ballsy-stage-violet: #cbb7fb;
    --ballsy-stage-green: #8cf1bd;
}

html,
body {
    min-height: 100%;
}

body,
body.dark-theme {
    background:
        radial-gradient(circle at 76% 42%, rgba(140, 241, 189, 0.18), transparent 19rem),
        radial-gradient(circle at 20% 18%, rgba(203, 183, 251, 0.2), transparent 21rem),
        linear-gradient(145deg, #070711 0%, #121126 52%, #080a14 100%) !important;
    color: var(--ballsy-stage-ink) !important;
}

.app-container {
    width: 100% !important;
    min-height: 100dvh !important;
    padding: clamp(1rem, 3vw, 2.25rem) !important;
    display: block !important;
    overflow: hidden !important;
}

.app-container::before {
    content: "BALLSY / VOICE ASSISTANT" !important;
    top: clamp(1rem, 3vw, 2.25rem) !important;
    left: clamp(1rem, 3vw, 2.25rem) !important;
    width: auto !important;
    color: rgba(247, 242, 232, 0.42) !important;
    text-align: left !important;
}

.assistant-container,
body.dark-theme .assistant-container {
    width: 100% !important;
    min-height: calc(100dvh - clamp(2rem, 6vw, 4.5rem)) !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(4.2rem, 7vw, 6rem) clamp(1.1rem, 5vw, 5.8rem) clamp(1rem, 3vw, 2rem) !important;
    display: grid !important;
    grid-template-columns: minmax(18rem, 0.92fr) minmax(20rem, 1.08fr) !important;
    grid-template-rows: 1fr auto auto !important;
    column-gap: clamp(2rem, 8vw, 8rem) !important;
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.assistant-container::before,
.assistant-container::after {
    display: none !important;
}

.assistant-container,
.assistant-container *,
.assistant-container *::before,
.assistant-container *::after {
    border-radius: revert-layer !important;
}

.assistant-header {
    position: relative !important;
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    max-width: 44rem !important;
    padding: 0 !important;
    text-align: left !important;
}

.header-top {
    margin: 0 0 clamp(1.25rem, 3vw, 2.25rem) !important;
    justify-content: flex-start !important;
}

.status-badge {
    background: transparent !important;
    border: 1px solid var(--ballsy-stage-line) !important;
    color: var(--ballsy-stage-ink) !important;
    letter-spacing: 0.04em !important;
}

.b-logo {
    width: clamp(3.25rem, 7vw, 5rem) !important;
    height: clamp(3.25rem, 7vw, 5rem) !important;
    margin: 0 0 clamp(1rem, 2.2vw, 1.6rem) !important;
    background: rgba(247, 242, 232, 0.08) !important;
    border: 1px solid var(--ballsy-stage-line) !important;
    box-shadow: 0 24px 70px rgba(203, 183, 251, 0.18) !important;
}

.b-logo span {
    color: var(--ballsy-stage-ink) !important;
    font-size: clamp(2.2rem, 5vw, 3.6rem) !important;
}

.title,
.assistant-header h1 {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ballsy-stage-ink) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    font-family: "Fraunces", "Bricolage Grotesque", serif !important;
    font-size: clamp(3.8rem, 8.8vw, 8.75rem) !important;
    line-height: 0.9 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-shadow: 0 28px 80px rgba(0, 0, 0, 0.35) !important;
    animation: none !important;
    overflow: visible !important;
}

.title::after {
    display: none !important;
}

.title-subcopy {
    max-width: 34rem !important;
    margin: clamp(1.1rem, 2.6vw, 1.8rem) 0 0 !important;
    color: var(--ballsy-stage-muted) !important;
    font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

#dark-toggle {
    top: 0 !important;
    right: 0 !important;
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    background: rgba(247, 242, 232, 0.08) !important;
    border: 1px solid var(--ballsy-stage-line) !important;
    color: var(--ballsy-stage-ink) !important;
}

.proof-strip,
.prompt-chips {
    display: none !important;
}

.conversation-container,
#conversation-history {
    display: none !important;
}

.voice-section {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: center !important;
    width: min(100%, 42rem) !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
}

.voice-indicator {
    width: clamp(15rem, 30vw, 24rem) !important;
    height: clamp(15rem, 30vw, 24rem) !important;
    margin: 0 0 clamp(1.4rem, 3vw, 2.25rem) !important;
}

.voice-indicator::before {
    content: "" !important;
    position: absolute !important;
    inset: 11% !important;
    border: 1px solid rgba(247, 242, 232, 0.11) !important;
    border-radius: 50% !important;
}

.status-ring {
    border-radius: 50% !important;
}

.voice-orb {
    width: clamp(8rem, 15vw, 12rem) !important;
    height: clamp(8rem, 15vw, 12rem) !important;
    border-radius: 50% !important;
}

.orb-inner,
.orb-inner::before,
.orb-inner::after {
    border-radius: 50% !important;
}

.orb-inner {
    background:
        radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.88), transparent 0.35rem),
        linear-gradient(140deg, var(--ballsy-stage-violet), var(--ballsy-stage-green)) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18),
        0 34px 90px rgba(140, 241, 189, 0.24),
        0 16px 46px rgba(203, 183, 251, 0.25) !important;
}

.orb-icon {
    color: #111126 !important;
    font-size: clamp(2.3rem, 5vw, 4.4rem) !important;
}

#status-text {
    color: var(--ballsy-stage-ink) !important;
    font-size: clamp(1.25rem, 2vw, 1.65rem) !important;
    letter-spacing: 0 !important;
}

.status-subtitle {
    margin-top: 0.35rem !important;
    color: var(--ballsy-stage-muted) !important;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem) !important;
}

.conversation-container.transcript-empty {
    display: none !important;
}

.conversation-container {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: min(100%, 74rem) !important;
    margin: clamp(1.5rem, 4vw, 3rem) auto 0 !important;
    padding: 0 !important;
}

#conversation-history,
body.dark-theme #conversation-history {
    min-height: 0 !important;
    max-height: min(32vh, 18rem) !important;
    padding: clamp(1rem, 2vw, 1.35rem) !important;
    overflow-y: auto !important;
    border-radius: 8px !important;
    background: rgba(247, 242, 232, 0.07) !important;
    border: 1px solid var(--ballsy-stage-line) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24) !important;
}

#conversation-history::before,
#conversation-history:empty::before {
    display: none !important;
    content: none !important;
}

.message,
.user-message,
.assistant-message,
.typing-indicator {
    border-radius: 8px !important;
}

.input-section {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    width: min(100%, 58rem) !important;
    margin: clamp(1.2rem, 3vw, 2.2rem) auto 0 !important;
    padding: 0 !important;
}

.input-container {
    min-height: 64px !important;
    border-radius: 999px !important;
    background: rgba(247, 242, 232, 0.075) !important;
    border: 1px solid rgba(247, 242, 232, 0.2) !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: blur(18px) !important;
    gap: 0.45rem !important;
    padding-left: 0.35rem !important;
}

#text-command {
    flex: 1 1 auto !important;
    width: auto !important;
    min-height: 62px !important;
    padding: 0 1.35rem !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--ballsy-stage-ink) !important;
    font-size: 1rem !important;
}

#text-command::placeholder {
    color: rgba(247, 242, 232, 0.5) !important;
}

#send-button {
    flex: 0 0 52px !important;
    width: 52px !important;
    height: 52px !important;
    margin-right: 6px !important;
    border-radius: 50% !important;
    background: var(--ballsy-stage-ink) !important;
    color: #101021 !important;
}

.app-footer {
    position: fixed !important;
    right: clamp(1rem, 3vw, 2.25rem) !important;
    bottom: clamp(0.9rem, 2vw, 1.3rem) !important;
    padding: 0 !important;
    color: rgba(247, 242, 232, 0.45) !important;
}

.app-footer a {
    color: rgba(247, 242, 232, 0.62) !important;
}

@media (max-width: 860px) {
    .app-container {
        padding: 0.9rem !important;
        overflow-y: auto !important;
    }

    .app-container::before {
        display: none !important;
    }

    .assistant-container,
    body.dark-theme .assistant-container {
        min-height: calc(100dvh - 1.8rem) !important;
        padding: 1.25rem 0.2rem 0.8rem !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto 1fr auto auto !important;
        gap: 1.2rem !important;
    }

    .assistant-header {
        grid-column: 1 !important;
        grid-row: 1 !important;
        padding: 0 0.35rem !important;
        text-align: center !important;
        justify-self: center !important;
    }

    .header-top {
        justify-content: center !important;
        margin-bottom: 0.85rem !important;
    }

    .b-logo {
        margin-inline: auto !important;
    }

    .title,
    .assistant-header h1 {
        font-size: clamp(4.2rem, 20vw, 7.8rem) !important;
        text-align: center !important;
    }

    .title-subcopy {
        max-width: 20rem !important;
        margin-inline: auto !important;
        text-align: center !important;
        font-size: 1rem !important;
    }

    #dark-toggle {
        top: 0 !important;
        right: 0.35rem !important;
    }

    .voice-section {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .voice-indicator {
        width: min(70vw, 18rem) !important;
        height: min(70vw, 18rem) !important;
    }

    .voice-orb {
        width: min(38vw, 9.5rem) !important;
        height: min(38vw, 9.5rem) !important;
    }

    .conversation-container {
        grid-column: 1 !important;
        grid-row: 3 !important;
        width: 100% !important;
    }

    .input-section {
        grid-column: 1 !important;
        grid-row: 4 !important;
        width: 100% !important;
        padding: 0 0.25rem !important;
    }

    .app-footer {
        position: static !important;
        margin-top: 0.9rem !important;
        text-align: center !important;
    }
}

/* Medium viewport correction for the in-app browser preview */
@media (max-width: 1180px) {
    .app-container {
        min-height: 100dvh !important;
        padding: 0 !important;
        overflow-y: auto !important;
    }

    .app-container::before {
        top: 1.25rem !important;
        left: 1.25rem !important;
        font-size: 0.66rem !important;
        letter-spacing: 0.22em !important;
    }

    .assistant-container,
    body.dark-theme .assistant-container {
        min-height: 100dvh !important;
        padding: clamp(2rem, 4vh, 3rem) clamp(1rem, 4vw, 2.5rem) clamp(1rem, 3vh, 1.6rem) !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto minmax(15rem, 1fr) auto auto !important;
        gap: clamp(0.75rem, 1.8vh, 1.25rem) !important;
        align-items: center !important;
        justify-items: center !important;
        overflow: visible !important;
    }

    .assistant-header {
        grid-column: 1 !important;
        grid-row: 1 !important;
        align-self: end !important;
        justify-self: center !important;
        max-width: min(100%, 58rem) !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .header-top {
        justify-content: center !important;
        margin: 0 0 clamp(0.65rem, 1.8vh, 1rem) !important;
    }

    .status-badge {
        padding: 0.42rem 0.72rem !important;
        font-size: clamp(0.72rem, 1.6vw, 0.9rem) !important;
    }

    .b-logo {
        width: clamp(3rem, 8vw, 4.25rem) !important;
        height: clamp(3rem, 8vw, 4.25rem) !important;
        margin: 0 auto clamp(0.55rem, 1.7vh, 0.95rem) !important;
    }

    .b-logo span {
        font-size: clamp(2rem, 5.6vw, 3rem) !important;
    }

    .title,
    .assistant-header h1 {
        max-width: 100% !important;
        font-size: clamp(3.6rem, 12vw, 6.25rem) !important;
        line-height: 0.92 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .title-subcopy {
        max-width: 32rem !important;
        margin: clamp(0.5rem, 1.6vh, 0.9rem) auto 0 !important;
        font-size: clamp(0.95rem, 2.6vw, 1.2rem) !important;
        line-height: 1.32 !important;
        text-align: center !important;
    }

    .voice-section {
        grid-column: 1 !important;
        grid-row: 2 !important;
        align-self: center !important;
        justify-self: center !important;
        width: 100% !important;
        min-height: 0 !important;
    }

    .voice-indicator {
        width: clamp(12.5rem, 36vw, 18rem) !important;
        height: clamp(12.5rem, 36vw, 18rem) !important;
        margin: 0 0 clamp(0.65rem, 1.7vh, 1rem) !important;
    }

    .voice-orb {
        width: clamp(7rem, 19vw, 9.75rem) !important;
        height: clamp(7rem, 19vw, 9.75rem) !important;
    }

    .orb-icon {
        font-size: clamp(2rem, 6vw, 3.4rem) !important;
    }

    #status-text {
        font-size: clamp(1.15rem, 3vw, 1.5rem) !important;
    }

    .status-subtitle {
        font-size: clamp(0.82rem, 2.1vw, 1rem) !important;
    }

    .conversation-container {
        grid-column: 1 !important;
        grid-row: 3 !important;
        width: min(100%, 48rem) !important;
        margin: 0 auto !important;
    }

    #conversation-history,
    body.dark-theme #conversation-history {
        max-height: 20vh !important;
    }

    .input-section {
        grid-column: 1 !important;
        grid-row: 4 !important;
        width: min(100%, 42rem) !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .input-container {
        min-height: 58px !important;
        padding-left: 0.28rem !important;
    }

    #text-command {
        min-height: 56px !important;
        font-size: 0.92rem !important;
        padding: 0 0.95rem !important;
    }

    #send-button {
        flex-basis: 46px !important;
        width: 46px !important;
        height: 46px !important;
    }

    .app-footer {
        position: static !important;
        grid-column: 1 !important;
        justify-self: center !important;
        margin-top: 0.15rem !important;
        text-align: center !important;
        font-size: 0.72rem !important;
    }
}

@media (max-width: 1180px) and (max-height: 760px) {
    .assistant-container,
    body.dark-theme .assistant-container {
        padding-top: 1.45rem !important;
        grid-template-rows: auto minmax(12rem, 1fr) auto auto !important;
        gap: 0.55rem !important;
    }

    .app-container::before {
        display: none !important;
    }

    .b-logo {
        width: 3rem !important;
        height: 3rem !important;
    }

    .title,
    .assistant-header h1 {
        font-size: clamp(3.25rem, 10.5vw, 5.25rem) !important;
    }

    .voice-indicator {
        width: clamp(11rem, 32vw, 15.5rem) !important;
        height: clamp(11rem, 32vw, 15.5rem) !important;
    }

    .voice-orb {
        width: clamp(6.4rem, 17vw, 8.6rem) !important;
        height: clamp(6.4rem, 17vw, 8.6rem) !important;
    }

    .input-container {
        min-height: 52px !important;
        padding-left: 0.24rem !important;
    }

    #text-command {
        min-height: 50px !important;
    }

    #send-button {
        flex-basis: 42px !important;
        width: 42px !important;
        height: 42px !important;
    }
}

@media (max-width: 640px) {
    body,
    body.dark-theme {
        background:
            radial-gradient(circle at 50% 26%, rgba(203, 183, 251, 0.2), transparent 16rem),
            radial-gradient(circle at 50% 68%, rgba(140, 241, 189, 0.16), transparent 14rem),
            linear-gradient(160deg, #070711 0%, #111126 58%, #080a14 100%) !important;
    }

    .app-container {
        min-height: 100dvh !important;
        padding: 0 !important;
        overflow-y: auto !important;
    }

    .app-container::before {
        display: none !important;
    }

    .assistant-container,
    body.dark-theme .assistant-container {
        min-height: 100dvh !important;
        padding: 1rem 1rem max(0.8rem, env(safe-area-inset-bottom)) !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto minmax(12rem, 1fr) auto auto !important;
        gap: 0.75rem !important;
        align-content: stretch !important;
        justify-items: center !important;
    }

    .assistant-header {
        width: 100% !important;
        max-width: 22rem !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .header-top {
        margin-bottom: 0.55rem !important;
        justify-content: center !important;
    }

    .status-badge {
        padding: 0.34rem 0.58rem !important;
        font-size: 0.72rem !important;
    }

    .b-logo {
        width: 2.75rem !important;
        height: 2.75rem !important;
        margin: 0 auto 0.35rem !important;
    }

    .b-logo span {
        font-size: 1.95rem !important;
    }

    .title,
    .assistant-header h1 {
        width: 100% !important;
        font-size: clamp(3.25rem, 18vw, 4.9rem) !important;
        line-height: 0.94 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .title-subcopy {
        max-width: 18rem !important;
        margin: 0.45rem auto 0 !important;
        font-size: 0.92rem !important;
        line-height: 1.34 !important;
        text-align: center !important;
    }

    .voice-section {
        width: 100% !important;
        align-self: center !important;
    }

    .voice-indicator {
        width: min(68vw, 15.5rem) !important;
        height: min(68vw, 15.5rem) !important;
        margin-bottom: 0.55rem !important;
    }

    .voice-orb {
        width: min(39vw, 8.4rem) !important;
        height: min(39vw, 8.4rem) !important;
    }

    .orb-icon {
        font-size: clamp(2rem, 9vw, 3rem) !important;
    }

    #status-text {
        font-size: 1.08rem !important;
    }

    .status-subtitle {
        font-size: 0.82rem !important;
    }

    .conversation-container {
        width: 100% !important;
        margin: 0 !important;
    }

    #conversation-history,
    body.dark-theme #conversation-history {
        max-height: 22vh !important;
        padding: 0.75rem !important;
    }

    .input-section {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .input-container {
        min-height: 52px !important;
        border-radius: 999px !important;
        padding-left: 0.25rem !important;
    }

    #text-command {
        min-height: 50px !important;
        padding: 0 0.9rem !important;
        font-size: 0.88rem !important;
    }

    #send-button {
        flex: 0 0 42px !important;
        width: 42px !important;
        height: 42px !important;
        margin-right: 5px !important;
    }

    .app-footer {
        position: static !important;
        margin-top: 0.1rem !important;
        font-size: 0.68rem !important;
        text-align: center !important;
    }
}

@media (max-width: 380px) {
    .title,
    .assistant-header h1 {
        font-size: clamp(2.75rem, 17vw, 3.6rem) !important;
    }

    .title-subcopy {
        font-size: 0.84rem !important;
    }

    .voice-indicator {
        width: min(62vw, 12rem) !important;
        height: min(62vw, 12rem) !important;
    }

    .voice-orb {
        width: min(36vw, 6.9rem) !important;
        height: min(36vw, 6.9rem) !important;
    }
}

/* Response-stream product layout */
.assistant-container,
body.dark-theme .assistant-container {
    padding: clamp(3.4rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 5rem) clamp(1.1rem, 3vw, 2rem) !important;
    grid-template-columns: minmax(22rem, 0.95fr) minmax(20rem, 1.05fr) !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    column-gap: clamp(2rem, 7vw, 7rem) !important;
}

.assistant-header {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    max-width: 42rem !important;
}

.header-top {
    margin-bottom: clamp(0.85rem, 2vw, 1.25rem) !important;
}

.b-logo {
    width: clamp(2.5rem, 4vw, 3.4rem) !important;
    height: clamp(2.5rem, 4vw, 3.4rem) !important;
    margin-bottom: 0.65rem !important;
}

.b-logo span {
    font-size: clamp(1.75rem, 3vw, 2.35rem) !important;
}

.title,
.assistant-header h1 {
    font-size: clamp(2.8rem, 5.6vw, 5.2rem) !important;
    line-height: 0.95 !important;
}

.title-subcopy {
    max-width: 26rem !important;
    margin-top: 0.65rem !important;
    font-size: clamp(0.92rem, 1.2vw, 1.08rem) !important;
}

.response-panel {
    width: min(100%, 37rem) !important;
    min-height: clamp(12rem, 27vh, 18rem) !important;
    margin-top: clamp(1.4rem, 4vw, 2.4rem) !important;
    padding: clamp(1rem, 2.4vw, 1.55rem) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    border: 1px solid rgba(247, 242, 232, 0.13) !important;
    border-radius: 14px !important;
    background: rgba(247, 242, 232, 0.055) !important;
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(18px) !important;
}

.response-kicker {
    margin-bottom: 0.85rem !important;
    color: rgba(247, 242, 232, 0.46) !important;
    font: 700 0.72rem/1 "Bricolage Grotesque", sans-serif !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
}

#ballsy-response-output {
    margin: 0 !important;
    color: var(--ballsy-stage-ink) !important;
    font: 600 clamp(1.35rem, 2.7vw, 2.25rem)/1.18 "Bricolage Grotesque", sans-serif !important;
    letter-spacing: 0 !important;
}

#ballsy-response-output.is-pending {
    color: rgba(247, 242, 232, 0.58) !important;
}

.voice-section {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

.input-section {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: min(100%, 50rem) !important;
    margin-top: clamp(1rem, 3vw, 2rem) !important;
}

.input-container {
    overflow: hidden !important;
    background: rgba(247, 242, 232, 0.06) !important;
    border-color: rgba(247, 242, 232, 0.24) !important;
}

.input-container > input#text-command,
#text-command,
#text-command:focus,
#text-command:-webkit-autofill {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

@media (max-width: 1180px) {
    .assistant-container,
    body.dark-theme .assistant-container {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto minmax(12rem, 1fr) auto !important;
        padding: clamp(1.4rem, 3vh, 2.4rem) clamp(1rem, 4vw, 2rem) clamp(0.9rem, 2vh, 1.4rem) !important;
        gap: clamp(0.7rem, 1.8vh, 1.15rem) !important;
    }

    .assistant-header {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: min(100%, 42rem) !important;
        text-align: center !important;
        justify-self: center !important;
    }

    .header-top,
    .b-logo {
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
    }

    .title,
    .assistant-header h1 {
        font-size: clamp(2.8rem, 9vw, 4.9rem) !important;
        text-align: center !important;
    }

    .title-subcopy {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .response-panel {
        min-height: clamp(8rem, 19vh, 12rem) !important;
        margin: clamp(0.9rem, 2vh, 1.3rem) auto 0 !important;
    }

    #ballsy-response-output {
        font-size: clamp(1.08rem, 3vw, 1.55rem) !important;
    }

    .voice-section {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .input-section {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
}

@media (max-width: 640px) {
    .assistant-container,
    body.dark-theme .assistant-container {
        grid-template-rows: auto minmax(10rem, 1fr) auto !important;
        padding: 0.9rem 0.85rem max(0.75rem, env(safe-area-inset-bottom)) !important;
    }

    .title,
    .assistant-header h1 {
        font-size: clamp(2.55rem, 14vw, 3.6rem) !important;
    }

    .title-subcopy {
        font-size: 0.86rem !important;
    }

    .response-panel {
        min-height: 7.75rem !important;
        padding: 0.9rem !important;
        border-radius: 10px !important;
    }

    .response-kicker {
        margin-bottom: 0.55rem !important;
        font-size: 0.62rem !important;
    }

    #ballsy-response-output {
        font-size: clamp(1rem, 5.3vw, 1.35rem) !important;
    }
}

/* Response-first remodel: compact brand, left answer stream */
.assistant-container,
body.dark-theme .assistant-container {
    grid-template-columns: minmax(18rem, 0.92fr) minmax(18rem, 1.08fr) !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    column-gap: clamp(2rem, 7vw, 7.5rem) !important;
    row-gap: clamp(1rem, 3vh, 2rem) !important;
    align-items: center !important;
    padding: clamp(1.25rem, 3vw, 2.6rem) clamp(1rem, 5vw, 5rem) clamp(1rem, 3vw, 2rem) !important;
}

.assistant-header {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 3.4rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    justify-self: stretch !important;
    align-self: start !important;
    text-align: left !important;
}

.header-top {
    order: 3 !important;
    margin: 0 0 0 auto !important;
}

.b-logo {
    order: 1 !important;
    width: clamp(2.3rem, 4vw, 3rem) !important;
    height: clamp(2.3rem, 4vw, 3rem) !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

.b-logo span {
    font-size: clamp(1.55rem, 3vw, 2.05rem) !important;
}

.title,
.assistant-header h1 {
    order: 2 !important;
    width: auto !important;
    margin: 0 !important;
    flex: 0 1 auto !important;
    font-size: clamp(1.85rem, 4.2vw, 3rem) !important;
    line-height: 1 !important;
    text-align: left !important;
    white-space: nowrap !important;
    text-shadow: 0 16px 48px rgba(0, 0, 0, 0.28) !important;
}

.title-subcopy {
    display: none !important;
}

.response-panel {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: stretch !important;
    width: min(100%, 42rem) !important;
    min-height: clamp(17rem, 44vh, 27rem) !important;
    margin: 0 !important;
    padding: clamp(1.15rem, 2.6vw, 2rem) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(180deg, rgba(247, 242, 232, 0.075), rgba(247, 242, 232, 0.035)),
        rgba(8, 8, 18, 0.22) !important;
    overflow: hidden auto !important;
}

.response-kicker {
    color: rgba(247, 242, 232, 0.5) !important;
    font-size: 0.7rem !important;
}

#ballsy-response-output {
    max-width: 17ch !important;
    font-size: clamp(1.7rem, 3.5vw, 3.45rem) !important;
    line-height: 1.05 !important;
}

.voice-section {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: center !important;
}

.input-section {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    width: min(100%, 46rem) !important;
    margin: 0 auto !important;
}

.input-container,
body.dark-theme .input-container {
    min-height: 56px !important;
    padding: 0.25rem 0.3rem 0.25rem 0 !important;
    border-radius: 999px !important;
    background: rgba(247, 242, 232, 0.07) !important;
    border: 1px solid rgba(247, 242, 232, 0.22) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 22px 70px rgba(0, 0, 0, 0.24) !important;
}

.input-container > input#text-command,
#text-command,
#text-command:hover,
#text-command:focus,
#text-command:active,
#text-command:-webkit-autofill,
#text-command:-webkit-autofill:hover,
#text-command:-webkit-autofill:focus {
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 1.3rem !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    outline: none !important;
    color: var(--ballsy-stage-ink) !important;
    -webkit-text-fill-color: var(--ballsy-stage-ink) !important;
}

#send-button {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    .assistant-container,
    body.dark-theme .assistant-container {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto minmax(11rem, 1fr) auto !important;
        gap: clamp(0.8rem, 2vh, 1.15rem) !important;
        padding: 1rem 1rem max(0.85rem, env(safe-area-inset-bottom)) !important;
    }

    .assistant-header {
        min-height: 3rem !important;
        gap: 0.65rem !important;
    }

    .status-badge {
        padding: 0.34rem 0.56rem !important;
        font-size: 0.72rem !important;
    }

    .b-logo {
        width: 2.35rem !important;
        height: 2.35rem !important;
    }

    .title,
    .assistant-header h1 {
        font-size: clamp(1.8rem, 8vw, 2.65rem) !important;
    }

    .response-panel {
        grid-column: 1 !important;
        grid-row: 2 !important;
        min-height: clamp(8.5rem, 21vh, 12rem) !important;
        width: min(100%, 38rem) !important;
        justify-self: center !important;
    }

    #ballsy-response-output {
        max-width: 100% !important;
        font-size: clamp(1.1rem, 5.2vw, 1.65rem) !important;
        line-height: 1.15 !important;
    }

    .voice-section {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }

    .input-section {
        grid-column: 1 !important;
        grid-row: 4 !important;
        width: 100% !important;
    }
}

@media (max-width: 460px) {
    .assistant-container,
    body.dark-theme .assistant-container {
        padding-inline: 0.8rem !important;
        grid-template-rows: auto auto minmax(10rem, 1fr) auto !important;
    }

    .assistant-header {
        gap: 0.5rem !important;
    }

    .header-top {
        display: none !important;
    }

    .response-panel {
        min-height: 8rem !important;
        padding: 0.85rem !important;
    }

    .voice-indicator {
        width: min(62vw, 13rem) !important;
        height: min(62vw, 13rem) !important;
    }

    .voice-orb {
        width: min(36vw, 7.3rem) !important;
        height: min(36vw, 7.3rem) !important;
    }

    .input-container,
    body.dark-theme .input-container {
        min-height: 50px !important;
    }

    .input-container > input#text-command,
    #text-command,
    #text-command:focus {
        min-height: 44px !important;
        height: 44px !important;
        padding-inline: 1rem !important;
        font-size: 0.86rem !important;
    }

    #send-button {
        flex-basis: 42px !important;
        width: 42px !important;
        height: 42px !important;
    }
}

/* Final deploy polish: force the response-first composition */
html,
body,
body.dark-theme {
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    background:
        radial-gradient(circle at 76% 42%, rgba(140, 241, 189, 0.18), transparent 19rem),
        radial-gradient(circle at 20% 18%, rgba(203, 183, 251, 0.2), transparent 21rem),
        linear-gradient(145deg, #070711 0%, #121126 52%, #080a14 100%) !important;
}

.app-container {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
}

.assistant-container,
body.dark-theme .assistant-container {
    height: 100dvh !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
    grid-template-columns: minmax(18rem, 0.92fr) minmax(18rem, 1.08fr) !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    padding-block: clamp(1rem, 2.4vw, 2rem) clamp(1.6rem, 3.5vw, 3rem) !important;
}

.assistant-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0.85rem !important;
    text-align: left !important;
}

.assistant-header .b-logo,
.assistant-header .title,
.assistant-header .header-top {
    position: static !important;
    transform: none !important;
}

.assistant-header .b-logo {
    margin: 0 !important;
}

.assistant-header .title {
    margin: 0 !important;
    text-align: left !important;
}

.assistant-header .header-top {
    margin: 0 0 0 auto !important;
}

.response-panel {
    max-height: min(48vh, 28rem) !important;
}

@media (max-width: 900px) {
    .app-container {
        overflow: hidden !important;
    }

    .assistant-container,
    body.dark-theme .assistant-container {
        height: 100dvh !important;
        min-height: 100dvh !important;
        grid-template-rows: auto auto minmax(0, 1fr) auto !important;
        padding-block: 0.85rem !important;
    }

    .response-panel {
        max-height: 24vh !important;
    }
}

/* Landing page — Void Intelligence design system */

/* ─── Body Override ─────────────────────────────────────────────────────── */
/* Free the html element from the 100vh lock when on the landing page */
html:has(body.landing-page) {
    height: auto !important;
    overflow-y: auto !important;
}

body.landing-page,
body.landing-page.dark-theme {
    background: #060610 !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    color: #f0ece0 !important;
    font-family: 'Space Grotesk', sans-serif !important;
}

/* ─── Keyframe Animations ────────────────────────────────────────────────── */
@keyframes noiseScroll {
    from { transform: translate(0, 0); }
    to   { transform: translate(-10%, -10%); }
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
    50%       { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
}

@keyframes orbBreathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 60px rgba(0, 230, 118, 0.25), 0 0 120px rgba(0, 230, 118, 0.1);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 80px rgba(0, 230, 118, 0.35), 0 0 160px rgba(0, 230, 118, 0.15);
    }
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50%       { opacity: 0.3;  transform: scale(1.02); }
}

@keyframes haloBreath {
    from { opacity: 0.5; }
    to   { opacity: 1; }
}

@keyframes eqDance {
    0%, 100% { height: 8px; }
    50%       { height: 24px; }
}

@keyframes waveDance {
    0%, 100% { opacity: 0.3; height: 6px; }
    50%       { opacity: 1;   height: 22px; }
}

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

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

/* ─── Background Effects ─────────────────────────────────────────────────── */
.lp-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.lp-noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E") repeat;
    opacity: 0.03;
    animation: noiseScroll 8s linear infinite;
}

/* ─── Shell ──────────────────────────────────────────────────────────────── */
.lp-shell {
    position: relative;
    z-index: 2;
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: clamp(1.2rem, 3vw, 2rem);
    box-sizing: border-box;
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.lp-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(6, 6, 16, 0.8);
    border-bottom: 1px solid rgba(0, 230, 118, 0.08);
    margin: 0 -2rem;
    padding: 1rem 2rem;
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #f0ece0;
    font: 800 clamp(1.3rem, 2.5vw, 1.7rem)/1 "Fraunces", serif;
}

.lp-brand-mark {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #00e676 0%, #a78bfa 100%);
    color: #060610;
    font: 800 1.2rem/1 "Fraunces", serif;
    flex-shrink: 0;
}

.lp-brand-text {
    background: linear-gradient(90deg, #f0ece0 0%, rgba(240, 236, 224, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lp-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lp-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(240, 236, 224, 0.55);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    transition: color 0.2s;
}

.lp-nav-link:hover {
    color: rgba(240, 236, 224, 0.9);
}

.lp-enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #00e676;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
}

.lp-enter-btn:hover {
    background: rgba(0, 230, 118, 0.2);
    border-color: rgba(0, 230, 118, 0.6);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.15);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.lp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.85fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    min-height: min(85vh, 800px);
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.lp-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 230, 118, 0.2);
    background: rgba(0, 230, 118, 0.06);
    color: rgba(0, 230, 118, 0.8);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.lp-badge-dot {
    width: 6px;
    height: 6px;
    background: #00e676;
    border-radius: 50%;
    flex-shrink: 0;
    animation: badgePulse 2s ease-in-out infinite;
}

.lp-title {
    font: 800 clamp(3.5rem, 8vw, 6.5rem)/0.92 "Fraunces", serif;
    color: #f0ece0;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

.lp-title em {
    font-style: italic;
    background: linear-gradient(135deg, #00e676 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lp-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
    color: rgba(240, 236, 224, 0.62);
    max-width: 42ch;
    margin: 0 0 2rem;
}

.lp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lp-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    background: #00e676;
    border: none;
    color: #060610;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4);
    cursor: pointer;
}

.lp-cta-primary:hover {
    background: #1aff8a;
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.4);
    transform: translateY(-1px);
}

.lp-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    border: 1px solid rgba(240, 236, 224, 0.2);
    background: rgba(240, 236, 224, 0.05);
    color: rgba(240, 236, 224, 0.75);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
}

.lp-cta-secondary:hover {
    background: rgba(240, 236, 224, 0.1);
    border-color: rgba(240, 236, 224, 0.35);
    color: #f0ece0;
}

.lp-cta-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.lp-cta-large {
    padding: 1.1rem 2.4rem;
    font-size: 1.1rem;
}

.lp-status-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: rgba(240, 236, 224, 0.38);
}

.lp-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(240, 236, 224, 0.2);
    flex-shrink: 0;
    transition: all 0.4s;
}

.lp-status-ok {
    background: #00e676;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
}

.lp-status-slow {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* ─── Orb ────────────────────────────────────────────────────────────────── */
.lp-orb-wrap {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    max-width: 480px;
    justify-self: center;
}

.lp-orb-outer-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 230, 118, 0.15);
    pointer-events: none;
}

.lp-ring-1 {
    inset: 0;
    animation: ringPulse 3s ease-in-out infinite;
}

.lp-ring-2 {
    inset: -8%;
    animation: ringPulse 3s ease-in-out 1s infinite;
}

.lp-ring-3 {
    inset: -18%;
    animation: ringPulse 3s ease-in-out 2s infinite;
}

.lp-orb-halo {
    position: absolute;
    inset: -40%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: haloBreath 4s ease-in-out infinite alternate;
}

.lp-orb-body {
    width: min(55%, 240px);
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-direction: column;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 0.3rem, transparent 0.8rem),
        linear-gradient(140deg, #a78bfa 0%, #00e676 100%);
    box-shadow: 0 0 60px rgba(0, 230, 118, 0.25), 0 0 120px rgba(0, 230, 118, 0.1);
    animation: orbBreathe 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    gap: 0.5rem;
}

.lp-orb-glint {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 35%;
    height: 35%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.lp-orb-letter {
    color: #060610;
    font: 800 clamp(3rem, 10vw, 5rem)/1 "Fraunces", serif;
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
}

.lp-orb-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
    position: relative;
    z-index: 1;
}

.lp-orb-eq span {
    width: 4px;
    border-radius: 2px;
    background: rgba(6, 6, 16, 0.6);
    animation: eqDance 1.2s ease-in-out infinite;
}

.lp-orb-eq span:nth-child(1) { animation-delay: 0s; }
.lp-orb-eq span:nth-child(2) { animation-delay: 0.1s; }
.lp-orb-eq span:nth-child(3) { animation-delay: 0.2s; }
.lp-orb-eq span:nth-child(4) { animation-delay: 0.15s; }
.lp-orb-eq span:nth-child(5) { animation-delay: 0.05s; }

.lp-orb-glow {
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.12) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}

/* ─── Features Section ───────────────────────────────────────────────────── */
.lp-features {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.lp-features-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.lp-section-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 230, 118, 0.7);
    margin: 0 0 0.75rem;
}

.lp-section-title {
    font: 700 clamp(2rem, 4vw, 3rem)/1.1 "Fraunces", serif;
    color: #f0ece0;
    margin: 0;
}

.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.lp-feature-card {
    padding: 2rem 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(240, 236, 224, 0.08);
    background: rgba(240, 236, 224, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s, transform 0.5s;
    position: relative;
    overflow: hidden;
}

.lp-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.lp-feature-card.lp-visible {
    opacity: 1;
    transform: translateY(0);
}

.lp-feature-card--1 {
    transition-delay: 0s;
}

.lp-feature-card--1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #00e676, transparent);
}

.lp-feature-card--2 {
    transition-delay: 0.1s;
}

.lp-feature-card--2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #a78bfa, transparent);
}

.lp-feature-card--3 {
    transition-delay: 0.2s;
}

.lp-feature-card--3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #00e676, #a78bfa, transparent);
}

.lp-feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.15);
    color: #00e676;
    flex-shrink: 0;
}

.lp-feature-card h3 {
    font: 700 1.15rem/1.3 "Fraunces", serif;
    color: #f0ece0;
    margin: 0;
}

.lp-feature-card p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(240, 236, 224, 0.58);
    margin: 0;
    flex-grow: 1;
}

.lp-feature-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 28px;
    margin-top: auto;
}

.lp-feature-waveform span {
    width: 3px;
    border-radius: 2px;
    background: rgba(0, 230, 118, 0.4);
    animation: waveDance 1.5s ease-in-out infinite;
}

.lp-feature-waveform span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.lp-feature-waveform span:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.lp-feature-waveform span:nth-child(3) { height: 22px; animation-delay: 0.3s; }
.lp-feature-waveform span:nth-child(4) { height: 18px; animation-delay: 0.1s; }
.lp-feature-waveform span:nth-child(5) { height: 12px; animation-delay: 0.25s; }
.lp-feature-waveform span:nth-child(6) { height: 20px; animation-delay: 0.05s; }
.lp-feature-waveform span:nth-child(7) { height: 10px; animation-delay: 0.2s; }

.lp-feature-cursor {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: rgba(240, 236, 224, 0.45);
    margin-top: auto;
    display: flex;
    align-items: center;
}

.lp-cursor-text {
    /* text content only */
}

.lp-cursor-blink {
    animation: cursorBlink 1s step-end infinite;
    color: #00e676;
    margin-left: 1px;
}

.lp-feature-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.lp-feature-links span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.25);
    background: rgba(167, 139, 250, 0.06);
    color: rgba(167, 139, 250, 0.8);
}

/* ─── Tech Section ───────────────────────────────────────────────────────── */
.lp-tech {
    padding: clamp(3rem, 5vw, 4rem) 0;
    text-align: center;
    border-top: 1px solid rgba(240, 236, 224, 0.06);
}

.lp-tech-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(240, 236, 224, 0.3);
    margin: 0 0 1.25rem;
}

.lp-tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.lp-tech-badge {
    display: inline-flex;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(240, 236, 224, 0.1);
    background: rgba(240, 236, 224, 0.03);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: rgba(240, 236, 224, 0.5);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s, transform 0.4s;
}

.lp-tech-badge.lp-visible {
    opacity: 1;
    transform: scale(1);
}

/* ─── Final CTA Section ──────────────────────────────────────────────────── */
.lp-final-cta {
    padding: clamp(4rem, 8vw, 7rem) 0;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s, transform 0.6s;
}

.lp-final-cta.lp-visible {
    opacity: 1;
    transform: translateY(0);
}

.lp-final-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.lp-final-inner h2 {
    font: 700 clamp(2rem, 4vw, 3rem)/1.1 "Fraunces", serif;
    color: #f0ece0;
    margin: 0;
}

.lp-final-inner p {
    font-family: 'Space Grotesk', sans-serif;
    color: rgba(240, 236, 224, 0.58);
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.65;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.lp-footer {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(240, 236, 224, 0.06);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    color: rgba(240, 236, 224, 0.28);
}

.lp-footer a {
    color: rgba(240, 236, 224, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.lp-footer a:hover {
    color: rgba(240, 236, 224, 0.75);
}

/* ─── Responsive — Mobile ────────────────────────────────────────────────── */
@media (max-width: 760px) {
    .lp-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: clamp(3rem, 10vw, 5rem) 0 2rem;
    }

    .lp-orb-wrap {
        max-width: min(78vw, 280px);
        justify-self: center;
        order: -1;
    }

    .lp-feature-grid {
        grid-template-columns: 1fr;
    }

    .lp-nav-link .lp-nav-link-text {
        display: none;
    }

    .lp-footer {
        flex-direction: column;
        text-align: center;
    }

    .lp-step {
        grid-template-columns: 2.25rem 1fr;
        gap: 1rem;
    }

    .lp-cmd-grid {
        grid-template-columns: 1fr;
    }

    .lp-tip {
        grid-template-columns: 1.75rem 1fr;
        gap: 1rem;
    }
}

/* ─── How to Use ─────────────────────────────────────────────────────────── */
.lp-how {
    padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
    max-width: 900px;
    margin: 0 auto;
}

.lp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lp-step {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lp-step.lp-visible {
    opacity: 1;
    transform: none;
}

.lp-step:last-child {
    border-bottom: none;
}

.lp-step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #00e676;
    letter-spacing: 0.05em;
    padding-top: 0.2rem;
    font-weight: 500;
}

.lp-step-body strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f0ece0;
    margin-bottom: 0.4rem;
}

.lp-step-body p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(240, 236, 224, 0.55);
    margin: 0;
}

/* ─── Commands Grid ───────────────────────────────────────────────────────── */
.lp-commands {
    padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
    background: rgba(0, 230, 118, 0.015);
    border-top: 1px solid rgba(0, 230, 118, 0.08);
    border-bottom: 1px solid rgba(0, 230, 118, 0.08);
}

.lp-commands-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: rgba(240, 236, 224, 0.5);
    margin: 0.75rem 0 0;
    max-width: 560px;
}

.lp-cmd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

.lp-cmd-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s;
}

.lp-cmd-card.lp-visible {
    opacity: 1;
    transform: none;
}

.lp-cmd-card:hover {
    border-color: rgba(0, 230, 118, 0.25);
}

.lp-cmd-icon {
    color: #00e676;
    margin-bottom: 0.85rem;
}

.lp-cmd-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f0ece0;
    margin: 0 0 0.85rem;
}

.lp-cmd-examples {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.lp-cmd-examples li {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: rgba(240, 236, 224, 0.45);
    padding: 0.35rem 0.6rem;
    background: rgba(0, 230, 118, 0.05);
    border-radius: 6px;
    line-height: 1.4;
}

/* ─── Tips ────────────────────────────────────────────────────────────────── */
.lp-tips {
    padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
    max-width: 860px;
    margin: 0 auto;
}

.lp-tips-list {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lp-tip {
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    gap: 1.25rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.lp-tip.lp-visible {
    opacity: 1;
    transform: none;
}

.lp-tip:last-child {
    border-bottom: none;
}

.lp-tip-tag {
    font-size: 1.1rem;
    padding-top: 0.1rem;
    line-height: 1;
}

.lp-tip strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f0ece0;
    margin-bottom: 0.35rem;
}

.lp-tip p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(240, 236, 224, 0.5);
    margin: 0;
}

/* ─── Reduced Motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .lp-badge-dot {
        animation: none;
    }

    .lp-orb-body {
        animation: none;
    }

    .lp-orb-outer-ring {
        animation: none;
    }

    .lp-ring-1,
    .lp-ring-2,
    .lp-ring-3 {
        animation: none;
    }

    .lp-orb-halo {
        animation: none;
    }

    .lp-orb-eq span {
        animation: none;
    }

    .lp-feature-waveform span {
        animation: none;
    }

    .lp-noise {
        animation: none;
    }

    .lp-cursor-blink {
        animation: none;
    }
}
