:root {
    --brand: #152238;
    --brand-2: #1f3555;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #0f9f6e;
    --danger: #dc3545;
    --surface: #ffffff;
    --bg: #f4f7fb;
    --muted: #687386;
    --border: #e4e9f1;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(245,158,11,.08), transparent 28rem),
        var(--bg);
    color: #172033;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-nav {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.navbar-brand { color: #fff !important; }

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(145deg, #ffb52e, var(--accent));
    color: #172033;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

.brand-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.brand-subtitle {
    color: rgba(255,255,255,.62);
    font-size: .7rem;
}

.nav-link {
    color: rgba(255,255,255,.72) !important;
    border-radius: 10px;
    padding-inline: .9rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.09);
}

.page-title {
    font-weight: 800;
    letter-spacing: -.02em;
}

.page-kicker {
    color: var(--accent-dark);
    text-transform: uppercase;
    font-weight: 800;
    font-size: .75rem;
    letter-spacing: .12em;
}

.card-pro {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 12px 35px rgba(28,39,60,.06);
}

.stat-card {
    min-height: 145px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -50px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(245,158,11,.08);
}

.stat-label {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}

.stat-value {
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 850;
    letter-spacing: -.03em;
}

.table > :not(caption) > * > * {
    padding: .95rem 1rem;
    border-bottom-color: var(--border);
    vertical-align: middle;
}

.table thead th {
    color: #5d6878;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: #f8fafc;
}

.form-control,
.form-select {
    border: 1px solid #dce3ed;
    border-radius: 12px;
    min-height: 48px;
    padding-inline: .95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(245,158,11,.8);
    box-shadow: 0 0 0 .22rem rgba(245,158,11,.12);
}

.form-label {
    font-weight: 700;
    color: #354055;
}

.btn {
    border-radius: 11px;
    font-weight: 700;
    padding: .62rem 1rem;
}

.btn-brand {
    background: linear-gradient(135deg, var(--accent), #f7b733);
    border: 0;
    color: #1b263b;
}

.btn-brand:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: #fff;
}

.badge-soft-success {
    color: #08784f;
    background: #dff7ed;
}

.badge-soft-warning {
    color: #9a5a00;
    background: #fff1cc;
}

.method-badge {
    display: inline-block;
    border-radius: 999px;
    padding: .3rem .65rem;
    font-weight: 750;
    background: #edf2f8;
    color: #41506a;
}

.action-cell {
    white-space: nowrap;
}

.app-footer {
    color: var(--muted);
    font-size: .85rem;
}

.empty-state {
    color: var(--muted);
    padding: 2.5rem 1rem;
    text-align: center;
}

.section-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.helper {
    color: var(--muted);
    font-size: .85rem;
}

@media (max-width: 768px) {
    .table-responsive {
        border-radius: 14px;
    }
}
