:root {
  --bg-primary: #0f1117;
  --bg-secondary: #1a1d2e;
  --bg-card: #1e2235;
  --bg-card-hover: #252840;
  --sidebar-bg: #13162a;
  --sidebar-width: 260px;
  --text-primary: #e2e8f0;
  --text-muted: #718096;
  --text-hover: #ffffff;
  --border-color: #2d3748;
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-success: #22c55e;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-info: #06b6d4;
  --font-family: 'Inter', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --transition: all 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: var(--font-family); background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; }

body.light-mode {
  --bg-primary: #f4f7fb;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --sidebar-bg: #f8fafc;
  --text-primary: #1f2937;
  --text-muted: #64748b;
  --text-hover: #0f172a;
  --border-color: #dbe4ef;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

/* ===== SIDEBAR ===== */
.sidebar { position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh; background: var(--sidebar-bg); border-right: 1px solid var(--border-color); z-index: 1000; display: flex; flex-direction: column; overflow-y: auto; transition: var(--transition); }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { font-size: 28px; color: var(--accent-primary); }
.brand-name { font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.brand-sub { font-size: 11px; color: var(--text-muted); }
.sidebar-toggle { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 4px; }
.sidebar-user { padding: 16px 20px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.user-avatar { width: 40px; height: 40px; background: var(--accent-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.user-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.user-role { font-size: 11px; color: var(--accent-primary); }
.user-branch { font-size: 11px; color: var(--text-muted); }
.sidebar-menu { flex: 1; padding: 12px 0; overflow-y: auto; }
.menu-section { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-muted); padding: 12px 20px 4px; text-transform: uppercase; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: var(--text-muted); text-decoration: none; transition: var(--transition); font-size: 14px; border-left: 3px solid transparent; }
.menu-item:hover { color: var(--text-hover); background: rgba(99,102,241,0.08); border-left-color: rgba(99,102,241,0.3); }
.menu-item.active { color: var(--text-hover); background: rgba(99,102,241,0.15); border-left-color: var(--accent-primary); font-weight: 600; }
.menu-item i { width: 20px; text-align: center; font-size: 15px; }

/* ===== SIDEBAR SCROLLBAR ===== */
.sidebar,
.sidebar-menu {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}
.sidebar::-webkit-scrollbar,
.sidebar-menu::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-track,
.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb,
.sidebar-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.5), rgba(100, 116, 139, 0.45));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.75), rgba(100, 116, 139, 0.65));
}
body.light-mode .sidebar::-webkit-scrollbar-thumb,
body.light-mode .sidebar-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.7), rgba(100, 116, 139, 0.55));
}

/* ===== MAIN WRAPPER ===== */
.main-wrapper { margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh; transition: var(--transition); }

/* ===== TOPBAR ===== */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; gap: 12px; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-toggle { background: none; border: 1px solid var(--border-color); color: var(--text-muted); padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer; display: none; }
.topbar-deposit { background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3); padding: 6px 14px; border-radius: 20px; font-size: 13px; color: var(--accent-primary); font-weight: 600; }
.topbar-time { font-size: 13px; color: var(--text-muted); }
.btn-icon { background: none; border: 1px solid var(--border-color); color: var(--text-muted); padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer; position: relative; }
.notif-badge { position: absolute; top: -4px; right: -4px; background: var(--accent-danger); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 10px; }
.breadcrumb { font-size: 13px; }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-primary); }

/* ===== ALERTS & CONTENT ===== */
.alert-container { padding: 12px 24px 0; }
.page-content { flex: 1; padding: 24px; }
.page-footer { padding: 12px 24px; background: var(--bg-secondary); border-top: 1px solid var(--border-color); font-size: 12px; color: var(--text-muted); display: flex; align-items: center; }

/* ===== PAGE HEADER ===== */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== CARDS ===== */
.card-dark { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header-dark { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border-color); font-weight: 600; font-size: 15px; }
.card-body-dark { padding: 20px; }

/* ===== STAT CARDS ===== */
.stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); transition: var(--transition); }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.stat-card.primary { border-left: 4px solid var(--accent-primary); }
.stat-card.success { border-left: 4px solid var(--accent-success); }
.stat-card.info { border-left: 4px solid var(--accent-info); }
.stat-card.warning { border-left: 4px solid var(--accent-warning); }
.stat-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-card.primary .stat-icon { background: rgba(99,102,241,.15); color: var(--accent-primary); }
.stat-card.success .stat-icon { background: rgba(34,197,94,.15); color: var(--accent-success); }
.stat-card.info .stat-icon { background: rgba(6,182,212,.15); color: var(--accent-info); }
.stat-card.warning .stat-icon { background: rgba(245,158,11,.15); color: var(--accent-warning); }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.stat-change { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-change.positive { color: var(--accent-success); }

/* ===== MINI STATS ===== */
.mini-stat { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.mini-stat i { font-size: 20px; }
.mini-label { font-size: 12px; color: var(--text-muted); }
.mini-value { font-size: 18px; font-weight: 700; color: var(--text-primary); }

/* ===== TABLE ===== */
.table-dark { --bs-table-bg: transparent; --bs-table-striped-bg: rgba(255,255,255,0.02); --bs-table-hover-bg: rgba(99,102,241,0.08); color: var(--text-primary); }
.table-dark thead th { border-bottom: 2px solid var(--border-color); font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 16px; }
.table-dark td { border-color: var(--border-color); padding: 12px 16px; vertical-align: middle; font-size: 14px; }

/* ===== FORM CONTROLS ===== */
.form-control, .form-select { background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: var(--radius-sm); }
.form-control:focus, .form-select:focus { background: var(--bg-secondary); border-color: var(--accent-primary); color: var(--text-primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.form-control::placeholder { color: var(--text-muted); }
.form-label { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input-icon .form-control { padding-left: 36px; }
.btn-show-pass { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; }

/* ===== BUTTONS ===== */
.btn-primary { background: var(--accent-primary); border-color: var(--accent-primary); color: #fff; border-radius: var(--radius-sm); font-weight: 500; }
.btn-primary:hover { background: var(--accent-primary-hover); border-color: var(--accent-primary-hover); }
.btn-outline-secondary { border-color: var(--border-color); color: var(--text-muted); border-radius: var(--radius-sm); }
.btn-outline-secondary:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--border-color); }

/* ===== STATUS BADGES ===== */
.badge-status { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.badge-status.received { background: rgba(99,102,241,.15); color: var(--accent-primary); }
.badge-status.checking { background: rgba(6,182,212,.15); color: var(--accent-info); }
.badge-status.waiting_parts { background: rgba(245,158,11,.15); color: var(--accent-warning); }
.badge-status.in_progress { background: rgba(139,92,246,.15); color: #a78bfa; }
.badge-status.completed { background: rgba(34,197,94,.15); color: var(--accent-success); }
.badge-status.picked_up { background: rgba(107,114,128,.15); color: #9ca3af; }
.badge-status.cancelled { background: rgba(239,68,68,.15); color: var(--accent-danger); }

/* ===== MODAL ===== */
.modal-dark { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); }
.modal-dark .modal-header { border-bottom-color: var(--border-color); }
.modal-dark .modal-footer { border-top-color: var(--border-color); }

/* ===== LOGIN PAGE ===== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(760px 380px at 90% 100%, rgba(245, 158, 11, 0.10), transparent 60%),
    linear-gradient(135deg, #07111f 0%, #0f172a 42%, #111827 100%);
  position: relative;
}
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
  pointer-events: none;
}
.login-wrapper {
  width: 100%;
  max-width: 1240px;
  padding: 24px;
  position: relative;
  z-index: 1;
}
.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 28px;
  align-items: stretch;
}
.login-showcase {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(9, 16, 29, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 6px;
  padding: 32px;
  box-shadow: 0 30px 70px rgba(2, 8, 23, 0.38);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(18px);
}
.login-showcase-top {
  margin-bottom: 28px;
}
.brand-pill-enterprise {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  letter-spacing: 0.3px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 4px;
  box-shadow: 0 18px 45px rgba(2, 8, 23, 0.28);
}
.brand-pill-icon {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.34));
  color: #c4f1ff;
}
.brand-byline {
  margin-top: 14px;
  color: rgba(226, 232, 240, 0.7);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.login-hero {
  max-width: 580px;
}
.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.login-hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.04;
  font-weight: 800;
  margin-bottom: 18px;
  color: #f8fafc;
}
.login-hero-sub {
  color: rgba(226, 232, 240, 0.76);
  font-size: 16px;
  line-height: 1.75;
  max-width: 560px;
}
.login-highlights {
  display: grid;
  gap: 16px;
  margin: 30px 0 22px;
}
.login-highlight-card {
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.login-highlight-card.featured {
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.78)),
    linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.18));
}
.login-highlight-card.compact {
  height: 100%;
}
.highlight-icon {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.28));
  color: #bae6fd;
  font-size: 20px;
  flex-shrink: 0;
}
.highlight-icon.soft-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(14, 165, 233, 0.24));
}
.highlight-icon.soft-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(251, 191, 36, 0.24));
  color: #fde68a;
}
.highlight-label {
  color: rgba(148, 163, 184, 0.92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.highlight-value {
  color: #f8fafc;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}
.highlight-copy {
  margin-top: 8px;
  color: rgba(226, 232, 240, 0.68);
  font-size: 14px;
  line-height: 1.65;
}
.login-microstats .login-stat-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 4px;
  padding: 18px 16px;
  box-shadow: 0 16px 35px rgba(2, 8, 23, 0.18);
  text-align: left;
  min-height: 136px;
}
.login-stat-top {
  color: rgba(148, 163, 184, 0.9);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.login-stat-value {
  color: #f8fafc;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}
.login-stat-meta {
  margin-top: 8px;
  color: rgba(203, 213, 225, 0.65);
  font-size: 13px;
}
.login-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  padding: 34px 34px 30px;
  box-shadow: 0 36px 70px rgba(15, 23, 42, 0.22);
  color: #0f172a;
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 68%);
  pointer-events: none;
}
.login-card-head,
.login-form,
.login-demo,
.login-trust-row,
.login-version {
  position: relative;
  z-index: 1;
}
.login-card-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}
.login-logo {
  width: 68px;
  height: 68px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #eff6ff;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}
.login-kicker {
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.login-title {
  text-align: left;
  font-size: 32px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.15;
  color: #0f172a;
}
.login-sub {
  text-align: left;
  color: #475569;
  font-size: 14px;
  margin-bottom: 0;
  line-height: 1.7;
}
.login-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.login-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
}
.login-form .form-label {
  color: #334155;
  font-weight: 600;
}
.premium-input > i {
  color: #64748b;
}
.premium-input .form-control {
  min-height: 56px;
  border-radius: 4px;
  border: 1px solid #dbe4ef;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  padding-left: 42px;
  padding-right: 44px;
  font-size: 15px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}
.premium-input .form-control::placeholder {
  color: #94a3b8;
}
.premium-input .form-control:focus {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  color: #0f172a;
}
.login-inline-link {
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.login-inline-link:hover {
  color: #1d4ed8;
}
.login-submit-row {
  margin-top: 24px;
}
.login-submit-btn {
  min-height: 58px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  box-shadow: 0 18px 34px rgba(29, 78, 216, 0.22);
}
.login-submit-btn:hover {
  background: linear-gradient(135deg, #1e40af, #0f766e);
  transform: translateY(-1px);
}
.login-demo {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.88), rgba(248, 250, 252, 0.98));
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 18px;
  text-align: left;
  margin-top: 24px;
}
.demo-title {
  font-size: 12px;
  color: #475569;
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.demo-copy {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.demo-accounts {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.demo-accounts button {
  background: rgba(255, 255, 255, 0.96);
  color: #1e3a8a;
  padding: 9px 14px;
  border-radius: 4px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.demo-accounts button:hover {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, 0.28);
}
.login-version {
  text-align: left;
  font-size: 12px;
  color: #64748b;
  margin-top: 22px;
  letter-spacing: 0.03em;
}
.login-card .alert {
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

/* ===== PRODUCTS (PULSA) ===== */
.btn-group-product { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-prod { background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-muted); padding: 6px 14px; border-radius: 20px; cursor: pointer; font-size: 13px; transition: var(--transition); }
.btn-prod.active, .btn-prod:hover { background: rgba(99,102,241,.15); border-color: var(--accent-primary); color: var(--accent-primary); }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 280px; overflow-y: auto; }
.product-item { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 10px; cursor: pointer; transition: var(--transition); }
.product-item:hover { border-color: var(--accent-primary); background: rgba(99,102,241,.05); }
.product-item.selected { border-color: var(--accent-primary); background: rgba(99,102,241,.15); box-shadow: 0 0 0 2px rgba(99,102,241,.3); }
.product-op { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.product-name { font-size: 13px; color: var(--text-primary); margin: 2px 0; }
.product-price { font-size: 14px; color: var(--accent-primary); font-weight: 700; }

/* ===== DEPOSIT ITEMS ===== */
.deposit-item { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--border-color); gap: 8px; }
.deposit-item:last-child { border-bottom: none; }
.deposit-provider { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.deposit-balance { font-size: 18px; font-weight: 700; }
.deposit-alert { font-size: 12px; color: var(--accent-warning); }

/* ===== POS SPECIFIC ===== */
.checkout-panel { position: sticky; top: 80px; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border-color); font-weight: 600; }
.cart-items { max-height: 300px; overflow-y: auto; }
.cart-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border-color); gap: 8px; }
.cart-item-name { flex: 1; font-size: 14px; }
.cart-item-right { display: flex; align-items: center; gap: 8px; }
.qty-input { width: 60px; text-align: center; }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-method { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 10px; text-align: center; cursor: pointer; transition: var(--transition); font-size: 13px; }
.pay-method:hover { border-color: var(--accent-primary); }
.pay-method.active { background: rgba(99,102,241,.15); border-color: var(--accent-primary); color: var(--accent-primary); }
.pay-method i { display: block; font-size: 20px; margin-bottom: 4px; }
.change-display { text-align: center; padding: 10px; background: rgba(34,197,94,.1); border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 12px; }
.product-results, .customer-results { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); max-height: 200px; overflow-y: auto; position: absolute; z-index: 100; width: calc(100% - 32px); }
.product-result-item { padding: 10px 14px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; border-bottom: 1px solid var(--border-color); }
.product-result-item:hover { background: var(--bg-card-hover); }
.customer-badge { background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.3); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 14px; }

/* ===== TOAST ===== */
.toast { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); }
.toast.success { border-left: 4px solid var(--accent-success); }
.toast.danger { border-left: 4px solid var(--accent-danger); }

/* ===== SELECTED PRODUCT INFO ===== */
.selected-product { background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.3); border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 8px; }
.selected-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .topbar-toggle { display: block; }
  .page-content { padding: 16px; }
  .stat-card .stat-value { font-size: 18px; }
  .product-grid { grid-template-columns: 1fr; }
  .login-page {
    padding: 18px 0;
    align-items: flex-start;
  }
  .login-wrapper {
    padding: 16px;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-showcase {
    display: block;
    padding: 0;
    margin-bottom: 14px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  .login-showcase > :not(.login-showcase-top) {
    display: none;
  }
  .login-showcase-top {
    margin-bottom: 0;
  }
  .brand-pill-enterprise {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
  }
  .brand-byline {
    margin-top: 10px;
    font-size: 11px;
    letter-spacing: 0.22em;
  }
  .login-card {
    padding: 24px 20px;
    border-radius: 6px;
  }
  .login-hero-title {
    font-size: 2.2rem;
  }
  .login-card-head {
    flex-direction: column;
  }
  .login-title {
    font-size: 28px;
  }
  .login-microstats .login-stat-card {
    min-height: auto;
  }
  .demo-accounts {
    flex-direction: column;
  }
  .demo-accounts button {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .login-showcase {
    gap: 18px;
  }
  .login-microstats .col-4 {
    width: 100%;
  }
  .login-trust-row {
    flex-direction: column;
  }
  .login-trust-chip {
    justify-content: center;
  }
}
