body {
    background: #f4f7fb;
    color: #1f2937;
}
.app-shell {
    min-height: 100vh;
    display: flex;
}
.sidebar {
    width: 275px;
    min-height: 100vh;
    background: linear-gradient(180deg, #14213d 0%, #0f172a 100%);
    padding: 22px 18px;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 12px 0 30px rgba(15, 23, 42, .08);
}
.brand-box {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
}
.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #14213d;
    background: linear-gradient(135deg, #ffb703, #fb8500);
}
.brand-title { color: #fff; font-weight: 800; letter-spacing: .2px; }
.brand-subtitle { color: rgba(255,255,255,.55); font-size: .85rem; }
.sidebar .nav-link {
    color: rgba(255,255,255,.72);
    border-radius: 13px;
    padding: 11px 13px;
    font-weight: 600;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,.1);
    color: #fff;
}
.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 18px;
}
.content {
    flex: 1;
    padding: 28px;
    max-width: 100%;
}
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.page-title {
    font-weight: 800;
    margin: 0;
    color: #0f172a;
}
.page-subtitle {
    color: #64748b;
    margin: 4px 0 0;
}
.stat-card,
.panel-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}
.stat-card .label { color: #64748b; font-weight: 700; font-size: .85rem; }
.stat-card .value { font-size: 2rem; font-weight: 800; color: #14213d; }
.table-card {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    background: #fff;
}
.table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #e2e8f0;
}
.table td, .table th { vertical-align: middle; }
.badge { border-radius: 999px; padding: .48em .7em; }
.btn-primary {
    background: #3b5999;
    border-color: #3b5999;
}
.btn-primary:hover {
    background: #304a82;
    border-color: #304a82;
}
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top left, rgba(59,89,153,.25), transparent 35%), linear-gradient(135deg, #0f172a, #1e293b);
}
.login-card {
    width: min(430px, calc(100vw - 30px));
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.code-box {
    border: 1px dashed #94a3b8;
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    overflow-wrap: anywhere;
}
@media (max-width: 992px) {
    .app-shell { display: block; }
    .sidebar { width: 100%; min-height: auto; position: relative; }
    .content { padding: 18px; }
}
