:root {
    color-scheme: dark;
    --bg: #08101d;
    --bg-2: #0b1422;
    --panel: rgba(16, 29, 46, 0.92);
    --panel-2: rgba(20, 37, 57, 0.88);
    --border: rgba(151, 175, 204, 0.14);
    --text: #edf4fb;
    --muted: #8295aa;
    --accent: #56a9ff;
    --accent-2: #2e7fe0;
    --green: #49d696;
    --yellow: #ffc75a;
    --red: #ff6b72;
    --shadow:
        0 16px 40px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background:
        radial-gradient(
            circle at 55% -20%,
            #173451 0,
            transparent 42%
        ),
        var(--bg);
    color: var(--text);
}

button,
select,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 220px 1fr;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 16px;
    border-right: 1px solid var(--border);
    background:
        rgba(7, 14, 25, 0.94);
    display: flex;
    flex-direction: column;
}

.brand,
.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            #2d8ced,
            #55b7ff
        );
    box-shadow:
        0 7px 22px rgba(63, 160, 255, 0.3);
    font-size: 21px;
}

.brand strong {
    display: block;
    font-size: 15px;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

nav {
    margin-top: 34px;
    display: grid;
    gap: 7px;
}

nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 13px;
    border-radius: 11px;
    color: #a6b6c8;
    text-decoration: none;
    font-size: 13px;
}

nav a:hover,
nav a.active {
    background: rgba(75, 158, 255, 0.12);
    color: white;
}

nav a.active {
    box-shadow:
        inset 2px 0 0 var(--accent);
}

.sidebar-footer {
    margin-top: auto;
    padding: 14px 8px;
    color: var(--muted);
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.source-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow:
        0 0 12px rgba(73, 214, 150, 0.8);
}

.main {
    min-width: 0;
    padding: 26px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.eyebrow {
    display: block;
    color: #5d9bd9;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.topbar h1 {
    margin: 5px 0 0;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(73, 214, 150, 0.08);
    border: 1px solid rgba(73, 214, 150, 0.18);
    color: #9deac6;
    font-size: 11px;
}

.live-badge span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.live-badge.mini {
    min-height: 27px;
    font-size: 9px;
}

.logout-button,
.secondary-button {
    min-height: 35px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
    color: #bdc9d6;
    padding: 0 13px;
}

.location-bar {
    margin-top: 22px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background:
        rgba(16, 29, 46, 0.75);
}

.location-main {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-right: auto;
}

.location-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(76, 164, 255, 0.12);
    color: var(--accent);
}

.location-label {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.location-main strong {
    font-size: 13px;
}

.location-bar select {
    min-width: 190px;
    height: 35px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #101e2d;
    color: var(--text);
}

.location-status {
    min-width: 150px;
    color: var(--muted);
    font-size: 10px;
}

.location-status.ok {
    color: var(--green);
}

.summary-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.summary-card {
    min-height: 98px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(18, 34, 53, 0.95),
            rgba(13, 26, 42, 0.95)
        );
    box-shadow: var(--shadow);
}

.summary-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(71, 160, 255, 0.1);
    font-size: 20px;
}

.summary-card.lightning .summary-icon {
    color: var(--yellow);
    background: rgba(255, 199, 90, 0.1);
}

.summary-card span,
.summary-card small {
    display: block;
    color: var(--muted);
}

.summary-card span {
    font-size: 10px;
}

.summary-card strong {
    display: block;
    margin: 4px 0;
    font-size: 18px;
}

.summary-card small {
    font-size: 9px;
}

.dashboard-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(280px, 0.72fr);
    gap: 14px;
}

.panel {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(15, 29, 46, 0.96),
            rgba(10, 22, 37, 0.96)
        );
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-header {
    min-height: 67px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.panel-header h2 {
    margin: 3px 0 0;
    font-size: 14px;
}

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

.layer-buttons button {
    min-height: 27px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    padding: 0 9px;
    font-size: 9px;
}

.layer-buttons button.active {
    background: rgba(76, 164, 255, 0.12);
    color: var(--accent);
    border-color: rgba(76, 164, 255, 0.25);
}

.map-panel {
    min-height: 480px;
}

.map-placeholder {
    height: 412px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 47% 48%,
            rgba(39, 105, 122, 0.46),
            transparent 24%
        ),
        radial-gradient(
            ellipse at 62% 56%,
            rgba(32, 87, 112, 0.56),
            transparent 31%
        ),
        linear-gradient(
            160deg,
            #071822,
            #0e2530 45%,
            #07141f
        );
}

.map-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.17;
    background-image:
        linear-gradient(
            rgba(255,255,255,0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.08) 1px,
            transparent 1px
        );
    background-size: 44px 44px;
}

.mexico-shape {
    position: absolute;
    left: 36%;
    top: 42%;
    transform: rotate(11deg);
    color: rgba(210, 235, 245, 0.58);
    letter-spacing: 0.32em;
    font-size: 18px;
    font-weight: 700;
}

.map-cloud {
    position: absolute;
    border-radius: 50%;
    filter: blur(17px);
    background: rgba(238, 247, 250, 0.18);
}

.cloud-a {
    width: 230px;
    height: 95px;
    left: 21%;
    top: 24%;
    transform: rotate(-20deg);
}

.cloud-b {
    width: 180px;
    height: 100px;
    right: 17%;
    top: 49%;
}

.cloud-c {
    width: 150px;
    height: 75px;
    left: 45%;
    bottom: 14%;
}

.map-location {
    position: absolute;
    left: 44%;
    top: 55%;
    font-size: 9px;
    color: #d7e7f7;
}

.map-location span {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
        0 0 0 5px rgba(76,164,255,0.16);
}

.map-message {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(5, 13, 22, 0.72);
    backdrop-filter: blur(8px);
}

.map-message strong {
    font-size: 11px;
}

.map-message span {
    color: var(--muted);
    font-size: 9px;
}

.hurricane-panel {
    min-height: 480px;
}

.storm-card {
    margin: 14px;
    padding: 17px;
    min-height: 145px;
    display: flex;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background:
        rgba(255, 255, 255, 0.025);
}

.storm-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(76,164,255,0.09);
    font-size: 25px;
}

.storm-card strong,
.storm-card span {
    display: block;
}

.storm-card strong {
    font-size: 12px;
}

.storm-card span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
}

.lightning-panel,
.forecast-panel,
.alerts-panel {
    min-height: 295px;
}

.lightning-radar {
    height: 155px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle,
            rgba(40, 120, 170, 0.16),
            transparent 60%
        );
}

.ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform:
        translate(-50%, -50%);
    border: 1px solid rgba(82, 159, 216, 0.21);
    border-radius: 50%;
}

.r1 {
    width: 45px;
    height: 45px;
}

.r2 {
    width: 85px;
    height: 85px;
}

.r3 {
    width: 125px;
    height: 125px;
}

.r4 {
    width: 175px;
    height: 175px;
}

.radar-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform:
        translate(-50%, -50%);
}

.radar-center span {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
        0 0 0 5px rgba(76,164,255,0.17);
}

.bolt {
    position: absolute;
    color: var(--yellow);
    font-size: 15px;
    text-shadow:
        0 0 12px rgba(255,199,90,0.55);
}

.b1 {
    left: 59%;
    top: 25%;
}

.b2 {
    left: 35%;
    top: 54%;
}

.b3 {
    left: 67%;
    top: 64%;
}

.lightning-stats,
.forecast-details {
    padding: 12px 15px;
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 8px;
    border-top: 1px solid var(--border);
}

.lightning-stats span,
.forecast-details span {
    display: block;
    color: var(--muted);
    font-size: 8px;
}

.lightning-stats strong,
.forecast-details strong {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

.forecast-main {
    min-height: 135px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.weather-big {
    font-size: 47px;
}

.forecast-main strong,
.forecast-main span {
    display: block;
}

.forecast-main strong {
    font-size: 28px;
}

.forecast-main span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.empty-alerts {
    padding: 25px 19px;
    display: flex;
    gap: 13px;
}

.empty-alerts > span {
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--green);
    background: rgba(73,214,150,0.09);
}

.empty-alerts strong {
    font-size: 12px;
}

.empty-alerts p {
    color: var(--muted);
    font-size: 10px;
}

/* LOGIN */

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(900px, 100%);
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        minmax(320px, 0.8fr);
    gap: 60px;
    align-items: center;
}

.login-brand .brand-icon {
    width: 62px;
    height: 62px;
    font-size: 29px;
    border-radius: 18px;
}

.login-brand h1 {
    margin: 0;
    font-size: 35px;
}

.login-brand p {
    margin: 5px 0 0;
    color: var(--muted);
}

.login-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(15, 28, 45, 0.92);
    box-shadow: var(--shadow);
}

.login-header h2 {
    margin: 5px 0 6px;
}

.login-header p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.login-card label {
    display: grid;
    gap: 6px;
    margin-top: 13px;
    color: #aebdcc;
    font-size: 10px;
}

.login-card input {
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #0b1724;
    color: var(--text);
    padding: 0 12px;
    outline: none;
}

.login-card input:focus {
    border-color: rgba(75, 166, 255, 0.6);
    box-shadow:
        0 0 0 3px rgba(75, 166, 255, 0.09);
}

.login-card button {
    width: 100%;
    height: 43px;
    margin-top: 18px;
    border: 0;
    border-radius: 10px;
    background:
        linear-gradient(
            135deg,
            #287bd3,
            #4da9ff
        );
    color: white;
    font-weight: 700;
}

.login-security {
    margin-top: 17px;
    text-align: center;
    color: var(--muted);
    font-size: 9px;
}

.login-error {
    padding: 9px 10px;
    border-radius: 8px;
    background: rgba(255, 107, 114, 0.1);
    color: #ffb2b6;
    font-size: 10px;
}

@media (max-width: 1050px) {
    .summary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .main {
        padding: 15px;
    }

    .topbar {
        align-items: flex-start;
    }

    .location-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .location-main {
        margin-right: 0;
    }

    .location-bar select {
        width: 100%;
    }

    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .layer-buttons {
        display: none;
    }

    .login-shell {
        display: block;
    }

    .login-brand {
        margin-bottom: 26px;
    }
}

/* MAPA REAL */

.map-real-shell {
    height: 412px;
    position: relative;
    overflow: hidden;
    background: #071823;
}

#weather-map {
    width: 100%;
    height: 100%;
    background: #071823;
    z-index: 1;
}

#weather-map .leaflet-tile-pane {
    filter:
        invert(91%)
        hue-rotate(180deg)
        brightness(72%)
        contrast(92%)
        saturate(70%);
}

#weather-map .leaflet-control-zoom a {
    color: #d9e9f8;
    background: rgba(9, 21, 35, 0.92);
    border-color: rgba(151, 175, 204, 0.18);
}

#weather-map .leaflet-control-zoom a:hover {
    background: #14283c;
}

#weather-map .leaflet-control-attribution,
#weather-map .leaflet-control-scale-line {
    color: #9eb1c5;
    background: rgba(5, 14, 24, 0.78);
    border-color: rgba(151, 175, 204, 0.2);
}

#weather-map .leaflet-control-attribution a {
    color: #66b4ff;
}

.map-source-badge {
    position: absolute;
    z-index: 500;
    left: 16px;
    bottom: 28px;
    padding: 10px 12px;
    display: grid;
    gap: 2px;
    border: 1px solid rgba(151, 175, 204, 0.15);
    border-radius: 10px;
    background: rgba(5, 13, 22, 0.82);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.map-source-badge strong {
    font-size: 11px;
}

.map-source-badge span {
    color: var(--muted);
    font-size: 9px;
}

@media (max-width: 760px) {
    .map-real-shell {
        height: 360px;
    }
}

/* MAPLIBRE + OPENFREEMAP */

#weather-map {
    width: 100%;
    height: 100%;
    background: #07131f;
}

#weather-map canvas {
    outline: none;
}

#weather-map .maplibregl-ctrl-group {
    overflow: hidden;
    border: 1px solid
        rgba(151, 175, 204, 0.18);
    border-radius: 9px;
    background:
        rgba(8, 20, 33, 0.92);
    box-shadow: none;
}

#weather-map .maplibregl-ctrl-group button {
    background-color: transparent;
}

#weather-map
.maplibregl-ctrl-group
button:hover {
    background-color:
        rgba(76, 164, 255, 0.12);
}

#weather-map
.maplibregl-ctrl-group
.maplibregl-ctrl-icon {
    filter: invert(1);
    opacity: 0.8;
}

#weather-map
.maplibregl-ctrl-attrib {
    color: #9eb1c5;
    background:
        rgba(5, 14, 24, 0.80);
}

#weather-map
.maplibregl-ctrl-attrib a {
    color: #66b4ff;
}

#weather-map
.maplibregl-ctrl-scale {
    color: #b8c8d8;
    border-color: #7e95aa;
    background:
        rgba(5, 14, 24, 0.80);
}

.map-user-marker {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        rgba(73, 169, 255, 0.16);
    box-shadow:
        0 0 0 8px
        rgba(73, 169, 255, 0.08);
}

.map-user-marker span {
    display: block;
    width: 11px;
    height: 11px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #49a9ff;
    box-shadow:
        0 0 15px
        rgba(73, 169, 255, 0.85);
}

/* MAPLIBRE + OPENFREEMAP */

#weather-map {
    width: 100%;
    height: 100%;
    background: #07131f;
}

#weather-map canvas {
    outline: none;
}

#weather-map .maplibregl-ctrl-group {
    overflow: hidden;
    border: 1px solid
        rgba(151, 175, 204, 0.18);
    border-radius: 9px;
    background:
        rgba(8, 20, 33, 0.92);
    box-shadow: none;
}

#weather-map .maplibregl-ctrl-group button {
    background-color: transparent;
}

#weather-map
.maplibregl-ctrl-group
button:hover {
    background-color:
        rgba(76, 164, 255, 0.12);
}

#weather-map
.maplibregl-ctrl-group
.maplibregl-ctrl-icon {
    filter: invert(1);
    opacity: 0.8;
}

#weather-map
.maplibregl-ctrl-attrib {
    color: #9eb1c5;
    background:
        rgba(5, 14, 24, 0.80);
}

#weather-map
.maplibregl-ctrl-attrib a {
    color: #66b4ff;
}

#weather-map
.maplibregl-ctrl-scale {
    color: #b8c8d8;
    border-color: #7e95aa;
    background:
        rgba(5, 14, 24, 0.80);
}

.map-user-marker {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        rgba(73, 169, 255, 0.16);
    box-shadow:
        0 0 0 8px
        rgba(73, 169, 255, 0.08);
}

.map-user-marker span {
    display: block;
    width: 11px;
    height: 11px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #49a9ff;
    box-shadow:
        0 0 15px
        rgba(73, 169, 255, 0.85);
}

/* GOES-19 GEOCOLOR */

.weather-layer {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 180ms ease;
}

.weather-layer.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.satellite-layer {
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #02070c;
}

.satellite-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.satellite-overlay {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 5;
    padding: 10px 12px;
    display: grid;
    gap: 3px;
    border:
        1px solid
        rgba(151,175,204,0.18);
    border-radius: 10px;
    background:
        rgba(4,11,19,0.82);
    backdrop-filter:
        blur(9px);
}

.satellite-overlay strong {
    font-size: 11px;
}

.satellite-overlay span {
    color: var(--muted);
    font-size: 9px;
}

/* GOES ANIMATION PLAYER */

.satellite-layer {
    overflow: hidden;
}

.satellite-backdrop {
    position: absolute;
    inset: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    object-fit: cover;
    filter:
        blur(24px)
        brightness(0.48)
        saturate(0.8);
    opacity: 0.58;
    transform: scale(1.08);
}

.satellite-main-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition:
        opacity 120ms ease;
}

.satellite-main-image.loaded {
    opacity: 1;
}

.satellite-player {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: 14px;
    transform:
        translateX(-50%);
    width:
        min(
            620px,
            calc(100% - 210px)
        );
    padding: 9px 11px;
    border:
        1px solid
        rgba(151,175,204,0.18);
    border-radius: 11px;
    background:
        rgba(4,11,19,0.88);
    backdrop-filter:
        blur(12px);
}

.satellite-player-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.satellite-player button,
.satellite-player select {
    height: 27px;
    border:
        1px solid
        rgba(151,175,204,0.18);
    border-radius: 7px;
    background:
        rgba(255,255,255,0.045);
    color: #dbe9f6;
    padding: 0 9px;
    font-size: 9px;
}

#sat-play {
    min-width: 83px;
}

#sat-frame-time {
    margin-left: auto;
    color: #dce9f6;
    font-size: 9px;
    white-space: nowrap;
}

#sat-timeline {
    width: 100%;
    height: 4px;
    margin-top: 9px;
    accent-color: #49a9ff;
    cursor: pointer;
}

@media (max-width: 760px) {

    .satellite-player {
        width:
            calc(100% - 28px);
        bottom: 12px;
    }

    .satellite-overlay {
        top: 12px;
        bottom: auto;
    }

    #sat-frame-time {
        display: none;
    }
}

/* GLM LOCAL RADAR */

.lightning-radar {
    height: 245px;
    isolation: isolate;
}

.lightning-ring {
    overflow: visible;
}

.ring-100 {
    width: 220px;
    height: 220px;
}

.ring-50 {
    width: 110px;
    height: 110px;
}

.ring-25 {
    width: 55px;
    height: 55px;
}

.ring-10 {
    width: 22px;
    height: 22px;
}

.lightning-ring > span {
    position: absolute;
    top: -15px;
    left: 50%;
    transform:
        translateX(-50%);
    color: #69849d;
    font-size: 8px;
    white-space: nowrap;
}

.lightning-points {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.lightning-flash-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    transform:
        translate(-50%, -50%);
    border-radius: 50%;
    background: #ffd45a;
    box-shadow:
        0 0 8px
        rgba(255, 212, 90, 0.85);
}

.lightning-flash-dot.fresh {
    width: 7px;
    height: 7px;
    background: #fff1a8;
    box-shadow:
        0 0 13px
        rgba(255, 226, 105, 1);
}

.lightning-flash-dot.recent {
    opacity: 0.72;
}

.lightning-flash-dot.old {
    opacity: 0.28;
}

.lightning-radar-empty {
    position: absolute;
    z-index: 5;
    left: 12px;
    bottom: 10px;
    padding: 6px 8px;
    border-radius: 7px;
    background:
        rgba(5, 14, 24, 0.68);
    color: #8295aa;
    font-size: 8px;
    pointer-events: none;
}

.lightning-radar-empty.quiet {
    color: #9fb4c7;
}

.lightning-stats-live {
    grid-template-columns:
        repeat(6, 1fr);
}

@media (max-width: 760px) {

    .lightning-stats-live {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .ring-100 {
        width: 190px;
        height: 190px;
    }

    .ring-50 {
        width: 95px;
        height: 95px;
    }
}

/* GLM SOBRE MAPA */

.glm-map-legend {
    position: absolute;
    z-index: 520;
    right: 15px;
    bottom: 15px;
    min-width: 210px;
    padding: 10px 12px;
    display: grid;
    gap: 4px;
    border:
        1px solid
        rgba(151,175,204,0.18);
    border-radius: 10px;
    background:
        rgba(4,11,19,0.88);
    backdrop-filter:
        blur(10px);
    pointer-events: none;
}

.glm-map-legend[hidden] {
    display: none;
}

.glm-map-legend strong {
    font-size: 10px;
}

.glm-map-legend span {
    color: #ffd45a;
    font-size: 8px;
}

.glm-map-legend small {
    color: var(--muted);
    font-size: 8px;
}

.glm-popup {
    display: grid;
    gap: 3px;
    color: #152333;
}

.glm-popup strong {
    font-size: 11px;
}

.glm-popup span {
    font-size: 13px;
    font-weight: 800;
}

.glm-popup small {
    font-size: 9px;
}

/* NHC */

.nhc-storm-list {
    display: grid;
}

.nhc-loading {
    margin: 16px;
    padding: 18px;
    color: var(--muted);
    font-size: 10px;
}

.nhc-storm-content {
    display: grid;
    gap: 4px;
}

.nhc-storm-content small {
    color: #5d9bd9;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.storm-card.nhc-empty {
    opacity: 0.72;
}

.storm-card.nhc-active {
    border-color:
        rgba(255, 90, 103, 0.22);
}

.nhc-map-legend {
    position: absolute;
    z-index: 521;
    right: 15px;
    bottom: 15px;
    min-width: 205px;
    padding: 10px 12px;
    display: grid;
    gap: 4px;
    border:
        1px solid
        rgba(151,175,204,0.18);
    border-radius: 10px;
    background:
        rgba(4,11,19,0.88);
    backdrop-filter:
        blur(10px);
    pointer-events: none;
}

.nhc-map-legend[hidden] {
    display: none;
}

.nhc-map-legend strong {
    font-size: 10px;
}

.nhc-map-legend span {
    color: #91c8ff;
    font-size: 8px;
}

.nhc-map-legend small {
    color: var(--muted);
    font-size: 8px;
}

/* HURACANES EN MAPA */

.map-mode-hidden {
    display: none !important;
}
