:root {
    --phosphor-green: #33FF66;
    --phosphor-green-dim: #1A8C3D;
    --steel-blue: #4A7BA8;
    --steel-blue-light: #6B9CC8;
    --steel-blue-dark: #2B4E6B;
    --faded-red: #CC6666;
    --faded-red-bright: #FF8888;
    --gray-blue: #3A4A5A;
    --gray-blue-light: #5A6A7A;
    --dark-bg: #0a0a0a;
    --darker-bg: #050508;
    --white: #FFFFFF;
    --text-primary: #33FF66;
    --text-secondary: #4A7BA8;
    --text-dim: #2A5A6A;
    --map-brightness: 1;
    --muted-purple: #8B6B9B;
    --muted-orange: #CC8855;
    --muted-magenta: #CC6699;
    --muted-green: #66AA77;
    --muted-red: #AA5555;
    --muted-blue: #6699BB;
    --muted-cyan: #669999;
    --muted-yellow: #AAAA55;
    --muted-violet: #8B6699;
    --muted-pink: #CC99BB;
}

body.map-bright {
    --map-brightness: 1.4;
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --text-secondary: #6B9CC8;
    --gray-blue: #5A6A7A;
    --gray-blue-light: #7A8A9A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'VT323', monospace;
    background-color: var(--dark-bg);
    color: var(--text-primary);
}

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 10000;
    opacity: 0.6;
}

.crt-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.norad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(180deg, var(--gray-blue) 0%, var(--gray-blue-dark) 100%);
    border-bottom: 2px solid var(--steel-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

.header-left h1 {
    font-size: 24px;
    font-weight: 400;
    color: var(--phosphor-green);
    text-shadow: 0 0 8px var(--phosphor-green), 0 0 16px var(--phosphor-green-dim);
    letter-spacing: 2px;
}

.tui-link {
    padding: 4px 10px;
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: var(--steel-blue-light);
    border: 1px solid var(--steel-blue);
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.tui-link:hover {
    color: var(--phosphor-green);
    border-color: var(--phosphor-green);
    box-shadow: 0 0 8px var(--phosphor-green-dim);
}

.blink {
    color: var(--phosphor-green);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 18px;
}

#system-status {
    color: var(--phosphor-green);
    text-shadow: 0 0 4px var(--phosphor-green);
}

#grid-display {
    color: var(--steel-blue-light);
    min-width: 100px;
}

#timestamp-display {
    color: var(--steel-blue-light);
    min-width: 120px;
}

.mode-filter-bar {
    display: flex;
    gap: 4px;
    padding: 8px 16px;
    background: var(--darker-bg);
    border-bottom: 1px solid var(--gray-blue);
    overflow-x: auto;
}

.mode-btn {
    padding: 6px 12px;
    font-family: 'VT323', monospace;
    font-size: 14px;
    background: var(--gray-blue-dark);
    color: var(--text-secondary);
    border: 1px solid var(--gray-blue);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.mode-btn:hover {
    background: var(--gray-blue);
    color: var(--phosphor-green);
    border-color: var(--phosphor-green);
}

.mode-btn.active {
    background: var(--phosphor-green);
    color: var(--dark-bg);
    border-color: var(--phosphor-green);
    box-shadow: 0 0 8px var(--phosphor-green);
}

.band-filter-bar {
    display: flex;
    gap: 4px;
    padding: 8px 16px;
    background: var(--darker-bg);
    border-bottom: 1px solid var(--gray-blue);
    overflow-x: auto;
}

.band-btn {
    padding: 6px 12px;
    font-family: 'VT323', monospace;
    font-size: 14px;
    background: var(--gray-blue-dark);
    color: var(--text-secondary);
    border: 1px solid var(--gray-blue);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.band-btn:hover {
    background: var(--gray-blue);
    color: var(--phosphor-green);
    border-color: var(--phosphor-green);
}

.band-btn.active {
    background: var(--phosphor-green);
    color: var(--dark-bg);
    border-color: var(--phosphor-green);
    box-shadow: 0 0 8px var(--phosphor-green);
}

.main-container {
    display: flex;
    height: calc(100vh - 360px);
}

.control-panel {
    width: 260px;
    background: var(--darker-bg);
    border-right: 2px solid var(--gray-blue);
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-section {
    border: 1px solid var(--gray-blue);
    padding: 12px;
    background: rgba(10, 15, 20, 0.8);
}

.panel-section h3 {
    font-size: 14px;
    font-weight: 400;
    color: var(--steel-blue-light);
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gray-blue);
    letter-spacing: 1px;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: transparent;
    color: var(--faded-red);
    border: 2px solid var(--faded-red);
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--faded-red);
    color: var(--dark-bg);
    box-shadow: 0 0 12px var(--faded-red);
}

.btn-primary.connected {
    background: transparent;
    color: var(--phosphor-green);
    border: 2px solid var(--phosphor-green);
}

.btn-primary.connected:hover {
    background: var(--phosphor-green);
    color: var(--dark-bg);
    box-shadow: 0 0 12px var(--phosphor-green);
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 4px 8px;
    font-family: 'VT323', monospace;
    font-size: 12px;
    background: transparent;
    color: var(--phosphor-green);
    border: 1px solid var(--phosphor-green);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    background: var(--phosphor-green);
    color: var(--dark-bg);
}

.btn-small.btn-full {
    margin-top: 8px;
}

.call-input {
    width: 100%;
    padding: 8px 12px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    background: var(--gray-blue-dark);
    color: var(--phosphor-green);
    border: 1px solid var(--phosphor-green);
    outline: none;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.call-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.call-filter-buttons {
    display: flex;
    gap: 4px;
}

.btn-call-filter {
    flex: 1;
    padding: 6px 4px;
    font-family: 'VT323', monospace;
    font-size: 12px;
    background: transparent;
    color: var(--phosphor-green);
    border: 1px solid var(--phosphor-green);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-call-filter:hover {
    background: var(--phosphor-green);
    color: var(--dark-bg);
}

.btn-call-filter.active {
    background: var(--phosphor-green);
    color: var(--dark-bg);
}

.info-text {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    word-break: break-all;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--gray-blue);
    background: var(--dark-bg);
    cursor: pointer;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--steel-blue);
    border-color: var(--steel-blue-light);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark-bg);
    font-size: 12px;
}

.jay-mode {
    margin-top: 8px;
}

.jay-mode .checkbox-label span {
    color: var(--phosphor-green);
    text-shadow: 0 0 4px var(--phosphor-green-dim);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 16px;
    border-bottom: 1px dashed var(--gray-blue);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span:first-child {
    color: var(--text-secondary);
}

.stat-row span:last-child {
    color: var(--phosphor-green);
    text-shadow: 0 0 4px var(--phosphor-green-dim);
}

.geo-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(204, 102, 102, 0.2);
    border: 1px solid var(--faded-red);
    font-size: 14px;
    color: var(--faded-red);
}

.geo-banner.hidden {
    display: none;
}

.warning-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 204, 0, 0.2);
    border: 1px solid #ffcc00;
    font-size: 14px;
    color: #ffcc00;
    text-align: center;
    animation: warningPulse 1s ease-in-out infinite alternate;
}

.warning-banner.hidden {
    display: none;
}

@keyframes warningPulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

.map-container {
    flex: 1;
    position: relative;
    background: var(--dark-bg);
}

#map {
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
}

#map .leaflet-container {
    background: var(--dark-bg);
}

#map .leaflet-tile-pane {
    filter: brightness(calc(0.75 * var(--map-brightness))) saturate(calc(0.5 * var(--map-brightness))) contrast(1.1);
}

#map .leaflet-tile {
    image-rendering: pixelated;
}

#map .leaflet-control-zoom {
    border: none !important;
    background: transparent !important;
}

#map .leaflet-control-zoom a {
    background: var(--gray-blue-dark) !important;
    color: var(--phosphor-green) !important;
    border: 1px solid var(--phosphor-green) !important;
}

#map .leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.7) !important;
    color: var(--text-dim) !important;
    font-size: 10px;
}

#map .leaflet-control-attribution a {
    color: var(--text-secondary) !important;
}

.loading-indicator.hidden {
    display: none;
}

.error-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3001;
    pointer-events: auto;
}

.error-popup.hidden {
    display: none;
}

.error-content {
    background: rgba(30, 10, 10, 0.98);
    border: 3px solid var(--faded-red);
    padding: 24px 48px;
    text-align: center;
    box-shadow: 0 0 20px rgba(200, 50, 50, 0.3), 0 0 40px rgba(200, 50, 50, 0.1);
}

.error-text {
    font-family: 'VT323', monospace;
    font-size: 28px;
    font-weight: normal;
    color: var(--faded-red);
    text-shadow: 0 0 10px var(--faded-red), 0 0 20px var(--faded-red);
    animation: errorPulse 1.5s ease-in-out infinite;
}

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

.no-spots-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3001;
    pointer-events: none;
}

.no-spots-popup.hidden {
    display: none;
}

.no-spots-content {
    background: rgba(200, 30, 30, 0.9);
    border: 2px solid #ff3333;
    padding: 16px 32px;
}

.no-spots-text {
    color: #ff3333;
    font-family: 'VT323', monospace;
    font-size: 24px;
    animation: warningPulse 1s ease-in-out infinite alternate;
}

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

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
    pointer-events: none;
}

.loading-content {
    background: rgba(10, 10, 15, 0.95);
    border: 2px solid var(--phosphor-green);
    padding: 20px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-type {
    display: block;
    font-size: 24px;
    color: var(--phosphor-green);
    text-shadow: 0 0 10px var(--phosphor-green);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.loading-info {
    font-size: 16px;
    color: var(--text-secondary);
}

.status-bar {
    display: flex;
    flex-direction: column;
    background: var(--gray-blue-dark);
    border-top: 1px solid var(--gray-blue);
    font-size: 14px;
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    padding: 0;
}

.status-info {
    display: flex;
    justify-content: space-between;
    padding: 6px 16px;
    border-bottom: 1px solid var(--gray-blue);
    background: var(--gray-blue-dark);
}

#status-left {
    color: var(--phosphor-green);
    display: inline;
}

#status-right {
    color: var(--text-dim);
    display: inline;
}

.spot-log-container {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
}

.spot-log-entry {
    display: flex;
    gap: 8px;
    font-family: 'VT323', monospace;
    font-size: 13px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(51, 255, 102, 0.1);
    animation: fadeIn 0.2s ease-out;
}

.spot-log-time {
    color: var(--text-dim);
    min-width: 65px;
}

.spot-log-call {
    color: var(--white);
    min-width: 70px;
}

.spot-log-grid {
    color: var(--text-secondary);
    min-width: 50px;
}

.spot-log-country {
    color: var(--muted-cyan);
    min-width: 80px;
}

.spot-log-mode {
    color: var(--muted-cyan);
    min-width: 40px;
}

.spot-log-band {
    color: var(--phosphor-green);
    min-width: 35px;
}

.spot-log-snr {
    color: var(--text-dim);
    min-width: 40px;
}

.spot-log-freq {
    color: var(--text-secondary);
    min-width: 60px;
}

.spot-log-recv {
    color: var(--muted-orange);
    min-width: 70px;
}

.spot-log-dist {
    color: var(--text-dim);
    flex: 1;
}

.spot-log-entry.dx-cluster {
    font-family: 'VT323', monospace;
    font-size: 13px;
}

.spot-log-entry.dx-cluster .dx-cluster-text {
    color: var(--white);
    white-space: nowrap;
    width: 100%;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.tooltip-norad {
    background: rgba(10, 15, 20, 0.95) !important;
    border: 1px solid var(--phosphor-green) !important;
    border-radius: 0 !important;
    color: var(--phosphor-green) !important;
    font-family: 'VT323', monospace !important;
    padding: 8px 12px !important;
    font-size: 16px !important;
}

.tooltip-norad::before {
    border-color: transparent !important;
}

.marker-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
    border: none;
    opacity: 0.7;
    transform-origin: center;
}

.marker-dot.bloom {
    position: relative;
    animation: markerBloom 0.6s ease-out forwards;
}

.marker-dot.bloom::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--white);
    opacity: 0.9;
    box-shadow: 0 0 15px var(--white), 0 0 30px var(--white);
    animation: bloomGlow 0.6s ease-out forwards;
}

.marker-dot.bloom-small {
    position: relative;
    animation: markerBloomSmall 0.3s ease-out forwards;
}

.marker-dot.bloom-small::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--white);
    opacity: 0.6;
    box-shadow: 0 0 8px var(--white), 0 0 15px var(--white);
    animation: bloomGlowSmall 0.3s ease-out forwards;
}

.marker-dot.aging {
    animation: markerFade var(--shrink-duration, 290s) ease-out forwards;
}

.marker-dot.faded {
    opacity: 0.3;
}

.marker-label {
    position: absolute;
    left: 22px;
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: var(--steel-blue-light);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    pointer-events: none;
    animation: callFade var(--call-fade-duration, 4s) ease-out forwards;
    animation-delay: var(--call-fade-delay, 0s);
}

@keyframes bloomGlow {
    0% {
        opacity: 0.9;
        transform: scale(1);
    }
    30% {
        opacity: 0.9;
        transform: scale(1.3);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes markerBloom {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(0.67);
    }
}

@keyframes bloomGlowSmall {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    30% {
        opacity: 0.6;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(0.67);
    }
}

@keyframes markerBloomSmall {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(0.67);
    }
}

@keyframes callFade {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes markerFade {
    0% {
        opacity: 0.7;
        transform: scale(0.67);
    }
    100% {
        opacity: 0;
        transform: scale(0.67);
    }
}

.spot-popup .leaflet-popup-content-wrapper {
    background: rgba(10, 15, 20, 0.95);
    border: 1px solid var(--phosphor-green);
    border-radius: 0;
}

.spot-popup .leaflet-popup-tip {
    background: rgba(10, 15, 20, 0.95);
}

.spot-popup .leaflet-popup-content {
    font-family: 'VT323', monospace;
    color: var(--phosphor-green);
    margin: 10px 14px;
}

.spot-popup h3 {
    font-family: 'VT323', monospace;
    font-size: 20px;
    font-weight: normal;
    color: var(--steel-blue-light);
    margin: 0 0 8px 0;
}

.spot-popup .leaflet-popup-tip {
    display: none;
}

.spot-popup .popup-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 2px 0;
}

.spot-popup .popup-label {
    color: var(--text-secondary);
}

.spot-popup .popup-value {
    color: var(--phosphor-green);
    text-align: right;
}

.geodesic-line {
    pointer-events: none;
    transition: opacity 0.5s linear;
}

@media (min-width: 769px) {
    .mobile-toolbar,
    .mobile-panel,
    .mobile-spot-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow: hidden;
        height: 100%;
        padding-top: 128px;
    }

    .main-container {
        flex-direction: column;
        height: 100%;
    }

    .control-panel {
        display: none !important;
    }

    /* Mobile toolbar */
    .mobile-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 10px;
        background: var(--darker-bg);
        border-bottom: 1px solid var(--gray-blue);
        z-index: 5000;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    /* Mobile panels */
    .mobile-panel {
        background: var(--gray-blue-dark);
        padding: 10px;
        border-bottom: 1px solid var(--gray-blue);
        z-index: 5000;
        position: fixed;
        top: 44px;
        left: 0;
        right: 0;
    }

    .btn-mobile {
        flex: 1;
        min-width: 70px;
        padding: 8px 12px;
        font-family: 'VT323', monospace;
        font-size: 14px;
        background: var(--gray-blue-dark);
        color: var(--phosphor-green);
        border: 1px solid var(--phosphor-green);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .btn-mobile:active,
    .btn-mobile.active {
        background: var(--phosphor-green);
        color: var(--dark-bg);
    }

    /* Mobile connect button with dot */
    .btn-connect-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .connect-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .connect-dot-red {
        background: #ff4444;
        box-shadow: 0 0 6px #ff4444;
    }

    .connect-dot-green {
        background: #44ff44;
        box-shadow: 0 0 6px #44ff44;
    }

    /* Mobile panels */
    .mobile-panel {
        background: var(--gray-blue-dark);
        padding: 10px;
        border-bottom: 1px solid var(--gray-blue);
    }

    .mobile-panel.hidden {
        display: none;
    }

    .mobile-filter-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    /* Compact header */
    .norad-header {
        padding: 4px 12px;
        flex-shrink: 0;
        z-index: 5000;
        position: fixed;
        top: 44px;
        left: 0;
        right: 0;
        background: var(--darker-bg);
        border-bottom: 1px solid var(--gray-blue);
    }

    /* Mode and band filter bars */
    .mode-filter-bar,
    .band-filter-bar {
        z-index: 5000;
        position: fixed;
        left: 0;
        right: 0;
        background: var(--darker-bg);
    }

    .mode-filter-bar {
        top: 72px;
    }

    .band-filter-bar {
        top: 100px;
    }

    .header-right {
        font-size: 11px;
        gap: 6px;
    }

    /* Map container */
    .map-container {
        flex: 1;
        min-height: 0;
        height: auto;
        position: relative;
        z-index: 1;
    }

    #map {
        width: 100%;
        height: calc(100vh - 128px);
        background: var(--dark-bg);
    }

    /* Collapsible spot log */
    .status-bar {
        height: auto;
        min-height: 36px;
        max-height: 36px;
        transition: max-height 0.3s ease;
        overflow: hidden;
    }

    .status-bar.expanded {
        max-height: 150px;
    }

    .status-info {
        display: none;
    }

    .spot-log-container {
        display: none;
        padding: 6px 10px;
    }

    .status-bar.expanded .spot-log-container {
        display: block;
    }

    .mobile-spot-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 12px;
        background: var(--gray-blue-dark);
        border-top: 1px solid var(--gray-blue);
        font-family: 'VT323', monospace;
        font-size: 14px;
        color: var(--phosphor-green);
        cursor: pointer;
        user-select: none;
        z-index: 5000;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    /* Smaller filter bars */
    .mode-filter-bar,
    .band-filter-bar {
        padding: 4px 10px;
        gap: 3px;
    }

    .mode-btn,
    .band-btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    /* Checkbox labels mobile */
    .checkbox-label {
        padding: 6px 0;
        font-size: 14px;
    }
}
