/* ── Stats Strip ─────────────────────────────────── */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding-top: 20px;
}

.stat-card {
    position: relative;
    border-radius: 16px;
    padding: 22px 24px 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
}

.stat-card::after {
    content: '';
    position: absolute;
    right: -18px;
    top: -18px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.stat-card::before {
    content: '';
    position: absolute;
    right: 20px;
    bottom: -30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.stat-card.total   { background: linear-gradient(135deg, #1565c0, #1e88e5); }
.stat-card.live    { background: linear-gradient(135deg, var(--g-deep), var(--g-light)); }
.stat-card.offline { background: linear-gradient(135deg, #b71c1c, #e53935); }
.stat-card.delay   { background: linear-gradient(135deg, #e65100, #fb8c00); }

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
}

.stat-body { flex: 1; }

.stat-value {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 6px;
}

.live-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6ee7a0;
    box-shadow: 0 0 0 0 rgba(110,231,160,0.7);
    animation: pulse-ring 1.8s ease-out infinite;
    margin-right: 5px;
    vertical-align: middle;
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(110,231,160,0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(110,231,160,0); }
    100% { box-shadow: 0 0 0 0 rgba(110,231,160,0); }
}

@media (max-width: 992px) {
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stats-strip { grid-template-columns: 1fr; }
}

/* ── River Name Cell ─────────────────────────────── */
.river-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--g-deep);
    font-size: 13px;
}

.river-name i { color: var(--g-light); font-size: 12px; }

/* ── Station Link ────────────────────────────────── */
.station-link {
    color: #1a6fa0 !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 1px;
}

.station-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--g-mid);
    transition: width 0.25s ease;
}

.station-link:hover {
    color: var(--g-mid) !important;
}

.station-link:hover::after {
    width: 100%;
}

/* ── Status Badges ───────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.status-badge:hover {
    transform: scale(1.04);
}

.status-badge.live {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #14532d;
    border: 1px solid #86efac;
    box-shadow: 0 2px 8px rgba(34,197,94,0.15);
}

.status-badge.offline {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #7f1d1d;
    border: 1px solid #fca5a5;
    box-shadow: 0 2px 8px rgba(239,68,68,0.12);
}

.status-badge.delay {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #78350f;
    border: 1px solid #fcd34d;
    box-shadow: 0 2px 8px rgba(245,158,11,0.12);
}

.status-badge.nat {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
    border: 1px solid #cbd5e1;
}

/* Status dot */
.status-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-badge.live .dot {
    background: #16a34a;
    box-shadow: 0 0 6px rgba(22,163,74,0.6);
    animation: status-pulse 2s ease-in-out infinite;
}

.status-badge.offline .dot { background: #dc2626; }
.status-badge.delay .dot   { background: #d97706; }
.status-badge.nat .dot     { background: #94a3b8; }

@keyframes status-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(22,163,74,0.6); }
    50%      { opacity: 0.5; box-shadow: 0 0 2px rgba(22,163,74,0.3); }
}

/* ── Map card ────────────────────────────────────── */
#stations-map {
    height: 560px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
