:root {
    --bg-color: #050508;
    --console-body: #141416;
    --console-surface: #0f0f11;
    --console-trim: #222226;

    --screen-bg: #050505;
    --screen-glow: rgba(0, 150, 255, 0.15);

    --accent: #00fff2;
    /* Electric Cyan */
    --primary: #2979ff;
    /* Brighter Blue */
    --secondary: #ff0055;
    /* Deep Pink */

    --led-on: #00ff00;
    --led-off: #1a331a;

    --text-main: #e0e0e0;
    --text-muted: #666;

    --font-main: 'Outfit', sans-serif;
    --font-mono: 'Consolas', 'Monaco', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    /* Prevent text selection on console */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);

/* =========================================
   INSTANT TOOLTIP SYSTEM ([data-tooltip])
   Appears immediately on hover — no delay
   ========================================= */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(8, 12, 20, 0.97);
    color: #e0e8ff;
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    padding: 6px 11px;
    border-radius: 5px;
    border: 1px solid rgba(0, 229, 255, 0.35);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 8px rgba(0, 229, 255, 0.12);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease, transform 0.12s ease;
    z-index: 9999;
    letter-spacing: 0.02em;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Gold-tinted tooltip for the features tab */
.view-tab[data-view="features"][data-tooltip]::after {
    border-color: rgba(245, 166, 35, 0.5);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 8px rgba(245, 166, 35, 0.2);
    color: #ffe0a0;
}


    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    overflow-y: auto;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(41, 121, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 85, 0.08), transparent 25%);
}

/* Background Ambience */
.background-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
}

.container {
    width: 100%;
    max-width: 95vw;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dot {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================================
   CONSOLE CHASSIS & STRUCTURE
   ========================================= */
.mixer-deck {
    background: #000;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    width: 100%;
}

.console-chassis {
    background: linear-gradient(180deg, var(--console-trim) 0%, var(--console-body) 100%);
    border-radius: 8px;
    padding: 2px;
    /* Gap for chassis lines */
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

/* Screws */
.screw {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #555, #222);
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.screw::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 1px;
    background: #111;
}

.screw::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 6px;
    height: 1px;
    background: #111;
}

.top-left {
    top: 8px;
    left: 8px;
}

.top-right {
    top: 8px;
    right: 8px;
}

.bottom-left {
    bottom: 8px;
    left: 8px;
}

.bottom-right {
    bottom: 8px;
    right: 8px;
}

/* Top Bar */
.console-top-bar {
    background: #111;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 2px solid #000;
    border-radius: 6px 6px 0 0;
}

.brand-logo {
    font-family: var(--font-main);
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.model-number {
    color: var(--accent);
    font-weight: 300;
    font-size: 0.9rem;
    margin-left: 5px;
}

.system-status {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: #666;
    font-family: var(--font-mono);
}

.status-led {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--led-off);
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.status-led.active {
    background: var(--led-on);
    box-shadow: 0 0 5px var(--led-on);
}

/* =========================================
   MAIN SCREEN SECTION
   ========================================= */
.main-screen-section {
    background: #080808;
    padding: 1rem;
    border-bottom: 2px solid #000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.screen-bezel {
    background: #111113;
    padding: 12px;
    border-radius: 6px;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.9),
        0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
}

.touchscreen-display {
    background: var(--screen-bg);
    min-height: 590px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Scanline effect */
.touchscreen-display::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

.screen-header-bar {
    height: 30px;
    background: #111;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.view-tabs {
    display: flex;
    gap: 2px;
    height: 100%;
}

.view-tab {
    background: #222;
    border: none;
    color: #888;
    padding: 0 15px;
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    height: 100%;
    transition: all 0.2s;
}

.view-tab.active {
    background: var(--accent);
    color: #000;
}

/* FEATURES tab — always distinctive */
.view-tab[data-view="features"] {
    background: linear-gradient(135deg, #2a1a00, #1a1200);
    color: #f5a623;
    border-bottom: 2px solid #f5a623;
    position: relative;
    text-shadow: 0 0 8px rgba(245, 166, 35, 0.6);
    animation: features-tab-pulse 2.8s ease-in-out infinite;
}

.view-tab[data-view="features"]:hover {
    background: linear-gradient(135deg, #3d2500, #251a00);
    color: #ffc94d;
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.4);
}

.view-tab[data-view="features"].active {
    background: linear-gradient(135deg, #f5a623, #e07b00);
    color: #000;
    border-bottom: 2px solid #ffcc66;
    box-shadow: 0 0 18px rgba(245, 166, 35, 0.7), inset 0 1px 0 rgba(255,255,255,0.2);
    text-shadow: none;
    animation: none;
}

@keyframes features-tab-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(245, 166, 35, 0.2); }
    50%       { box-shadow: 0 0 10px rgba(245, 166, 35, 0.5), 0 0 4px rgba(245, 166, 35, 0.3); }
}

.clock-display {
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.screen-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    gap: 8px;
    overflow: hidden;
}

/* Decks container not strictly needed if we revert,
   but keeping it neutral if it stays in HTML */
.dual-deck-container {
    display: flex;
    flex: 1;
    gap: 10px;
    width: 100%;
}


/* View Sections (Tab Content) */
.view-section {
    display: none;
    flex: 1;
    width: 100%;
    height: 100%;
}

.view-section.active {
    display: flex;
    flex-direction: column;
}

#view-features {
    overflow: hidden;
    flex: 1;
    min-height: 0;
    height: 100%;
    width: 100%;
}

#view-features.active {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

#features-iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 600px;
    border: none;
    background: #080c10;
    display: block;
}

/* Deck Transport (Transport controls within each deck) */
.deck-transport {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #0a0a0a;
    border-top: 1px solid #222;
}

.deck-transport .time-counter {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.3);
}

.deck-transport .transport-buttons {
    display: flex;
    gap: 5px;
}


.visualization-panel {
    flex: 1;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.panel-label {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.6rem;
    color: #444;
    font-family: var(--font-mono);
}

canvas {
    width: 100%;
    height: 100%;
}

.eq-readout,
.analysis-readout {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 5px;
    border-radius: 2px;
}

.eq-readout span {
    color: var(--accent);
}

.analysis-readout .readout-item {
    display: flex;
    gap: 5px;
}

.analysis-readout .label {
    color: #666;
}

.analysis-readout .value {
    color: var(--secondary);
}


/* Screen Encoders - Hardware Rack Strip */
.screen-encoders {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    align-items: center;
    justify-items: center;
    background: linear-gradient(180deg, #121216 0%, #0a0a0d 100%);
    border: 1px solid #25252b;
    border-radius: 6px;
    padding: 12px 10px;
    margin: 8px 0;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 20;
}

.encoder-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.encoder-label {
    font-size: 0.58rem;
    color: #8899aa;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    margin-top: 4px;
    text-align: center;
}


/* =========================================
   LOWER CONTROL SURFACE (Design Wide)
   ========================================= */
#lower-surface-wrapper {
    position: relative;
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
    background: #0d0e12;
    border: 1px solid #22252c;
    border-radius: 8px;
    padding: 12px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 6px 20px rgba(0, 0, 0, 0.5);
}

.lower-deck-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}

/* EQ Container */
.eq-display {
    background: #050609;
    border: 1px solid #1a2233;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
}

/* Wrapper for the 3 Fader Banks */
.lower-deck-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Specific flex basis for each section */
.lower-deck-grid>.fader-bank.left-bank {
    flex: 1.2;
}

.lower-deck-grid>.center-section {
    flex: 1;
}

.lower-deck-grid>.fader-bank.right-bank {
    flex: 0.6;
}


.pro-tag {
    position: absolute;
    top: -12px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 50;
    letter-spacing: 1px;
    border: 1px solid #fff;
}

.fader-bank {
    background: var(--console-surface);
    padding: 1rem;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.center-section {
    background: var(--console-surface);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Channel Strip */
.channel-strip {
    width: 120px;
    background: #151515;
    border: 1px solid #222;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    padding: 10px 5px;
    gap: 10px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.channel-strip:hover {
    border-color: #3a3a3a;
    box-shadow: inset 0 0 0 1px rgba(0, 255, 242, 0.08), 0 0 12px rgba(0, 0, 0, 0.5);
}

.master-strip {
    width: 110px;
    border-color: #333;
    background: #181818;
}

.strip-top-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #222;
}

.button-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 5px;
}

.strip-btn {
    width: 100%;
    height: 24px;
    border: none;
    border-radius: 2px;
    font-size: 0.6rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1), 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.1s;
}

.mute-btn {
    background: #331111;
    color: #ff5555;
    border: 1px solid #500;
}

.mute-btn.active {
    background: #ff0000;
    color: #fff;
    box-shadow: 0 0 10px #ff0000;
}

.solo-btn {
    background: #333311;
    color: #ffff55;
    border: 1px solid #550;
}

.solo-btn.active {
    background: #ffff00;
    color: #000;
    box-shadow: 0 0 10px #ffff00;
}

.select-btn {
    background: #111133;
    color: #5555ff;
    border: 1px solid #005;
}

.select-btn.active {
    background: #2962ff;
    color: #fff;
    box-shadow: 0 0 10px #2962ff;
}


/* Fader Area */
.fader-area {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 8px;
    height: 200px;
    position: relative;
    background: #111;
    border-radius: 4px;
    padding: 10px 0;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s;
}

/* Muted state — dims fader + meters */
.fader-area.muted {
    opacity: 0.25;
    pointer-events: none;
}

/* LED Meter Strip */
.led-meter-strip {
    width: 6px;
    display: flex;
    flex-direction: column-reverse;
    gap: 1px;
    background: #000;
    padding: 1px;
    border-radius: 2px;
}

.segment {
    flex: 1;
    background: #1a1a1a;
    opacity: 0.25;
    border-radius: 1px;
    transition: background 0.06s, opacity 0.06s, box-shadow 0.06s;
}

.segment.green.active {
    background: #00e676;
    opacity: 1;
    box-shadow: 0 0 5px #00e676, 0 0 10px rgba(0, 230, 118, 0.4);
}

.segment.yellow.active {
    background: #ffea00;
    opacity: 1;
    box-shadow: 0 0 5px #ffea00, 0 0 10px rgba(255, 234, 0, 0.4);
}

.segment.red.active {
    background: #ff1744;
    opacity: 1;
    box-shadow: 0 0 5px #ff1744, 0 0 10px rgba(255, 23, 68, 0.4);
}

/* Fader Track */
.fader-track {
    width: 30px;
    position: relative;
    display: flex;
    justify-content: center;
}

.fader-track::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #000;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
}

/* Unity mark (0 dB indicator at 75% from top, matching default value=75) */
.fader-track::after {
    content: '';
    position: absolute;
    top: 25%;
    /* 75 out of 100 = 75% travel from top = 25% from top */
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 2px;
    background: rgba(0, 255, 242, 0.35);
    border-radius: 1px;
    pointer-events: none;
}

/* Range Input Styling for Fader */
input[type=range].channel-fader {
    -webkit-appearance: none;
    appearance: none;
    width: 180px;
    height: 30px;
    background: transparent;
    transform: rotate(-90deg);
    transform-origin: center;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -15px;
    margin-top: -90px;
    cursor: pointer;
}

input[type=range].channel-fader:focus {
    outline: none;
}

/* Fader Track Background */
input[type=range].channel-fader::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #000, #222, #000);
    border: 1px solid #333;
    border-radius: 2px;
}

input[type=range].channel-fader::-moz-range-track {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #000, #222, #000);
    border: 1px solid #333;
    border-radius: 2px;
}

input[type=range].channel-fader::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 40px;
    width: 24px;
    background: linear-gradient(to right, #111, #444 20%, #222 50%, #444 80%, #111);
    border: 1px solid #000;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-top: -5px;
    /* Center on track */
    position: relative;
    z-index: 2;
}

/* Master Fader Cap Color */
input[type=range].master-fader::-webkit-slider-thumb {
    background: linear-gradient(to right, #300, #800 20%, #500 50%, #800 80%, #300);
}

/* Scribble Strip */
.scribble-strip {
    background: #000;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 4px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.scribble-strip:hover {
    border-color: var(--accent);
}

.strip-track-name {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #222;
    padding: 2px;
    margin-bottom: 2px;
}

.strip-track-info {
    font-size: 0.55rem;
    color: var(--accent);
}

.strip-color-bar {
    height: 4px;
    margin-top: 4px;
    border-radius: 2px;
    box-shadow: 0 0 5px currentColor;
}

.cyan {
    background: var(--accent);
    color: var(--accent);
}

.yellow {
    background: #ff0;
    color: #ff0;
}

.magenta {
    background: var(--secondary);
    color: var(--secondary);
}


/* =========================================
   CENTER SECTION (Transport & Soft Keys)
   ========================================= */
.transport-block {
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.time-counter {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
    background: #000;
    padding: 5px 15px;
    border-radius: 4px;
    border: 1px solid #333;
    width: 100%;
    text-align: center;
}

.transport-buttons {
    display: flex;
    gap: 5px;
    width: 100%;
}

.transport-btn {
    flex: 1;
    height: 40px;
    background: #222;
    border: 1px solid #000;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 0 #000;
    transition: all 0.1s;
}

.transport-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #000;
}

.transport-btn svg {
    fill: currentColor;
}

.record-btn {
    flex: 2;
    background: #300;
    color: #f55;
    font-weight: 700;
    font-size: 0.8rem;
    gap: 5px;
}

.record-dot {
    width: 10px;
    height: 10px;
    background: #f00;
    border-radius: 50%;
}

/* Soft Keys */
.soft-keys-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.soft-key-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.soft-key-label {
    font-size: 0.6rem;
    color: #666;
    font-family: var(--font-mono);
    padding-left: 5px;
}

.soft-key-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.presets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.soft-key {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #888;
    padding: 8px;
    font-size: 0.7rem;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.soft-key:hover {
    border-color: #555;
    color: #fff;
}

.soft-key.active {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    border-color: var(--accent);
}


/* =========================================
   KNOBS (Rotary Controls)
   ========================================= */
.knob-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.knob-unit.tiny {
    gap: 0;
}

.rotary-control {
    position: relative;
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.small-knob {
    width: 50px;
    height: 50px;
}

.tiny-knob {
    width: 36px;
    height: 36px;
}

.ring-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    stroke: #222;
}

.ring-val {
    transition: stroke-dashoffset 0.1s;
}

.knob-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at 30% 30%, #444, #111);
    border-radius: 50%;
    border: 1px solid #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.blue-cap {
    background: radial-gradient(circle at 30% 30%, #2962ff, #002277);
}

.knob-pointer {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30%;
    background: #fff;
    border-radius: 1px;
}

.tiny-knob.disabled {
    opacity: 0.3;
    cursor: default;
}

.knob-label {
    font-size: 0.6rem;
    color: #666;
    font-family: var(--font-mono);
}

/* Knob value tooltip shown on drag */
.knob-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.85);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 242, 0.3);
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
    transform: translate(-50%, -130%);
    opacity: 0;
    transition: opacity 0.1s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.knob-tooltip.visible {
    opacity: 1;
}

/* =========================================
   RESULT OVERLAY
   ========================================= */
.hidden {
    display: none !important;
}

#result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.result-modal {
    background: #111;
    border: 1px solid #333;
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.2);
    min-width: 400px;
}



.soft-key-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.presets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.soft-key {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #888;
    padding: 8px;
    font-size: 0.7rem;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.soft-key:hover {
    border-color: #555;
    color: #fff;
}

.soft-key.active {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    border-color: var(--accent);
}


/* =========================================
   KNOBS (Rotary Controls)
   ========================================= */
.knob-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.knob-unit.tiny {
    gap: 0;
}

.rotary-control {
    position: relative;
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.small-knob {
    width: 50px;
    height: 50px;
}

.tiny-knob {
    width: 36px;
    height: 36px;
}

.ring-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    stroke: #222;
}

.ring-val {
    transition: stroke-dashoffset 0.1s;
}

.knob-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at 30% 30%, #444, #111);
    border-radius: 50%;
    border: 1px solid #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.blue-cap {
    background: radial-gradient(circle at 30% 30%, #2962ff, #002277);
}

.knob-pointer {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30%;
    background: #fff;
    border-radius: 1px;
}

.tiny-knob.disabled {
    opacity: 0.3;
    cursor: default;
}

.knob-label {
    font-size: 0.6rem;
    color: #666;
    font-family: var(--font-mono);
}

/* =========================================
   RESULT OVERLAY
   ========================================= */
.hidden {
    display: none !important;
}

#result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.result-modal {
    background: #111;
    border: 1px solid #333;
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.2);
    min-width: 400px;
}

.result-modal h2 {
    color: var(--accent);
    font-family: var(--font-mono);
}

.download-btn {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid #333;
    background: #222;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.control-btn:hover {
    border-color: #555;
    color: #fff;
    transform: scale(1.05);
}

.play-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.master-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #448aff, var(--primary));
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border: 4px solid #1a2a4a;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.6),
        inset 0 2px 10px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(41, 121, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.master-btn:hover {
    background: #448aff;
    box-shadow: 0 0 50px rgba(41, 121, 255, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    border-color: #fff;
}

.master-btn.disabled {
    background: #222;
    color: #444;
    box-shadow: none;
    pointer-events: none;
    cursor: not-allowed;
}

/* Input Deck Styles */
.input-deck {
    border-color: #222;
}

.big-load-btn {
    background: transparent;
    border: 2px dashed #444;
    color: #666;
    width: 200px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.big-load-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 229, 255, 0.05);
}

.icon-plus {
    font-size: 2rem;
    font-weight: 300;
}

.btn-text {
    font-weight: 700;
    letter-spacing: 1px;
}

.sub-text {
    margin-top: 10px;
    font-size: 0.7rem;
    color: #444;
    font-family: var(--font-mono);
}

/* Loaded State */
.deck-header {
    width: 100%;
    height: 30px;
    background: #151515;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    padding: 0 10px;
    justify-content: space-between;
    z-index: 20;
}

.deck-label {
    font-size: 0.6rem;
    color: #666;
    font-weight: 700;
    background: #000;
    padding: 2px 6px;
    border-radius: 2px;
}

.track-name {
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.mini-btn {
    background: #333;
    border: none;
    color: #aaa;
    font-size: 0.6rem;
    padding: 4px 8px;
    border-radius: 2px;
    cursor: pointer;
}

.mini-btn:hover {
    background: #444;
    color: #fff;
}

.waveform-container {
    flex: 1;
    width: 100%;
    background: #050505;
    position: relative;
}

/* Output Deck Styles */
.output-deck {
    border-color: #222;
}

.placeholder-text {
    color: #333;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.save-btn {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

.playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #fff;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

/* =========================================
   DUAL DECK & LAYOUT RESTORATION
   ========================================= */

.dual-deck-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    padding: 0;
    gap: 0;
    background: #000;
    position: relative;
    /* Context for z-index */
}

.deck-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #080808;
    border-right: 2px solid #222;
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Lower than center controls */
}

.deck-panel:last-child {
    border-right: none;
}

/* Ensure states fill the panel */
.deck-state {
    width: 100%;
    height: 100%;
    display: none;
    /* hidden by default */
    flex-direction: column;
}

.deck-state.active {
    display: flex;
}

.center-controls {
    width: 140px;
    /* Increased from 80px to fit Master button */
    background: #111;
    border-right: 2px solid #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    position: relative;
    z-index: 100;
    /* Ensure it floats above decks */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    /* Depth separation */
}

/* =========================================
   PROCESSING VIEW (Noise Reduction)
   ========================================= */
.processing-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    gap: 1rem;
    padding: 1rem;
}

.proc-upload-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* EQ Display Container */
.eq-display {
    /* Flex child of control-surface-lower */
    background: linear-gradient(to bottom, #0a0a0a, #000);
    border: 3px solid #555;
    border-radius: 6px;
    height: 280px;
    position: relative;
    overflow: hidden;
    margin: 0 10px 25px 10px;

    /* Premium Bezel Effect */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5),
        0 0 0 1px #333,
        0 0 0 4px #1a1a1a,
        0 0 0 6px #444,
        0 15px 30px rgba(0, 0, 0, 0.9);
}

/* Inner Screen Glow */
.eq-display::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    /* Stronger inner shadow */
    z-index: 2;
    pointer-events: none;
}

#eq-graph {
    position: relative;
    z-index: 5;
    /* Above background/bezel effects */
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
    /* Subtle radial for depth */
}

/* Label overlay */
.eq-label-overlay {
    position: absolute;
    top: 5px;
    right: 10px;
    color: #444;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    z-index: 10;
    pointer-events: none;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.proc-visualizer {
    flex: 1;
    background: #050505;
    border: 1px solid #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-family: var(--font-mono);
    position: relative;
    overflow: hidden;
}

.proc-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: #111;
    padding: 1rem;
    border: 1px solid #222;
    border-radius: 4px;
}

#apply-nr-btn {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
}

#apply-nr-btn:hover {
    background: #ff3377;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.6);
}

#nr-track-section {
    display: none;
    background: #151515;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    margin-top: 10px;
}

#nr-track-section.active {
    display: block;
}

/* =========================================
   UPDATES
   ========================================= */
.presets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr !important;
    /* Force 3 columns */
}

/* =========================================
   DRAG & DROP OVERLAY
   ========================================= */
.deck-panel {
    position: relative;
    overflow: hidden;
}

.drag-drop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 255, 242, 0.07);
    border: 2px dashed var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.drag-drop-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.drag-drop-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px var(--accent);
}

.drag-icon {
    font-size: 2.5rem;
    animation: dragBounce 0.8s ease-in-out infinite alternate;
}

@keyframes dragBounce {
    from {
        transform: translateY(-6px);
    }

    to {
        transform: translateY(6px);
    }
}

/* =========================================
   PLATFORM LOUDNESS PRESETS
   ========================================= */
.platform-presets-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
}

.platform-btn {
    font-size: 0.6rem !important;
    padding: 4px 2px !important;
    border-color: #333 !important;
    color: #777 !important;
    transition: color 0.15s, border-color 0.15s, box-shadow 0.15s !important;
}

.platform-btn.active {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 8px rgba(0, 255, 242, 0.3) !important;
    background: rgba(0, 255, 242, 0.07) !important;
}

.platform-btn:hover {
    color: #aaa !important;
    border-color: #555 !important;
}

/* =========================================
   AUTO MASTER SECTION
   ========================================= */
.auto-master-section {
    padding: 10px 6px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auto-master-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(0, 255, 242, 0.3);
    border-radius: 6px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 12px rgba(0, 255, 242, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auto-master-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #0d3349, #0a1628);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.25);
    transform: translateY(-1px);
}

.auto-master-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.auto-master-btn.running {
    border-color: var(--primary);
    color: var(--primary);
    animation: pulseBorder 1s ease-in-out infinite;
}

@keyframes pulseBorder {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(41, 98, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(41, 98, 255, 0.5);
    }
}

/* =========================================
   PROGRESS BAR
   ========================================= */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-bar {
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #333;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--accent);
}

.progress-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #666;
    text-align: center;
    letter-spacing: 0.08em;
}

.deck-row-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* =========================================
   LUFS BADGE
   ========================================= */
.lufs-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 242, 0.2);
    border-radius: 4px;
    padding: 4px 10px;
    font-family: var(--font-mono);
}

.lufs-label {
    font-size: 0.55rem;
    color: #666;
    letter-spacing: 0.1em;
}

.lufs-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
    letter-spacing: -0.02em;
}

.lufs-sub {
    font-size: 0.6rem;
    color: #555;
}

/* =========================================
   A/B BYPASS TOGGLE
   ========================================= */
.ab-toggle-btn {
    min-width: 36px;
    height: 28px;
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 4px;
    color: #aaa;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ab-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 8px rgba(0, 255, 242, 0.2);
}

.ab-toggle-btn.showing-dry {
    border-color: #f90;
    color: #f90;
    box-shadow: 0 0 8px rgba(255, 153, 0, 0.3);
}

/* =========================================
   ONBOARDING MODAL
   ========================================= */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
}

.onboarding-modal {
    background: linear-gradient(145deg, #111, #080808);
    border: 1px solid #333;
    padding: 3rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 229, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.2rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: color 0.2s;
}

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

.onboarding-content {
    text-align: center;
    font-family: var(--font-main);
}

.onboarding-content h2 {
    color: var(--accent);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.onboarding-content p {
    color: #aaa;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.onboarding-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
    text-align: left;
}

.onboarding-content li {
    color: #ccc;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.4;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.onboarding-content li strong {
    color: var(--primary);
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.start-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    width: 100%;
}

.start-btn:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

/* =========================================
   FAST CUSTOM TOOLTIP
   ========================================= */
[data-fast-tooltip] {
    position: relative;
    cursor: help;
}

[data-fast-tooltip]::after {
    content: attr(data-fast-tooltip);
    position: absolute;
    bottom: 110%; /* Show above the element */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: max-content;
    max-width: 250px;
    background: rgba(10, 10, 10, 0.95);
    color: #eee;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #444;
    font-size: 0.75rem;
    font-family: var(--font-main);
    text-align: left;
    white-space: pre-wrap;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0.15s;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

[data-fast-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* =========================================
   DIAGNOSTIC HUD & SPECTRUM VISUALIZER
   ========================================= */
.diagnostic-hud-container {
    background: rgba(15, 18, 24, 0.92);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 2px;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.hud-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.hud-badge {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.62rem;
    font-family: var(--font-mono);
    padding: 2px 8px;
    border-radius: 4px;
}

.hud-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.hud-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #222;
    padding: 6px 8px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hud-label {
    font-size: 0.58rem;
    color: #888;
    font-family: var(--font-mono);
}

.hud-val {
    font-size: 0.82rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: #fff;
}

.hud-val.alert-warning {
    color: #ff3366;
}

.hud-val.alert-ok {
    color: #00ffaa;
}

.spectrum-visualizer-box {
    background: #080a0f;
    border: 1px solid #1a2233;
    border-radius: 4px;
    overflow: hidden;
    height: 75px;
}

#realtime-spectrum-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* =========================================
   STEM MIXER VIEW
   ========================================= */
.stems-container {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stems-header-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stem-action-btn {
    background: linear-gradient(135deg, #00e5ff, #0077ff);
    color: #000;
    border: none;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.stem-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
}

.stem-status-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #888;
}

.stem-strips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stem-strip {
    background: rgba(18, 22, 32, 0.9);
    border: 1px solid #2a3448;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stem-header {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
}

.stem-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.stem-fader {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
}

.stem-val {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #aaa;
}

.stem-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.stem-btn {
    flex: 1;
    background: #181d28;
    border: 1px solid #334155;
    color: #aaa;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 6px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.stem-btn:hover {
    border-color: var(--accent);
    color: #fff;
}

.stem-btn.active.mute-btn {
    background: #ff3366;
    color: #fff;
    border-color: #ff3366;
}

.stem-btn.active.solo-btn {
    background: #ffaa00;
    color: #000;
    border-color: #ffaa00;
}

/* =========================================
   NATIVE FEATURES CONSOLE & ROADMAP
   ========================================= */
.features-console-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    flex: 1;
    height: 100%;
    min-height: 450px;
    position: relative;
    z-index: 15;
}

.feat-hero {
    text-align: center;
    padding: 10px 0;
}

.feat-badge {
    display: inline-block;
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.feat-title {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.feat-accent {
    color: var(--accent);
}

.feat-sub {
    font-size: 0.85rem;
    color: #888;
    max-width: 600px;
    margin: 4px auto 0 auto;
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feat-card {
    background: rgba(18, 22, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}

.feat-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.feat-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feat-icon {
    font-size: 1.1rem;
}

.feat-card-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
}

.feat-tag.live {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #22c55e;
    font-size: 0.6rem;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.feat-card-desc {
    font-size: 0.78rem;
    color: #aaa;
    line-height: 1.35;
}

.roadmap-section {
    background: rgba(10, 12, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.roadmap-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.roadmap-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #222;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.roadmap-item.done {
    border-color: rgba(34, 197, 94, 0.4);
}

.roadmap-item.progress {
    border-color: rgba(0, 229, 255, 0.4);
}

.rm-version {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
}

.rm-name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.rm-desc {
    font-size: 0.72rem;
    color: #888;
}

/* =========================================
   PROTECTED CONTACT MODAL & BUTTON
   ========================================= */
.console-contact-btn {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.console-contact-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.contact-modal-box {
    max-width: 440px !important;
    padding: 2.2rem !important;
}

.protected-email-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 1.2rem 0;
    text-align: center;
}

.email-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #666;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.email-value-box {
    background: #080a0f;
    border: 1px dashed rgba(0, 229, 255, 0.4);
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.email-value-box:hover {
    border-color: var(--accent);
}

.email-value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
    user-select: none;
    -webkit-user-select: none;
}

.contact-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2) !important;
}