:root {
    --app-bg: #f4f7fc;
    --app-card-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --app-border: #e2e8f0;
    --app-muted: #64748b;
}

body.app-body {
    background: var(--app-bg);
    color: #1e293b;
}

.app-navbar {
    border-bottom: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
}

.app-card {
    border: 1px solid var(--app-border);
    border-radius: 14px;
    box-shadow: var(--app-card-shadow);
}

.card-title-sm {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.85rem;
}

.stat-tile {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 0.8rem;
}

.stat-tile .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--app-muted);
}

.stat-tile .value {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.table-clean thead th {
    background: #f8fafc;
    color: #334155;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom-width: 1px;
}

.table-clean td,
.table-clean th {
    vertical-align: middle;
}

.btn-soft {
    border: 1px solid var(--app-border);
    background: #fff;
    color: #0f172a;
}

.btn-soft:hover {
    background: #f8fafc;
}

.action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.auth-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.auth-card {
    max-width: 900px;
    width: 100%;
}

.auth-hero {
    background: linear-gradient(140deg, #2563eb, #1d4ed8 60%, #3b82f6);
    color: #fff;
    border-radius: 14px 0 0 14px;
    padding: 2rem;
}

.auth-pane {
    padding: 2rem;
}

.auth-muted {
    color: #dbeafe;
}

.empty-state {
    border: 1px dashed var(--app-border);
    border-radius: 12px;
    padding: 1.1rem;
    color: var(--app-muted);
    background: #f8fafc;
}

@media (max-width: 991px) {
    .auth-hero {
        border-radius: 14px 14px 0 0;
    }
}
