/* ==========================================================================
   WebSDR 22DX Mobile — PRO Hardware Dashboard Style (Adaptive Scroll)
   ========================================================================== */

:root {
    --mobi-bg: #11141a;
    --mobi-surface: #1a1f26;
    --mobi-border: #2a313d;
    --mobi-text: #b0b5ba;
    --mobi-text-dim: #626c77;
    --mobi-cyan: #58a6ff;
    --mobi-yellow: #ffb703;
    --mobi-green: #00e676;
    --mobi-red: #ff003c;
    --mobi-oled: #080b11;
    --mobi-radius: 6px;
    --mobi-font: 'Rajdhani', sans-serif;
    --mobi-mono: 'Share Tech Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: var(--mobi-bg);
    background-image: 
        linear-gradient(rgba(88, 166, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 166, 255, 0.02) 1px, transparent 1px);
    background-size: 16px 16px;
    font-family: var(--mobi-font);
    color: var(--mobi-text);
    margin: 0;
    padding: 8px;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

/* === ALERTS === */
.mobi-alert { padding: 10px; margin-bottom: 10px; border-radius: var(--mobi-radius); text-align: center; font-weight: 600; }
.mobi-alert-danger { background: rgba(255, 0, 60, 0.15); color: var(--mobi-red); border: 1px solid var(--mobi-red); }

/* === CONTAINER & PANELS === */
.mobi-container { max-width: 500px; margin: 0 auto; }
.mobi-panel {
    background: var(--mobi-surface);
    border: 1px solid var(--mobi-border);
    border-radius: var(--mobi-radius);
    margin-bottom: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 3px 6px rgba(0,0,0,0.3);
}
.mobi-panel-header {
    padding: 8px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase;
    color: var(--mobi-text-dim); border-bottom: 1px solid var(--mobi-border);
    background: rgba(0,0,0,0.2); letter-spacing: 1px;
    display: flex; align-items: center; gap: 8px;
}
.mobi-panel-header i { color: var(--mobi-cyan); }

/* === TUNING SYSTEM === */
.mobi-tuning-row { display: flex; gap: 6px; padding: 8px; position: relative; }
.mobi-freq-form { flex: 1; position: relative; }

.mobi-freq-input {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--mobi-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--mobi-yellow);
    background: var(--mobi-oled);
    border: 2px solid var(--mobi-border);
    border-radius: var(--mobi-radius);
    text-align: center;
    box-shadow: inset 0 3px 8px rgba(0,0,0,0.9), 0 1px 0 rgba(255,255,255,0.05);
    letter-spacing: 0.5px;
    transition: border-color 0.15s;
}
.mobi-freq-input:focus {
    outline: none;
    border-color: var(--mobi-cyan);
}
.mobi-freq-input::placeholder { color: var(--mobi-text-dim); font-size: 13px; }

.mobi-mode-select {
    width: 75px;
    padding: 12px 4px;
    font-family: var(--mobi-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--mobi-cyan);
    background: var(--mobi-oled);
    border: 2px solid var(--mobi-border);
    border-radius: var(--mobi-radius);
    text-align: center;
    box-shadow: inset 0 3px 8px rgba(0,0,0,0.9);
    cursor: pointer;
}

/* === ВСПЛЫВАЮЩАЯ ПОДСКАЗКА ДИАПАЗОНОВ (Focus Popup) === */
.mobi-freqinfo-popup {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 999;
    background: #141820;
    border: 2px solid var(--mobi-cyan);
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.9);
}
.mobi-freq-input:focus + .mobi-freqinfo-popup {
    display: block;
}
#freqinfo {
    font-family: var(--mobi-mono);
    font-size: 11px;
    color: #c9d1d9;
    line-height: 1.5;
    white-space: pre-line;
}
#freqinfo::before {
    content: "📡 СЕТКА ЧАСТОТ ДИАПАЗОНОВ";
    display: block;
    font-family: var(--mobi-font);
    font-size: 10px;
    font-weight: 700;
    color: var(--mobi-cyan);
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(88,166,255,0.15);
    padding-bottom: 2px;
}

/* === WATERFALL & SPECTRUM === */
.mobi-wfdiv { 
    width: 100%; 
    min-height: 140px; 
    background: #000;
    /* ВАЖНО: запрещаем CSS масштабировать canvas */
    overflow: hidden;
    position: relative;
}

/* Запрещаем canvas внутри водопада масштабироваться через CSS */
.mobi-wfdiv canvas,
.mobi-wfdiv applet {
    display: block;
    width: 100% !important;
    height: auto !important;
    /* Отключаем любые трансформации */
    transform: none !important;
    image-rendering: pixelated;
}

.mobi-waterfall-wrap {
    padding: 0 !important;
    background: #000;
    border-bottom: 1px solid var(--mobi-border);
    /* Убираем overflow: hidden, который мог обрезать водопад */
    overflow: visible;
    position: relative;
}

.mobi-axis {
    width: 100% !important;
    height: 22px;
    display: block;
    background: #000;
    margin: 0 !important;
    padding: 0 !important;
    /* Запрещаем масштабирование */
    transform: none !important;
}

/* === УНИФИЦИРОВАННАЯ ШИНА ДИАПАЗОНОВ (Полный аналог блока подстройки) === */
#band_buttons {
    width: 100% !important;
    background: rgba(0,0,0,0.15) !important;
}

/* Контейнер-трек, полностью дублирующий поведение сетки подстройки */
.mobi-bands-track {
    display: flex !important;
    gap: 6px !important; /* Тот же зазор */
    padding: 8px !important; /* Тот же внутренний отступ */
    width: 100% !important;
    align-items: center !important;
}

/* Кнопка диапазона, полностью копирующая параметры кнопок подстройки */
.mobi-bands-track .btn,
.mobi-bands-track button {
    flex: 1 1 0% !important; /* Равное распределение в ряду */
    min-width: 0 !important;
    padding: 10px 2px !important; /* Идентичная высота нажатия */
    font-family: var(--mobi-font) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--mobi-text) !important;
    background: linear-gradient(180deg, #333942, #242930) !important; /* Тот же объемный градиент */
    border: 1px solid #14171c !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
}

/* Активное состояние кнопки (Янтарный индикатор) */
.mobi-bands-track .btn:active,
.mobi-bands-track button:active,
.mobi-bands-track .btn.active,
.mobi-bands-track button.active {
    background: #0b0e14 !important;
    color: var(--mobi-yellow) !important;
    border-color: var(--mobi-yellow) !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8) !important;
}
/* === CONTROLS === */
.mobi-controls-row { display: flex; gap: 4px; padding: 8px; }
.mobi-ctrl-btn {
    flex: 1; padding: 12px 2px; font-family: var(--mobi-font); font-size: 13px; font-weight: 700;
    color: var(--mobi-text); background: linear-gradient(180deg, #333942, #242930);
    border: 1px solid #14171c; border-radius: 4px; text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4); cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 4px;
}
.mobi-ctrl-btn:active, .mobi-ctrl-btn.active { 
    background: #0f1116; color: var(--mobi-green); box-shadow: inset 0 2px 6px rgba(0,0,0,0.8); 
}

/* Кнопка Restart Audio */
.mobi-ctrl-restart {
    color: var(--mobi-yellow);
    background: linear-gradient(180deg, #3c3525, #2c251a);
    border: 1px solid #1a150e;
}
.mobi-ctrl-restart:active {
    background: #0f1116;
    color: var(--mobi-yellow);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
}

/* === СЕГМЕНТИРОВАННЫЙ S-МЕТР В СТИЛЕ ТРАНСИВЕРОВ === */
.mobi-smeter-wrap { 
    padding: 8px 10px; display: flex; flex-direction: column; gap: 6px;
    border-top: 1px solid var(--mobi-border);
}
.mobi-smeter-digital { display: flex; flex-direction: column; align-items: center; min-width: 50px; }
.mobi-smeter-val { font-family: var(--mobi-mono); font-size: 15px; font-weight: 700; color: var(--mobi-green); }
.mobi-smeter-val.mobi-peak { color: var(--mobi-yellow); }
.mobi-smeter-unit { font-size: 9px; color: var(--mobi-text-dim); text-transform: uppercase; font-weight: bold; }

.mobi-smeter-bar-bg {
    width: 100%; height: 16px; background: var(--mobi-oled); border: 1px solid var(--mobi-border);
    border-radius: 3px; box-shadow: inset 0 2px 5px rgba(0,0,0,0.9); position: relative; overflow: hidden;
}
/* Слой светодиодной полосы */
.mobi-smeter-bar { 
    background: linear-gradient(90deg, #1b5e20 40%, #00e676 80%, var(--mobi-green) 100%); 
    z-index: 2; height: 100%; position: absolute; left: 0; top: 0;
    transition: width 0.05s linear; 
}
/* Слой маркера пика */
.mobi-smeter-peak { 
    background: var(--mobi-yellow); 
    z-index: 3; height: 100%; position: absolute; left: 0; top: 0; width: 2px;
    transition: left 0.15s linear; 
}
/* Декоративная физическая маска (сегменты светодиодов) */
.mobi-smeter-bar-bg::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 3px, #000 3px, #000 5px);
    z-index: 4; pointer-events: none;
}
/* Наложение рисок шкалы прямо на S-метр */
.mobi-smeter-scale-markers {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: space-between; padding: 0 4px;
    font-family: var(--mobi-font); font-size: 7px; font-weight: 700; color: rgba(255,255,255,0.25);
    z-index: 5; pointer-events: none; align-items: flex-end;
}

/* === КУБИКИ (S1-S9, +10-+40dB) === */
.mobi-smeter-cubes {
    display: flex;
    justify-content: space-between;
    gap: 3px;
    width: 100%;
}
.sm-cube {
    flex: 1;
    height: 10px;
    border-radius: 1px;
    border: 1px solid rgba(0,0,0,0.5);
    background: #0d1117;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
}
.sm-cube.is-on-green {
    background: var(--mobi-green) !important;
    border-color: var(--mobi-green) !important;
    box-shadow: 0 0 6px var(--mobi-green), inset 0 0 2px #fff !important;
}
.sm-cube.is-on-yellow {
    background: var(--mobi-yellow) !important;
    border-color: var(--mobi-yellow) !important;
    box-shadow: 0 0 6px var(--mobi-yellow), inset 0 0 2px #fff !important;
}
.sm-cube.is-on-red {
    background: var(--mobi-red) !important;
    border-color: var(--mobi-red) !important;
    box-shadow: 0 0 6px var(--mobi-red), inset 0 0 2px #fff !important;
}

/* Терминал телеметрии */
.mobi-smeter-readout {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    background: rgba(0,0,0,0.2);
    padding: 6px;
    border-radius: 4px;
}
.mobi-sm-points {
    font-family: var(--mobi-font);
    font-size: 13px;
    font-weight: bold;
    color: var(--mobi-green);
    text-transform: uppercase;
}

/* Панель кнопок VFO шага и масштабирования водопада */
.mobi-tuning-controls-row {
    display: flex;
    gap: 6px;
    padding: 8px;
    align-items: center;
}
.mobi-step-subgrid {
    display: flex;
    gap: 4px;
    flex: 1;
}
.mobi-zoom-subgrid {
    display: flex;
    gap: 4px;
    flex: 1.5;
}
.mobi-step-btn, .mobi-zoom-btn {
    flex: 1;
    padding: 10px 2px;
    font-family: var(--mobi-font);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mobi-text);
    background: linear-gradient(180deg, #333942, #242930);
    border: 1px solid #14171c;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.mobi-step-btn:active, .mobi-zoom-btn:active {
    background: #0f1116;
    color: var(--mobi-cyan);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
}

/* Статус-лампы RX & OVERLOAD */
.sdr-mobi-status {
    font-family: var(--mobi-font);
    font-weight: 700;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
}
.digit-off { color: #4a5c58 !important; background: #05080b !important; border: 1px solid #1d2633 !important; }
.digit-off-rx { color: #4a5c58 !important; background: #05080b !important; border: 1px solid #1d2633 !important; }
.digit-on-rx { color: #00ff41 !important; background: rgba(0, 255, 65, 0.1) !important; border: 1px solid #00ff41 !important; text-shadow: 0 0 6px #00ff41 !important; }
.digit-plus-rx { color: #ff003c !important; background: rgba(255, 0, 60, 0.1) !important; border: 1px solid #ff003c !important; text-shadow: 0 0 6px #ff003c !important; }
.digit_on_red { color: #ff003c !important; background: rgba(255, 0, 60, 0.15) !important; border: 1px solid #ff003c !important; text-shadow: 0 0 6px #ff003c !important; }

/* === SETTING CARDS === */
.mobi-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
.mobi-setting-card {
    display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.15);
    border: 1px solid var(--mobi-border); border-radius: var(--mobi-radius);
    padding: 8px; cursor: pointer; transition: background 0.15s; position: relative;
}
.mobi-setting-card:active { background: rgba(0,0,0,0.3); }
.mobi-setting-icon {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    background: rgba(88,166,255,0.06); border: 1px solid rgba(88,166,255,0.15);
    border-radius: 4px; color: var(--mobi-cyan); font-size: 12px; flex-shrink: 0;
}
.mobi-setting-info { flex: 1; min-width: 0; }
.mobi-setting-title { font-family: var(--mobi-font); font-size: 12px; font-weight: 700; color: #c9d1d9; text-transform: uppercase; }
.mobi-setting-desc { font-size: 9px; color: var(--mobi-text-dim); margin-top: 1px; }

.mobi-setting-card input[type="checkbox"] { display: none; }
.mobi-setting-card .mobi-switch {
    position: relative; width: 32px; height: 16px; background: var(--mobi-oled);
    border: 1px solid var(--mobi-border); border-radius: 8px; transition: 0.2s; flex-shrink: 0;
}
.mobi-setting-card .mobi-switch::before {
    content: ''; position: absolute; top: 1px; left: 1px; width: 12px; height: 12px;
    background: #505864; border-radius: 50%; transition: 0.2s;
}
.mobi-setting-card input:checked + .mobi-switch { background: rgba(0,255,65,0.15); border-color: var(--mobi-green); }
.mobi-setting-card input:checked + .mobi-switch::before { transform: translateX(16px); background: var(--mobi-green); box-shadow: 0 0 5px var(--mobi-green); }

/* Специальный класс расширения для 3-й карты остановки водопада (занимает 2 колонки) */
.col-span-2 {
    grid-column: span 2;
}

/* === MEMORY === */
.mobi-mem-controls { display: flex; gap: 4px; padding: 8px; }
.mobi-mem-btn {
    flex: 1; padding: 8px; font-family: var(--mobi-font); font-size: 12px; font-weight: 700;
    color: #fff; border: 1px solid rgba(0,0,0,0.2); border-radius: 4px; text-transform: uppercase; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 4px;
}
.mobi-mem-store { background: linear-gradient(180deg, #2ea44f, #22863a); }
.mobi-mem-delete { background: linear-gradient(180deg, #da3633, #a21c22); }
.mobi-mem-label { background: linear-gradient(180deg, #0969da, #005580); }
.mobi-mem-btn:active { opacity: 0.85; }

.mobi-memories-grid { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 8px 8px; }
.mobi-memories-grid .relbuttona {
    flex: 1 1 calc(50% - 4px); min-width: 100px; padding: 8px; 
    font-family: var(--mobi-font); font-size: 12px; font-weight: 600; line-height: 1.3;
    color: var(--mobi-text); background: #212630; border: 1px solid var(--mobi-border);
    border-radius: 4px; text-align: center; cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.mobi-memories-grid .relbuttona:active { 
    background: #0f1116; color: var(--mobi-cyan); box-shadow: inset 0 2px 4px rgba(0,0,0,0.8); 
}

/* Режим редактирования/удаления закладок */
.mobi-grid-edit .relbuttona {
    border-color: var(--mobi-red);
    animation: mobiPulse 1.5s infinite;
}
@keyframes mobiPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 60, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(255, 0, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 60, 0); }
}

/* === FOOTER === */
.mobi-footer {
    text-align: center; padding: 12px 8px; margin-top: 8px; background: #0c0f14;
    border: 1px solid var(--mobi-border); border-radius: 6px; font-size: 11px; color: #5a6e7f;
}
.mobi-footer-desktop-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; margin-bottom: 10px;
    font-family: var(--mobi-font); font-size: 12px; font-weight: 700; text-transform: uppercase;
    color: var(--mobi-cyan); background: rgba(88,166,255,0.06); border: 1px solid rgba(88,166,255,0.2);
    border-radius: 4px; text-decoration: none;
}
.mobi-footer-desktop-btn:active { background: rgba(88,166,255,0.15); transform: scale(0.98); }
.mobi-footer-credits { margin: 2px 0; color: #5a6e7f; }
.mobi-footer-credits a { color: #8892b0; text-decoration: none; }
.mobi-footer-credits a:hover { color: var(--mobi-yellow); }
.mobi-footer-version { margin-top: 6px; font-family: var(--mobi-mono); font-size: 9px; color: #353a47; letter-spacing: 0.5px; }
.mobi-footer-counters { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(88,166,255,0.05); }
.mobi-footer-counters img { opacity: 0.5; }

/* === AUDIO START OVERLAY === */
.mobi-audio-modal-container {
    text-align: center;
    margin: 30vh auto;
    width: 300px;
    padding: 30px 25px;
    background: #1a1f28;
    border: 1px solid #30363d;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(88,166,255,0.15);
}
.modal-dish-icon {
    font-size: 48px;
    color: #58a6ff;
    margin-bottom: 16px;
    display: block;
    text-shadow: 0 0 20px rgba(88,166,255,0.4);
}
.modal-station-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 20px;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.modal-station-subtitle {
    font-size: 10px;
    color: #6e7681;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.modal-action-btn {
    width: 100%;
    padding: 14px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    background: linear-gradient(180deg, #58a6ff, #3d8bfd);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(88,166,255,0.4);
    letter-spacing: 1px;
}
.modal-hint-text {
    margin-top: 14px;
    font-size: 11px;
    color: #52637a;
}

/* ==========================================================================
   LIVE DX SPOTS (MOBILE CARDS)
   ========================================================================== */
.mobi-spots-wrapper {
    padding: 8px;
    background: #0a0d13;
    border-top: 1px solid var(--mobi-border);
    /* Ограничиваем высоту (примерно на 3 карточки) */
    max-height: 380px; 
    overflow-y: auto; /* Включаем внутренний скролл */
    -webkit-overflow-scrolling: touch; /* Плавная прокрутка для iOS */
}

/* Красивый темный скроллбар для контейнера спотов */
.mobi-spots-wrapper::-webkit-scrollbar { width: 6px; }
.mobi-spots-wrapper::-webkit-scrollbar-track { background: #0a0d13; }
.mobi-spots-wrapper::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }

.mobi-spots-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Карточка одного спота */
.mobi-spot-card {
    background: rgba(15, 23, 36, 0.6);
    border: 1px solid #1a2433;
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.02), 0 2px 5px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

/* Цветная полоска слева (индикатор SNR) */
.mobi-spot-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #30363d; /* по умолчанию */
}
.mobi-spot-card.snr-good::before { background: var(--mobi-green); box-shadow: 0 0 8px var(--mobi-green); }
.mobi-spot-card.snr-ok::before { background: var(--mobi-cyan); box-shadow: 0 0 8px var(--mobi-cyan); }
.mobi-spot-card.snr-weak::before { background: var(--mobi-yellow); }

/* Верхний ряд: Время и Бейджи */
.mobi-spot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #21262d;
    padding-bottom: 4px;
}

.mobi-spot-time {
    font-family: var(--mobi-font);
    font-size: 11px;
    color: #6e7681;
    font-weight: 600;
}

.mobi-spot-badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

.mobi-spot-snr {
    font-family: var(--mobi-mono);
    font-size: 11px;
    font-weight: bold;
}

/* Центральный ряд: Частота */
.mobi-spot-body {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Центрируем бейджи относительно частоты */
}

.mobi-spot-freq {
    font-family: var(--mobi-mono);
    font-size: 16px;
    font-weight: bold;
    color: var(--mobi-yellow);
    text-shadow: 0 0 5px rgba(255, 183, 3, 0.4);
}

.mobi-spot-freq span {
    font-size: 10px;
    color: #5c6773;
    text-shadow: none;
}

/* Группа бейджей метрик */
.mobi-spot-metrics {
    display: flex;
    gap: 4px;
}

/* Общий стиль для измерительных бейджей (SNR, dT) */
.metric-badge {
    font-family: var(--mobi-mono);
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}

/* Цвета бейджей SNR (Совпадают с боковой подсветкой) */
.snr-badge-good { background: rgba(0, 230, 118, 0.15); color: var(--mobi-green); border: 1px solid var(--mobi-green); }
.snr-badge-ok   { background: rgba(88, 166, 255, 0.15); color: var(--mobi-cyan); border: 1px solid var(--mobi-cyan); }
.snr-badge-weak { background: rgba(255, 183, 3, 0.15); color: var(--mobi-yellow); border: 1px solid var(--mobi-yellow); }

/* ==========================================================================
   Аппаратные LED индикаторы мод (Бейджи)
   ========================================================================== */
.spot-badge {
    display: inline-block;
    padding: 2px 6px;
    font-family: var(--mobi-font);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}
.badge-ft8   { background: #002233; color: #00e5ff; border: 1px solid #005580; }
.badge-ft4   { background: #003311; color: #00e676; border: 1px solid #006622; }
.badge-jt    { background: #1a0033; color: #b366ff; border: 1px solid #4d0099; }
.badge-qra64 { background: #330033; color: #ff66ff; border: 1px solid #990099; }
.badge-cw    { background: #332200; color: #ffb703; border: 1px solid #996600; }
.badge-default { background: #202630; color: #8b949e; border: 1px solid #30363d; }

/* Бейдж dT (Нейтральный стальной цвет) */
.dt-badge { background: #161b22; color: #8b949e; border: 1px solid #30363d; }

/* Нижний ряд: Сообщение */
.mobi-spot-msg {
    font-family: var(--mobi-mono);
    font-size: 13px;
    color: #cce5ff;
    background: #0f131a;
    padding: 4px 6px;
    border-radius: 3px;
    border: 1px solid #161b22;
    word-break: break-word;
}

.mobi-spot-dt {
    font-family: var(--mobi-mono);
    font-size: 11px;
    color: #6e7681;
}

/* Нижний ряд: Сообщение */
.mobi-spot-msg {
    font-family: var(--mobi-mono);
    font-size: 13px;
    color: #cce5ff;
    background: #0f131a;
    padding: 4px 6px;
    border-radius: 3px;
    border: 1px solid #161b22;
    word-break: break-word;
}

/* Активное состояние для Delete (красный) */
.mobi-mem-btn.active-delete {
    background: linear-gradient(180deg, #da3633, #a21c22) !important;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.6), 0 0 12px rgba(255,0,60,0.3);
    border-color: #ff003c;
}

/* Активное состояние для Label (синий) */
.mobi-mem-btn.active-label {
    background: linear-gradient(180deg, #0969da, #005580) !important;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.6), 0 0 12px rgba(88,166,255,0.3);
    border-color: #58a6ff;
}

/* Индикатор режима */
.mobi-mode-indicator {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    border-radius: 4px;
    margin: 0 8px 4px 8px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--mobi-border);
}
.mobi-mode-indicator.delete-mode {
    color: var(--mobi-red);
    border-color: var(--mobi-red);
}
.mobi-mode-indicator.label-mode {
    color: var(--mobi-cyan);
    border-color: var(--mobi-cyan);
}

/* Режим УДАЛЕНИЯ (красный) */
.mobi-grid-delete .relbuttona {
    border-color: var(--mobi-red) !important;
    animation: mobiPulseDelete 1.5s infinite;
}
@keyframes mobiPulseDelete {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 60, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(255, 0, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 60, 0); }
}

/* Режим МЕТКИ (синий) */
.mobi-grid-label .relbuttona {
    border-color: var(--mobi-cyan) !important;
    animation: mobiPulseLabel 1.5s infinite;
}
@keyframes mobiPulseLabel {
    0% { box-shadow: 0 0 0 0 rgba(88, 166, 255, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(88, 166, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(88, 166, 255, 0); }
}