* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0f;
    --card: #12121a;
    --border: #1e1e2e;
    --text: #e4e4e7;
    --dim: #71717a;
    --red: #c8102e;
    --green: #22c55e;
    --yellow: #eab308;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.app {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

header {
    padding: 16px 0 32px;
}

header h1 {
    font-size: 22px;
    font-weight: 700;
}

.subtitle {
    font-size: 13px;
    color: var(--dim);
}

.last-updated {
    font-size: 12px;
    color: var(--dim);
    font-family: 'JetBrains Mono', monospace;
}

/* Hero - current count */
.hero {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
}

.count-number {
    font-size: 64px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    display: block;
}

.count-label {
    font-size: 14px;
    color: var(--dim);
}

.status-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-badge.low {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
}

.status-badge.medium {
    background: rgba(234, 179, 8, 0.15);
    color: var(--yellow);
}

.status-badge.high {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.chart-wrapper {
    height: 250px;
}

/* Heatmap */
.heatmap-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
    table-layout: fixed;
}

.heatmap-container th {
    font-size: 10px;
    color: var(--dim);
    font-family: 'JetBrains Mono', monospace;
    padding: 4px 2px;
    text-align: center;
}

.heatmap-container td {
    text-align: center;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    padding: 10px 2px;
    border-radius: 4px;
    transition: transform 0.15s ease;
}

.heatmap-container td:hover {
    transform: scale(1.15);
    z-index: 1;
}

.heatmap-container .day-label {
    text-align: right;
    padding-right: 8px;
    font-weight: 600;
    color: var(--dim);
    width: 40px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    color: var(--dim);
}

footer {
    text-align: center;
    padding: 32px 0;
    font-size: 13px;
    color: var(--dim);
}

.location {
    display: inline-block;
    text-align: center;
    padding: 20px 40px;
}

.location h3 {
    font-size: 14px;
    color: var(--dim);
    margin-bottom: 8px;
}

/* Live pulse dot */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

/* Card glow and shadows */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    border-color: rgba(200, 16, 46, 0.3);
    box-shadow: 0 4px 32px rgba(200, 16, 46, 0.08);
}

/* Hero glow */
.hero {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(200, 16, 46, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* Location cards inside hero */
.location {
    display: inline-block;
    text-align: center;
    padding: 20px 40px;
    position: relative;
}

.location h3 {
    font-size: 14px;
    color: var(--dim);
    margin-bottom: 8px;
}

/* Prediction section */
.predict-section {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.predict-select {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.predict-select:hover {
    border-color: var(--red);
}

.predict-btn {
    background: var(--red);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.predict-btn:hover {
    background: #a00d24;
    box-shadow: 0 0 16px rgba(200, 16, 46, 0.3);
}

.predict-result {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    margin-top: 16px;
    min-height: 28px;
}

/* Smoother heatmap */
.heatmap-container td {
    text-align: center;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    padding: 10px 2px;
    border-radius: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.heatmap-container td:hover {
    transform: scale(1.15);
    z-index: 1;
    box-shadow: 0 0 12px rgba(200, 16, 46, 0.2);
}

/* Stats glow on numbers */
.stat-value {
    display: block;
    font-size: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Last updated with live dot */
.last-updated {
    font-size: 12px;
    color: var(--dim);
    font-family: 'JetBrains Mono', monospace;
}

/* Discord button */
.discord-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #5865F2;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
    transition: all 0.2s ease;
    z-index: 100;
}

.discord-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.5);
}

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