:root {
    --bg: #006d77;
    --bg-soft: #0b5560;
    --panel: rgba(237, 246, 249, 0.92);
    --panel-border: rgba(0, 109, 119, 0.2);
    --text: #204047;
    --muted: #56767c;
    --blue: #006d77;
    --cyan: #83c5be;
    --slate: #b9dcda;
    --rose: #e29578;
    --emerald: #83c5be;
    --amber: #ffddd2;
    --violet: #ffddd2;
    --green: #83c5be;
    --orange: #e29578;
    --red: #e29578;
    --teal: #006d77;
    --paper: rgba(255, 255, 255, 0.38);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(131, 197, 190, 0.38), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 221, 210, 0.5), transparent 26%),
        radial-gradient(circle at bottom, rgba(226, 149, 120, 0.16), transparent 30%),
        linear-gradient(180deg, #006d77 0%, #0b5560 100%);
}

.page-shell {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 40px;
}

.hero,
.panel,
.metric-card,
.status-banner {
    backdrop-filter: blur(16px);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: 0 20px 45px rgba(25, 46, 55, 0.28);
}

.hero {
    padding: 28px;
    border-radius: 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.eyebrow {
    margin: 0 0 10px;
    color: #4f9b96;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 700;
}

h1,
h2 {
    margin: 0;
}

h1 {
    font-size: clamp(30px, 4vw, 48px);
}

h2 {
    font-size: 22px;
}

.hero-copy {
    margin: 14px 0 0;
    max-width: 720px;
    color: var(--muted);
    line-height: 1.6;
}

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

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
}

.language-switcher {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(0, 109, 119, 0.14);
}

.lang-button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.lang-button.active {
    color: #fffdf9;
    background: linear-gradient(135deg, #006d77, #0b5560);
}

.action-link {
    border: 0;
    text-decoration: none;
    color: #fffdf9;
    border-radius: 14px;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.action-link.primary {
    background: linear-gradient(135deg, #006d77, #0b5560);
}

.action-link.secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(0, 109, 119, 0.16);
}

.status-banner {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 18px;
    color: var(--muted);
}

.status-banner.ready {
    color: #17434b;
    background: rgba(131, 197, 190, 0.34);
    border-color: rgba(0, 109, 119, 0.24);
}

.status-banner.error {
    color: #6a3f31;
    background: rgba(255, 221, 210, 0.5);
    border-color: rgba(226, 149, 120, 0.35);
}

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

.metric-card {
    border-radius: 24px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 248, 235, 0.04), rgba(255, 248, 235, 0)),
        var(--panel);
}

.metric-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    opacity: 0.9;
}

.accent-blue::after { background: var(--blue); }
.accent-cyan::after { background: var(--cyan); }
.accent-slate::after { background: var(--slate); }
.accent-rose::after { background: var(--rose); }
.accent-emerald::after { background: var(--emerald); }
.accent-amber::after { background: var(--amber); }
.accent-violet::after { background: var(--violet); }
.accent-green::after { background: var(--green); }
.accent-orange::after { background: var(--orange); }
.accent-red::after { background: var(--red); }
.accent-teal::after { background: var(--teal); }

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

.metric-value {
    display: block;
    margin-top: 14px;
    font-size: 40px;
    line-height: 1;
}

.featured .metric-value {
    color: var(--teal);
}

.panel-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.panel {
    border-radius: 28px;
    padding: 24px;
}

.panel-grid + .panel {
    margin-top: 18px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.bars {
    display: grid;
    gap: 14px;
}

.bar-row {
    display: grid;
    gap: 8px;
}

.bar-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.bar-label {
    color: var(--text);
}

.bar-value {
    color: var(--muted);
}

.bar-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(0, 109, 119, 0.1);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #83c5be, #006d77, #e29578);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

thead th {
    text-align: left;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(233, 196, 106, 0.2);
}

tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(233, 196, 106, 0.12);
    font-size: 14px;
}

tbody tr:hover {
    background: rgba(255, 248, 235, 0.06);
}

@media (max-width: 980px) {
    .hero,
    .panel-header,
    .hero-side {
        flex-direction: column;
        align-items: flex-start;
    }

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