/* ==========================================================================
   YAMAHA AWM VOICE ALCHEMIST - OBSIDIAN BLACK & NEON AMBER / ORANGE THEME
   Matthew Yamaha Voice Model v3.5
   Deep OLED Black (#08080a) with Electric Amber / Tangerine Orange (#ff6b00 / #ff8800)
   Inspired by Moog, Sequential Circuits & Teenage Engineering
   ========================================================================== */

:root {
    /* Pure Obsidian / Carbon Black Surfaces */
    --surface-bg: #070709;
    --surface-panel: #0d0e12;
    --surface-card: #12141a;
    --surface-sub: #171a22;
    --surface-control: #1d202b;
    --surface-hover: #242938;

    /* Subtle Border System with Warm Tint */
    --border-subtle: rgba(255, 107, 0, 0.08);
    --border-default: rgba(255, 255, 255, 0.07);
    --border-highlight: rgba(255, 107, 0, 0.25);
    --border-orange-glow: rgba(255, 107, 0, 0.5);

    /* Text Hierarchy */
    --text-pure: #ffffff;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-dim: #4b5563;

    /* Primary Electric Orange / Amber Palette */
    --orange-primary: #ff6b00;
    --orange-bright: #ff851a;
    --orange-glow: rgba(255, 107, 0, 0.28);
    --orange-soft: rgba(255, 107, 0, 0.12);
    --amber-gold: #ffaa00;
    --amber-soft: rgba(255, 170, 0, 0.12);

    /* Hardware Part Color Coding */
    --part-r1: #ff6b00;                     /* Electric Tangerine */
    --part-r1-muted: rgba(255, 107, 0, 0.15);
    --part-r2: #ffaa00;                     /* Warm Amber Gold */
    --part-r2-muted: rgba(255, 170, 0, 0.15);
    --part-r3: #ff3b30;                     /* Fiery Sunset Coral */
    --part-r3-muted: rgba(255, 59, 48, 0.15);

    /* Utility Indicators */
    --accent-emerald: #10b981;
    --accent-rose: #ef4444;

    /* Typography */
    --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

    /* Radii */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-pill: 9999px;

    /* Shadows & Warm Glows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 10px 30px rgba(0, 0, 0, 0.8);
    --shadow-glow-orange: 0 0 25px rgba(255, 107, 0, 0.22);
    --shadow-glow-amber: 0 0 25px rgba(255, 170, 0, 0.2);

    /* Transitions */
    --ease-snappy: 140ms cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body.studio-app {
    background-color: var(--surface-bg);
    background-image: 
        radial-gradient(circle at 15% 0%, rgba(255, 107, 0, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 100%, rgba(255, 170, 0, 0.04) 0%, transparent 45%);
    color: var(--text-primary);
    font-family: var(--font-ui);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.45;
}

/* ==========================================================================
   TOP HEADER (OBSIDIAN & ORANGE CREST)
   ========================================================================== */
.studio-header {
    background: rgba(13, 14, 18, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 32px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-crest {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.25), rgba(255, 170, 0, 0.15));
    border: 1px solid rgba(255, 107, 0, 0.45);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-primary);
    box-shadow: 0 0 16px rgba(255, 107, 0, 0.3);
}

.brand-crest-image {
    width: auto;
    height: 42px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.brand-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 162, 255, 0.4));
}

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

.brand-subline {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #00b0ff;
    font-family: var(--font-mono);
}

.brand-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.engine-tag {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.model-status-pill {
    background: var(--orange-soft);
    border: 1px solid rgba(255, 107, 0, 0.35);
    color: var(--orange-primary);
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--orange-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--orange-primary);
    animation: orangePulse 2s infinite ease-in-out;
}

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

.brand-title {
    font-size: 17.5px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

/* Center Mode Selector */
.header-center {
    display: flex;
    justify-content: center;
}

.mode-pills {
    display: flex;
    background: #09090c;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 3px;
    gap: 3px;
}

.mode-tab {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--ease-snappy);
}

.mode-tab:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.mode-tab.active {
    background: var(--surface-control);
    color: #fff;
    border: 1px solid rgba(255, 107, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 107, 0, 0.15);
}

.mode-badge {
    font-family: var(--font-mono);
    font-size: 9.5px;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: var(--radius-xs);
    color: var(--text-muted);
}

.mode-tab.active .mode-badge {
    background: rgba(255, 107, 0, 0.2);
    color: var(--orange-primary);
}

/* Header Right Status Badge */
.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.engine-ready-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.3px;
    font-family: var(--font-mono);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.hw-label {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-dim);
}

.hw-select-wrapper {
    position: relative;
}

.hw-select {
    appearance: none;
    -webkit-appearance: none;
    background: #0d0f14 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23ff6b00" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 10px center;
    border: 1px solid rgba(255, 107, 0, 0.35);
    color: var(--orange-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 30px 6px 12px;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all var(--ease-snappy);
}

.hw-select:hover {
    border-color: var(--orange-bright);
    background-color: #12151d;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.3);
}

.hw-select:focus {
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.25);
}

.hw-select option {
    background: #111319;
    color: #f0f0f3;
    padding: 6px;
}

/* ==========================================================================
   MAIN WORKSPACE
   ========================================================================== */
.studio-workspace {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 28px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   COMMAND HERO (DARK OBSIDIAN WITH ORANGE ACCENTS)
   ========================================================================== */
.command-hero {
    background: linear-gradient(180deg, var(--surface-card) 0%, var(--surface-panel) 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-lift);
    position: relative;
}

.command-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.4), transparent);
}

.command-input-wrapper {
    background: #09090c;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 8px 10px 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: all var(--ease-snappy);
}

.command-input-wrapper:focus-within {
    border-color: var(--orange-primary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), var(--shadow-glow-orange);
}

.command-spark-icon {
    color: var(--orange-primary);
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    letter-spacing: -0.1px;
}

.command-input::placeholder {
    color: var(--text-muted);
}

.command-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-command-secondary {
    background: var(--surface-control);
    color: var(--amber-gold);
    border: 1px solid rgba(255, 170, 0, 0.3);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--ease-snappy);
}

.btn-command-secondary:hover {
    background: rgba(255, 170, 0, 0.15);
    border-color: var(--amber-gold);
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(255, 170, 0, 0.2);
}

.btn-command-primary {
    background: linear-gradient(135deg, #ff6b00, #e05300);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 14px rgba(255, 107, 0, 0.4);
    transition: all var(--ease-snappy);
}

.btn-command-primary:hover {
    background: linear-gradient(135deg, #ff851a, #ff6b00);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.6);
    transform: translateY(-1px);
}

.key-shortcut {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: var(--font-mono);
    font-size: 11px;
    opacity: 0.8;
}

/* Discovery Pills */
.discovery-pills-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.pills-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-dim);
}

.pills-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.prompt-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--ease-snappy);
}

.prompt-pill:hover {
    background: rgba(255, 107, 0, 0.1);
    color: #fff;
    border-color: rgba(255, 107, 0, 0.4);
    transform: translateY(-1px);
}

.prompt-pill.active-pill {
    background: rgba(255, 107, 0, 0.14);
    border-color: var(--orange-primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.25);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* ==========================================================================
   SINGLE VOICE BANNER
   ========================================================================== */
.single-voice-banner {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(18, 20, 26, 0.95) 100%);
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-left: 4px solid var(--orange-primary);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-glow-orange);
    position: relative;
    overflow: hidden;
}

.single-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.badge-accent {
    background: var(--orange-soft);
    color: var(--orange-primary);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.4px;
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.badge-neutral {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--radius-xs);
}

.primary-voice-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.primary-voice-meta {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-top: 3px;
}

.btn-glass-download {
    background: var(--orange-soft);
    border: 1px solid rgba(255, 107, 0, 0.4);
    color: var(--orange-primary);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--ease-snappy);
}

.btn-glass-download:hover {
    background: var(--orange-primary);
    color: #000;
    box-shadow: 0 0 18px rgba(255, 107, 0, 0.5);
    transform: translateY(-1px);
}

/* ==========================================================================
   INTELLIGENCE CARD / RECIPE ARCHITECTURE
   ========================================================================== */
.intel-card {
    background: var(--surface-panel);
    border: 1px solid var(--border-default);
    border-left: 3px solid var(--orange-primary);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.intel-title-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    position: relative;
    width: 12px;
    height: 12px;
}

.indicator-glow {
    position: absolute;
    inset: -3px;
    background: var(--orange-primary);
    border-radius: 50%;
    opacity: 0.35;
    animation: orangePulse 2.5s infinite ease-in-out;
}

.indicator-core {
    position: absolute;
    inset: 1px;
    background: var(--orange-primary);
    border-radius: 50%;
}

.intel-caption {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-dim);
}

.combo-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}

.intel-meta-badges {
    display: flex;
    gap: 6px;
}

.badge-hardware, .badge-corpus, .badge-poly {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-default);
}

.badge-hardware { background: var(--orange-soft); color: var(--orange-primary); border-color: rgba(255, 107, 0, 0.3); }
.badge-corpus { background: var(--amber-soft); color: var(--amber-gold); border-color: rgba(255, 170, 0, 0.3); }
.badge-poly { background: rgba(16, 185, 129, 0.08); color: var(--accent-emerald); border-color: rgba(16, 185, 129, 0.25); }

.reasons-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reasons-list li {
    font-size: 12.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-bullet {
    color: var(--orange-primary);
    font-size: 12px;
}

/* ==========================================================================
   3-PART HARDWARE MIXING CONSOLE (R1, R2, R3)
   ========================================================================== */
.console-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.console-grid.single-mode-active {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 1080px) {
    .console-grid {
        grid-template-columns: 1fr;
    }
}

.channel-card {
    background: linear-gradient(180deg, #13161f 0%, #0c0e14 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all var(--ease-snappy);
}

.channel-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 44px -4px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Precision Anodized Chassis Edge Chamfer (Replaces the AI neon line) */
.card-glow-edge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0.9;
}

.channel-r1 .card-glow-edge { background: var(--part-r1); box-shadow: 0 0 8px rgba(255, 107, 0, 0.6); }
.channel-r2 .card-glow-edge { background: var(--part-r2); box-shadow: 0 0 8px rgba(255, 170, 0, 0.6); }
.channel-r3 .card-glow-edge { background: var(--part-r3); box-shadow: 0 0 8px rgba(255, 59, 48, 0.6); }

/* Channel Top Header (Hardware Mixer Channel Header) */
.channel-top {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.part-identity {
    display: flex;
    align-items: center;
    gap: 9px;
}

.part-number {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.channel-r1 .part-number { 
    background: rgba(255, 107, 0, 0.12); 
    color: var(--part-r1); 
    border-color: rgba(255, 107, 0, 0.3);
}
.channel-r2 .part-number { 
    background: rgba(255, 170, 0, 0.12); 
    color: var(--part-r2); 
    border-color: rgba(255, 170, 0, 0.3);
}
.channel-r3 .part-number { 
    background: rgba(255, 59, 48, 0.12); 
    color: var(--part-r3); 
    border-color: rgba(255, 59, 48, 0.3);
}

.part-desc {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.part-role {
    font-size: 11.5px;
    font-weight: 700;
    color: #f0f2f7;
    letter-spacing: -0.1px;
}

.part-target {
    font-size: 9.5px;
    color: #7b8192;
    letter-spacing: 0.2px;
}

.btn-channel-state {
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--ease-snappy);
}

.btn-channel-state.active {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-channel-state.muted {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Voice Identity Plate (Recessed Brushed Aluminum LCD Bezel) */
.voice-plate {
    background: linear-gradient(180deg, #10121a 0%, #090b10 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    margin: 12px 14px 2px 14px;
    padding: 11px 13px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 5px rgba(0, 0, 0, 0.5);
}

.plate-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.voice-display-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
}

.voice-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    flex-shrink: 0;
    border: 1px solid;
}

.channel-r1 .voice-tag {
    background: rgba(255, 107, 0, 0.1);
    color: #ff9d4d;
    border-color: rgba(255, 107, 0, 0.35);
}
.channel-r2 .voice-tag {
    background: rgba(255, 170, 0, 0.1);
    color: #ffc94d;
    border-color: rgba(255, 170, 0, 0.35);
}
.channel-r3 .voice-tag {
    background: rgba(255, 59, 48, 0.1);
    color: #ff786e;
    border-color: rgba(255, 59, 48, 0.35);
}

/* Hardware Specification Row (Replaces raw monospace code) */
.plate-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item {
    font-size: 10.5px;
    font-weight: 500;
    color: #8c93a4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.1px;
}

.meta-dsp {
    color: #ffc44d;
    font-weight: 600;
}

.btn-swap-wave {
    background: linear-gradient(180deg, #1d212c 0%, #13161f 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b5bbca;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: all var(--ease-snappy);
}

.btn-swap-wave:hover {
    background: linear-gradient(180deg, #242936 0%, #181b26 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
}

/* Hardware Controls Body */
.channel-controls {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.control-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.control-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.control-cell.full-width {
    width: 100%;
}

.cell-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cell-title {
    font-size: 9.5px;
    font-weight: 700;
    color: #828898;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Calibrated Digital LCD Parameter Readout */
.cell-value {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    color: #e5e8f2;
    background: #06070a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 5px;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.85);
    letter-spacing: -0.2px;
    line-height: 1.4;
}

/* ==========================================================================
   AUTHENTIC YAMAHA HARDWARE STUDIO FADERS (Replaces AI Neon Balls)
   ========================================================================== */
.studio-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #07080c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.03);
    margin: 5px 0;
    position: relative;
    transition: border-color 0.15s ease;
}

.studio-slider:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

/* Precision Rectangular Studio Fader Cap with Fine Tactile Grip Ridges */
.studio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 22px;
    border-radius: 2px;
    background: 
        repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(0, 0, 0, 0.35) 2px, rgba(0, 0, 0, 0.35) 3px),
        linear-gradient(180deg, #383d4c 0%, #222530 46%, #14161d 50%, #1f222b 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.6);
    cursor: grab;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.studio-slider::-webkit-slider-thumb:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.studio-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(0.97);
}

/* Firefox Support for Hardware Fader Cap */
.studio-slider::-moz-range-thumb {
    width: 16px;
    height: 22px;
    border-radius: 2px;
    background: 
        repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(0, 0, 0, 0.35) 2px, rgba(0, 0, 0, 0.35) 3px),
        linear-gradient(180deg, #383d4c 0%, #222530 46%, #14161d 50%, #1f222b 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    cursor: grab;
}

.studio-slider::-moz-range-track {
    height: 6px;
    background: #07080c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.9);
}

/* Channel Part-Specific Precision LED Slit Line (Hardware Indication Notch) */
.slider-r1::-webkit-slider-thumb {
    background: 
        linear-gradient(90deg, transparent 7px, #ff6b00 7px, #ff8533 8px, #ff6b00 9px, transparent 9px),
        repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(0, 0, 0, 0.35) 2px, rgba(0, 0, 0, 0.35) 3px),
        linear-gradient(180deg, #383d4c 0%, #222530 46%, #14161d 50%, #1f222b 100%);
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.85), 0 0 6px rgba(255, 107, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.slider-r2::-webkit-slider-thumb {
    background: 
        linear-gradient(90deg, transparent 7px, #ffaa00 7px, #ffc033 8px, #ffaa00 9px, transparent 9px),
        repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(0, 0, 0, 0.35) 2px, rgba(0, 0, 0, 0.35) 3px),
        linear-gradient(180deg, #383d4c 0%, #222530 46%, #14161d 50%, #1f222b 100%);
    border-color: rgba(255, 170, 0, 0.5);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.85), 0 0 6px rgba(255, 170, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.slider-r3::-webkit-slider-thumb {
    background: 
        linear-gradient(90deg, transparent 7px, #ff3b30 7px, #ff6157 8px, #ff3b30 9px, transparent 9px),
        repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(0, 0, 0, 0.35) 2px, rgba(0, 0, 0, 0.35) 3px),
        linear-gradient(180deg, #383d4c 0%, #222530 46%, #14161d 50%, #1f222b 100%);
    border-color: rgba(255, 59, 48, 0.5);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.85), 0 0 6px rgba(255, 59, 48, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Yamaha Hardware Octave Stepper (PSR-SX / Genos Hardware Aesthetic) */
.sr-hidden-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.octave-control-cell {
    position: relative;
}

/* Stepper Housing Frame (Recessed Hardware Bay) */
.yamaha-octave-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 28px;
    background: #090b10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 2px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7);
    margin-top: 2px;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    transition: border-color var(--ease-snappy), box-shadow var(--ease-snappy);
}

.yamaha-octave-stepper:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Tactile Yamaha Hardware Stepper Keys ([-] and [+]) */
.oct-step-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 22px;
    background: linear-gradient(180deg, #1e222e 0%, #131620 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #cbd1de;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.12s ease;
    flex-shrink: 0;
    padding: 0;
}

.oct-step-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #282f42 0%, #191e2b 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
}

.oct-step-btn:active:not(:disabled) {
    transform: translateY(1px);
    background: #11131a;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.oct-step-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

/* Channel-Specific Stepper Key Accents on Hover */
.channel-r1 .oct-step-btn:hover:not(:disabled) {
    border-color: rgba(255, 107, 0, 0.5);
    color: #ff9d4d;
}
.channel-r2 .oct-step-btn:hover:not(:disabled) {
    border-color: rgba(255, 170, 0, 0.5);
    color: #ffc94d;
}
.channel-r3 .oct-step-btn:hover:not(:disabled) {
    border-color: rgba(255, 59, 48, 0.5);
    color: #ff786e;
}

/* Central Digital LCD Screen Readout */
.oct-stepper-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 22px;
    margin: 0 3px;
    padding: 0 6px;
    background: #06070a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.85);
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 0;
}

.oct-stepper-display:hover {
    background: #0a0c12;
    border-color: rgba(255, 255, 255, 0.14);
}

.oct-stepper-display:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.25);
}

.oct-display-led {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.oct-display-text {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    color: #d8dbe4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
    transition: color 0.15s ease;
}

.oct-display-st {
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 700;
    color: #727888;
    background: rgba(255, 255, 255, 0.04);
    padding: 1px 4px;
    border-radius: 2px;
    flex-shrink: 0;
    letter-spacing: -0.2px;
    transition: all 0.15s ease;
}

/* Shifted Display Illuminations (Channel signature color) */
.channel-r1 .yamaha-octave-stepper.is-shifted {
    border-color: rgba(255, 107, 0, 0.35);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 107, 0, 0.12);
}
.channel-r1 .yamaha-octave-stepper.is-shifted .oct-display-led {
    background: var(--part-r1);
    box-shadow: 0 0 6px var(--part-r1);
}
.channel-r1 .yamaha-octave-stepper.is-shifted .oct-display-text {
    color: #ff9d4d;
}
.channel-r1 .yamaha-octave-stepper.is-shifted .oct-display-st {
    background: rgba(255, 107, 0, 0.2);
    color: #ffb780;
}
.channel-r1 .oct-val-badge.is-shifted {
    color: var(--part-r1);
    background: rgba(255, 107, 0, 0.12);
}

.channel-r2 .yamaha-octave-stepper.is-shifted {
    border-color: rgba(255, 170, 0, 0.35);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 170, 0, 0.12);
}
.channel-r2 .yamaha-octave-stepper.is-shifted .oct-display-led {
    background: var(--part-r2);
    box-shadow: 0 0 6px var(--part-r2);
}
.channel-r2 .yamaha-octave-stepper.is-shifted .oct-display-text {
    color: #ffc94d;
}
.channel-r2 .yamaha-octave-stepper.is-shifted .oct-display-st {
    background: rgba(255, 170, 0, 0.2);
    color: #ffd880;
}
.channel-r2 .oct-val-badge.is-shifted {
    color: var(--part-r2);
    background: rgba(255, 170, 0, 0.12);
}

.channel-r3 .yamaha-octave-stepper.is-shifted {
    border-color: rgba(255, 59, 48, 0.35);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 59, 48, 0.12);
}
.channel-r3 .yamaha-octave-stepper.is-shifted .oct-display-led {
    background: var(--part-r3);
    box-shadow: 0 0 6px var(--part-r3);
}
.channel-r3 .yamaha-octave-stepper.is-shifted .oct-display-text {
    color: #ff786e;
}
.channel-r3 .yamaha-octave-stepper.is-shifted .oct-display-st {
    background: rgba(255, 59, 48, 0.2);
    color: #ff9b94;
}
.channel-r3 .oct-val-badge.is-shifted {
    color: var(--part-r3);
    background: rgba(255, 59, 48, 0.12);
}

/* Fallback .studio-select styling if ever rendered directly */
.studio-select:not(.sr-hidden-select) {
    appearance: none;
    -webkit-appearance: none;
    background: #0d0f14 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="%23ff6b00" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 8px center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f0f3;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 22px 4px 8px;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    font-family: inherit;
    margin-top: 2px;
    transition: all var(--ease-snappy);
}

/* Channel Strip Bottom */
.channel-bottom {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.btn-channel-download {
    width: 100%;
    background: linear-gradient(180deg, #181b25 0%, #0f1118 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e8f2;
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all var(--ease-snappy);
}

.btn-channel-download:hover {
    background: linear-gradient(180deg, #222735 0%, #151822 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-channel-download:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.channel-r1 .btn-channel-download:hover {
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #ff9d4d;
}

.channel-r2 .btn-channel-download:hover {
    border-color: rgba(255, 170, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #ffc94d;
}

.channel-r3 .btn-channel-download:hover {
    border-color: rgba(255, 59, 48, 0.5);
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #ff786e;
}

/* ==========================================================================
   MASTER EXPORT SUITE
   ========================================================================== */
.master-export-suite {
    background: linear-gradient(180deg, var(--surface-card) 0%, var(--surface-panel) 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lift);
}

.export-description {
    display: flex;
    align-items: center;
    gap: 14px;
}

.export-icon-frame {
    width: 44px;
    height: 44px;
    background: var(--surface-sub);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-primary);
}

.export-headline {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}

.export-subline {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.mono-tag {
    font-family: var(--font-mono);
    color: var(--orange-primary);
    background: var(--orange-soft);
    padding: 1px 4px;
    border-radius: var(--radius-xs);
}

.export-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.model-select-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.model-select-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.model-select-dropdown {
    background: #14171d;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all var(--ease-snappy);
    font-family: inherit;
}

.model-select-dropdown:hover, .model-select-dropdown:focus {
    border-color: var(--orange-primary);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}


.btn-export-primary {
    background: linear-gradient(135deg, #ff6b00, #e05300);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.4);
    transition: all var(--ease-snappy);
}

.btn-export-primary:hover {
    background: linear-gradient(135deg, #ff851a, #ff6b00);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(255, 107, 0, 0.6);
}

.btn-export-secondary {
    background: linear-gradient(135deg, #ffaa00, #d98800);
    color: #000;
    border: none;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(255, 170, 0, 0.3);
    transition: all var(--ease-snappy);
}

.btn-export-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 170, 0, 0.5);
}

/* ==========================================================================
   FACTORY WAVEFORM BROWSER MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-dialog {
    background: var(--surface-card);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 660px;
    height: 72vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 107, 0, 0.1);
    overflow: hidden;
    animation: dialogPop var(--ease-smooth);
}

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

.modal-dialog-header {
    padding: 16px 24px;
    background: var(--surface-panel);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-sub {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-dim);
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.btn-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color var(--ease-snappy);
}

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

.modal-filter-strip {
    padding: 12px 24px;
    display: flex;
    gap: 10px;
    background: var(--surface-panel);
    border-bottom: 1px solid var(--border-subtle);
}

.search-input-box {
    flex: 1;
    background: var(--surface-bg);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.modal-search-field {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.modal-cat-select {
    appearance: none;
    -webkit-appearance: none;
    background: #0d0f14 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23ff6b00" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 10px center;
    border: 1px solid var(--border-default);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 30px 8px 12px;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--ease-snappy);
}

.modal-cat-select:hover {
    border-color: rgba(255, 107, 0, 0.4);
    background-color: #12151d;
}

.modal-cat-select:focus {
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

.modal-cat-select option {
    background: #111319;
    color: #fff;
    padding: 6px;
}

.modal-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.voice-item-row {
    background: var(--surface-sub);
    border: 1px solid var(--border-subtle);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--ease-snappy);
}

.voice-item-row:hover {
    background: var(--surface-control);
    border-color: rgba(255, 107, 0, 0.3);
    transform: translateX(2px);
}

.voice-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.voice-row-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.voice-row-cat {
    background: var(--orange-soft);
    color: var(--orange-primary);
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--radius-xs);
    text-transform: uppercase;
}

.voice-row-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-dim);
}

.btn-select-voice {
    background: var(--orange-primary);
    color: #000;
    border: none;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ease-snappy);
}

.btn-select-voice:hover {
    background: var(--orange-bright);
    transform: scale(1.04);
}

/* ==========================================================================
   APP TOAST
   ========================================================================== */
.app-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--surface-sub);
    border: 1px solid var(--orange-primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(255, 107, 0, 0.2);
    opacity: 0;
    transform: translateY(12px);
    transition: all var(--ease-smooth);
    z-index: 2000;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE / TABLET)
   ========================================================================== */
@media (max-width: 860px) {
    .studio-header {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 16px;
    }

    .header-left {
        justify-content: space-between;
        width: 100%;
    }

    .header-center {
        justify-content: center;
        width: 100%;
    }

    .mode-pills {
        width: 100%;
        display: flex;
    }

    .mode-tab {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 11.5px;
    }

    .header-right {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
        width: 100%;
    }

    .btn-guide-header,
    .btn-about-header {
        margin-right: 0;
        flex: 1;
        justify-content: center;
        padding: 7px 10px;
        font-size: 11px;
    }

    .quota-badge-header {
        width: 100%;
        justify-content: center;
        padding: 6px 12px;
    }

    .studio-workspace {
        padding: 12px;
    }

    .command-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .command-actions {
        width: 100%;
        justify-content: stretch;
    }

    .btn-alchemist-trigger {
        width: 100%;
        justify-content: center;
    }

    .master-export-suite {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 16px;
    }

    .export-description {
        align-items: flex-start;
    }

    .export-cta-group {
        width: 100%;
        flex-direction: column;
    }

    .btn-export-primary, .btn-export-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Modal dialogs full-fit on phones */
    .modal-dialog,
    .guide-modal-dialog,
    .about-modal-dialog {
        width: 95%;
        max-width: 95%;
        height: 88vh;
        border-radius: var(--radius-lg);
    }

    .modal-dialog-header {
        padding: 12px 16px;
    }

    .guide-scroll-area {
        padding: 14px 16px;
    }

    .modal-filter-strip {
        flex-direction: column;
        padding: 10px 16px;
    }

    .modal-cat-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 15.5px;
    }

    .brand-subline {
        font-size: 10px;
    }

    .channel-header {
        padding: 12px 14px;
    }

    .rotary-knob-container {
        gap: 10px;
    }

    .recipe-meta-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ==========================================================================
   SPLASH SCREEN & LOADING ANIMATION
   ========================================================================== */
.app-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, #0e111a 0%, #050507 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.app-splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 480px;
    padding: 24px;
}

.splash-logo-frame {
    margin-bottom: 28px;
    animation: splashFloat 3s ease-in-out infinite alternate;
}

.splash-logo-img {
    max-width: 320px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(0, 162, 255, 0.5));
}

@keyframes splashFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

.splash-pulse-bar {
    width: 260px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.splash-pulse-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(90deg, #00b0ff, #ff6b00);
    border-radius: var(--radius-pill);
    box-shadow: 0 0 12px #ff6b00;
    animation: splashProgress 1.6s ease-in-out infinite alternate;
}

@keyframes splashProgress {
    0% { left: 0%; width: 25%; }
    100% { left: 70%; width: 30%; }
}

.splash-status-text {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #fff;
    font-family: var(--font-mono);
    margin-bottom: 6px;
}

.splash-sub-status {
    font-size: 11px;
    color: var(--text-dim);
}

/* ==========================================================================
   PROPRIETARY LICENSE & TERMS MODAL
   ========================================================================== */
.license-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 5, 8, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.3s var(--ease-snappy);
}

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

.license-dialog {
    background: #0d0f15;
    border: 1px solid rgba(0, 176, 255, 0.35);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 680px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 176, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.license-glow-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00b0ff, #ff6b00);
}

.license-header {
    padding: 24px 28px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.015);
}

.license-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 10px rgba(0, 176, 255, 0.4));
}

.license-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.license-badge-secure {
    background: rgba(0, 176, 255, 0.12);
    border: 1px solid rgba(0, 176, 255, 0.4);
    color: #00b0ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.license-version-tag {
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.35);
    color: var(--orange-primary);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    font-family: var(--font-mono);
}

.license-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.license-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 500px;
}

.license-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #090a0f;
    font-size: 12.5px;
    line-height: 1.6;
    color: #b3b8c5;
}

.license-clause h4 {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.clause-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.license-footer {
    padding: 18px 28px;
    background: #0d0f15;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.license-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.license-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    background: #151821;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ease-snappy);
}

.license-checkbox-container input:checked ~ .custom-checkbox {
    background: #00b0ff;
    border-color: #00b0ff;
    box-shadow: 0 0 10px rgba(0, 176, 255, 0.5);
}

.license-checkbox-container input:checked ~ .custom-checkbox::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-label {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.license-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-license-decline {
    background: transparent;
    border: 1px solid var(--border-default);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--ease-snappy);
}

.btn-license-decline:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-license-accept {
    background: linear-gradient(135deg, #00b0ff, #0088cc);
    border: none;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 176, 255, 0.3);
    transition: all var(--ease-snappy);
}

.btn-license-accept:hover:not(:disabled) {
    background: linear-gradient(135deg, #26c0ff, #0099e6);
    box-shadow: 0 6px 22px rgba(0, 176, 255, 0.5);
    transform: translateY(-1px);
}

.btn-license-accept:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* -------------------------------------------------------------
   YAMAHA KEYBOARD USB GUIDE MODAL & HEADER BUTTON
------------------------------------------------------------- */
.btn-guide-header {
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.35);
    color: var(--orange-primary);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
    transition: all var(--ease-snappy);
}

.btn-guide-header:hover {
    background: rgba(255, 107, 0, 0.22);
    border-color: var(--orange-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

.guide-modal-dialog {
    max-width: 720px;
    height: 82vh;
}

.guide-scroll-area {
    padding: 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #09090d;
}

.guide-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.guide-card-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-usb {
    background: rgba(0, 176, 255, 0.15);
    color: #00b0ff;
    border: 1px solid rgba(0, 176, 255, 0.3);
}

.icon-filter {
    background: rgba(255, 107, 0, 0.15);
    color: var(--orange-primary);
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.icon-star {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.guide-card-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.guide-pill-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-card-body p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.guide-callout {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    line-height: 1.5;
}

.callout-warning {
    background: rgba(255, 170, 0, 0.08);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: #ffbb33;
}

.callout-info {
    background: rgba(0, 176, 255, 0.08);
    border: 1px solid rgba(0, 176, 255, 0.3);
    color: #66ccff;
}

.callout-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.guide-callout code {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: var(--font-mono);
    color: #fff;
}

.guide-list {
    margin: 8px 0 12px 18px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.guide-list li {
    margin-bottom: 4px;
}

.guide-list strong {
    color: #fff;
}

.guide-ordered-steps {
    margin: 8px 0 12px 18px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.guide-ordered-steps li {
    margin-bottom: 4px;
}

.guide-ordered-steps strong {
    color: #fff;
}

/* -------------------------------------------------------------
   ABOUT MATTHEW MEGAVEL BUTTON & MODAL
------------------------------------------------------------- */
.btn-about-header {
    background: rgba(0, 176, 255, 0.12);
    border: 1px solid rgba(0, 176, 255, 0.35);
    color: #00b0ff;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--ease-snappy);
}

.btn-about-header:hover {
    background: rgba(0, 176, 255, 0.22);
    border-color: #00b0ff;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 176, 255, 0.3);
}

.about-modal-dialog {
    max-width: 660px;
    height: auto;
    max-height: 88vh;
}

.about-modal-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #09090d;
}

.about-profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 6px;
}

.about-avatar-crest {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.25), rgba(0, 176, 255, 0.25));
    border: 2px solid rgba(255, 107, 0, 0.6);
    box-shadow: 0 0 24px rgba(255, 107, 0, 0.3), inset 0 0 12px rgba(0, 176, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-initials {
    font-size: 22px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #fff;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, var(--orange-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-profile-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.about-name {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.4px;
    margin: 0;
}

.about-roles-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.about-role-pill {
    font-size: 10px;
    font-weight: 700;
    color: #ffaa55;
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.25);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-location {
    font-size: 11.5px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.about-bio-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.about-bio-text {
    font-size: 13.5px;
    line-height: 1.65;
    color: #d1d5db;
    margin: 0;
}

.about-bio-text strong {
    color: #fff;
    font-weight: 700;
}

.about-specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .about-specialties-grid {
        grid-template-columns: 1fr;
    }
}

.specialty-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.specialty-icon-svg {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(255, 107, 0, 0.1);
    color: var(--orange-primary);
    border: 1px solid rgba(255, 107, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.specialty-content h5 {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px 0;
}

.specialty-content p {
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 0;
}

.about-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .about-actions-grid {
        grid-template-columns: 1fr;
    }
}

.about-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    text-decoration: none;
    color: #fff;
    transition: all var(--ease-snappy);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.16), rgba(18, 140, 126, 0.1));
    border: 1px solid rgba(37, 211, 102, 0.45);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.28), rgba(18, 140, 126, 0.22));
    border-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.3);
}

.icon-whatsapp {
    background: #25d366;
    color: #fff;
}

/* Linktree Button */
.btn-linktree {
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.14), rgba(38, 208, 124, 0.1));
    border: 1px solid rgba(0, 176, 255, 0.4);
}

.btn-linktree:hover {
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.26), rgba(38, 208, 124, 0.2));
    border-color: #00b0ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 176, 255, 0.3);
}

.icon-linktree {
    background: #00b0ff;
    color: #070709;
}

.action-icon-frame {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-text-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.action-btn-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.action-btn-sub {
    font-size: 11px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-whatsapp .action-btn-sub {
    color: #25d366;
}

.btn-linktree .action-btn-sub {
    color: #00b0ff;
}

.action-arrow {
    color: var(--text-dim);
    transition: transform var(--ease-snappy), color var(--ease-snappy);
    flex-shrink: 0;
}

.about-action-btn:hover .action-arrow {
    color: #fff;
    transform: translateX(3px);
}

/* ==========================================================================
   QUOTA BADGE (HEADER)
   ========================================================================== */
.quota-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.25);
    font-size: 12px;
    font-weight: 600;
    color: var(--orange-bright);
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all var(--ease-snappy);
}

.quota-badge-header:hover {
    background: rgba(255, 107, 0, 0.15);
    border-color: var(--orange-primary);
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.25);
}

.quota-badge-header.quota-depleted {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.quota-bolt {
    font-size: 13px;
    line-height: 1;
}

/* ==========================================================================
   USER IDENTITY / LEAD CAPTURE MODAL
   ========================================================================== */
.auth-modal-dialog {
    max-width: 520px;
    height: auto;
    max-height: 90vh;
}

.auth-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #09090d;
}

.auth-intro-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 107, 0, 0.06);
    border: 1px solid rgba(255, 107, 0, 0.15);
}

.auth-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 170, 0, 0.2));
    border: 1px solid var(--orange-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-bright);
    flex-shrink: 0;
}

.auth-prompt-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.auth-prompt-sub {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.required-star {
    color: var(--orange-primary);
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrapper svg {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--ease-snappy);
}

.auth-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border-radius: var(--radius-md);
    background: #111318;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-family: var(--font-ui);
    outline: none;
    transition: all var(--ease-snappy);
}

.auth-input:focus {
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18);
    background: #151820;
}

.auth-input:focus + svg,
.auth-input-wrapper:focus-within svg {
    color: var(--orange-bright);
}

.auth-error-msg {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 12px;
    font-weight: 500;
}

.btn-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--orange-primary), #ff8800);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ease-snappy);
    box-shadow: 0 4px 18px rgba(255, 107, 0, 0.35);
}

.btn-auth-submit:hover {
    background: linear-gradient(135deg, #ff7a1a, #ffa033);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 107, 0, 0.5);
}

.auth-privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
}

/* ==========================================================================
   QUOTA LIMIT MODAL
   ========================================================================== */
.quota-modal-dialog {
    max-width: 540px;
    height: auto;
    max-height: 90vh;
}

.quota-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #09090d;
}

.quota-timer-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at center, rgba(255, 107, 0, 0.12) 0%, rgba(13, 14, 18, 0.8) 100%);
    border: 1px solid rgba(255, 107, 0, 0.25);
    box-shadow: inset 0 0 24px rgba(255, 107, 0, 0.1);
}

.quota-timer-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.quota-timer-countdown {
    font-size: 42px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #fff;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff, var(--orange-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 107, 0, 0.4);
}

.quota-timer-sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--orange-primary);
    font-family: var(--font-mono);
}

.quota-info-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quota-info-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.quota-info-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.quota-pro-banner {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(0, 176, 255, 0.08));
    border: 1px solid rgba(37, 211, 102, 0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quota-pro-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pro-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #25d366;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.quota-pro-header h5 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.quota-pro-banner p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.btn-quota-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    background: #25d366;
    color: #0b2212;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--ease-snappy);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-quota-whatsapp:hover {
    background: #2ee672;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}



