* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #172033;
}

.hero {
    background: radial-gradient(circle at top left, #60a5fa, transparent 35%),
                linear-gradient(135deg, #1e3a8a, #0f172a);
    color: white;
    padding: 36px 28px;
}

.hero-inner {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    opacity: 0.85;
    font-weight: bold;
}

.hero h1 {
    margin: 6px 0;
    font-size: 38px;
}

.hero p {
    margin: 0;
    opacity: 0.9;
}

.badge {
    background: rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: 11px 15px;
    font-weight: bold;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    font-weight: bold;
    font-size: 13px;
}

.nav a.active {
    background: white;
    color: #1e3a8a;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 24px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.card,
.panel,
.table-wrap {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.card {
    border-radius: 20px;
    padding: 20px;
}

.card span {
    color: #64748b;
    font-size: 13px;
}

.card strong {
    display: block;
    margin-top: 10px;
    font-size: 34px;
}

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

.panel.narrow {
    max-width: 980px;
    margin: 0 auto;
}

.panel h2 {
    margin: 0 0 6px;
}

.panel p {
    color: #64748b;
}

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

.bot-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
    background: #f8fafc;
}

.bot-icon {
    font-size: 32px;
}

.bot-card h3 {
    margin: 10px 0 4px;
}

code {
    display: inline-block;
    background: #0f172a;
    color: white;
    padding: 6px 9px;
    border-radius: 9px;
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.searchbox,
input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
}

.searchbox {
    border-radius: 999px;
}

.filters,
.actions,
.form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill,
button,
.secondary {
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.pill {
    background: white;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.pill.active,
button {
    background: #2563eb;
    color: white;
}

.table-wrap {
    border-radius: 20px;
    overflow: hidden;
}

.table-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.table-header h2 {
    margin: 0;
}

.muted {
    color: #64748b;
    font-size: 13px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 14px;
}

th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status {
    display: inline-block;
    border-radius: 999px;
    padding: 7px 11px;
    background: #dbeafe;
    color: #1e40af;
    font-weight: bold;
    font-size: 12px;
}

.btn-green {
    background: #dcfce7;
    color: #166534;
}

.btn-blue {
    background: #dbeafe;
    color: #1e40af;
}

.btn-red {
    background: #fee2e2;
    color: #991b1b;
}

.secondary {
    background: #e2e8f0;
    color: #334155;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-weight: bold;
    font-size: 13px;
}

.form-actions {
    justify-content: flex-end;
    margin-top: 22px;
}

.notice {
    padding: 12px 14px;
    border-radius: 14px;
    background: #dcfce7;
    color: #166534;
    font-weight: bold;
    margin-bottom: 16px;
}

.empty {
    padding: 42px;
    text-align: center;
    color: #64748b;
}

@media (max-width: 900px) {
    .hero-inner,
    .toolbar {
        display: block;
    }

    .badge {
        display: inline-block;
        margin-top: 18px;
    }

    .filters {
        margin-top: 12px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        padding: 12px;
        border-bottom: 1px solid #e2e8f0;
    }

    td {
        border: none;
        padding: 8px 4px;
    }

    td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        color: #64748b;
        text-transform: uppercase;
        margin-bottom: 4px;
        font-weight: bold;
    }

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