:root {
    --bg-body: #f5f7fb;
    --sidebar-bg: #040c1c;
    --sidebar-border: #0f1b36;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #6b7280;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #22c55e;
    --danger: #ef4444;
    --muted: #94a3b8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.layout {
    min-height: 100vh;
    display: flex;
}

.layout-public {
    overflow-x: hidden;
}

.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--sidebar-bg);
    color: #fff;
    padding: 20px 14px 16px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--sidebar-border);
    gap: 2px;
}

/* Logo */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    padding: 4px 8px 20px;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #22c55e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Nav */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Separadores de grupo */
.sidebar-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 4px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.sidebar-divider::before {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-divider-admin {
    color: #f59e0b;
    opacity: 0.8;
}

.sidebar-divider-admin::before {
    background: rgba(245, 158, 11, 0.25);
}

/* Links */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    position: relative;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    text-decoration: none;
    border-left-color: rgba(59, 130, 246, 0.5);
}

.sidebar-link.active {
    background: rgba(37, 99, 235, 0.25);
    color: #fff;
    font-weight: 700;
    border-left-color: #3b82f6;
}

.sidebar-link-admin:hover {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: rgba(245, 158, 11, 0.5);
}

.sidebar-link-admin.active {
    background: rgba(245, 158, 11, 0.15);
    border-left-color: #f59e0b;
}

.sidebar-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.15s;
}

.sidebar-link:hover .sidebar-link-icon,
.sidebar-link.active .sidebar-link-icon {
    opacity: 1;
}

.sidebar-link-label {
    flex: 1;
}

/* Badge de offline */
.sidebar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    animation: badge-pulse 1.6s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}

/* Logout */
.logout-link {
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    border-left-color: #ef4444;
}

/* Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.logged-user-label {
    font-size: 1rem;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-body);
    overflow-x: hidden;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    background: var(--card-bg);
    border-bottom: 1px solid #e5e7eb;
}

.topbar-public {
    background: transparent;
    border-bottom: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 18px;
}

.topbar-info p {
    margin: 0;
    font-weight: 600;
}

.topbar-info small {
    color: var(--text-secondary);
}

.role-tag {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--muted);
    margin-left: 8px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ghost-button {
    border: 1px solid #dbeafe;
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--primary);
    font-weight: 600;
    background: #f8fbff;
}

.ghost-button:hover {
    background: #eef4ff;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.chip-plan {
    background: #e0ecff;
    color: var(--primary);
}

.chip-live {
    background: #dcfce7;
    color: var(--success);
}

.container {
    flex: 1;
    padding: 32px;
}

.container-public {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 18px 12px 32px;
}

.card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
}

.card h2,
.card h3 {
    margin-top: 0;
}

.card-head h2 {
    margin: 0;
}

.card-head p,
.card p {
    margin: 6px 0 0;
    color: var(--text-secondary);
}

.card-grid {
    display: grid;
    gap: 20px;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stats-card {
    padding: 18px;
    border-radius: 18px;
    background: #eef2ff;
}

.stats-card strong {
    display: block;
    font-size: 2.2rem;
    line-height: 1.1;
    margin: 8px 0;
}

.stats-card small {
    display: block;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.chart-card canvas {
    width: 100%;
    max-height: 320px;
}

.ip-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.ip-card {
    border-radius: 18px;
    background: var(--card-bg);
    padding: 20px;
    border: 1.5px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ip-card[data-href] {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ip-card[data-href]:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.15);
}

.ip-card.online {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.ip-card.offline {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.ip-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ip-card-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ip-card-stats div {
    flex: 1;
    min-width: 90px;
}

.ip-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid #e5e7eb;
    color: var(--text-secondary);
    background: #f1f5f9;
}

.status-online {
    color: var(--success);
}

.status-offline {
    color: var(--danger);
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.primary-button:hover {
    background: var(--primary-hover);
}

.alert-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.alert-preview-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    background: #f8fafc;
}

.alert-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.alert-type {
    letter-spacing: 0.08em;
}

.alert-status {
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.alert-status.ok {
    background: #dcfce7;
    color: var(--success);
}

.alert-status.fail {
    background: #fee2e2;
    color: var(--danger);
}

.alert-target {
    margin: 0 0 4px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

.alert-date {
    color: var(--text-secondary);
}

.alert-error {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--danger);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 0.95rem;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

tr:hover td {
    background: #f8fafc;
}

input, select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #dbe2ef;
    background: #fff;
    margin-bottom: 12px;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

button {
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: var(--primary-hover);
}

.settings-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.settings-hero-text h2 {
    margin-bottom: 4px;
}

.settings-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0 0 6px;
}

.settings-hero-status {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.settings-status {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 18px;
    min-width: 160px;
    background: #f8fafc;
}

.settings-status span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.settings-status strong {
    font-size: 1.1rem;
}

.settings-status.ok {
    border-color: rgba(34, 197, 94, 0.4);
    color: var(--success);
}

.settings-status.warn {
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--danger);
}

.settings-flash {
    border-radius: 14px;
    padding: 14px 18px;
    font-weight: 600;
}

.settings-flash.success {
    background: #dcfce7;
    color: var(--success);
}

.settings-flash.error {
    background: #fee2e2;
    color: var(--danger);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.form-card,
.test-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.form-card-head h4 {
    margin: 0;
}

.form-card-head p {
    margin: 4px 0 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hint {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: var(--muted);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px dashed #cbd5f5;
    border-radius: 16px;
    background: #f8fafc;
}

.muted-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.settings-tests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.test-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inline-feedback {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.inline-feedback.success {
    background: #dcfce7;
    color: var(--success);
}

.inline-feedback.error {
    background: #fee2e2;
    color: var(--danger);
}

.settings-tests button {
    align-self: flex-start;
}

.footer {
    padding: 16px 32px;
    text-align: center;
    color: var(--text-secondary);
    background: transparent;
}

.auth-page {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 4px 6px;
}

.auth-visual,
.auth-signal,
.auth-signal-dot,
.auth-signal-label,
.auth-visual-badges {
    display: none;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14), 0 6px 16px rgba(15, 23, 42, 0.08);
    max-width: 400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.auth-card h2 {
    margin: 0 0 12px;
}

.auth-card p {
    margin: 0 0 14px;
    color: var(--text-secondary);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 800;
    color: var(--primary);
}

.auth-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #22c55e 100%);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.24);
}

.auth-form label {
    display: block;
    margin: 10px 0 6px;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-form input {
    width: 100%;
    margin-bottom: 10px;
}

.auth-error {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 600;
}

.auth-links {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--primary);
    font-weight: 600;
}

.auth-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-separator::before,
.auth-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-meta {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.auth-meta a {
    font-weight: 700;
}

@media (max-width: 900px) {
    .auth-page {
        max-width: 100%;
        padding: 8px 8px;
    }
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.status-pill {
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text-secondary);
    min-width: 140px;
    text-align: center;
}

.status-pill.online {
    background: #d1fae5;
    color: var(--success);
    animation: status-pulse 1.5s ease-in-out infinite;
}

.status-pill.offline {
    background: #fee2e2;
    color: var(--danger);
}

@keyframes status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.metric-card {
    padding: 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #dbe1f1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.metric-card strong {
    display: block;
    font-size: 1.5rem;
}

.metric-card p {
    margin: 6px 0 0;
}

.metric-label {
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--text-secondary);
}

.heatmap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.heatmap-cell {
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    font-size: 0.8rem;
    border: 1px solid #e5e7eb;
}

.heatmap-cell strong {
    display: block;
}

.heatmap-cell small {
    color: var(--text-secondary);
}

.heatmap-cell.good {
    background: #dcfce7;
    color: var(--success);
}

.heatmap-cell.medium {
    background: #fef9c3;
    color: #ca8a04;
}

.heatmap-cell.bad {
    background: #fee2e2;
    color: var(--danger);
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.back-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.detail-chart-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-chart-tabs button {
    background: #e2e8f0;
    color: var(--text-primary);
}

.detail-chart-tabs button.active {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }

    .sidebar-footer {
        margin-top: 16px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .topbar-actions {
        flex-wrap: wrap;
    }
}

/* Enhancements for IP cards */
.ip-card.latency-risk {
    box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.35);
}

.ip-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-item {
    background: #f1f5f9;
    border-radius: 999px;
    padding: 6px 12px;
}

.ip-card-actions {
    justify-content: flex-end;
}

.chip-risk {
    background: #fef9c3;
    color: #b45309;
}

.chip-channel {
    background: #eef2ff;
    color: #4f46e5;
    display: inline-flex;
    gap: 6px;
}

.chip-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.ip-channel-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.channel-basic input,
.channel-basic select {
    width: 100%;
}

.channel-timing {
    padding: 10px 12px;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.channel-timing-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.channel-timing-head small {
    color: var(--text-secondary);
}

.timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.status-page-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.status-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.status-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.status-subtitle {
    color: var(--text-secondary);
    margin: 6px 0 0;
}

.status-muted {
    color: var(--text-secondary);
    display: inline-block;
    margin-top: 6px;
}

.status-hero .status-muted {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.status-body {
    background: #f5f7fb;
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
}

.status-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.status-hero {
    background: #0f172a;
    color: #fff;
    padding: 28px 0;
}

.status-hero-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.status-hero-left h1 {
    margin: 0;
    font-size: 2.1rem;
    letter-spacing: 0.01em;
}

.status-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    font-weight: 700;
    color: #e9edff;
    letter-spacing: 0.1em;
    margin: 0 0 4px;
}

.status-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    line-height: 1.45;
    align-items: flex-end;
}

.status-hero-meta small {
    font-size: 1rem;
    color: #e9edff;
    letter-spacing: 0.01em;
}

.countdown-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 2px 8px;
    margin-left: 6px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.15);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-refresh-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin-left: 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.2);
    color: #dcfce7;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.status-refresh-badge.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.status-hero-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.status-meta-item {
    margin-right: 16px;
}

.status-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 16px auto;
    max-width: 1100px;
    width: 100%;
    padding: 24px 26px;
    min-height: 90px;
    flex-wrap: wrap;
}

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

.status-overview-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.status-overview-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    text-align: right;
}

.status-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot-lg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.ok {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.status-dot.warn {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.status-dot.danger {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

.service-card {
    margin: 16px auto;
    max-width: 1100px;
}

.service-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.service-host {
    color: #1d4ed8;
    font-weight: 700;
    margin: 4px 0;
}

.service-status {
    display: flex;
    gap: 8px;
    align-items: center;
}

.service-status-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.range-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.range-tab {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    background: #f8fafc;
    color: var(--text-primary);
}

.range-tab.active {
    border-color: var(--primary);
    background: #e0ecff;
    color: var(--primary);
}

.history-row {
    margin-top: 12px;
}

.history-bar {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.history-dot {
    width: 14px;
    height: 14px;
    border-radius: 5px;
    background: #e2e8f0;
}

.history-online {
    background: #22c55e;
}

.history-warn {
    background: #f59e0b;
}

.history-offline {
    background: #ef4444;
}

.status-legend {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 10px auto 24px;
    flex-wrap: wrap;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.ok { background: #22c55e; }
.legend-dot.warn { background: #f59e0b; }
.legend-dot.danger { background: #ef4444; }
