/* ============================================================
   Mana Nellore Ops — Admin console
   Design language: "Warm Ops" — warm cream canvas #FFF8F0,
   white sidebar, vivid orange #F2641A, Inter throughout with
   tight tracking, colorful status accents, soft 18–20px radii.
   Butter-smooth: transform/opacity motion only, 150–250ms ease,
   staggered card entrances, stable scrollbar gutter.
   ============================================================ */

:root {
  --accent: #f2641a;
  --accent-dark: #d9530f;
  --accent-ink: #b3470a;
  --accent-soft: #ffead6;
  --accent-grad: linear-gradient(135deg, #ff7a1a, #f2541b);
  --indigo: #f2641a;      /* legacy alias — do not remove */
  --indigo-dark: #d9530f; /* legacy alias — do not remove */
  --sidebar: #ffffff;
  --slate-900: #2b1d10;
  --slate-800: #4a3a28;
  --slate-700: #6b5a44;
  --slate-500: #97816d;
  --slate-400: #b3a48e;
  --slate-200: #f1e3ce;
  --slate-100: #faf3e8;
  --surface-2: #faf3e8;
  --bg: #fff8f0;
  --card: #ffffff;
  --text: #2b1d10;
  --muted: #97816d;
  --border: #f1e3ce;
  --green: #1e7a44;
  --green-bg: #dff5e5;
  --amber: #b45309;
  --amber-bg: #fdefd2;
  --red: #d92d20;
  --red-bg: #fde4e0;
  --blue: #2563eb;
  --blue-bg: #e1ecfd;
  --radius: 20px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.33, .66, .35, 1);
  --shadow-sm: 0 1px 2px rgba(120, 72, 20, .05);
  --shadow-md: 0 10px 28px rgba(120, 72, 20, .1);
  --shadow-pop: 0 16px 40px rgba(242, 100, 26, .22);
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
button { font-family: inherit; }

/* 1.5px line icons throughout */
.btn svg, .nav-btn svg, .stat-chip svg, .drawer-close svg,
.icon-btn svg, .toast svg { stroke-width: 1.5; }

/* ---------- Login ---------- */
.login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(600px 420px at 15% 12%, rgba(255, 122, 26, .16), transparent 60%),
    radial-gradient(700px 500px at 88% 88%, rgba(242, 84, 27, .12), transparent 60%),
    var(--bg);
}
.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 38px 34px;
  width: 100%;
  max-width: 390px;
  box-shadow: var(--shadow-md);
  animation: riseIn .45s var(--ease) both;
}
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.login-card h1 { margin: 16px 0 4px; font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.login-sub { margin: 0 0 22px; color: var(--muted); font-size: 13px; font-weight: 500; }
.login-logo {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--accent-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-pop);
}
.login-logo svg { width: 28px; height: 28px; }
.login-hint {
  font-size: 12px; color: var(--muted);
  background: var(--slate-100);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px;
}
.form-error {
  color: var(--red); background: var(--red-bg);
  border: 1px solid #f5c4bc; border-radius: 12px;
  padding: 10px 12px; font-size: 13px;
}

/* ---------- Forms & buttons ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; font-weight: 700; color: var(--slate-700); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 11px 14px; font-size: 16px;
  border: 1.5px solid var(--border); border-radius: 12px; background: #fff; color: var(--text);
  transition: border-color .18s ease, background-color .18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 100, 26, .14);
}
textarea { resize: vertical; min-height: 80px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; font-size: 14px; font-weight: 700;
  border: 1.5px solid var(--border); border-radius: 999px; background: #fff; color: var(--text);
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease,
              transform .2s var(--ease), opacity .2s ease;
}
@media (hover:hover){.btn:hover { background: var(--slate-100); border-color: #e3cfae; transform: translateY(-1px); box-shadow: var(--shadow-sm); }}
.btn:active { transform: scale(.96); box-shadow: none; transition-duration: .07s; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: var(--accent-grad); border-color: transparent; color: #fff;
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover { background: var(--accent-grad); border-color: transparent; filter: brightness(1.06); box-shadow: 0 18px 44px rgba(242, 100, 26, .3); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(217, 45, 32, .25); }
@media (hover:hover){.btn-danger:hover { background: #b42318; border-color: #b42318; }}
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; transform: none; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-block { width: 100%; }
/* Semantic action buttons — weighty, unmistakable */
.btn-approve { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(30, 122, 68, .25); }
@media (hover:hover){.btn-approve:hover { background: #176b3a; border-color: #176b3a; box-shadow: 0 8px 20px rgba(30, 122, 68, .32); }}
.btn-reject { background: #fff; border-color: #f3c0b8; color: var(--red); }
@media (hover:hover){.btn-reject:hover { background: var(--red-bg); border-color: var(--red); box-shadow: 0 6px 16px rgba(217, 45, 32, .14); }}
.btn-suspend { background: var(--amber-bg); border-color: #eed9a8; color: var(--amber); }
@media (hover:hover){.btn-suspend:hover { background: #fae3ae; border-color: var(--amber); box-shadow: 0 6px 16px rgba(180, 83, 9, .16); }}
.icon-btn {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1.5px solid var(--border); border-radius: 14px;
  background: #fff; cursor: pointer; color: var(--text); flex-shrink: 0;
  transition: background-color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
@media (hover:hover){.icon-btn:hover { background: var(--slate-100); transform: translateY(-1px); }}
.icon-btn:active { transform: scale(.92); transition-duration: .07s; }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Tactile press states — every tap answers ---------- */
.nav-btn:active { transform: scale(.97); transition-duration: .07s; }
.attn-row:active { transform: scale(.98); box-shadow: none; transition-duration: .07s; }
.kpi-card[data-action]:active { transform: scale(.98); box-shadow: none; transition-duration: .07s; }
.stat-card:active { transform: scale(.99); transition-duration: .07s; }
.drawer-close:active { transform: scale(.9) rotate(90deg); transition-duration: .07s; }
.check-item:active { transform: scale(.98); transition-duration: .07s; }
.btn:focus-visible, .nav-btn:focus-visible, .icon-btn:focus-visible,
.attn-row:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 268px; flex-shrink: 0;
  background: var(--sidebar); color: var(--slate-700);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--border);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 13px; background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
  box-shadow: var(--shadow-pop);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { font-size: 15.5px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.brand-text em { font-style: normal; color: var(--accent); }
.nav { flex: 1; overflow-y: auto; padding: 10px 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.nav-section {
  font-size: 10.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate-400); padding: 16px 12px 6px;
}
.nav-btn {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border: 0; border-radius: 12px; background: transparent;
  color: var(--slate-700); font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; width: 100%;
  position: relative;
  transition: background-color .18s ease, color .18s ease, transform .18s var(--ease);
}
.nav-btn svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; transition: opacity .18s ease, transform .18s var(--ease), color .18s ease; }
@media (hover:hover){.nav-btn:hover { background: var(--slate-100); color: var(--text); }}
.nav-btn:hover svg { opacity: 1; transform: translateX(1px); }
.nav-btn.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.nav-btn.active svg { opacity: 1; color: var(--accent); }
.nav-badge {
  margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px;
  background: linear-gradient(135deg, #f04438, #d92d20); color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  animation: badge-pulse 2.2s ease-in-out infinite;
  transition: transform .2s var(--ease);
  box-shadow: 0 3px 8px rgba(217, 45, 32, .3);
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}
.sidebar-foot { padding: 14px 16px 18px; border-top: 1px solid var(--border); }
.sidebar-foot .btn-ghost { justify-content: flex-start; padding-left: 8px; border-radius: 12px; }
.api-note { font-family: var(--mono); font-size: 10px; color: var(--slate-400); margin-bottom: 10px; word-break: break-all; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  padding: 30px 40px 0; display: flex; align-items: flex-start; gap: 16px;
}
.page-head { flex: 1; min-width: 0; }
.eyebrow {
  font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.page-head h1 {
  font-weight: 800; font-size: 34px; line-height: 1.12;
  letter-spacing: -.025em; margin: 0 0 8px; color: var(--text);
}
.page-sub { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 640px; }
.topbar-right { padding-top: 6px; flex-shrink: 0; }
.screen { padding: 26px 40px 56px; max-width: 1220px; width: 100%; margin: 0 auto; }

/* ---------- Cards & stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .2s ease;
}
@media (hover:hover){.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #e8d3b4; }}
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.stat-label { font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.4; padding-top: 2px; }
.stat-chip {
  width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease), background-color .2s ease;
}
.stat-card:hover .stat-chip { transform: scale(1.06) rotate(-4deg); }
.stat-chip svg { width: 19px; height: 19px; }
.stat-value { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

.section-title { font-size: 15px; font-weight: 800; letter-spacing: -.01em; margin: 28px 0 12px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), border-color .22s ease;
}
.card h3 { margin: 0 0 14px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }

/* Numbered rows (e.g. Spotlight leaderboard) */
.rank-chip {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  background: var(--slate-100); color: var(--slate-500);
  font-weight: 800; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.tbl th {
  text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); background: #fdf4e6;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tbl td { padding: 12px 16px; border-bottom: 1px solid #f8ecdc; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color .16s ease; content-visibility: auto; contain-intrinsic-size: auto 52px; }
@media (hover:hover){.tbl tbody tr:hover { background: #fffaf2; }}
.tbl .empty { text-align: center; color: var(--muted); padding: 30px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.id-mono { font-family: var(--mono); font-size: 11.5px; color: var(--slate-500); }

/* ---------- Status pills ---------- */
.pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
  transition: transform .16s var(--ease);
}
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.peach { background: var(--accent-soft); color: var(--accent-ink); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.slate { background: var(--slate-100); color: var(--slate-500); }

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar select { width: auto; min-width: 180px; border-radius: 999px; padding: 9px 16px; }
.toolbar .spacer { flex: 1; }

/* ---------- Loading / error states ---------- */
.loading-wrap { animation: fadeIn .25s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.state { text-align: center; padding: 64px 20px; color: var(--muted); animation: fadeIn .25s ease both; }

/* ---------- Empty states: icon + copy + CTA ---------- */
.empty-state { text-align: center; padding: 52px 20px; animation: fadeIn .25s ease both; }
.empty-ico {
  width: 66px; height: 66px; border-radius: 22px; margin: 0 auto 14px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 28px;
  animation: riseIn .4s var(--ease) both;
}
.empty-ico.green { background: var(--green-bg); color: var(--green); }
.empty-ico.blue { background: var(--blue-bg); color: var(--blue); }
.empty-state h4 { margin: 0 0 6px; font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.empty-state p { margin: 0 auto 16px; color: var(--muted); font-size: 13.5px; max-width: 380px; }
.empty-state .btn { margin-top: 2px; }
tr.empty-row td { padding: 0 !important; border-bottom: 0 !important; background: #fff !important; box-shadow: none !important; }
p.empty { color: var(--muted); font-size: 13.5px; margin: 6px 0; }
.spinner {
  width: 36px; height: 36px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid var(--slate-200); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(60, 38, 16, .45); z-index: 40; animation: fadeIn .22s ease both; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(520px, 100%); background: #fff;
  box-shadow: -16px 0 48px rgba(120, 72, 20, .18);
  display: flex; flex-direction: column;
  animation: drawerIn .3s var(--ease) both;
  border-top-left-radius: 22px; border-bottom-left-radius: 22px;
}
@keyframes drawerIn { from { transform: translateX(48px); opacity: .35; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { margin: 0; font-size: 18px; font-weight: 800; flex: 1; letter-spacing: -.02em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px; }
.drawer-close {
  border: 1.5px solid var(--border); background: #fff; border-radius: 999px;
  width: 34px; height: 34px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0;
  transition: background-color .18s ease, color .18s ease, transform .18s var(--ease), border-color .18s ease;
}
@media (hover:hover){.drawer-close:hover { background: var(--slate-100); color: var(--text); transform: rotate(90deg); }}
.drawer-close svg { width: 16px; height: 16px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 7px 12px; font-size: 13px; margin-bottom: 18px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0 0 18px; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 26px; font-size: 13px; }
.timeline li::before {
  content: ""; position: absolute; left: 7px; top: 5px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent);
  transition: transform .2s var(--ease);
}
.timeline li:last-child::before { box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 18px; bottom: -2px; width: 2px; background: var(--slate-200); }
.timeline li:last-child::after { display: none; }
.timeline .t-time { color: var(--muted); font-size: 12px; }

/* ---------- Ticket thread ---------- */
.msg {
  border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; font-size: 13px;
  animation: fadeIn .25s ease both;
}
.msg .msg-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; font-weight: 700; }
.msg.admin { background: var(--accent-soft); border-color: #f0cf9f; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: #2b1d10; color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s var(--ease), background-color .2s ease;
  max-width: 90vw; text-align: center; box-shadow: 0 12px 32px rgba(60, 38, 16, .35);
  display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }
.toast svg { width: 17px; height: 17px; flex: none; }

/* ---------- Form rows ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 60;
    transform: translateX(-104%); transition: transform .28s var(--ease); height: 100vh;
    border-top-right-radius: 22px; border-bottom-right-radius: 22px;
    border-right: 0; box-shadow: 16px 0 48px rgba(120, 72, 20, .18);
  }
  .sidebar.open { transform: none; }
  .icon-btn { display: inline-flex; }
  .screen { padding: 22px 16px 48px; }
  .topbar { padding: 24px 16px 0; }
  .page-head h1 { font-size: 30px; }
  .kv { grid-template-columns: 110px 1fr; }
}
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .page-head h1 { font-size: 24px; }
  .page-head .eyebrow, .page-head .page-sub { display: none; }
  .topbar { align-items: center; }
  .topbar-right { padding-top: 0; }
  /* Drawer becomes a bottom sheet on phones */
  .drawer {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%;
    max-height: 92dvh; border-radius: 24px 24px 0 0;
    animation: sheetUp .32s var(--ease) both;
    box-shadow: 0 -16px 48px rgba(120, 72, 20, .22);
  }
  @keyframes sheetUp { from { transform: translateY(60px); opacity: .4; } to { transform: none; opacity: 1; } }
  .drawer-head { position: relative; padding-top: 26px; }
  .drawer-head::before {
    content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 5px; border-radius: 99px; background: var(--slate-200);
  }
  .drawer-body { padding: 18px; }
  .topbar-right { flex-wrap: wrap; justify-content: flex-end; }
}

/* Rider KYC document viewer */
.kyc-doc { margin: 16px 0; }
.kyc-doc-label { font-weight: 800; margin-bottom: 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kyc-doc-img { width: 100%; border-radius: 14px; border: 1px solid var(--border); display: block; }
.kyc-doc-none { padding: 18px; border: 1px dashed var(--border); border-radius: 14px; color: var(--muted); text-align: center; font-size: 14px; }
.drawer-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Skeleton loading placeholders ---------- */
.skel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--slate-100);
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #f3e6d2, transparent);
  transform: translateX(-100%);
  animation: skel-shimmer 1.4s ease-in-out infinite;
}
@keyframes skel-shimmer { to { transform: translateX(100%); } }
.loading-msg { color: var(--muted); margin: 0 0 14px; font-size: 13px; }

/* Human-readable tier/rule display */
.tierview { font-size: 13px; line-height: 1.7; color: var(--text); }
.tierview .btn { margin-top: 8px; }

/* Success notice box (e.g. refund issued) */
.okbox {
  background: var(--green-bg); border: 1px solid #b7e3c4; color: var(--green);
  border-radius: 14px; padding: 12px 16px; font-size: 13.5px; margin-top: 12px;
  animation: fadeIn .25s ease both;
}
.jsonedit {
  width: 100%; font-family: var(--mono); font-size: 12px;
  border: 1.5px solid var(--border); border-radius: 10px; padding: 10px;
  transition: border-color .18s ease;
}
.jsonedit:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 100, 26, .14); }

/* ---------- Clickable rows ---------- */
tr[data-action] { cursor: pointer; }
tr[data-action] td { transition: background-color .16s ease; }
@media (hover:hover) {
  tr[data-action]:hover td { background: #fff6ea; }
  tr[data-action]:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
}
tr[data-action]:active td { background: #fbeed9; transition-duration: .06s; }

/* ---------- Dashboard warning banner ---------- */
.warn-banner { border-left: 4px solid var(--amber); margin-bottom: 20px; }
.warn-banner h3 { margin: 0 0 8px; }
.warn-banner p { margin: 6px 0; font-size: 13.5px; }

/* ---------- Application / collection cards ---------- */
.app-card { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.app-photo { width: 120px; height: 90px; object-fit: cover; border-radius: 14px; flex-shrink: 0; border: 1px solid var(--border); }
.app-photo-missing {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--slate-100); color: var(--muted); font-size: 12px; font-weight: 700;
}
.app-photo-sm { width: 72px; height: 52px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.app-info { flex: 1; min-width: 0; }
.app-name { font-weight: 800; font-size: 16px; margin-bottom: 4px; letter-spacing: -.01em; }
.app-meta { font-size: 13px; color: var(--slate-700); margin-bottom: 3px; }

/* ---------- Restaurant / ticket photos ---------- */
.rest-photo { width: 100%; max-height: 230px; object-fit: cover; border-radius: 16px; margin-bottom: 14px; border: 1px solid var(--border); }
.ticket-photo { max-width: 220px; border-radius: 12px; border: 1px solid var(--border); }
.photo-missing {
  padding: 26px; border: 1px dashed var(--border); border-radius: 16px; text-align: center;
  color: var(--muted); font-size: 14px; margin-bottom: 14px; background: #fffdf8;
}
.photo-missing-inline { color: var(--amber); font-size: 13px; font-weight: 700; margin: 8px 0 0; }
.verified-badge {
  display: inline-block; background: #dcfce7; color: #15803d; font-weight: 800; font-size: 12px;
  border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}
.rider-photo-lg { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.rider-photo-missing {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 26px; font-weight: 800;
}

/* ---------- Checkbox lists ---------- */
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; max-height: 220px; overflow-y: auto; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.check-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 5px 8px; border-radius: 8px; cursor: pointer; }
@media (hover:hover){.check-item:hover { background: var(--slate-100); }}
.check-item input { width: auto; }
.check-row { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; }
.check-row input { width: auto; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- restaurant detail diagram ---------- */
.rd-hero{position:relative;border-radius:16px;overflow:hidden;border:1px solid var(--border);margin-bottom:14px;background:var(--surface-2)}
.rd-hero img{width:100%;max-height:210px;object-fit:cover;display:block}
.rd-hero-fallback{display:flex;align-items:center;justify-content:center;min-height:120px;color:var(--muted);font-weight:600}
.rd-hero-bar{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#fff;flex-wrap:wrap}
.rd-hero-bar .rd-name{font-size:17px;font-weight:800;letter-spacing:-.01em}
.rd-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.rd-stat{background:#fff;border:1px solid var(--border);border-radius:14px;padding:10px 12px;box-shadow:var(--shadow-sm)}
.rd-stat .v{font-size:18px;font-weight:800;letter-spacing:-.02em}
.rd-stat .l{font-size:11.5px;color:var(--muted);font-weight:600;margin-top:2px}
.rd-journey{display:flex;align-items:center;margin:4px 0 16px}
.rd-step{flex:1;text-align:center;position:relative;padding-top:26px;font-size:12px;font-weight:700;color:var(--muted)}
.rd-step::before{content:'';position:absolute;top:8px;left:50%;transform:translateX(-50%);width:16px;height:16px;border-radius:50%;background:#efe0cb;border:2px solid #e0cba6}
.rd-step::after{content:'';position:absolute;top:15px;left:calc(-50% + 10px);right:calc(50% + 10px);height:2px;background:#efe0cb}
.rd-step:first-child::after{display:none}
.rd-step.done{color:#166534}
.rd-step.done::before{background:#16a34a;border-color:#16a34a}
.rd-step.done::after{background:#16a34a}
.rd-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:6px}
.rd-sec{background:#fff;border:1px solid var(--border);border-radius:14px;padding:12px 14px}
.rd-sec h4{margin:0 0 8px;font-size:14px;font-weight:800;color:var(--slate-700)}
.rd-sec .row{display:flex;justify-content:space-between;gap:8px;font-size:13px;padding:3px 0}
.rd-sec .row .k{color:var(--muted);font-weight:600}
.rd-sec .row .v{text-align:right;font-weight:600;word-break:break-word}
@media (max-width:560px){ .rd-stats{grid-template-columns:repeat(2,1fr)} .rd-grid{grid-template-columns:1fr} }

/* ============================================================
   Command center — notification bell, live clock, screen transitions,
   KPI sparklines, charts, attention queue, activity feed.
   Motion budget: transform + opacity only.
   ============================================================ */

/* ---- topbar: notification bell + live clock ---- */
.bell-btn { position: relative; }
.bell-btn svg { width: 19px; height: 19px; }
.bell-badge {
  position: absolute; top: 2px; right: 2px; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 19px; text-align: center;
  border: 2px solid #fff; box-shadow: var(--shadow-sm);
  animation: bell-pop .3s var(--ease);
}
@keyframes bell-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.live-clock {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  background: #fff; border: 1.5px solid var(--border); border-radius: 14px;
  padding: 8px 12px; white-space: nowrap;
}

/* ---- notification panel ---- */
.topbar { position: relative; }
.notif-panel {
  position: absolute; top: calc(100% - 6px); right: 16px; z-index: 80;
  width: min(340px, calc(100vw - 32px));
  background: #fff; border: 1.5px solid var(--border); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(60, 38, 16, .22);
  padding: 8px; overflow: hidden;
  transform-origin: top right;
  animation: notif-in .22s var(--ease);
}
@keyframes notif-in { from { opacity: 0; transform: scale(.96) translateY(-6px); } to { opacity: 1; transform: none; } }
.notif-panel.hidden { display: none; }
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 6px; font-size: 15px;
}
.notif-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px; border: 0; border-radius: 12px; background: transparent;
  font-family: var(--sans); font-size: 14px; color: var(--text); cursor: pointer; text-align: left;
  transition: background .12s var(--ease);
}
@media (hover:hover){.notif-row:hover { background: var(--accent-soft); }}
.notif-row:active { transform: scale(.98); transition-duration: .07s; }
.notif-ico { font-size: 20px; flex: none; }
.notif-label { flex: 1; font-weight: 600; }
.notif-count {
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 13px; font-weight: 800; line-height: 26px; text-align: center;
}
.notif-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---- screen transitions ---- */
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.screen-enter { animation: screen-in .28s var(--ease); }

/* ---- command center greeting ---- */
.cc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.cc-greet { font-size: 30px; font-weight: 800; margin: 0; letter-spacing: -.025em; }
.cc-date { color: var(--muted); font-size: 13px; margin: 6px 0 0; font-weight: 500; }
.cc-updated {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: #fff; border: 1.5px solid var(--border); border-radius: 999px; padding: 7px 14px;
}
.cc-updated .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- KPI cards with sparklines ---- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.kpi-grid .kpi-card { animation: cardIn .45s var(--ease) both; }
.kpi-grid .kpi-card:nth-child(2) { animation-delay: .05s; }
.kpi-grid .kpi-card:nth-child(3) { animation-delay: .1s; }
.kpi-grid .kpi-card:nth-child(4) { animation-delay: .15s; }
.kpi-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
@media (hover:hover){.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #e8d3b4; }}
.kpi-card[data-action] { cursor: pointer; }
.kpi-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent-grad); opacity: 1;
}
.kpi-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.kpi-chip {
  width: 36px; height: 36px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(242, 100, 26, .12);
}
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-delta { font-size: 12px; font-weight: 700; margin-top: 2px; }
.kpi-delta.up { color: var(--green); }
.kpi-delta.down { color: var(--red); }
.kpi-delta.flat { color: var(--muted); }
.kpi-spark { margin-top: 10px; height: 38px; }
.kpi-spark svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ---- command center layout ---- */
.cc-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 20px; }
.cc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.chart-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.chart-card h3, .feed-card h3, .rank-card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.chart-sub { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* ---- attention queue ---- */
.attn-list { display: flex; flex-direction: column; gap: 8px; }
.attn-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 16px;
  background: #fff; cursor: pointer; font-family: var(--sans); font-size: 13.5px; color: var(--text);
  text-align: left; transition: transform .16s var(--ease), border-color .16s var(--ease);
}
@media (hover:hover){.attn-row:hover { transform: translateX(3px); border-color: var(--accent); box-shadow: 0 6px 16px rgba(242, 100, 26, .12); }}
.attn-ico { width: 38px; height: 38px; border-radius: 13px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.attn-ico.red { background: var(--red-bg); }
.attn-ico.amber { background: var(--amber-bg); }
.attn-ico.blue { background: var(--blue-bg); }
.attn-main { flex: 1; min-width: 0; }
.attn-title { font-weight: 700; }
.attn-sub { font-size: 12px; color: var(--muted); }
.attn-count {
  font-family: var(--mono); font-weight: 700; font-size: 16px;
  background: var(--slate-100); border-radius: 10px; padding: 4px 10px; min-width: 40px; text-align: center;
}
.attn-count.hot { background: var(--red-bg); color: var(--red); }
.attn-clear { text-align: center; padding: 26px 12px; color: var(--muted); }
.attn-clear .big { font-size: 34px; display: block; margin-bottom: 8px; }

/* ---- activity feed ---- */
.feed-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.feed-list { display: flex; flex-direction: column; }
.feed-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px;
  border-bottom: 1px solid var(--slate-100); font-size: 13.5px;
}
.feed-row:last-child { border-bottom: 0; }
.feed-time { font-family: var(--mono); font-size: 11.5px; color: var(--muted); width: 58px; flex: none; }
.feed-main { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-main strong { font-weight: 700; }
@keyframes feed-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.feed-row.fresh { animation: feed-in .4s var(--ease); }

/* ---- top restaurants rank ---- */
.rank-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--slate-100); font-size: 13.5px; }
.rank-row:last-child { border-bottom: 0; }
.rank-num {
  width: 28px; height: 28px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  background: var(--slate-100); color: var(--muted);
}
.rank-row:nth-child(1) .rank-num { background: #fdf0d3; color: #b45309; }
.rank-row:nth-child(2) .rank-num { background: var(--slate-100); color: var(--slate-700); }
.rank-row:nth-child(3) .rank-num { background: var(--accent-soft); color: var(--accent-ink); }
.rank-name { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-val { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.rank-bar { height: 6px; border-radius: 3px; background: var(--slate-100); overflow: hidden; margin-top: 6px; }
.rank-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent-grad); transition: transform .6s var(--ease); transform-origin: left center; width: 100%; }
.rank-main { flex: 1; min-width: 0; }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-grid, .cc-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-card { padding: 14px; }
  .kpi-value { font-size: 24px; }
  .cc-greet { font-size: 24px; }
  .live-clock { display: none; }
}

.pac-container{z-index:99999 !important;border-radius:14px;border:1px solid #e5e5e5;box-shadow:0 12px 32px rgba(15, 20, 35, .16);font-size:16px;font-family:inherit;margin-top:6px;overflow:hidden;animation:pacIn .18s ease-out;background:#fff}
@keyframes pacIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.pac-item{padding:13px 14px;font-size:16px;line-height:1.4;cursor:pointer;min-height:54px;border-top:1px solid #f1f2f4;display:flex;align-items:center;gap:10px}
.pac-item:first-child{border-top:0}
.pac-item-selected{background:#f6f7f9}
.pac-item-query{font-size:16px;color:#1a1a1a}
.pac-matched{font-weight:700}
.pac-icon-marker{width:20px;height:20px;flex:0 0 20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat}
