:root {
    --bg: #0f172a;
    --panel: #1e293b;
    --panel-alt: #273449;
    --border: #334155;
    --border-light: #475569;
    --text: #f8fafc;
    --muted: #cbd5e1;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --accent-soft: rgba(59, 130, 246, 0.12);
    --radius-sm: 5px;
    --radius-md: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.7;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 32px 72px;
    gap: 32px;
}

.hero {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Header branding */
.hero-logo {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}

.hero-logo img {
    height: 36px;
    width: auto;
    opacity: 0.95;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 12px;
    color: var(--muted);
}

.hero h1 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
    margin: 0;
    font-weight: 400;
}

.hero-copy {
    max-width: 640px;
    font-size: 18px;
    color: var(--muted);
}

.hero-metrics {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.metric {
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.metric-value {
    font-size: 32px;
    font-weight: 400;
    color: var(--text);
}

.metric-label {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.btn {
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--border-light);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #0b1324;
}

.btn.ghost {
    background: transparent;
}

.btn.ghost:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--text);
}

.btn.primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #e2e8f0;
}

.dashboards {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.dashboards-header h2 {
    margin: 0 0 4px;
    font-weight: 400;
    font-size: 24px;
}

.dashboards-header p {
    margin: 0;
    color: var(--muted);
    max-width: 620px;
}

.chip {
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.dashboard-status {
    padding: 12px 16px;
    background-color: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted);
}

.dashboard-status[data-state="error"] {
    border-color: rgba(248, 113, 113, 0.4);
    color: #fecaca;
}

.dashboard-status[data-state="success"] {
    border-color: rgba(45, 212, 191, 0.4);
    color: #c3fdfd;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.dashboard-card {
    --card-accent: var(--accent);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--panel-alt);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.dashboard-card__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: var(--muted);
}

.dashboard-card__head {
    display: flex;
    gap: 14px;
    align-items: center;
}

.dashboard-card__favicon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--panel);
    padding: 8px;
}

.dashboard-card:hover {
    border-color: var(--card-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
}

.dashboard-card h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 400;
}

.dashboard-card h3 {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
    font-weight: 400;
}

.dashboard-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.dashboard-card footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    gap: 16px;
}

.dashboard-card__status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-card .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dashboard-card .badge.protected {
    border-color: rgba(248, 113, 113, 0.3);
    color: #fecaca;
    background: rgba(248, 113, 113, 0.12);
}

.dashboard-card .badge.open {
    border-color: rgba(59, 130, 246, 0.4);
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.1);
}

.dashboard-card .badge.coming-soon {
    border-color: rgba(250, 204, 21, 0.4);
    color: #fde68a;
    background: rgba(251, 191, 36, 0.12);
}

.dashboard-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--card-accent);
    text-decoration: none;
    font-weight: 600;
}

.dashboard-card__link span {
    transition: transform 0.2s ease;
}

.dashboard-card__link:hover span {
    transform: translateX(3px);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
    text-align: center;
    color: var(--muted);
    background: var(--panel-alt);
}

.dashboard-card--disabled {
    border-style: dashed;
    opacity: 0.75;
    cursor: not-allowed;
}

.dashboard-card--disabled .dashboard-card__link {
    color: var(--muted);
}

.dashboard-card--disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.site-footer {
    margin-top: auto;
    padding: 32px 8px 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.site-footer__inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer__logo {
    height: 28px;
    width: auto;
    opacity: 0.95;
    vertical-align: middle;
}

.site-footer__copy {
    margin: 0;
    line-height: 1;
    letter-spacing: 0.02em;
}

.noscript {
    margin: 24px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: #fee2e2;
    color: #7f1d1d;
    font-weight: 600;
}

/* 404 page */
.not-found {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    padding: 32px;
}

.not-found__card {
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: var(--panel);
    max-width: 460px;
}

.not-found__card h1 {
    font-size: 56px;
    margin: 0 0 12px;
    font-weight: 400;
}

.not-found__card p {
    color: var(--muted);
    margin-bottom: 24px;
}

.not-found__card a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 768px) {
    .page-shell {
        padding: 24px;
    }

    .hero,
    .dashboards {
        padding: 28px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
