/* ─────────────────────────────────────────
   OrderSysteem Custom Design System
───────────────────────────────────────── */

/* Design Tokens */
:root {
    --ink:         #0d1117;
    --ink-soft:    #1e2530;
    --ink-muted:   #4a5568;
    --ink-faint:   #8896aa;

    --cream:       #faf9f7;
    --cream-2:     #f3f1ed;
    --cream-3:     #eae6e0;

    --gold:        #f59e0b;
    --gold-dim:    rgba(245,158,11,0.12);
    --gold-glow:   rgba(245,158,11,0.28);

    --jade:        #2e9e6e;
    --jade-dim:    rgba(46,158,110,0.1);

    --cobalt:      #3a6fd8;
    --cobalt-dim:  rgba(58,111,216,0.1);

    --rose:        #d94f4f;
    --rose-dim:    rgba(217,79,79,0.08);

    --sidebar-w:   256px;
    --sidebar-ink: #0b1016;
    --nav-text:    rgba(255,255,255,0.38);
    --nav-hover:   rgba(255,255,255,0.07);
    --nav-active:  rgba(245,158,11,0.13);

    --radius:      10px;
    --radius-sm:   7px;

    --shadow-xs:   0 1px 3px rgba(13,17,23,0.07);
    --shadow-sm:   0 2px 10px rgba(13,17,23,0.08);
    --shadow-md:   0 6px 24px rgba(13,17,23,0.11);
    --shadow-lg:   0 14px 48px rgba(13,17,23,0.14);

    --border:      rgba(13,17,23,0.08);
    --border-soft: rgba(13,17,23,0.05);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--cream);
    color: var(--ink);
    display: flex;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* ─── Sidebar ─── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-ink);
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow: hidden;
    transition: transform 0.28s ease;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(212,168,67,0.09) 0%, transparent 65%);
    pointer-events: none;
}

/* Logo */
.logo {
    padding: 26px 22px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.logo-inner { display: flex; align-items: center; gap: 13px; }

.logo-mark {
    width: 38px; height: 38px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px var(--gold-glow));
    transition: filter 0.4s ease;
}

.logo-mark:hover { filter: drop-shadow(0 0 18px var(--gold-glow)); }

.logo-text { display: flex; flex-direction: column; gap: 2px; }

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: #f0ebe0;
    letter-spacing: 0.1px;
    line-height: 1;
}

.logo-name span { color: var(--gold); }

.logo-sub {
    font-size: 9.5px;
    color: rgba(255,255,255,0.2);
    letter-spacing: 2.2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Navigation */
.nav {
    flex: 1;
    padding: 18px 13px;
    overflow-y: auto;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
}

.nav::-webkit-scrollbar { display: none; }

.nav-section { margin-bottom: 22px; }

.nav-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.17);
    padding: 0 9px;
    margin-bottom: 7px;
    display: block;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--nav-text);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 400;
    transition: color 0.15s, background 0.15s;
    cursor: pointer;
    margin-bottom: 2px;
    position: relative;
    border: 1px solid transparent;
    letter-spacing: 0.1px;
}

.nav-link i {
    font-size: 15px;
    width: 19px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.15s;
}

.nav-link:hover {
    background: var(--nav-hover);
    color: rgba(255,255,255,0.72);
    text-decoration: none;
}

.nav-link.active {
    background: var(--nav-active);
    color: var(--gold);
    font-weight: 500;
    border-color: rgba(212,168,67,0.18);
}

.nav-link.active i { color: var(--gold); }

.nav-link.active::before {
    content: '';
    position: absolute;
    left: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: var(--gold);
    border-radius: 0 2px 2px 0;
}

.nav-sep {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 2px 9px 18px;
}

/* User footer */
.sidebar-foot {
    padding: 13px;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    transition: background 0.14s;
}

.user-row:hover { background: rgba(255,255,255,0.04); }

.user-av {
    width: 31px; height: 31px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--sidebar-ink);
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(212,168,67,0.25);
}

.user-info { flex: 1; min-width: 0; }

.user-name-text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-text { font-size: 11px; color: rgba(255,255,255,0.24); margin-top: 1px; display: block; }

.user-logout {
    color: rgba(255,255,255,0.18);
    font-size: 13px;
    flex-shrink: 0;
    transition: color 0.14s;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.user-row:hover .user-logout { color: rgba(255,255,255,0.45); }

/* ─── Main Area ─── */
.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    height: 62px;
    background: rgba(250,249,247,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
    gap: 16px;
}

.topbar-left { display: flex; align-items: center; gap: 12px; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    margin: 0;
    background: none;
    border-radius: 0;
    list-style: none;
}

.bc-root {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-style: italic;
    color: var(--ink-faint);
}

.bc-chevron { font-size: 10px; color: var(--ink-faint); }

.bc-page {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.topbar-right { display: flex; align-items: center; gap: 8px; }

/* Hamburger (mobile only) */
.hamburger {
    display: none;
    width: 36px; height: 36px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink-muted);
    font-size: 16px;
    flex-shrink: 0;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 190;
}

/* CTA button */
.t-cta, a.t-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--gold);
    color: var(--ink) !important;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.1px;
    transition: all 0.18s;
    box-shadow: 0 3px 12px var(--gold-glow);
    text-decoration: none !important;
    white-space: nowrap;
}

.t-cta:hover, a.t-cta:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(245,158,11,0.38);
    color: var(--ink) !important;
}

.t-cta:active { transform: none; }

/* ─── Page Content ─── */
.page {
    padding: 30px 32px;
    flex: 1;
}

.page-view { animation: fadeUp 0.22s ease both; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Page header */
.ph { margin-bottom: 26px; }

.ph-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.3px;
    line-height: 1.15;
}

.ph-sub {
    font-size: 13px;
    color: var(--ink-faint);
    margin-top: 4px;
}

/* ─── Alerts ─── */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 17px;
    border-radius: var(--radius);
    border: 1px solid;
    margin-bottom: 24px;
    font-size: 13.5px;
    animation: slideAlert 0.28s ease both;
}

@keyframes slideAlert {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert-ok {
    background: linear-gradient(135deg, rgba(46,158,110,0.06), rgba(46,158,110,0.03));
    border-color: rgba(46,158,110,0.22);
    color: #1a5c40;
}

.alert-ok i { color: var(--jade); font-size: 17px; flex-shrink: 0; }

.alert-err {
    background: linear-gradient(135deg, rgba(217,79,79,0.06), rgba(217,79,79,0.03));
    border-color: rgba(217,79,79,0.22);
    color: #8c1a1a;
}

.alert-err i { color: var(--rose); font-size: 17px; flex-shrink: 0; }

/* ─── Card ─── */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.card-top {
    padding: 19px 24px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, var(--cream) 0%, white 100%);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.card-sub {
    font-size: 12px;
    color: var(--ink-faint);
    margin-top: 2px;
}

.card-body { padding: 24px; }

/* ─── Table ─── */
table { width: 100%; border-collapse: collapse; border-color: transparent; }

thead th {
    padding: 11px 24px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: var(--ink-faint);
    background: var(--cream);
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid rgba(13,17,23,0.045);
    transition: background 0.1s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(212,168,67,0.025); }

tbody td {
    padding: 14px 24px;
    font-size: 13.5px;
    color: var(--ink);
    vertical-align: middle;
}

/* Sequence number */
.seq {
    font-family: 'DM Mono', monospace;
    font-size: 11.5px;
    background: var(--cream-2);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 5px;
    color: var(--ink-muted);
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Customer / user cell */
.cust { display: flex; align-items: center; gap: 11px; }

.cust-av {
    width: 31px; height: 31px;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.ca-1 { background: rgba(245,158,11,0.1);  color: #92400e; }
.ca-2 { background: rgba(46,158,110,0.11); color: #1a5c40; }
.ca-3 { background: rgba(58,111,216,0.11); color: #1e3f90; }
.ca-4 { background: rgba(140,90,200,0.10); color: #5b2a90; }
.ca-5 { background: rgba(217,79,79,0.10);  color: #8c1a1a; }

.cust-name { font-size: 13.5px; font-weight: 500; }
.cust-id   { font-size: 11.5px; color: var(--ink-faint); margin-top: 1px; }

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 500;
    border: 1px solid;
}

.bdot {
    width: 5px; height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.b-new {
    background: rgba(58,111,216,0.07);
    border-color: rgba(58,111,216,0.2);
    color: #1e3f90;
}
.b-new .bdot { background: var(--cobalt); animation: blink 2s ease infinite; }

.b-del {
    background: rgba(46,158,110,0.07);
    border-color: rgba(46,158,110,0.2);
    color: #1a5c40;
}
.b-del .bdot { background: var(--jade); }

.b-can {
    background: rgba(217,79,79,0.07);
    border-color: rgba(217,79,79,0.18);
    color: #8c1a1a;
}
.b-can .bdot { background: var(--rose); }

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

/* Action buttons */
.acts { display: flex; gap: 5px; flex-wrap: wrap; }

.ab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: transform 0.13s, box-shadow 0.13s, background 0.13s;
    letter-spacing: 0.1px;
    text-decoration: none !important;
    white-space: nowrap;
}

.ab:hover { transform: translateY(-1px); }
.ab:active { transform: none; }

.ab-edit { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.25); color: #92400e !important; }
.ab-edit:hover { background: rgba(245,158,11,0.15); box-shadow: 0 3px 10px rgba(245,158,11,0.2); color: #92400e !important; }

.ab-ship { background: var(--jade-dim); border-color: rgba(46,158,110,0.22); color: #1a5c40 !important; }
.ab-ship:hover { background: rgba(46,158,110,0.16); box-shadow: 0 3px 10px rgba(46,158,110,0.18); color: #1a5c40 !important; }

.ab-cobalt { background: var(--cobalt-dim); border-color: rgba(58,111,216,0.22); color: #1e3f90 !important; }
.ab-cobalt:hover { background: rgba(58,111,216,0.16); box-shadow: 0 3px 10px rgba(58,111,216,0.18); color: #1e3f90 !important; }

.ab-del { background: var(--rose-dim); border-color: rgba(217,79,79,0.18); color: #8c1a1a !important; }
.ab-del:hover { background: rgba(217,79,79,0.13); box-shadow: 0 3px 10px rgba(217,79,79,0.14); color: #8c1a1a !important; }

/* Stock bar */
.stk { display: flex; flex-direction: column; gap: 5px; }

.stk-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    flex-wrap: wrap;
}

.stk-n {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    font-weight: 500;
}

.stk-sep { color: var(--ink-faint); font-size: 11px; }

.stk-bar {
    height: 4px;
    background: var(--cream-3);
    border-radius: 2px;
    overflow: hidden;
    width: 75px;
    flex-shrink: 0;
}

.stk-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; }

.stk-good .stk-avail { color: var(--jade); }
.stk-good .stk-fill  { background: linear-gradient(90deg, var(--jade), #62d4a0); }

.stk-warn .stk-avail { color: var(--gold); }
.stk-warn .stk-fill  { background: linear-gradient(90deg, var(--gold), #e8cc6a); }

.stk-crit .stk-avail { color: var(--rose); }
.stk-crit .stk-fill  { background: linear-gradient(90deg, var(--rose), #ef8080); }

/* Empty state */
.empty { padding: 60px 32px; text-align: center; }

.empty-glyph {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-style: italic;
    color: var(--gold);
    opacity: 0.3;
    display: block;
    margin-bottom: 14px;
    line-height: 1;
}

.empty-title { font-size: 15px; font-weight: 500; color: var(--ink-muted); }

.empty-text {
    font-size: 13px;
    color: var(--ink-faint);
    margin-top: 5px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Forms ─── */
.form-view { max-width: 560px; }

.form-control, .form-select {
    background: white !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 14px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 13.5px !important;
    color: var(--ink) !important;
    transition: border-color 0.14s, box-shadow 0.14s !important;
    box-shadow: none !important;
    height: auto !important;
}

.form-control:focus, .form-select:focus {
    outline: none !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px var(--gold-dim) !important;
}

.form-control[readonly] {
    background: var(--cream-2) !important;
    color: var(--ink-muted) !important;
    cursor: default;
}

.form-label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--ink-muted) !important;
    margin-bottom: 6px !important;
}

.mb-3 { margin-bottom: 18px !important; }

.text-danger {
    font-size: 12px !important;
    color: var(--rose) !important;
    margin-top: 4px;
    display: block;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    background: var(--gold);
    color: var(--ink) !important;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.18s;
    box-shadow: 0 3px 12px var(--gold-glow);
    text-decoration: none !important;
}

.btn-submit:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(245,158,11,0.38);
    color: var(--ink) !important;
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    background: white;
    color: var(--ink-muted) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.18s;
    text-decoration: none !important;
}

.btn-cancel:hover {
    background: var(--cream-2);
    color: var(--ink) !important;
    text-decoration: none !important;
}

.btn-danger-solid {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    background: var(--rose);
    color: white !important;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.18s;
    text-decoration: none !important;
}

.btn-danger-solid:hover {
    background: #c43d3d;
    transform: translateY(-1px);
    color: white !important;
}

/* Bootstrap btn overrides */
.btn.btn-primary {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--ink) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 3px 12px var(--gold-glow) !important;
}
.btn.btn-primary:hover { background: #d97706 !important; border-color: #d97706 !important; }

.btn.btn-secondary {
    background: white !important;
    border-color: var(--border) !important;
    color: var(--ink-muted) !important;
    font-family: 'Outfit', sans-serif;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
}
.btn.btn-secondary:hover { background: var(--cream-2) !important; color: var(--ink) !important; }

.btn.btn-danger {
    background: var(--rose) !important;
    border-color: var(--rose) !important;
    color: white !important;
    font-family: 'Outfit', sans-serif;
    border-radius: var(--radius-sm) !important;
}

.btn.btn-sm.btn-warning {
    background: rgba(245,158,11,0.08) !important;
    border-color: rgba(245,158,11,0.25) !important;
    color: #92400e !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}
.btn.btn-sm.btn-warning:hover {
    background: rgba(245,158,11,0.15) !important;
    box-shadow: 0 3px 10px rgba(245,158,11,0.2) !important;
    transform: translateY(-1px);
}

.btn.btn-sm.btn-danger {
    background: var(--rose-dim) !important;
    border-color: rgba(217,79,79,0.18) !important;
    color: #8c1a1a !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}
.btn.btn-sm.btn-danger:hover {
    background: rgba(217,79,79,0.13) !important;
    box-shadow: 0 3px 10px rgba(217,79,79,0.14) !important;
    transform: translateY(-1px);
}

/* ─── Delete Confirmation ─── */
.delete-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    max-width: 560px;
}

.delete-warning {
    background: linear-gradient(135deg, rgba(217,79,79,0.06), rgba(217,79,79,0.03));
    border-bottom: 1px solid rgba(217,79,79,0.14);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8c1a1a;
    font-size: 13.5px;
    font-weight: 500;
}

.delete-warning i { font-size: 18px; color: var(--rose); flex-shrink: 0; }

.delete-body { padding: 24px; }

.delete-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 24px;
    align-items: baseline;
}

.delete-dt {
    font-size: 11px;
    color: var(--ink-faint);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.delete-dd { font-size: 14px; color: var(--ink); font-weight: 500; }

.delete-actions {
    padding: 16px 24px;
    border-top: 1px solid var(--border-soft);
    background: var(--cream);
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ─── Login page ─── */
.login-page {
    min-height: 100vh;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.login-wrap { width: 100%; max-width: 420px; }

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-mark {
    width: 48px; height: 48px;
    filter: drop-shadow(0 0 14px var(--gold-glow));
    margin-bottom: 12px;
}

.login-logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.login-logo-name span { color: var(--gold); }

.login-logo-sub {
    font-size: 12px;
    color: var(--ink-faint);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.login-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.login-card-head {
    padding: 22px 28px 18px;
    border-bottom: 1px solid var(--border-soft);
    background: linear-gradient(180deg, var(--cream) 0%, white 100%);
}

.login-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
}

.login-card-sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; }

.login-card-body { padding: 24px 28px 28px; }

.login-submit {
    width: 100%;
    padding: 11px;
    background: var(--gold);
    color: var(--ink) !important;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.18s;
    box-shadow: 0 3px 12px var(--gold-glow);
    margin-top: 8px;
}

.login-submit:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(245,158,11,0.38);
}

.login-links {
    text-align: center;
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--ink-faint);
}

.login-links a { color: var(--gold); text-decoration: none; }
.login-links a:hover { text-decoration: underline; }

/* ─── Stat Cards ─── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 26px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    padding: 20px 24px;
}

.stat-card-jade   { border-left-color: var(--jade); }
.stat-card-cobalt { border-left-color: var(--cobalt); }

.stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: var(--ink-faint);
    margin-bottom: 10px;
}

.stat-val {
    font-family: 'DM Mono', monospace;
    font-size: 36px;
    font-weight: 500;
    line-height: 1;
    color: var(--ink);
}

.stat-val-jade   { color: var(--jade); }
.stat-val-cobalt { color: var(--cobalt); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--cream-3); border-radius: 2px; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .main { margin-left: 0; }
    .hamburger { display: flex; }
    .page { padding: 20px 16px; }
    .topbar { padding: 0 16px; }
    thead th, tbody td { padding: 10px 14px; }
    .ph-title { font-size: 22px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr; }
    .acts { flex-direction: column; }
}
