/* ============================================================
   PakNumberPlate — Ultra Premium CSS Design System v2.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
    --bg-primary:        #050b18;
    --bg-secondary:      #080f1e;
    --bg-card:           rgba(255,255,255,0.03);
    --bg-card-hover:     rgba(255,255,255,0.06);
    --bg-input:          rgba(255,255,255,0.05);
    --bg-input-focus:    rgba(16,185,129,0.08);

    --green:             #10b981;
    --green-d:           #059669;
    --green-l:           #34d399;
    --green-xl:          #6ee7b7;
    --gold:              #f59e0b;
    --gold-l:            #fcd34d;
    --red:               #ef4444;
    --blue:              #3b82f6;
    --purple:            #a855f7;

    --text-primary:      #f8fafc;
    --text-secondary:    #94a3b8;
    --text-muted:        #475569;
    --text-xs:           #334155;

    --border:            rgba(255,255,255,0.07);
    --border-light:      rgba(255,255,255,0.12);
    --border-green:      rgba(16,185,129,0.25);
    --border-green-l:    rgba(16,185,129,0.5);

    --sidebar-w:         270px;
    --topbar-h:          68px;

    --r-sm:    8px;
    --r-md:    14px;
    --r-lg:    20px;
    --r-xl:    28px;
    --r-full:  9999px;

    --shadow-sm:   0 2px 10px rgba(0,0,0,0.4);
    --shadow-md:   0 8px 40px rgba(0,0,0,0.5);
    --shadow-lg:   0 24px 80px rgba(0,0,0,0.6);
    --glow-green:  0 0 40px rgba(16,185,129,0.18);
    --glow-gold:   0 0 40px rgba(245,158,11,0.15);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t: all 0.25s var(--ease);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(16,185,129,0.25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ── Background Mesh ─────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% -10%, rgba(16,185,129,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(245,158,11,0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 100% 30%, rgba(59,130,246,0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════════════════ */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 1;
}

/* Left panel */
.login-left {
    background: linear-gradient(145deg, #080f1e 0%, #050b18 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 64px;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--border);
}

.login-left::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.14) 0%, transparent 70%);
    border-radius: 50%;
    animation: breathe 7s ease-in-out infinite;
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: breathe 9s ease-in-out infinite reverse;
}

@keyframes breathe {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    50%       { transform: scale(1.2) translate(2%, -3%); opacity: 1; }
}

.login-left-content { position: relative; z-index: 2; }

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 52px;
}

.login-brand-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--green), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(16,185,129,0.35);
    flex-shrink: 0;
}

.login-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.login-brand-name span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--green-l);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 2px;
}

.login-headline {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f8fafc 30%, var(--green-l) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subline {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 380px;
}

.login-features { display: flex; flex-direction: column; gap: 14px; }

.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--gold));
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(16,185,129,0.5);
}

/* Grid pattern overlay */
.login-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16,185,129,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,185,129,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

/* Right panel — login form */
.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 64px;
    background: var(--bg-secondary);
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.5s var(--spring);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-card .login-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.login-card .form-group { margin-bottom: 20px; }

.login-card label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.login-card .form-control {
    width: 100%;
    padding: 13px 14px 13px 44px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--t);
    outline: none;
}

.login-card .form-control:focus {
    border-color: var(--green);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}

.login-card .form-control::placeholder { color: var(--text-xs); }

.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
    cursor: pointer;
}

.remember-row label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--green), var(--green-d));
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--r-sm);
    transition: var(--t);
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: 0.6s;
}

.btn-login:hover::before { left: 100%; }
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16,185,129,0.4); }
.btn-login:active { transform: translateY(0); }

.login-hint {
    margin-top: 24px;
    padding: 14px 16px;
    background: rgba(16,185,129,0.06);
    border: 1px solid var(--border-green);
    border-radius: var(--r-sm);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-hint-icon { font-size: 16px; flex-shrink: 0; }
.login-hint strong { color: var(--green-l); }

.alert-error {
    padding: 12px 16px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: var(--r-sm);
    color: #fca5a5;
    font-size: 0.875rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 900px) {
    .login-page { grid-template-columns: 1fr; }
    .login-left { display: none; }
    .login-right { padding: 40px 24px; }
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
═══════════════════════════════════════════════════════════ */
.dashboard-wrapper { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s var(--ease);
    overflow: hidden;
    background: linear-gradient(180deg, #070d1c 0%, #080f1e 60%, #060c1a 100%);
    border-right: 1px solid var(--border);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(16,185,129,0.08) 0%, transparent 100%);
    pointer-events: none;
}

/* Logo */
.sidebar-logo {
    padding: 22px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.sidebar-logo .logo-box {
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--green), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(16,185,129,0.3);
    position: relative;
}

.sidebar-logo .logo-box::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    pointer-events: none;
}

.sidebar-logo .logo-text { line-height: 1.2; }
.sidebar-logo .logo-name { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.sidebar-logo .logo-sub  { font-size: 0.68rem; font-weight: 500; color: var(--green-l); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.nav-section { margin-bottom: 8px; }

.nav-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-xs);
    padding: 10px 10px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--t);
    margin-bottom: 2px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16,185,129,0.08), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-item:hover::before { opacity: 1; }
.nav-item:hover { color: var(--text-primary); }

.nav-item.active {
    background: rgba(16,185,129,0.1);
    color: var(--green-l);
    border: 1px solid rgba(16,185,129,0.2);
}

.nav-item.active::before { opacity: 1; }

.nav-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: linear-gradient(180deg, var(--green), var(--gold));
    border-radius: 0 99px 99px 0;
    box-shadow: 0 0 8px var(--green);
}

.nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    transition: var(--t);
}

.nav-item.active .nav-icon {
    background: rgba(16,185,129,0.15);
}

.nav-item:hover .nav-icon { background: rgba(255,255,255,0.07); }

/* Sidebar Footer */
.sidebar-footer {
    padding: 14px 12px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    transition: var(--t);
}

.sidebar-user:hover { border-color: var(--border-green); }

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 0.8125rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 0.72rem; color: var(--green-l); }

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 6px var(--green); }
    50%       { box-shadow: 0 0 14px var(--green); }
}

/* ── Main Content ────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
    height: var(--topbar-h);
    background: rgba(8,15,30,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left { display: flex; align-items: center; gap: 16px; }

.topbar-title {
    display: flex;
    flex-direction: column;
}

.topbar-title h2 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.breadcrumb {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb .sep { color: var(--text-xs); }
.breadcrumb .current { color: var(--green-l); }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.topbar-time {
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-variant-numeric: tabular-nums;
}

.btn-logout {
    padding: 8px 16px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--r-sm);
    color: #fca5a5;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: var(--t);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
}

.btn-logout:hover {
    background: rgba(239,68,68,0.15);
    border-color: rgba(239,68,68,0.4);
    transform: translateY(-1px);
}

/* ── Page Content ────────────────────────────────────────── */
.page-content { flex: 1; padding: 28px; }

/* Page Header inside content */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header-left h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 50%, var(--green-l) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.page-header-left p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════
   STATS CARDS
═══════════════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--t);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), transparent);
    border-radius: var(--r-lg);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--stat-color, var(--green)), transparent);
    opacity: 0.6;
}

.stat-card:hover {
    border-color: var(--stat-border, rgba(16,185,129,0.3));
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--stat-border, rgba(16,185,129,0.1));
}

.stat-card:hover .stat-icon { transform: scale(1.1) rotate(-5deg); }

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    background: var(--stat-bg, rgba(16,185,129,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: transform 0.3s var(--spring);
    border: 1px solid var(--stat-border, rgba(16,185,129,0.15));
}

.stat-info { flex: 1; min-width: 0; }

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
    font-weight: 500;
}

.stat-trend {
    font-size: 0.72rem;
    color: var(--green-l);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ═══════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════ */
.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    transition: var(--t);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255,255,255,0.01);
    flex-wrap: wrap;
}

.card-header h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.15);
    flex-shrink: 0;
}

.card-body { padding: 24px; }

/* ═══════════════════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

thead th {
    padding: 11px 16px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.15s ease;
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover { background: rgba(16,185,129,0.04); }

tbody td {
    padding: 13px 16px;
    font-size: 0.875rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.td-muted { color: var(--text-secondary); font-size: 0.8125rem; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-green  { background: rgba(16,185,129,0.1);  color: var(--green-xl);  border: 1px solid rgba(16,185,129,0.2); }
.badge-gold   { background: rgba(245,158,11,0.1);  color: var(--gold-l);    border: 1px solid rgba(245,158,11,0.2); }
.badge-blue   { background: rgba(59,130,246,0.1);  color: #93c5fd;          border: 1px solid rgba(59,130,246,0.2); }
.badge-purple { background: rgba(168,85,247,0.1);  color: #d8b4fe;          border: 1px solid rgba(168,85,247,0.2); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--t);
    cursor: pointer;
    border: none;
    font-family: inherit;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

.btn:hover::before { left: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16,185,129,0.2);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16,185,129,0.35); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.btn-outline:hover { border-color: var(--border-green); color: var(--text-primary); background: rgba(16,185,129,0.04); }

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: var(--r-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    transition: var(--t);
    cursor: pointer;
}

.btn-icon:hover { background: rgba(255,255,255,0.07); transform: translateY(-1px); }
.btn-icon.view:hover   { color: #93c5fd; border-color: rgba(59,130,246,0.35); background: rgba(59,130,246,0.08); }
.btn-icon.edit:hover   { color: var(--gold-l); border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.08); }
.btn-icon.delete:hover { color: #fca5a5; border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.08); }

.btn-actions { display: flex; gap: 5px; }

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 9px 20px;
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--t);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
    border: none;
    box-shadow: 0 4px 15px rgba(239,68,68,0.2);
}

.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(239,68,68,0.35); }

/* ═══════════════════════════════════════════════════════════
   SEARCH
═══════════════════════════════════════════════════════════ */
.search-bar {
    position: relative;
    width: 260px;
}

.search-bar input {
    width: 100%;
    padding: 9px 12px 9px 38px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: var(--t);
}

.search-bar input:focus { border-color: var(--border-green); background: var(--bg-input-focus); }
.search-bar input::placeholder { color: var(--text-xs); }

.search-bar .search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: linear-gradient(180deg, #0d1628 0%, #0a1220 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg), var(--glow-green);
    transform: scale(0.92) translateY(-12px);
    transition: transform 0.35s var(--spring);
    position: relative;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(16,185,129,0.4) 50%, transparent 100%);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-lg { max-width: 750px; }

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: rgba(255,255,255,0.01);
}

.modal-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    font-style: normal;
}

.modal-icon.green  { background: rgba(16,185,129,0.15); color: var(--green-l); border: 1px solid rgba(16,185,129,0.2); }
.modal-icon.gold   { background: rgba(245,158,11,0.15); color: var(--gold-l);  border: 1px solid rgba(245,158,11,0.2); }
.modal-icon.blue   { background: rgba(59,130,246,0.15); color: #93c5fd;        border: 1px solid rgba(59,130,246,0.2); }
.modal-icon.red    { background: rgba(239,68,68,0.15);  color: #fca5a5;        border: 1px solid rgba(239,68,68,0.2); }

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--t);
    flex-shrink: 0;
    font-family: inherit;
    line-height: 1;
}

.modal-close:hover { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.3); color: #fca5a5; }

.modal-body { padding: 24px; overflow-y: auto; flex: 1; }

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.01);
}

/* ── Forms ───────────────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.form-group label .required { color: var(--red); margin-left: 3px; }

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--t);
    outline: none;
}

.form-control:focus {
    border-color: var(--green);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

.form-control::placeholder { color: var(--text-xs); }
.form-control[readonly] { opacity: 0.5; cursor: not-allowed; }

textarea.form-control { resize: vertical; min-height: 90px; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2394a3b8' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
}

select.form-control option { background: #0d1628; }

/* Section divider in modals */
.form-section { margin: 20px 0 16px; padding-top: 20px; border-top: 1px solid var(--border); }

.form-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Slug preview */
.slug-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(16,185,129,0.05);
    border: 1px solid rgba(16,185,129,0.15);
    border-radius: var(--r-sm);
    margin-top: 6px;
}

.slug-label { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.slug-value { font-size: 0.8125rem; color: var(--green-l); font-family: 'Courier New', monospace; word-break: break-all; }

/* Image upload */
.image-upload-zone {
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: var(--r-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--t);
    position: relative;
}

.image-upload-zone:hover, .image-upload-zone.dragover {
    border-color: var(--border-green);
    background: rgba(16,185,129,0.04);
}

.image-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon { font-size: 32px; color: var(--text-muted); margin-bottom: 10px; }
.upload-text { font-size: 0.875rem; color: var(--text-secondary); }
.upload-text strong { color: var(--green-l); }
.upload-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }

.image-preview { margin-top: 12px; border-radius: var(--r-sm); overflow: hidden; max-height: 180px; display: none; }
.image-preview img { width: 100%; height: 180px; object-fit: cover; }
.image-preview.show { display: block; }

/* View details */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.detail-item .detail-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 5px; }
.detail-item .detail-value { font-size: 0.875rem; color: var(--text-primary); word-break: break-word; }
.detail-item.full-width { grid-column: 1 / -1; }

.detail-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.detail-section-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 14px; }

/* Delete modal */
.delete-modal { max-width: 420px; }

.delete-modal .modal-body { text-align: center; padding: 36px 24px; }

.delete-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(239,68,68,0.1);
    border: 2px solid rgba(239,68,68,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 18px;
    animation: shake 0.4s ease 0.1s;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25%       { transform: rotate(-8deg); }
    75%       { transform: rotate(8deg); }
}

.delete-modal h4 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 8px; }
.delete-modal p  { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */
.pagination-wrap {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255,255,255,0.01);
}

.pagination-info { font-size: 0.8rem; color: var(--text-secondary); }

.pagination { display: flex; gap: 4px; }

.page-link {
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--t);
    cursor: pointer;
    text-decoration: none;
}

.page-link:hover { border-color: var(--border-green); color: var(--text-primary); background: rgba(16,185,129,0.06); }
.page-link.active { background: linear-gradient(135deg, var(--green), var(--green-d)); border-color: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.page-link.disabled { opacity: 0.35; cursor: not-allowed; }
.page-ellipsis { width: auto !important; padding: 0 6px !important; border: none !important; background: transparent !important; color: var(--text-muted) !important; }

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 380px;
    padding: 14px 18px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: toastIn 0.35s var(--spring);
    pointer-events: all;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.toast.success { background: rgba(16,185,129,0.12);  border: 1px solid rgba(16,185,129,0.3); color: var(--green-xl); }
.toast.error   { background: rgba(239,68,68,0.12);   border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.toast.info    { background: rgba(59,130,246,0.12);  border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }

.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-msg  { flex: 1; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0)    scale(1); }
}

/* Empty State */
.empty-state { padding: 64px 24px; text-align: center; }
.empty-icon { font-size: 52px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h4 { font-size: 1rem; font-weight: 600; color: var(--text-secondary); }
.empty-state p  { font-size: 0.875rem; color: var(--text-muted); margin-top: 8px; }

/* Mobile Toggle */
.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--t);
}

.menu-toggle:hover { border-color: var(--border-green); color: var(--text-primary); }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 99;
}

/* Quick nav cards on dashboard */
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.quick-nav-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: var(--t);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.quick-nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.quick-nav-card:hover { border-color: var(--border-green); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-nav-card:hover::before { opacity: 1; }

.qnc-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.3s var(--spring);
}

.quick-nav-card:hover .qnc-icon { transform: scale(1.12) rotate(-5deg); }

.qnc-label { font-weight: 600; font-size: 0.875rem; color: var(--text-primary); }
.qnc-sub   { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); z-index: 200; box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay { display: block; }
    .main-content { margin-left: 0; }
    .menu-toggle { display: flex; }
    .form-row { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .page-content { padding: 16px; }
    .topbar { padding: 0 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 1.75rem; }
    .card-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .search-bar { width: 100%; }
    .modal { border-radius: var(--r-md); }
    .modal-body { padding: 16px; }
    .modal-footer { flex-direction: column-reverse; }
    .modal-footer .btn, .modal-footer .btn-danger { width: 100%; justify-content: center; }
    .pagination-wrap { flex-direction: column; align-items: flex-start; }
    .topbar-time { display: none; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .quick-nav-grid { grid-template-columns: 1fr 1fr; }
}


/* NEW DESIGN SYSTEM */
/* ============================================================
   PakNumberPlate Admin — Design System
   Refined dark theme · single emerald accent · Linear/Vercel-ish
   ============================================================ */

/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("9cd2bd68-8453-40a0-b87c-13e6bdda25a5") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("c2a0af5f-9bc3-4a4a-bd76-fbd173463762") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("d7845431-c7e7-4ff5-87ee-843569ce5981") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("9a3f11a8-8acd-48fb-b4ce-9d2937f23fb9") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("e9cadaba-e416-4d5c-8139-6f532def8e1d") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("4f211478-13d0-45ff-9e6f-59d248dff22f") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("9cd2bd68-8453-40a0-b87c-13e6bdda25a5") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("c2a0af5f-9bc3-4a4a-bd76-fbd173463762") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("d7845431-c7e7-4ff5-87ee-843569ce5981") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("9a3f11a8-8acd-48fb-b4ce-9d2937f23fb9") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("e9cadaba-e416-4d5c-8139-6f532def8e1d") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("4f211478-13d0-45ff-9e6f-59d248dff22f") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("9cd2bd68-8453-40a0-b87c-13e6bdda25a5") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("c2a0af5f-9bc3-4a4a-bd76-fbd173463762") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("d7845431-c7e7-4ff5-87ee-843569ce5981") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("9a3f11a8-8acd-48fb-b4ce-9d2937f23fb9") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("e9cadaba-e416-4d5c-8139-6f532def8e1d") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("4f211478-13d0-45ff-9e6f-59d248dff22f") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("10b66438-7825-40a5-aeea-8e56d31644b7") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("14213822-e65f-4c49-bc92-9a125dd39ce3") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("d3279789-98c7-4072-9ec5-a8cf4f070ec7") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("3c9e46fb-8f07-4b99-99a2-241c66d54b8f") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("533d238d-4bdb-49c4-94d0-47b7a014d85b") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("8a0f1687-62ea-4c09-abff-dfef3c0f819e") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("10b66438-7825-40a5-aeea-8e56d31644b7") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("14213822-e65f-4c49-bc92-9a125dd39ce3") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("d3279789-98c7-4072-9ec5-a8cf4f070ec7") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("3c9e46fb-8f07-4b99-99a2-241c66d54b8f") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("533d238d-4bdb-49c4-94d0-47b7a014d85b") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("8a0f1687-62ea-4c09-abff-dfef3c0f819e") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("10b66438-7825-40a5-aeea-8e56d31644b7") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("14213822-e65f-4c49-bc92-9a125dd39ce3") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("d3279789-98c7-4072-9ec5-a8cf4f070ec7") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("3c9e46fb-8f07-4b99-99a2-241c66d54b8f") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("533d238d-4bdb-49c4-94d0-47b7a014d85b") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("8a0f1687-62ea-4c09-abff-dfef3c0f819e") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("10b66438-7825-40a5-aeea-8e56d31644b7") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("14213822-e65f-4c49-bc92-9a125dd39ce3") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("d3279789-98c7-4072-9ec5-a8cf4f070ec7") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("3c9e46fb-8f07-4b99-99a2-241c66d54b8f") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("533d238d-4bdb-49c4-94d0-47b7a014d85b") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("8a0f1687-62ea-4c09-abff-dfef3c0f819e") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("10b66438-7825-40a5-aeea-8e56d31644b7") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("14213822-e65f-4c49-bc92-9a125dd39ce3") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("d3279789-98c7-4072-9ec5-a8cf4f070ec7") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("3c9e46fb-8f07-4b99-99a2-241c66d54b8f") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("533d238d-4bdb-49c4-94d0-47b7a014d85b") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("8a0f1687-62ea-4c09-abff-dfef3c0f819e") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  /* ---- Surfaces (cool near-black) ---- */
  --bg:          #0a0c10;
  --bg-2:        #0d1015;
  --surface:     #111419;
  --surface-2:   #161a21;
  --surface-3:   #1b2029;
  --input:       #14181f;

  /* ---- Hairlines ---- */
  --border:        rgba(255,255,255,0.07);
  --border-2:      rgba(255,255,255,0.11);
  --border-strong: rgba(255,255,255,0.16);

  /* ---- Text ---- */
  --text:   #eceef2;
  --text-2: #9aa1ac;
  --text-3: #646b76;
  --text-4: #474d57;

  /* ---- Accent (emerald) — overridable by tweaks ---- */
  --accent:        #34d399;
  --accent-2:      #10b981;
  --accent-ink:    #04130d;
  --accent-soft:   rgba(52,211,153,0.12);
  --accent-soft-2: rgba(52,211,153,0.06);
  --accent-border: rgba(52,211,153,0.28);
  --accent-glow:   rgba(16,185,129,0.22);

  /* ---- Status palette (muted) ---- */
  --st-pending:    #f0b429;
  --st-confirmed:  #5b9dff;
  --st-production: #a78bfa;
  --st-delivery:   #2dd4bf;
  --st-delivered:  #34d399;
  --st-cancelled:  #f6736b;
  --st-returned:   #94a3b8;

  /* ---- Radii ---- */
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* ---- Density (overridable) ---- */
  --row-pad: 15px;
  --gap: 20px;

  /* ---- Shadow ---- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow:    0 8px 24px -8px rgba(0,0,0,0.55);
  --shadow-lg: 0 24px 60px -16px rgba(0,0,0,0.7);

  --sidebar-w: 264px;
  --font: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ============================================================ Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 14px;
  line-height: 1.5;
}
#root { height: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--accent-soft); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #262b34; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #333a45; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================ Layout shell */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100%;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(16,185,129,0.05), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(16,185,129,0.03), transparent 55%),
    var(--bg);
}

/* ---------------- Sidebar ---------------- */
.sidebar {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-right: 1px solid var(--border);
  height: 100%;
  overflow: hidden;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 20px;
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px -6px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.brand-name { font-weight: 800; font-size: 15.5px; letter-spacing: -0.2px; }
.brand-sub {
  font-size: 10px; font-weight: 700; letter-spacing: 1.6px;
  color: var(--accent); text-transform: uppercase; margin-top: 1px;
}

.nav { flex: 1; overflow-y: auto; padding: 8px 14px; }
.nav-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--text-4); text-transform: uppercase;
  padding: 16px 10px 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--text-2);
  font-weight: 600; font-size: 13.5px;
  position: relative;
  transition: background .16s, color .16s;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}
.nav-item.active svg { opacity: 1; }
.nav-item.active::before {
  content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.nav-count {
  margin-left: auto; font-size: 11px; font-weight: 700;
  color: var(--text-3);
  background: var(--surface-2);
  padding: 1px 8px; border-radius: 99px;
  font-family: var(--mono);
}
.nav-item.active .nav-count { color: var(--accent); background: var(--accent-soft); }

.profile {
  margin: 14px;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.avatar {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800; color: var(--accent-ink);
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  flex-shrink: 0; position: relative;
}
.avatar .dot {
  position: absolute; right: -2px; bottom: -2px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--st-delivered); border: 2px solid var(--surface);
}
.profile-name { font-weight: 700; font-size: 13px; }
.profile-role { font-size: 11px; color: var(--text-3); }

/* ---------------- Main / Topbar ---------------- */
.main { height: 100%; overflow-y: auto; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 34px;
  background: linear-gradient(180deg, rgba(10,12,16,0.92), rgba(10,12,16,0.6));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.page-title { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.breadcrumb b { color: var(--accent); font-weight: 600; }
.breadcrumb svg { width: 13px; height: 13px; opacity: .6; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.clock {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text-2);
  padding: 8px 14px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface);
}
.clock svg { width: 14px; height: 14px; color: var(--text-3); }

.content { padding: 28px 34px 60px; flex: 1; }

/* ============================================================ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-md);
  font-weight: 700; font-size: 13px; letter-spacing: -0.1px;
  transition: background .15s, border-color .15s, transform .08s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 6px 16px -6px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { box-shadow: 0 10px 22px -6px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.3); filter: brightness(1.05); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-soft { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.btn-soft:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { background: rgba(246,115,107,0.12); color: var(--st-cancelled); border: 1px solid rgba(246,115,107,0.25); }
.btn-danger:hover { background: rgba(246,115,107,0.2); }
.btn-logout {
  background: rgba(246,115,107,0.08); color: var(--st-cancelled);
  border: 1px solid rgba(246,115,107,0.2);
}
.btn-logout:hover { background: rgba(246,115,107,0.15); }

/* Icon action buttons (table row) */
.iconbtn {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-3); transition: all .14s;
}
.iconbtn svg { width: 15px; height: 15px; }
.iconbtn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-3); }
.iconbtn.view:hover  { color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft); }
.iconbtn.edit:hover  { color: var(--st-confirmed); border-color: rgba(91,157,255,0.3); background: rgba(91,157,255,0.1); }
.iconbtn.del:hover   { color: var(--st-cancelled); border-color: rgba(246,115,107,0.3); background: rgba(246,115,107,0.1); }

/* ============================================================ Panel / Card */
.panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.panel-title { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 700; }
.panel-ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}
.panel-ico svg { width: 18px; height: 18px; }
.panel-head-actions { display: flex; align-items: center; gap: 12px; }

/* ============================================================ Search */
.search {
  display: flex; align-items: center; gap: 9px;
  background: var(--input); border: 1px solid var(--border-2);
  border-radius: var(--r-md); padding: 0 13px;
  height: 40px; min-width: 270px;
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-soft-2); }
.search svg { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }
.search input { background: none; border: none; outline: none; color: var(--text); width: 100%; font-size: 13.5px; }
.search input::placeholder { color: var(--text-3); }

/* ============================================================ Table */
.tbl-wrap { width: 100%; overflow-x: auto; overflow-y: hidden; }
.tbl.compact thead th { padding: 11px 14px; }
.tbl.compact tbody td { padding: 12px 14px; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
  text-align: left; padding: 13px 18px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--bg-2);
}
.tbl tbody td {
  padding: var(--row-pad) 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-2);
  vertical-align: middle;
}
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--accent-soft-2); }
.tbl tbody tr:last-child td { border-bottom: none; }
.td-num { color: var(--text-4); font-family: var(--mono); font-size: 12px; width: 36px; }
.td-strong { color: var(--text); font-weight: 700; font-size: 14px; }
.td-price { color: var(--text); font-weight: 700; font-family: var(--mono); }
.td-price .cur { color: var(--text-3); font-weight: 500; font-size: 11px; margin-right: 3px; }
.td-muted { color: var(--text-4); }
.td-date { color: var(--text-3); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.row-actions { display: flex; align-items: center; gap: 7px; justify-content: flex-end; }

/* slug / reg pill */
.pill {
  display: inline-flex; align-items: center;
  padding: 3px 11px; border-radius: 99px;
  font-size: 11.5px; font-weight: 600; font-family: var(--mono);
  background: var(--accent-soft); color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-border);
  white-space: nowrap;
}
.pill.amber { background: rgba(240,180,41,0.1); color: var(--st-pending); box-shadow: inset 0 0 0 1px rgba(240,180,41,0.25); }
.pill.blue { background: rgba(91,157,255,0.1); color: var(--st-confirmed); box-shadow: inset 0 0 0 1px rgba(91,157,255,0.25); }
.pill.reg { font-weight: 700; letter-spacing: 0.5px; }

/* status badge */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 9px; border-radius: 99px;
  font-size: 11.5px; font-weight: 700;
}
.status .sdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.status.pending    { color: var(--st-pending);    background: rgba(240,180,41,0.11); box-shadow: inset 0 0 0 1px rgba(240,180,41,0.22); }
.status.confirmed  { color: var(--st-confirmed);  background: rgba(91,157,255,0.11); box-shadow: inset 0 0 0 1px rgba(91,157,255,0.22); }
.status.production { color: var(--st-production); background: rgba(167,139,250,0.11); box-shadow: inset 0 0 0 1px rgba(167,139,250,0.22); }
.status.delivery   { color: var(--st-delivery);   background: rgba(45,212,191,0.11); box-shadow: inset 0 0 0 1px rgba(45,212,191,0.22); }
.status.delivered  { color: var(--st-delivered);  background: rgba(52,211,153,0.11); box-shadow: inset 0 0 0 1px rgba(52,211,153,0.22); }
.status.cancelled  { color: var(--st-cancelled);  background: rgba(246,115,107,0.11); box-shadow: inset 0 0 0 1px rgba(246,115,107,0.22); }
.status.returned   { color: var(--st-returned);   background: rgba(148,163,184,0.11); box-shadow: inset 0 0 0 1px rgba(148,163,184,0.22); }

/* ============================================================ Dashboard */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat {
  position: relative;
  text-align: left;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color .16s, transform .16s, box-shadow .16s;
  overflow: hidden;
}
.stat:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; }
.stat-ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent); box-shadow: inset 0 0 0 1px var(--border-2);
}
.stat-ico svg { width: 20px; height: 20px; }
.stat-arrow { color: var(--text-4); transition: color .16s, transform .16s; }
.stat:hover .stat-arrow { color: var(--accent); transform: translate(2px,-2px); }
.stat-num { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin-top: 16px; line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-2); font-weight: 600; margin-top: 6px; }
.stat-foot { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--accent); margin-top: 12px; }
.stat-foot svg { width: 12px; height: 12px; }
.stat-foot.muted { color: var(--text-3); }

.dash-2col { display: grid; grid-template-columns: 1fr 312px; gap: var(--gap); margin-top: var(--gap); align-items: start; }

/* mini status bars */
.statusbars { display: flex; flex-direction: column; gap: 13px; padding: 20px 22px; }
.sb-row { display: grid; grid-template-columns: 120px 1fr 32px; align-items: center; gap: 12px; }
.sb-name { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.sb-track { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.sb-fill { height: 100%; border-radius: 99px; transition: width .6s cubic-bezier(.2,.7,.3,1); }
.sb-val { font-size: 12px; font-family: var(--mono); color: var(--text-2); text-align: right; }

/* ============================================================ Order filter tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  padding: 8px 15px; border-radius: var(--r-md); font-size: 12.5px; font-weight: 700;
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border);
  transition: all .14s; display: inline-flex; align-items: center; gap: 7px;
}
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); }
.tab .tcount { font-family: var(--mono); font-size: 11px; opacity: .75; }

.quickrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  padding: 14px 22px; border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.quick-label { font-size: 12px; font-weight: 700; color: var(--text-3); margin-right: 4px; }

/* orders filter toolbar */
.orders-toolbar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px; border-bottom: 1px solid var(--border);
  background: var(--bg-2); flex-wrap: wrap;
}
.filter-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--text-3); flex-shrink: 0;
}
.filter-label svg { width: 14px; height: 14px; }
.filter-tabs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; flex: 1; min-width: 0; }
.toolbar-spacer { flex: 1; }

/* dropdown menu */
.menu-wrap { position: relative; }
.menu {
  position: absolute; top: calc(100% + 7px); min-width: 210px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 60; animation: menuin .14s cubic-bezier(.2,.8,.3,1);
}
.menu.right { right: 0; } .menu.left { left: 0; }
@keyframes menuin { from { transform: translateY(-6px); } }
.menu-head { font-size: 10.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-3); padding: 7px 10px 6px; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--text-2); text-align: left; transition: background .12s, color .12s;
}
.menu-item:hover { background: var(--surface-3); color: var(--text); }
.menu-item .mdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 7px currentColor; }
.btn .caret { transition: transform .16s; }
.btn .caret.up { transform: rotate(180deg); }

/* bulk action bar */
.bulkbar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 22px; background: var(--accent-soft);
  border-bottom: 1px solid var(--accent-border);
  animation: bulkin .2s cubic-bezier(.2,.8,.3,1);
}
@keyframes bulkin { from { transform: translateY(-8px); } }
.bulk-count { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13px; color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.bulk-count .bc-badge {
  display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 7px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
}
.bulk-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; flex-wrap: wrap; }
.bulk-divider { width: 1px; height: 22px; background: var(--accent-border); }
.chip {
  padding: 5px 11px; border-radius: var(--r-sm); font-size: 11.5px; font-weight: 600;
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); transition: all .14s;
}
.chip:hover { color: var(--text); background: var(--surface-3); }

/* checkbox */
.cbx {
  width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--border-strong);
  background: var(--surface-2); display: grid; place-items: center; transition: all .14s; flex-shrink: 0; position: relative;
}
.cbx svg { width: 11px; height: 11px; color: var(--accent-ink); opacity: 0; }
.cbx.on { background: var(--accent); border-color: var(--accent); }
.cbx.on svg { opacity: 1; }
.cbx.ind { background: var(--accent); border-color: var(--accent); }
.cbx.ind::after { content: ''; width: 9px; height: 2px; border-radius: 2px; background: var(--accent-ink); position: absolute; }

/* ============================================================ Modal */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,7,10,0.72); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px;
  animation: fade .2s ease;
}
@keyframes fade { from { background: rgba(5,7,10,0); backdrop-filter: blur(0); } }
.modal {
  width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(16,185,129,0.05);
  animation: pop .22s cubic-bezier(.2,.8,.3,1);
}
.modal.wide { max-width: 720px; }
@keyframes pop { from { transform: translateY(16px) scale(.975); } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 2;
}
.modal-title { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; }
.modal-ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-border);
}
.modal-ico svg { width: 18px; height: 18px; }
.modal-close {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3); transition: all .14s;
}
.modal-close:hover { color: var(--text); background: var(--surface-3); }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { padding: 24px; }
.modal-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; border-top: 1px solid var(--border);
  position: sticky; bottom: 0; background: var(--surface);
}

/* detail grid */
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.dfield .dlabel {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 6px;
}
.dfield .dval { font-size: 15px; color: var(--text); font-weight: 600; }
.dfield .dval.mono { font-family: var(--mono); }
.dfield.full { grid-column: 1 / -1; }
.dsection {
  display: flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--accent); margin: 6px 0 2px;
}
.dsection svg { width: 15px; height: 15px; }
.dsection.amber { color: var(--st-pending); }
.dsection .dline { flex: 1; height: 1px; background: var(--border); }
.copy-row { display: flex; align-items: center; gap: 10px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
  color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 7px; padding: 4px 9px; transition: all .14s;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent-border); }
.copy-btn svg { width: 12px; height: 12px; }

/* form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.flabel {
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--text-2); display: flex; align-items: center; gap: 4px;
}
.flabel .req { color: var(--st-cancelled); }
.input {
  background: var(--input); border: 1px solid var(--border-2); border-radius: var(--r-md);
  padding: 11px 13px; color: var(--text); font-size: 14px; width: 100%; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-soft-2); }
textarea.input { resize: vertical; min-height: 92px; line-height: 1.55; }
.slug-preview {
  background: var(--accent-soft-2); border: 1px dashed var(--accent-border); border-radius: var(--r-md);
  padding: 11px 13px; font-family: var(--mono); font-size: 13px; color: var(--text-2);
}
.slug-preview .sk { color: var(--text-3); text-transform: uppercase; font-size: 10px; letter-spacing: 1px; margin-right: 8px; }
.slug-preview b { color: var(--accent); font-weight: 600; }

/* empty */
.empty { text-align: center; padding: 56px 20px; color: var(--text-3); }
.empty svg { width: 38px; height: 38px; opacity: .4; margin-bottom: 12px; }
.empty h4 { color: var(--text-2); font-size: 15px; margin: 0 0 4px; }

/* toast */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--accent-border);
  color: var(--text); padding: 11px 16px; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600;
  animation: toastin .25s cubic-bezier(.2,.8,.3,1);
}
.toast svg { width: 16px; height: 16px; color: var(--accent); }
.toast.danger { border-color: rgba(246,115,107,0.4); }
.toast.danger svg { color: var(--st-cancelled); }
@keyframes toastin { from { transform: translateY(14px); } }

/* misc */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadein .32s cubic-bezier(.2,.7,.3,1); }
@keyframes fadein { from { transform: translateY(9px); } }

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-2col { grid-template-columns: 1fr; }
}
