/* RESORT CAR CARE — PRODUCTION MATTE BLACK & GOLD STYLES */
:root {
  --bg: #07090c;
  --bg2: #0d1016;
  --panel: #11141b;
  --panel2: #161a23;
  --line: #262e3c;
  --line2: #343e50;
  --accent: #f4a340;
  --accent2: #ffbd59;
  --accent-glow: rgba(244, 163, 64, 0.15);
  --text: #f5f7fa;
  --text2: #cbd5e1;
  --muted: #94a3b8;
  --ok: #34d399;
  --ok-bg: #0d2e20;
  --warn: #fbbf24;
  --warn-bg: #382710;
  --err: #f87171;
  --err-bg: #3a1519;
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Tajawal', Arial, "Noto Sans Arabic", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }
.hidden { display: none !important; }

/* Screens */
.screen { min-height: 100vh; }
.auth-screen {
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 80% 15%, var(--accent-glow), transparent 45%), linear-gradient(135deg, #06080a, #0e1218);
}
.auth-card {
  width: min(460px, 100%);
  background: rgba(17, 20, 27, 0.98);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
  text-align: center;
}
.auth-logo { width: 100px; height: 100px; object-fit: contain; margin-bottom: 12px; }
.eyebrow { font-size: 11px; letter-spacing: 1.5px; color: var(--accent); font-weight: 800; text-transform: uppercase; }
h1, h2, h3, h4 { font-weight: 800; }
.auth-card h1 { margin: 6px 0 8px; font-size: 22px; }
.auth-card p { color: var(--muted); line-height: 1.6; font-size: 13px; margin: 0; }

.form-stack { display: grid; gap: 14px; text-align: right; margin-top: 22px; }
label { display: grid; gap: 6px; color: var(--text2); font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  font: inherit;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }

/* Buttons */
.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: #111;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  text-decoration: none;
  font-family: inherit;
  transition: all .15s ease-in-out;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #e67900); color: #111; }
.btn.secondary { background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.btn.secondary:hover { background: #202633; border-color: var(--line2); }
.btn.danger { background: var(--err-bg); color: #fca5a5; border: 1px solid #7f1d1d; }
.btn.danger:hover { background: #501b20; }
.btn.success, .btn.ok { background: var(--ok-bg); color: #6ee7b7; border: 1px solid #065f46; }
.btn.small { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn.full { width: 100%; }

/* Branch Portal Screen */
.branch-shell { max-width: 1100px; margin: auto; padding: 40px 20px; }
.branch-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; gap: 20px; }
.mini-logo { width: 72px; height: 72px; object-fit: contain; }
.branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.branch-card {
  background: linear-gradient(145deg, var(--panel), #0d1015);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all .2s;
}
.branch-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.branch-card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-glow);
  display: grid; place-items: center;
  font-size: 22px; color: var(--accent);
  margin-bottom: 16px; font-weight: 900;
}
.branch-card h2 { margin: 0 0 6px; font-size: 20px; }
.branch-card p { color: var(--muted); min-height: 38px; font-size: 13px; margin: 0; line-height: 1.5; }
.branch-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.branch-stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.branch-stats b { display: block; color: var(--accent2); font-size: 16px; }
.branch-stats span { font-size: 11px; color: var(--muted); }

/* Main App Shell */
.app { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #090c10;
  border-left: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand-row { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.side-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-row b { display: block; font-size: 16px; color: #fff; }
.brand-row small { display: block; color: var(--accent); font-weight: 700; margin-top: 2px; }
.branch-switch {
  margin: 12px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.branch-switch:hover { border-color: var(--accent); }
.nav-label { font-size: 10px; color: var(--muted); font-weight: 800; margin: 8px 6px 6px; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 3px; overflow-y: auto; padding-left: 4px; flex: 1; }
.sidebar nav button {
  background: transparent;
  color: #c4cdd5;
  border: 0;
  text-align: right;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  transition: all .15s;
}
.sidebar nav button:hover { background: var(--panel2); color: #fff; }
.sidebar nav button.active { background: #201a0f; color: var(--accent); border-right: 3px solid var(--accent); }
.sidebar-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.sync-badge { font-size: 11px; padding: 6px 10px; border-radius: 8px; margin-bottom: 8px; text-align: center; font-weight: 700; }
.sync-badge.cloud { background: #0f3322; color: #6ee7b7; border: 1px solid #065f46; }
.sync-badge.local { background: #35250c; color: #fde047; border: 1px solid #713f12; }

/* Topbar */
.main { min-width: 0; background: var(--bg); display: flex; flex-direction: column; }
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(7, 9, 12, 0.94);
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(10px);
}
.topbar h2 { margin: 2px 0 0; font-size: 19px; }
.top-actions { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.role-chip {
  background: var(--accent-glow);
  border: 1px solid #7c4c12;
  color: var(--accent2);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11.5px;
}
.mobile-nav { display: none; background: var(--panel); border: 1px solid var(--line); color: #fff; padding: 8px 12px; border-radius: 8px; cursor: pointer; }

/* Content & Panels */
.content { padding: 22px; max-width: 1650px; flex: 1; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.kpi span { color: var(--muted); font-size: 12px; font-weight: 700; }
.kpi b { display: block; font-size: 26px; margin-top: 6px; font-weight: 900; }
.kpi small { color: var(--accent); font-weight: 700; font-size: 11px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.panel-head h3 { margin: 0; font-size: 17px; }
.toolbar, .advanced-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }

/* Alerts Banner */
.alert-banner {
  background: #2a1c09;
  border: 1px solid #854d0e;
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.alert-banner b { color: #fde047; font-size: 13px; }
.alert-banner span { color: var(--text2); font-size: 12px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 820px; background: #0a0d12; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: right; font-size: 12.5px; white-space: nowrap; }
th { background: #131720; color: #a2abb5; font-weight: 800; position: sticky; top: 0; z-index: 2; cursor: pointer; }
th.sorted { color: var(--accent); }
tr:hover td { background: #12161f; }
.actions { display: flex; gap: 8px; }
.actions button { background: none; border: 0; color: #60a5fa; cursor: pointer; font-size: 12px; font-weight: 700; padding: 2px 4px; font-family: inherit; }
.actions .danger-link { color: #f87171; }
.actions button:hover { text-decoration: underline; }

/* Status Badges */
.badge, .status { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge.received, .status.received { background: #1e3a8a; color: #93c5fd; }
.badge.in_progress, .status.in_progress { background: #713f12; color: #fde047; }
.badge.ready, .status.ready { background: #065f46; color: #6ee7b7; border: 1px solid #34d399; }
.badge.delivered, .status.delivered { background: #14532d; color: #86efac; }
.badge.cash { background: #064e3b; color: #a7f3d0; }
.badge.card { background: #1e3a8a; color: #bfdbfe; }
.badge.archive { background: #374151; color: #d1d5db; font-size: 10px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.78); display: grid; place-items: center; padding: 20px; z-index: 100; backdrop-filter: blur(4px); }
.modal-card { position: relative; background: var(--panel); border: 1.5px solid var(--line2); border-radius: 20px; width: min(920px, 100%); max-height: 90vh; overflow-y: auto; padding: 26px; box-shadow: var(--shadow); }
.modal-close { position: absolute; left: 16px; top: 16px; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* Toast */
.toast {
  position: fixed; left: 24px; bottom: 24px;
  background: #181f2b; border: 1.5px solid #38455a;
  color: #fff; padding: 12px 18px; border-radius: 12px;
  z-index: 200; opacity: 0; transform: translateY(15px);
  pointer-events: none; transition: .2s; font-weight: 700; font-size: 13px; max-width: 440px;
}
.toast.show { opacity: 1; transform: none; }
.toast.bad { border-color: #991b1b; background: #2f1215; color: #fca5a5; }

/* Grid Forms */
.edit-grid, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.edit-grid .wide, .form-grid .wide { grid-column: 1 / -1; }

/* Responsive adjustments */
@media (max-width: 1050px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; right: -300px; width: 280px; transition: .25s ease-in-out; }
  .sidebar.open { right: 0; box-shadow: -10px 0 35px rgba(0,0,0,.7); }
  .mobile-nav { display: block; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .branch-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .kpis { grid-template-columns: 1fr; }
  .topbar { padding: 0 14px; }
  .content { padding: 14px; }
  .edit-grid, .form-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 18px; }
}


/* ==========================================================================
   PERMISSIONS MATRIX & CUSTOM ACCESS CONTROL STYLES
   ========================================================================== */
.perms-container {
  background: #0b111e;
  border: 1.5px solid #1e293b;
  border-radius: 16px;
  padding: 18px;
  margin-top: 16px;
}
.perms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #1e293b;
}
.perms-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.perms-header-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
}
.perms-header-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.perms-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.perms-tool-btn {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.perms-tool-btn:hover {
  background: #334155;
  color: #fff;
  border-color: #475569;
}
.perms-tool-btn.btn-all-on {
  border-color: #10b981;
  color: #34d399;
}
.perms-tool-btn.btn-all-on:hover {
  background: #064e3b;
  color: #fff;
}
.perms-tool-btn.btn-all-off {
  border-color: #ef4444;
  color: #f87171;
}
.perms-tool-btn.btn-all-off:hover {
  background: #7f1d1d;
  color: #fff;
}
.perms-tool-btn.btn-reset {
  border-color: #f59e0b;
  color: #fbbf24;
}
.perms-tool-btn.btn-reset:hover {
  background: #78350f;
  color: #fff;
}
.perms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}
.perms-module-card {
  background: #111a2c;
  border: 1.5px solid #223249;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .2s ease;
}
.perms-module-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.perms-module-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #1e293b;
}
.perms-module-head-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 800;
  color: #f1f5f9;
}
.perms-module-toggle {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all .15s ease;
}
.perms-module-toggle:hover {
  background: #334155;
  color: #fff;
}
.perms-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.perm-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid transparent;
  transition: all .15s ease;
  user-select: none;
}
.perm-check-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}
.perm-check-item.active-perm {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}
.perm-check-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: #f59e0b;
  cursor: pointer;
  flex-shrink: 0;
}
.perm-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.perm-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
}
.perm-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}
.perm-code {
  font-family: monospace;
  font-size: 10px;
  color: #64748b;
  margin-top: 1px;
}


/* ==========================================================================
   LOYALTY PROGRAM & POINTS REWARD SYSTEM STYLES
   ========================================================================== */
.loyalty-terminal {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .loyalty-terminal { grid-template-columns: 1fr; }
}

.loyalty-card-vip {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 18px;
  padding: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}
.loyalty-card-vip::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.loyalty-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.loyalty-card-brand {
  font-size: 14px;
  font-weight: 800;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}
.loyalty-tier-badge {
  background: #f59e0b;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.loyalty-points-display {
  margin: 12px 0;
}
.loyalty-points-val {
  font-size: 34px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1;
  font-family: var(--font-num, inherit);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.loyalty-points-val span {
  font-size: 14px;
  color: #f59e0b;
  font-weight: 700;
}
.loyalty-sar-sub {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 4px;
}
.loyalty-progress-container {
  margin-top: 16px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.loyalty-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #cbd5e1;
  margin-bottom: 6px;
}
.loyalty-progress-bar-bg {
  height: 8px;
  background: #334155;
  border-radius: 6px;
  overflow: hidden;
}
.loyalty-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: 6px;
  transition: width 0.4s ease;
}
.loyalty-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.loyalty-rule-box {
  background: #0b111e;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.loyalty-rule-icon {
  font-size: 24px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}


/* ==========================================================================
   LIGHT MODE PALETTE & THEME SYSTEM (Part 16 - 19)
   ========================================================================== */
body.theme-light, [data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #f1f5f9;
  --panel: #ffffff;
  --panel2: #f8fafc;
  --line: #e2e8f0;
  --line2: #cbd5e1;
  --accent: #d97706;
  --accent2: #b45309;
  --accent-glow: rgba(217, 119, 6, 0.12);
  --text: #0f172a;
  --text2: #334155;
  --muted: #64748b;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --err: #dc2626;
  --err-bg: #fef2f2;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.theme-light .sidebar {
  background: #ffffff;
  border-left-color: var(--line);
}
body.theme-light .topbar {
  background: #ffffff;
  border-bottom-color: var(--line);
}
body.theme-light .panel, 
body.theme-light .kpi,
body.theme-light .card {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
body.theme-light .input,
body.theme-light select,
body.theme-light textarea {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
body.theme-light .table-wrap table {
  color: #0f172a;
}
body.theme-light table th {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}
body.theme-light table td {
  border-color: #f1f5f9;
}
body.theme-light .modal-card {
  background: #ffffff;
  color: #0f172a;
  border-color: #e2e8f0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
body.theme-light .btn.secondary {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
body.theme-light .nav-link {
  color: #475569;
}
body.theme-light .nav-link:hover,
body.theme-light .nav-link.active {
  background: #fffbeb;
  color: #b45309;
}

/* ==========================================================================
   SEGMENTED ORDER SOURCE PICKER (Part 1 - 3)
   ========================================================================== */
.order-source-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.source-option-card {
  background: var(--panel2);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.source-option-card:hover {
  border-color: var(--accent);
}
.source-option-card.active {
  border-color: var(--accent);
  background: rgba(244, 163, 64, 0.1);
  box-shadow: 0 0 0 1px var(--accent);
}
.source-option-icon {
  font-size: 26px;
}
.source-option-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}
.source-option-desc {
  font-size: 11.5px;
  color: var(--muted);
}

/* ==========================================================================
   PERCENTAGE DISCOUNT CHIPS (Part 8)
   ========================================================================== */
.discount-chip-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.discount-chip {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.discount-chip:hover, .discount-chip.active {
  background: var(--accent);
  color: #0b0d10;
  border-color: var(--accent);
}

/* ==========================================================================
   GLOBAL SEARCH & NOTIFICATIONS BAR (Part 40 - 41)
   ========================================================================== */
.global-search-wrap {
  position: relative;
  flex: 1;
  max-width: 480px;
}
.global-search-input {
  width: 100%;
  background: var(--panel2);
  border: 1.5px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 14px 8px 36px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.global-search-input:focus {
  border-color: var(--accent);
}
.global-search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 100%;
  max-height: 380px;
  overflow-y: auto;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
}
.search-result-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  transition: background 0.15s;
}
.search-result-item:hover {
  background: rgba(244, 163, 64, 0.1);
}
.notif-bell-btn {
  position: relative;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
}
.notif-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--err);
  color: #fff;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

/* ==========================================================================
   DASHBOARD CHARTS & DONUTS (Part 33 - 39)
   ========================================================================== */
.donut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.chart-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.chart-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
