/* ==========================================================================
   CE6RCR EMCOM - CONSOLA HF 3 MODALIDADES FOTORREALISTAS INTERCAMBIABLES
   1) Clásica: Kenwood TS-520S + Trio-Kenwood DG-5 (Fotos Reales)
   2) Moderna: Icom IC-7300 (Foto Real + TFT Scope en Vivo)
   3) Digital: HDSDR (Interfaz Fiel Dual Waterfall/Spectrum + Rack DSP)
   ========================================================================== */

.hf-mode-switcher {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(180deg, #0b1222 0%, #060b16 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hf-mode-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hf-skin-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #94a3b8;
    background: #111827;
    border: 1px solid #293548;
    cursor: pointer;
    transition: all 0.18s ease;
}

.hf-skin-btn:hover { color: #f8fafc; border-color: #38bdf8; background: #17233a; }
.hf-skin-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: #7dd3fc;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.hf-stream-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    background: #0f172a;
    border: 1px solid #334155;
    color: #94a3b8;
}
.hf-stream-pill.live {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #6ee7b7;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}
.hf-stream-pill.error {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    color: #fcd34d;
}

.hf-rig-panel { display: none; width: 100%; margin-bottom: 14px; user-select: none; }
.hf-rig-panel.active { display: block; animation: hfFadeIn 0.2s ease; }
@keyframes hfFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Botón hitbox genérico sobre fotos reales */
.rig-photo-hitbox {
    position: absolute;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.15s ease;
    outline: none;
}
.rig-knob-cap-img {
    display: block;
    border-radius: 50%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.rig-photo-hitbox:hover {
    border-color: rgba(56, 189, 248, 0.78);
    background: rgba(56, 189, 248, 0.14);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}
.rig-photo-hitbox.active-glow {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.6);
}

.rig-dial-hitbox {
    position: absolute;
    border-radius: 50%;
    cursor: grab;
    z-index: 22;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    transition: box-shadow 0.18s ease;
}
.rig-dial-hitbox:hover {
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.72), 0 0 20px rgba(56, 189, 248, 0.35);
}
.rig-dial-hitbox:active { cursor: grabbing; }
.rig-dial-wheel-img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

/* ==========================================================================
   MODALIDAD 1: CLÁSICA - KENWOOD TS-520S + TRIO DG-5 (PNG TRANSPARENTE)
   ========================================================================== */
.ts520-photo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px 6px 10px;
    background: radial-gradient(ellipse at 50% 45%, rgba(30, 41, 59, 0.36) 0%, rgba(2, 6, 23, 0) 72%);
    border-radius: 16px;
}

/* Unidad Real Trio-Kenwood DG-5 (898x249) proporcionada sobre TS-520S */
.dg5-photo-rig {
    position: relative;
    width: 100%;
    max-width: 390px;
    aspect-ratio: 898 / 249;
    background-color: transparent;
    background-image: url('dg5_front.png?v=20261111e');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin-bottom: -14px;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.85));
    z-index: 25;
}

.dg5-led-overlay {
    position: absolute;
    left: 14.8%;
    top: 23.8%;
    width: 46.3%;
    height: 30.8%;
    background: radial-gradient(ellipse at center, #1b0404 0%, #0a0101 100%);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 3%;
    pointer-events: none;
}

.dg5-led-digits {
    font-family: 'Share Tech Mono', 'Consolas', monospace;
    font-size: clamp(14px, 2.25vw, 28px);
    font-weight: 900;
    color: #ff2e17;
    letter-spacing: 0.12em;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 46, 23, 0.9), 0 0 22px rgba(255, 46, 23, 0.45);
}

.dg5-dh-led {
    position: absolute;
    left: 8.6%;
    top: 41.2%;
    width: 1.5%;
    height: 5.2%;
    border-radius: 50%;
    background: #3b0a0a;
    pointer-events: none;
}
.dg5-dh-led.on {
    background: #ff2e17;
    box-shadow: 0 0 10px #ff2e17;
}

/* Chasis Real Kenwood TS-520S (644x310) sin bordes blancos */
.ts520-photo-rig {
    position: relative;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 644 / 310;
    background-color: transparent;
    background-image: url('ts520s_front.png?v=20261111f');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.92));
}

/* Solo Aguja Digital del S-Meter (sin fondo ni recuadro sobre la foto original) */
.ts520-meter-overlay {
    position: absolute;
    left: 7.0%;
    top: 11.2%;
    width: 16.5%;
    height: 19.8%;
    border-radius: 3px;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
}

/* Ventana mecánica semicircular VFO */
.ts520-vfo-window-overlay {
    position: absolute;
    left: 36.6%;
    top: 23.0%;
    width: 15.8%;
    height: 8.6%;
    background: radial-gradient(ellipse at center, #fef3c7 0%, #f5d08a 75%, #b47b35 100%);
    border-radius: 50% 50% 0 0 / 85% 85% 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.65);
}

.ts520-window-txt {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(7px, 0.86vw, 10px);
    font-weight: 900;
    color: #1f1608;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: transform 0.1s ease-out;
}

.ts520-window-needle {
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 1.5px;
    background: #dc2626;
}

.ts520-badge-float {
    position: absolute;
    left: 36.0%;
    top: 17.5%;
    width: 17.0%;
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: clamp(6px, 0.58vw, 8px);
    font-weight: 900;
    color: #fca5a5;
    pointer-events: none;
    text-shadow: 0 0 6px rgba(239,68,68,0.8);
}

/* Barra rápida discreta debajo de las fotos */
.rig-subbar {
    width: 100%;
    max-width: 720px;
    margin: 6px auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 8px 12px;
}

.rig-mini-btn {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
    font-family: monospace;
    border-radius: 5px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.14s;
}
.rig-mini-btn:hover { border-color: #38bdf8; color: #fff; background: #0f2942; }
.rig-mini-btn.active { background: #0284c7; border-color: #7dd3fc; color: #fff; }
.rig-mini-btn.play-btn { background: #065f46; border-color: #34d399; color: #fff; }

/* ==========================================================================
   MODALIDAD 2: MODERNA - ICOM IC-7300 (PNG TRANSPARENTE + TFT EN VIVO)
   ========================================================================== */
.ic7300-photo-rig {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin: 4px auto 10px auto;
    aspect-ratio: 919 / 420;
    background-color: transparent;
    background-image: url('ic7300_front.png?v=20261111e');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.94));
}

/* Pantalla TFT Real encastrada exactamente en (26.2%, 15.8%, 42.3%, 60.5%) */
.ic7300-real-tft {
    position: absolute;
    left: 26.3%;
    top: 16.0%;
    width: 42.2%;
    height: 60.1%;
    background: #02040a;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.2% 1.6%;
    overflow: hidden;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.9);
    z-index: 15;
}

.ic-tft-row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.ic-tft-badge-mode {
    background: #0284c7;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(8px, 1.05vw, 13px);
    padding: 1px 7px;
    border-radius: 3px;
    cursor: pointer;
}

.ic-tft-badge-fil {
    color: #e2e8f0;
    border: 1px solid #475569;
    font-family: monospace;
    font-size: clamp(7.5px, 0.85vw, 11px);
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
}

.ic-tft-clock {
    font-family: monospace;
    font-size: clamp(8px, 0.95vw, 12px);
    font-weight: 800;
    color: #f8fafc;
}

.ic-tft-row2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.ic-tft-freq {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(16px, 3.0vw, 38px);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.03em;
    line-height: 1;
}

.ic-tft-vfob {
    text-align: right;
    font-family: monospace;
    line-height: 1.15;
}

.ic-tft-smeter-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ic-tft-smeter-labels {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: clamp(6px, 0.65vw, 9px);
    font-weight: 800;
    color: #94a3b8;
}

.ic7300-led-segments {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 1.5px;
    height: clamp(5px, 0.65vw, 8px);
}
.ic-seg { background: #172033; border-radius: 1px; }
.ic-seg.on-blue { background: #38bdf8; box-shadow: 0 0 4px #38bdf8; }
.ic-seg.on-red { background: #ef4444; box-shadow: 0 0 4px #ef4444; }

.ic-tft-scope-wrap {
    flex: 1;
    min-height: 0;
    background: #010510;
    border: 1px solid #1e3a5f;
    border-radius: 2px;
    margin-top: 2px;
    position: relative;
}

#ic7300-scope-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.ic-tft-softkeys {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    margin-top: 3px;
}

.ic-softkey {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    color: #cbd5e1;
    font-family: monospace;
    font-size: clamp(6.5px, 0.72vw, 10px);
    font-weight: 800;
    padding: 2px 0;
    text-align: center;
    border-radius: 2px;
    cursor: pointer;
}
.ic-softkey:hover, .ic-softkey.active {
    background: #0284c7;
    border-color: #7dd3fc;
    color: #ffffff;
}

/* ==========================================================================
   MODALIDAD 3: DIGITAL - HDSDR AUTÉNTICO + OMNIRIG CAT
   ========================================================================== */
.hdsdr-authentic-shell {
    background: #03050a;
    border: 2px solid #2b4c7e;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.94);
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.hdsdr-win-titlebar {
    background: linear-gradient(180deg, #325a8f 0%, #172b48 100%);
    padding: 4px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #f1f5f9;
    border-bottom: 1px solid #091224;
}

.hdsdr-rf-stack {
    background: #040924;
    border-bottom: 2px solid #1e3a5f;
}

#hdsdr-rf-waterfall-canvas {
    display: block;
    width: 100%;
    height: 142px;
    cursor: crosshair;
    background: #040d3a;
}

.hdsdr-rf-ruler,
.hdsdr-af-ruler {
    background: linear-gradient(180deg, #1b283d 0%, #0f1726 100%);
    border-top: 1px solid #475569;
    border-bottom: 1px solid #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 10px;
    font-family: 'Consolas', monospace;
    font-size: 10px;
    font-weight: 700;
    color: #e2e8f0;
    background-image: repeating-linear-gradient(
        to right,
        rgba(203, 213, 225, 0.35) 0px,
        rgba(203, 213, 225, 0.35) 1px,
        transparent 1px,
        transparent 14px
    );
    background-size: 100% 4px;
    background-repeat: no-repeat;
    background-position: top left;
}

#hdsdr-rf-spectrum-canvas {
    display: block;
    width: 100%;
    height: 96px;
    cursor: crosshair;
    background: #040b30;
}

.hdsdr-bottom-deck {
    display: grid;
    grid-template-columns: 465px 1fr;
    background: #04060c;
}

@media (max-width: 1024px) {
    .hdsdr-bottom-deck { grid-template-columns: 1fr; }
}

.hdsdr-left-panel {
    border-right: 1px solid #1e293b;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: #05070e;
}

.hdsdr-smeter-freq-row {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 8px;
    align-items: center;
}

.hdsdr-smeter-well {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 65%, #0c1322 0%, #03050a 100%);
    border: 1px solid #1e293b;
    border-radius: 5px;
    padding: 2px;
}

.hdsdr-arc-meter {
    width: 108px;
    height: 88px;
}

.hdsdr-mode-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.hdsdr-mode-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 3px;
    background: linear-gradient(180deg, #1b2232 0%, #0e131e 100%);
    border: 1px solid #334155;
    color: #94a3b8;
    cursor: pointer;
}
.hdsdr-mode-pill .hdsdr-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid #475569;
    display: inline-block;
}
.hdsdr-mode-pill.active {
    background: linear-gradient(180deg, #14532d 0%, #0c351e 100%);
    border-color: #4ade80;
    color: #ffffff;
}
.hdsdr-mode-pill.active .hdsdr-led {
    background: #22ff55;
    box-shadow: 0 0 7px #22ff55;
    border-color: #bbf7d0;
}

.hdsdr-lcd-block {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.hdsdr-lcd-rows {
    flex: 1;
    background: linear-gradient(180deg, #0b1120 0%, #060913 100%);
    border: 1px solid #263449;
    border-radius: 4px;
    padding: 4px 7px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.hdsdr-lo-row,
.hdsdr-tune-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-family: 'Share Tech Mono', monospace;
}

.hdsdr-lcd-tag {
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    width: 30px;
}

.hdsdr-vfo-chip {
    font-family: monospace;
    font-size: 9px;
    font-weight: 900;
    padding: 0 3px;
    border-radius: 2px;
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
}
.hdsdr-vfo-chip.active {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #60a5fa;
}

.hdsdr-lcd-digits.sm {
    font-size: 16px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.04em;
    line-height: 1;
}

.hdsdr-lcd-digits.lg {
    font-size: 24px;
    font-weight: 900;
    color: #c7d2fe;
    letter-spacing: 0.04em;
    line-height: 1;
    text-shadow: 0 0 10px rgba(165, 180, 252, 0.35);
}

.hdsdr-omni-side-btns {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3px;
    width: 68px;
}

.hdsdr-steel-btn {
    background: linear-gradient(180deg, #1d4e89 0%, #0f2c52 100%);
    border: 1px solid #38bdf8;
    color: #e0f2fe;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 4px;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
}
.hdsdr-steel-btn:hover { background: #0284c7; color: #fff; }
.hdsdr-steel-btn.active { border-color: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.35); }

.hdsdr-mini-vfo-btn,
.hdsdr-step-btn {
    background: #131c2e;
    border: 1px solid #334155;
    color: #cbd5e1;
    font-family: monospace;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 3px;
    cursor: pointer;
}
.hdsdr-mini-vfo-btn:hover,
.hdsdr-step-btn:hover { border-color: #38bdf8; color: #fff; background: #1e293b; }

.hdsdr-console-split {
    display: grid;
    grid-template-columns: 122px 1fr;
    gap: 7px;
    align-items: stretch;
}

.hdsdr-classic-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
}

.hdsdr-teal-btn {
    padding: 5px 6px;
    font-size: 10.5px;
    font-weight: 700;
    color: #cbd5e1;
    background: linear-gradient(180deg, #0b2229 0%, #061318 100%);
    border: 1px solid #155e75;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
}
.hdsdr-teal-btn:hover { border-color: #22d3ee; color: #fff; }
.hdsdr-teal-btn.active { background: #0e7490; border-color: #67e8f9; color: #fff; }
.hdsdr-teal-btn.rec-active { background: #991b1b; border-color: #fca5a5; color: #fff; }

.hdsdr-green-start-btn {
    padding: 7px 6px;
    font-size: 11px;
    font-weight: 900;
    color: #ecfdf5;
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    border: 1px solid #4ade80;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
}
.hdsdr-green-start-btn:hover { background: #22c55e; color: #022c22; }
.hdsdr-green-start-btn.active {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    border-color: #fca5a5;
    color: #ffffff;
}

.hdsdr-blue-dsp-box {
    background: linear-gradient(180deg, #061240 0%, #040b29 100%);
    border: 1px solid #1e3a8a;
    border-radius: 4px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hdsdr-blue-matrix-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.hdsdr-cobalt-btn {
    padding: 4px 5px;
    font-size: 10px;
    font-weight: 800;
    color: #93c5fd;
    background: linear-gradient(180deg, #0c1f5c 0%, #07133b 100%);
    border: 1px solid #1d4ed8;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    transition: all 0.14s ease;
}
.hdsdr-cobalt-btn.sm {
    padding: 3px 7px;
    font-size: 9.5px;
    font-family: monospace;
}
.hdsdr-cobalt-btn:hover { border-color: #60a5fa; color: #ffffff; }
.hdsdr-cobalt-btn.active {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #93c5fd;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.55);
}

.hdsdr-clock-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 6px;
    background: #02040a;
    border: 1px solid #1e293b;
    border-radius: 3px;
    font-family: 'Consolas', monospace;
    font-size: 10.5px;
    color: #94a3b8;
}

.hdsdr-right-af-panel {
    display: flex;
    flex-direction: column;
    background: #040b30;
}

.hdsdr-af-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 8px;
    font-family: 'Segoe UI', monospace;
    font-size: 10.5px;
    background: linear-gradient(180deg, #161f30 0%, #0b111c 100%);
    border-bottom: 1px solid #2b4570;
}

#hdsdr-waterfall-canvas {
    display: block;
    width: 100%;
    height: 128px;
    cursor: crosshair;
    background: #040d3a;
}

#hdsdr-spectrum-canvas {
    display: block;
    width: 100%;
    height: 142px;
    cursor: crosshair;
    background: #040b30;
}

.hdsdr-scan-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 10px;
    background: #070e1d;
    border-top: 1px solid #1e3a5f;
}

.hdsdr-scan-btn {
    padding: 3px 9px;
    font-family: monospace;
    font-size: 10px;
    font-weight: 800;
    color: #e0f2fe;
    background: linear-gradient(180deg, #0369a1 0%, #0c4a6e 100%);
    border: 1px solid #38bdf8;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.hdsdr-scan-btn:hover { background: #0284c7; color: #ffffff; }
.hdsdr-scan-btn.scanning {
    background: linear-gradient(180deg, #d97706 0%, #92400e 100%);
    border-color: #fcd34d;
    color: #fffbeb;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

.hdsdr-scan-peaks {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.hdsdr-peak-chip {
    padding: 2px 7px;
    font-family: monospace;
    font-size: 10px;
    font-weight: 800;
    color: #fef08a;
    background: rgba(161, 98, 7, 0.25);
    border: 1px solid rgba(250, 204, 21, 0.55);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.14s ease;
}
.hdsdr-peak-chip:hover {
    background: rgba(234, 179, 8, 0.45);
    color: #ffffff;
    border-color: #fde047;
}
