:root {
    --navy: #0b2b4a;
    --navy-2: #123a63;
    --gold: #e8a317;
    --gold-2: #c98a0c;
    --bg: #f4f6f9;
    --ink: #1c2430;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
}
.app-wrap { display: flex; min-height: 100vh; }
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--navy) 0%, #071d33 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-mark {
    width: 40px; height: 40px; border-radius: 8px;
    background: var(--gold); color: var(--navy);
    font-weight: 800; display: flex; align-items: center; justify-content: center;
    font-size: 13px; letter-spacing: .4px;
}
.brand strong { display: block; font-size: 13px; line-height: 1.2; }
.brand small { color: #c5d4e6; font-size: 11px; }
.sidebar .nav { padding: 10px 8px; flex: 1; }
.sidebar .nav-link {
    color: #d7e4f2;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 13.5px;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: rgba(232,163,23,.18);
    color: #fff;
}
.sidebar .nav-link.active { border-left: 3px solid var(--gold); }
.nav-section {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8aa0b8;
    padding: 14px 12px 4px;
}
.sidebar-foot { padding: 12px 16px; font-size: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-foot a { color: var(--gold); text-decoration: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    background: var(--navy-2);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 22px;
}
.topbar h1 { font-size: 18px; margin: 0; font-weight: 600; }
.topbar-user { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.content { padding: 20px 22px 40px; }
.card-soft {
    background: #fff;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(11,43,74,.08);
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat {
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(11,43,74,.08);
    border-top: 3px solid var(--gold);
}
.stat .n { font-size: 22px; font-weight: 700; color: var(--navy); }
.stat .l { font-size: 12px; color: #5b6b7c; text-transform: uppercase; letter-spacing: .04em; }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #5b6b7c; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1a1304; font-weight: 600; }
.btn-gold:hover { background: var(--gold-2); color: #fff; }
.awb-num { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .04em; color: var(--navy); }
.login-body {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #071d33, #123a63 55%, #0b2b4a);
}
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 12px; padding: 32px; }
.login-card h1 { font-size: 22px; color: var(--navy); }
.rate-feed input { min-width: 0; }
@media (max-width: 900px) {
    .app-wrap { flex-direction: column; }
    .sidebar { width: 100%; }
    .sidebar .nav { flex-direction: row; flex-wrap: wrap; }
}
