body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: radial-gradient(circle at top left, #16324f 0, #07111f 38%, #030712 100%);
    color: #e5edf7;
}

.dashboard-shell {
    padding: 32px;
    max-width: 1500px;
    margin: 0 auto;
}

.hero-card {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(14, 165, 233, 0.12));
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.eyebrow {
    margin: 0 0 8px;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    font-weight: 700;
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1;
}

.hero-subtitle {
    max-width: 660px;
    margin: 16px 0 0;
    color: #b8c7d9;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.primary-button,
.select-control,
.search-box {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.82);
    color: #f8fafc;
    font-size: 0.95rem;
}

.primary-button {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    font-weight: 800;
    cursor: pointer;
}

    .primary-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.status-line {
    margin: 18px 4px;
    color: #cbd5e1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.stat-card,
.table-card,
.loading-card {
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.stat-card {
    padding: 22px;
}

    .stat-card span {
        display: block;
        color: #94a3b8;
        font-size: 0.88rem;
    }

    .stat-card strong {
        display: block;
        margin-top: 8px;
        font-size: 2rem;
    }

    .stat-card.highlight {
        background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(15, 23, 42, 0.78));
    }

.table-card {
    padding: 24px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

    .table-header h2 {
        margin: 0;
        font-size: 1.6rem;
    }

    .table-header p {
        margin: 6px 0 0;
        color: #94a3b8;
    }

.search-box {
    min-width: 260px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

th {
    text-align: left;
    color: #93c5fd;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    padding: 14px 12px;
}

td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    color: #dbeafe;
}

tr:hover {
    background: rgba(59, 130, 246, 0.12);
}

.focus-row {
    background: rgba(250, 204, 21, 0.14);
}

    .focus-row .feeder-name {
        color: #fde68a;
        font-weight: 900;
    }

.rank-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
    font-weight: 800;
}

.table-note {
    color: #94a3b8;
    margin: 16px 0 0;
}

.loading-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(148, 163, 184, 0.3);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .dashboard-shell {
        padding: 18px;
    }

    .hero-card,
    .table-header {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        min-width: 0;
        width: 100%;
    }
    .sortable {
        cursor: pointer;
        user-select: none;
    }

        .sortable:hover {
            color: #ffffff;
            background: rgba(59, 130, 246, 0.16);
        }
    .compact-hero h1 {
        font-size: clamp(2rem, 4vw, 3.4rem);
    }

    .stat-card small {
        display: block;
        margin-top: 10px;
        color: #94a3b8;
        line-height: 1.4;
    }

    .compare-controls {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .wide-select {
        min-width: 230px;
    }
}
