/* ─── Reset & Base ─── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0e17;
    color: #e0e7f0;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ─── Header ─── */
header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1a2332;
}

header h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    color: #8899aa;
    margin-top: 4px;
}

.last-updated {
    margin-top: 10px;
    font-size: 13px;
    color: #556677;
}

.last-updated span {
    color: #88aacc;
}

/* ─── Summary Stats ─── */
.summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: #111b2a;
    border: 1px solid #1a2a3a;
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
    transition: border-color 0.2s;
}

.stat-card:hover {
    border-color: #2a4a6a;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #778899;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #f0f4fa;
}

.stat-value.highlight {
    color: #00d4ff;
}

/* ─── Sponsors Table ─── */
.sponsors-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ccd8e6;
}

.table-wrapper {
    background: #111b2a;
    border: 1px solid #1a2a3a;
    border-radius: 12px;
    overflow-x: auto;
    padding: 4px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: #0d1520;
}

th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #8899aa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #1a2a3a;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid #0d1a28;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #0d1a2a;
}

/* ─── Status Badges ─── */
.status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: #0a2a1a;
    color: #4ade80;
    border: 1px solid #1a4a2a;
}

.status-inactive {
    background: #2a1a1a;
    color: #f87171;
    border: 1px solid #4a2a2a;
}

.status-pending {
    background: #1a2a1a;
    color: #fbbf24;
    border: 1px solid #4a4a1a;
}

/* ─── Slot Badge ─── */
.slot-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #1a2a3a;
    color: #88aacc;
}

/* ─── CTR Bar ─── */
.ctr-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctr-bar {
    width: 60px;
    height: 6px;
    background: #1a2a3a;
    border-radius: 4px;
    overflow: hidden;
}

.ctr-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #4ade80, #00d4ff);
    transition: width 0.6s ease;
}

.ctr-bar-fill.low {
    background: #f87171;
}

.ctr-bar-fill.medium {
    background: #fbbf24;
}

.ctr-bar-fill.high {
    background: #4ade80;
}

/* ─── Error Message ─── */
.error-message {
    background: #2a1a1a;
    border: 1px solid #4a2a2a;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 20px;
    color: #f87171;
}

/* ─── Loading ─── */
.loading {
    text-align: center;
    color: #556677;
    padding: 30px 0;
}

/* ─── Footer ─── */
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1a2332;
    font-size: 13px;
    color: #445566;
    text-align: center;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    header h1 {
        font-size: 22px;
    }

    .summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 22px;
    }

    table {
        font-size: 13px;
    }

    th,
    td {
        padding: 10px 12px;
    }

    .ctr-bar {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .summary {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 18px;
    }

    th,
    td {
        padding: 8px 10px;
        font-size: 12px;
    }
}