:root {
    --bg: #071226;
    --bg-alt: #13203a;
    --panel: rgba(17, 29, 52, 0.78);
    --panel-border: rgba(69, 195, 255, 0.32);
    --text: #ecf4ff;
    --muted: #9db0cc;
    --accent: #45c3ff;
    --accent-alt: #24f2c8;
    --warning: #f7cc64;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at 8% 4%, #20375f 0%, var(--bg) 38%, #050a15 100%);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    min-height: 100vh;
    position: relative;
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(rgba(69, 195, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(69, 195, 255, 0.06) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(circle at center, black 32%, transparent 100%);
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(78px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.orb-a {
    width: 300px;
    height: 300px;
    background: #2f7cff;
    top: 5%;
    right: 10%;
}

.orb-b {
    width: 260px;
    height: 260px;
    background: #24f2c8;
    left: 8%;
    bottom: 10%;
}

.layout {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 16px 48px;
    position: relative;
    z-index: 1;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
}

.kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--accent);
    font-size: 12px;
}

h1 {
    margin: 6px 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1;
}

.subtitle {
    margin: 0;
    color: var(--muted);
}

.hero-meta {
    display: grid;
    justify-items: end;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.nav-link {
    color: var(--accent-alt);
    text-decoration: none;
    font-weight: 700;
}

.nav-link:hover {
    text-decoration: underline;
}

.panel {
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--panel);
    backdrop-filter: blur(6px);
}

.panel-head h2 {
    margin: 0;
    font-size: 20px;
}

.panel-head p {
    margin: 2px 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.control-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

select,
button {
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font: inherit;
    padding: 10px 11px;
}

button {
    cursor: pointer;
    background: linear-gradient(120deg, #2f7cff, #24f2c8);
    color: #081322;
    font-weight: 700;
}

button:hover {
    opacity: 0.92;
}

.muted {
    color: var(--muted);
    font-size: 14px;
    margin: 10px 0 0;
}

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

.stat-card {
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(8, 27, 52, 0.86), rgba(18, 36, 68, 0.8));
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

.stat-card span {
    color: var(--muted);
    font-size: 12px;
}

.stat-card strong {
    font-size: 22px;
    line-height: 1.1;
}

.chart-wrap {
    border: 1px solid rgba(69, 195, 255, 0.24);
    border-radius: 12px;
    background: rgba(4, 11, 23, 0.65);
    overflow: hidden;
}

svg {
    width: 100%;
    height: 320px;
    display: block;
}

.chart-bg {
    fill: rgba(3, 8, 18, 0.8);
}

.grid-line {
    stroke: rgba(69, 195, 255, 0.12);
    stroke-width: 1;
}

.line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.line-hot {
    stroke: #4ad8ff;
}

.line-cool {
    stroke: #24f2c8;
}

.line-point {
    stroke-width: 2;
    fill: #081322;
}

.axis-label {
    fill: #9db0cc;
    font-size: 11px;
}

.chart-empty {
    fill: #9db0cc;
    font-size: 16px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

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

th,
td {
    text-align: left;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(69, 195, 255, 0.14);
    font-size: 13px;
}

th {
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.01em;
}

tr:hover td {
    background: rgba(69, 195, 255, 0.06);
}

.mono {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
}

.empty {
    color: var(--muted);
    text-align: center;
    padding: 16px;
}

.footer {
    margin-top: 28px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.footer a {
    color: var(--accent-alt);
}

@media (max-width: 900px) {
    .hero-meta {
        justify-items: start;
    }

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

    svg {
        min-width: 700px;
    }
}

@media (max-width: 640px) {
    .layout {
        padding: 20px 10px 34px;
    }

    .panel {
        padding: 10px;
    }

    h1 {
        font-size: clamp(28px, 9vw, 44px);
    }
}
