/* PasarKita demo — light theme */
:root {
  --accent: #4f46e5;
  --accent-600: #4338ca;
  --accent-50: #eef2ff;
  --accent-100: #e0e7ff;
  --brand-2: #7c3aed;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e5e7eb;
  --border-2: #eef0f4;
  --success: #16a34a;
  --success-50: #ecfdf3;
  --warn: #d97706;
  --warn-50: #fff7e6;
  --danger: #dc2626;
  --danger-50: #fef2f2;
  --info: #0284c7;
  --info-50: #e9f6fd;
  --violet: #7c3aed;
  --violet-50: #f3efff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 6px 20px rgba(15, 23, 42, .05);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --banner-h: 34px;
  --top-h: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--border-2); padding: 1px 5px; border-radius: 5px; word-break: break-all; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ic { width: 18px; height: 18px; flex: none; }
.ic.fill { fill: currentColor; stroke: none; }
.muted { color: var(--muted); }
.block { display: block; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ok-t { color: var(--success); }
.bad-t { color: var(--danger); }
.err-t { color: var(--danger); max-width: 220px; white-space: normal; }

#app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

/* ---------- Demo banner & top bar ---------- */
.demo-banner {
  height: var(--banner-h); flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: #111827; color: #e5e7eb; font-size: 12.5px; white-space: nowrap; overflow: hidden;
}
.demo-banner .back-link { color: #fff; text-decoration: none; font-weight: 600; flex: none; }
.demo-banner .back-link:hover { text-decoration: underline; }
.db-text { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.db-text .ic { width: 14px; height: 14px; color: #a5b4fc; }

.topbar {
  height: var(--top-h); flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 30;
}
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--text); }
.logo.sm { font-size: 17px; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--brand-2)); color: #fff; display: grid; place-items: center; flex: none; }
.logo.sm .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
.logo-mark svg { width: 70%; height: 70%; }
.top-tabs { display: flex; gap: 4px; margin-left: 12px; background: var(--surface-2); border: 1px solid var(--border); padding: 3px; border-radius: 10px; }
.top-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 7px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.top-tab:hover { color: var(--text); }
.top-tab.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.role-chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-50); color: var(--accent); }
.icon-btn.menu-btn { display: none; }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); font-weight: 600; color: var(--text-2); white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover:not(:disabled) { background: var(--surface-2); border-color: #d6dae1; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-600); border-color: var(--accent-600); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-outline { color: var(--danger); border-color: #f5c2c2; }
.btn.danger-outline:hover { background: var(--danger-50) !important; }
.btn.outline { border-color: var(--accent); color: var(--accent); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.light { background: #fff; color: var(--text); border-color: #fff; }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.xs { padding: 4px 9px; font-size: 12px; border-radius: 6px; }
.btn.xs .ic { width: 14px; height: 14px; }
.btn.lg { padding: 11px 18px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }
.btn.mt { margin-top: 12px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 9px; color: var(--text-2); position: relative; flex: none; transition: background .15s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn.danger { color: var(--danger); }
.icon-btn.light { color: #fff; }
.icon-btn.light:hover { background: rgba(255, 255, 255, .15); }
.link { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--danger); }
.link.strong { font-weight: 700; }
.link .ic { width: 14px; height: 14px; }
.input {
  width: 100%; padding: 8px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color .15s, box-shadow .15s; min-width: 0;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-100); }
.input:disabled { background: var(--surface-2); color: var(--muted); }
.input.sm { padding: 4px 8px; font-size: 12.5px; width: auto; }
.input.color { padding: 3px; height: 38px; }
textarea.input { resize: vertical; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field.inline { margin: 0; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.hint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: -2px 0 14px; }
.hint .ic { width: 15px; height: 15px; }
.form-error { color: var(--danger); font-size: 13px; margin: 0 0 12px; min-height: 0; }
.form-error:empty { display: none; }
.row-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--text-2); border: 1px solid transparent; }
.badge.ok { background: var(--success-50); color: #15803d; }
.badge.warn { background: var(--warn-50); color: #b45309; }
.badge.bad { background: var(--danger-50); color: #b91c1c; }
.badge.info { background: var(--info-50); color: #0369a1; }
.badge.violet { background: var(--violet-50); color: #6d28d9; }
.badge.muted { background: #f1f5f9; color: #475569; }
.new-tag { font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: var(--success); padding: 1px 5px; border-radius: 4px; vertical-align: middle; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-h h3 { font-size: 15px; }
.pad { padding: 12px 0; }

/* ---------- Login ---------- */
.login-wrap { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; max-width: 1100px; width: 100%; margin: 0 auto; padding: 48px 24px; }
.login-hero h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; margin: 22px 0 12px; }
.lead { font-size: 16px; color: var(--text-2); max-width: 520px; margin: 0 0 24px; }
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; }
.feat-list b { display: block; }
.feat-list span { color: var(--muted); font-size: 13.5px; }
.feat-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; flex: none; }
.login-card { padding: 28px; box-shadow: var(--shadow); max-width: 440px; width: 100%; justify-self: end; }
.login-card h2 { font-size: 22px; }
.login-card > p { margin: 4px 0 16px; }
.cred-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px dashed var(--accent); background: var(--accent-50); border-radius: 10px; margin-bottom: 18px; }
.cred-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.cred-val { font-size: 14px; font-weight: 600; }
.cred-val code { background: #fff; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 20px 0 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.role-btns { display: grid; gap: 8px; }
.role-btns .btn { white-space: normal; }

/* ---------- Main ---------- */
.main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.main-dashboard, .main-seller { height: calc(100vh - var(--banner-h) - var(--top-h)); height: calc(100dvh - var(--banner-h) - var(--top-h)); flex: none; }

/* ---------- Storefront stage & phone ---------- */
.main-home { height: calc(100vh - var(--banner-h) - var(--top-h)); height: calc(100dvh - var(--banner-h) - var(--top-h)); flex: none; }
.home-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 56px; padding: 20px; background: radial-gradient(1200px 500px at 70% 0%, var(--accent-100) 0, transparent 60%), var(--bg); }
.stage-info { max-width: 360px; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.stage-info h2 { font-size: 28px; letter-spacing: -.02em; margin: 6px 0 10px; }
.steps { padding-left: 20px; margin: 18px 0; display: grid; gap: 8px; color: var(--text-2); }
.stage-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.stage-stats div { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px; text-align: center; }
.stage-stats b { display: block; font-size: 20px; }
.stage-stats span { font-size: 12px; color: var(--muted); }

.phone { width: 390px; height: min(820px, 100%); flex: none; background: #0b0f19; border-radius: 48px; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b3040; position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 110px; height: 28px; background: #0b0f19; border-radius: 18px; z-index: 5; }
.phone-screen { width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--bg); position: relative; display: flex; flex-direction: column; }
.status-bar { height: 44px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 28px 0; font-weight: 700; font-size: 14px; background: var(--surface); }
.sb-icons { display: inline-flex; gap: 6px; align-items: center; }
.sb-icons svg { height: 11px; width: auto; fill: currentColor; }
.phone-app { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.app-head { flex: none; background: var(--surface); padding: 6px 14px 10px; border-bottom: 1px solid var(--border-2); }
.app-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 12px 14px 20px; scroll-behavior: auto; overscroll-behavior: contain; }
.app-scroll::-webkit-scrollbar { width: 0; }
.app-sticky { flex: none; display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--border); }
.bottom-nav { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px 10px; }
.bn { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); position: relative; padding: 4px 0; }
.bn .ic { width: 22px; height: 22px; }
.bn.active { color: var(--accent); }
.bn-badge, .dot-badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.dot-badge { top: 2px; left: auto; right: 0; }

.hb { display: flex; align-items: center; gap: 6px; min-height: 40px; }
.hb-title { flex: 1; font-size: 16px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-spacer { width: 36px; flex: none; }
.hb-actions { display: flex; }
.wl-on { color: #ef4444; }
.wl-on .ic { fill: #ef4444; }
.home-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hh-hi { display: block; font-weight: 800; font-size: 17px; }
.hh-loc { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.hh-loc .ic { width: 13px; height: 13px; }
.fake-search, .search-bar { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); text-align: left; }
.search-bar { padding: 2px 4px 2px 12px; margin: 4px 0 8px; }
.search-bar .input { border: 0; background: transparent; box-shadow: none; padding: 7px 4px; }

.carousel { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 6px; }
.car-track { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.banner { flex: 0 0 100%; min-height: 150px; display: flex; align-items: center; color: #fff; padding: 16px; gap: 6px; }
.bn-txt { flex: 1; min-width: 0; }
.bn-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; font-weight: 700; }
.banner h3 { font-size: 20px; margin: 2px 0 4px; }
.banner p { margin: 0 0 10px; font-size: 12.5px; opacity: .92; }
.bn-art { width: 110px; height: 110px; border-radius: 14px; flex: none; }
.car-dots { position: absolute; bottom: 8px; left: 16px; display: flex; gap: 5px; }
.cd { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .5); transition: width .2s, background .2s; }
.cd.on { width: 18px; background: #fff; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 8px; }
.sec-head h4 { font-size: 15px; }
.cat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat-chip { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; font-size: 11.5px; font-weight: 600; text-align: center; transition: border-color .15s, transform .15s; }
.cat-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.cat-chip img { width: 52px; height: 52px; border-radius: 50%; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.hscroll::-webkit-scrollbar { display: none; }
.deal { flex: 0 0 128px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; padding: 6px; text-align: left; display: flex; flex-direction: column; gap: 3px; position: relative; }
.deal img { border-radius: 8px; aspect-ratio: 1; width: 100%; height: auto; }
.deal-off { position: absolute; top: 10px; left: 10px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 5px; }
.deal-name { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 31px; }
.seller-row { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.seller-chip { display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; text-align: left; font-size: 12px; font-weight: 700; min-width: 0; }
.seller-chip > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.seller-chip small { display: flex; align-items: center; gap: 2px; font-weight: 500; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.seller-chip small .ic, .sold-by small .ic { width: 11px; height: 11px; color: #f59e0b; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; font-size: 14px; }
.av.sm { width: 30px; height: 30px; font-size: 11.5px; background: var(--accent-100); color: var(--accent); }
.av.lg { width: 60px; height: 60px; font-size: 20px; }

.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcard { background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden; position: relative; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.pc-img { display: block; width: 100%; position: relative; }
.pc-img img { width: 100%; aspect-ratio: 1; height: auto; }
.oos { position: absolute; inset: auto 8px 8px 8px; background: rgba(15, 23, 42, .78); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 6px; text-align: center; }
.wl-btn { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--muted); box-shadow: var(--shadow-sm); }
.wl-btn .ic { width: 16px; height: 16px; }
.wl-btn.on { color: #ef4444; }
.wl-btn.on .ic { fill: #ef4444; }
.pc-body { padding: 8px 10px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pc-seller { font-size: 10.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard h4 { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px; }
.pc-rate { display: flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; }
.pc-rate .ic { width: 12px; height: 12px; color: #f59e0b; }
.pc-rate span { color: var(--muted); font-weight: 500; }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-row b { font-size: 15px; }
.price-row s { color: var(--muted); font-size: 11.5px; }
.off { color: var(--success); font-size: 11.5px; font-weight: 700; }
.end-note { text-align: center; color: var(--muted); font-size: 12px; margin: 16px 0 0; }

.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--text-2); transition: all .15s; }
.chip .ic { width: 12px; height: 12px; color: #f59e0b; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.on .ic { color: #fff; }
.filter-row { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.mini-sel { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 999px; padding: 0 4px 0 9px; background: var(--surface); min-width: 0; flex: 1; }
.mini-sel .ic { width: 13px; height: 13px; color: var(--muted); }
.mini-sel select { border: 0; background: transparent; font-size: 12px; font-weight: 600; padding: 5px 0; min-width: 0; width: 100%; }
.mini-sel select:focus { outline: none; }
.result-count { font-size: 12px; color: var(--muted); margin: 0 0 8px; }

.gallery { margin: -12px -14px 0; background: var(--surface); padding-bottom: 10px; }
.gal-main { position: relative; }
.gal-main img { width: 100%; aspect-ratio: 1 / .86; object-fit: cover; height: auto; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.gal-nav.l { left: 10px; }
.gal-nav.r { right: 10px; }
.gal-count { position: absolute; bottom: 10px; right: 12px; background: rgba(15, 23, 42, .65); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.gal-thumbs { display: flex; gap: 8px; padding: 10px 14px 0; }
.gt { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; }
.gt.on { border-color: var(--accent); }
.pd { padding-top: 12px; }
.pd-cat { font-size: 11.5px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pd h2 { font-size: 19px; margin: 3px 0 6px; letter-spacing: -.01em; }
.pd-rate { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 8px; }
.pd-rate span { color: var(--muted); }
.stars { display: inline-flex; gap: 1px; }
.stars .ic { width: 14px; height: 14px; fill: #e5e7eb; stroke: none; }
.stars .ic.on { fill: #f59e0b; }
.pd .price-row b { font-size: 22px; }
.pd .price-row s { font-size: 14px; }
.pd .off { font-size: 14px; }
.tax-note { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.stock { font-size: 12.5px; font-weight: 700; color: var(--success); margin: 0 0 10px; }
.stock.low { color: var(--warn); }
.stock.out { color: var(--danger); }
.sold-by { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: left; margin-bottom: 10px; }
.sold-by > span:nth-child(2) { flex: 1; min-width: 0; }
.sold-by small { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 11.5px; }
.sold-by b { display: block; }
.qty-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 10px; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); vertical-align: middle; }
.stepper button { width: 32px; height: 32px; display: grid; place-items: center; }
.stepper button:hover { background: var(--surface-2); }
.stepper .ic { width: 15px; height: 15px; }
.stepper b { min-width: 28px; text-align: center; }
.stepper.sm button { width: 28px; height: 28px; }
.pd-block { background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.pd-block h4 { font-size: 14px; margin-bottom: 4px; }
.pd-block p { margin: 0; color: var(--text-2); font-size: 13px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.perks div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 11px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px; padding: 8px 4px; }
.perks .ic { color: var(--accent); }

.ship-group { background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.sg-head { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--text-2); border-bottom: 1px solid var(--border-2); }
.sg-head .ic { width: 15px; height: 15px; }
.cart-line { display: flex; gap: 10px; padding: 10px 12px; }
.cart-line + .cart-line { border-top: 1px solid var(--border-2); }
.cl-img { width: 72px; height: 72px; border-radius: 10px; flex: none; }
.cl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cl-name { font-size: 13px; font-weight: 600; cursor: pointer; }
.cl-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.panel { background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.panel p { margin: 0; font-size: 13px; color: var(--text-2); }
.panel.left { text-align: left; }
.panel-h { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 13.5px; }
.panel-h .ic { width: 16px; height: 16px; color: var(--accent); }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; }
.kv > span:first-child { color: var(--muted); }
.kv .right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.kv.total { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 8px; font-size: 14.5px; }
.kv.total > span:first-child { color: var(--text); font-weight: 700; }
.save-note { color: var(--success) !important; font-weight: 700; font-size: 12.5px !important; margin-top: 6px !important; }
.secure-note, .note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.secure-note .ic, .note .ic { width: 15px; height: 15px; flex: none; }
.foot-total { display: flex; flex-direction: column; line-height: 1.2; }
.foot-total small { color: var(--muted); font-size: 11px; }
.foot-total b { font-size: 17px; }
.co-steps { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.co-steps .on { color: var(--accent); }
.co-steps i { flex: 1; height: 2px; background: var(--accent-100); }
.co-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.co-line > span { flex: 1; min-width: 0; }
.co-line small { display: block; color: var(--muted); font-size: 11.5px; }
.co-img { width: 44px; height: 44px; border-radius: 8px; flex: none; }

.success { text-align: center; padding: 10px 0; }
.success-ic { width: 72px; height: 72px; margin: 6px auto 12px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); box-shadow: 0 0 0 10px var(--success-50); }
.success-ic .ic { width: 36px; height: 36px; stroke-width: 3; }
.success h2 { font-size: 20px; }
.success > p { color: var(--text-2); font-size: 13.5px; margin: 6px 0 14px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.btn-stack { display: grid; gap: 8px; margin-top: 10px; }

.order-card { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; padding: 12px; margin-bottom: 10px; display: block; transition: box-shadow .15s; }
.order-card:hover { box-shadow: var(--shadow); }
.oc-top, .oc-bot { display: flex; justify-content: space-between; align-items: center; }
.oc-imgs { display: flex; gap: 6px; align-items: center; margin: 10px 0; }
.oc-img { width: 44px; height: 44px; border-radius: 8px; }
.oc-meta { font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.oc-bot { font-weight: 700; font-size: 14px; }
.od-top { display: flex; justify-content: space-between; align-items: center; }
.od-total { font-size: 20px; font-weight: 800; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 10px; position: relative; padding-bottom: 14px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--success); }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); display: grid; place-items: center; flex: none; z-index: 1; }
.tl-dot .ic { width: 13px; height: 13px; stroke-width: 3; }
.timeline li.done .tl-dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline li.current .tl-dot { box-shadow: 0 0 0 4px var(--success-50); }
.timeline li.cancel .tl-dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.timeline b { font-size: 13px; display: block; }
.timeline small { font-size: 11.5px; color: var(--muted); }
.shipment { border: 1px solid var(--border-2); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.sh-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 12.5px; }
.refund-form .field > span { font-size: 12px; }
.pay-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.pr-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--success-50); color: var(--success); flex: none; }
.pr-ic.failed { background: var(--danger-50); color: var(--danger); }
.pr-ic.refunded, .pr-ic.partially_refunded { background: var(--warn-50); color: var(--warn); }
.pr-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.pr-mid small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 13px; }
.profile { display: flex; gap: 12px; align-items: center; background: linear-gradient(120deg, var(--accent), var(--brand-2)); color: #fff; padding: 16px; border-radius: 16px; margin-bottom: 10px; }
.profile .av { background: rgba(255, 255, 255, .2); }
.profile small { display: block; opacity: .85; font-size: 12px; }
.stat-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.stat-trio div { background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; padding: 10px; text-align: center; }
.stat-trio b { display: block; font-size: 16px; }
.stat-trio span { font-size: 11.5px; color: var(--muted); }
.menu-list { background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden; margin-bottom: 10px; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; text-align: left; }
.menu-item + .menu-item { border-top: 1px solid var(--border-2); }
.menu-item:hover { background: var(--surface-2); }
.menu-item > span:nth-child(2) { flex: 1; }
.menu-item b { display: block; font-size: 13.5px; }
.menu-item small { color: var(--muted); font-size: 11.5px; }
.mi-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; }
.empty-state { text-align: center; padding: 40px 16px; color: var(--muted); }
.es-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; margin: 0 auto 12px; }
.es-ic .ic { width: 28px; height: 28px; }
.empty-state h4 { color: var(--text); font-size: 16px; margin-bottom: 4px; }
.empty-state p { margin: 0 0 14px; font-size: 13px; }

/* ---------- Payment sheet ---------- */
.pay-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); z-index: 20; display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pay-overlay.open { opacity: 1; pointer-events: auto; }
.pay-sheet { width: 100%; max-height: 92%; overflow-y: auto; background: var(--surface); border-radius: 20px 20px 0 0; transform: translateY(30px); transition: transform .25s ease; display: flex; flex-direction: column; }
.pay-overlay.open .pay-sheet { transform: none; }
.ps-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #0f2554; color: #fff; border-radius: 20px 20px 0 0; }
.ps-head .logo { color: #fff; }
.ps-brand { display: flex; flex-direction: column; gap: 2px; }
.ps-sub { font-size: 11px; opacity: .75; }
.ps-amount { padding: 12px 16px; background: #13306b; color: #fff; display: grid; gap: 1px; }
.ps-amount span { font-size: 11.5px; opacity: .75; }
.ps-amount b { font-size: 24px; }
.ps-amount small { font-size: 11px; opacity: .75; }
.ps-amount code { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
.ps-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.ps-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; }
.ps-tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.ps-body { padding: 14px 16px 4px; }
.upi-apps { display: flex; gap: 8px; margin: -2px 0 10px; }
.upi-app { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; }
.upi-app .ic { width: 14px; height: 14px; }
.bank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.bank { display: flex; align-items: center; gap: 6px; padding: 9px; border: 1px solid var(--border); border-radius: 10px; font-size: 12px; font-weight: 600; text-align: left; }
.bank .ic { width: 16px; height: 16px; color: var(--muted); }
.bank.on { border-color: var(--accent); background: var(--accent-50); color: var(--accent); }
.bank.on .ic { color: var(--accent); }
.sim-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border: 1px dashed #f59e0b; background: #fffbeb; border-radius: 10px; margin-bottom: 12px; font-size: 12px; font-weight: 700; color: #92400e; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.seg button .ic { width: 13px; height: 13px; }
.seg button.on.ok { background: var(--success); color: #fff; }
.seg button.on.bad { background: var(--danger); color: #fff; }
.ps-foot { padding: 4px 16px 16px; }
.ps-secure { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; color: var(--muted); margin: 8px 0 0; }
.ps-secure .ic { width: 13px; height: 13px; }
.ps-processing, .ps-failed { padding: 36px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ps-processing small, .ps-failed small { font-size: 12.5px; color: var(--text-2); }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--accent-100); border-top-color: var(--accent); animation: spin .8s linear infinite; margin-bottom: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.fail-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--danger); color: #fff; display: grid; place-items: center; animation: pop .4s; }
.fail-ic .ic { width: 30px; height: 30px; stroke-width: 3; }
.ps-failed .row-btns { margin-top: 10px; }

/* ---------- Dashboard layout ---------- */
.dash { display: flex; flex: 1; min-height: 0; position: relative; }
.side { width: 236px; flex: none; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow-y: auto; }
.side-title { padding: 18px 18px 10px; font-weight: 800; font-size: 15px; }
.side-title small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.side nav { padding: 4px 10px; display: grid; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text-2); font-weight: 600; text-align: left; transition: background .15s, color .15s; }
.side-link:hover { background: var(--surface-2); }
.side-link.active { background: var(--accent-50); color: var(--accent); }
.side-link span { flex: 1; }
.side-link em { font-style: normal; font-size: 11px; font-weight: 800; background: var(--accent); color: #fff; border-radius: 10px; padding: 1px 7px; }
.side-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--border-2); }
.side-scrim { display: none; }
.content { flex: 1; min-width: 0; overflow-y: auto; padding: 24px 28px 40px; }
.content > * + * { margin-top: 16px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; letter-spacing: -.02em; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 720px; }
.ph-right { display: flex; gap: 8px; flex-wrap: wrap; }
.alert { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; }
.alert.bad { background: var(--danger-50); color: #991b1b; border: 1px solid #fecaca; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kpis.sm { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kpi-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent); }
.kpi-ic.green { background: var(--success-50); color: var(--success); }
.kpi-ic.blue { background: var(--info-50); color: var(--info); }
.kpi-ic.orange { background: var(--warn-50); color: var(--warn); }
.kpi-ic.red { background: var(--danger-50); color: var(--danger); }
.kpi-ic.violet { background: var(--violet-50); color: var(--violet); }
.kpi-label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpi-val { font-size: 22px; letter-spacing: -.02em; }
.kpi-of { font-size: 14px; color: var(--muted); font-weight: 600; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi .hbars { margin-top: 6px; }
.delta { font-size: 11.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.delta.up { color: #15803d; background: var(--success-50); }
.delta.down { color: #b91c1c; background: var(--danger-50); }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--border-2); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2; opacity: 0; transition: opacity .15s; }
.chart .pt:hover circle { opacity: 1; }
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.donut { width: 180px; height: 180px; }
.donut circle { transition: opacity .15s; }
.donut circle:hover { opacity: .8; }
.d-lbl { font-size: 11px; fill: var(--muted); }
.d-val { font-size: 17px; font-weight: 800; fill: var(--text); }
.legend { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.legend li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend span { flex: 1; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hb-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.hb-top span { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-track { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.hb-track span { display: block; height: 100%; border-radius: 4px; transition: width .4s ease; }
.hbars small { color: var(--muted); font-size: 11.5px; }
.mini-list { list-style: none; padding: 0; margin: 0; }
.ml-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 6px; border-radius: 8px; text-align: left; }
.ml-row:hover { background: var(--surface-2); }
.ml-row small { display: block; color: var(--muted); font-size: 11.5px; }
.ml-row .right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; }
.attention { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.attention li { display: flex; align-items: center; gap: 10px; }
.attention li > span:nth-child(2) { flex: 1; min-width: 0; font-size: 13px; }
.attention small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.at-ic .ic { width: 16px; height: 16px; }
.at-ic.warn { background: var(--warn-50); color: var(--warn); }
.at-ic.info { background: var(--info-50); color: var(--info); }
.at-ic.bad { background: var(--danger-50); color: var(--danger); }
.at-ic.ok { background: var(--success-50); color: var(--success); }

/* ---------- Tables ---------- */
.tbl-card { padding: 0; overflow: hidden; }
.tbl-card .card-h { padding: 14px 16px 0; }
.tbl-tools { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border-2); flex-wrap: wrap; }
.search-field { position: relative; flex: 1; min-width: 180px; max-width: 360px; display: block; }
.search-field .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search-field .input { padding-left: 34px; }
.sel .input { width: auto; padding-right: 28px; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--text); }
.tbl th.sorted { color: var(--accent); }
.tbl th span { display: inline-flex; gap: 4px; align-items: center; }
.sort-ic { font-style: normal; font-size: 9px; opacity: .7; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: #fafbff; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl code { white-space: nowrap; word-break: normal; }
.tbl tr.row-warn { background: #fffcf3; }
.tbl tr.row-new { background: #f0fdf4; }
.tbl tr.tfoot td { font-weight: 700; background: var(--surface-2); }
.tbl-empty { text-align: center; color: var(--muted); padding: 28px !important; }
.card > .tbl-wrap { margin: 0 -16px -16px; }
.card > .tbl-wrap .tbl td:first-child, .card > .tbl-wrap .tbl th:first-child { padding-left: 16px; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: 12.5px; color: var(--muted); gap: 8px; flex-wrap: wrap; }
.pg-btns { display: flex; gap: 4px; }
.pg { min-width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--border); display: grid; place-items: center; font-weight: 600; font-size: 12.5px; color: var(--text-2); background: var(--surface); }
.pg .ic { width: 15px; height: 15px; }
.pg.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cell-user, .cell-prod { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.cell-user small, .cell-prod small { display: block; color: var(--muted); font-size: 11.5px; }
.tb-img { width: 38px; height: 38px; border-radius: 8px; flex: none; }
.rate { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.rate .ic { width: 13px; height: 13px; color: #f59e0b; }
.split { display: flex; flex-wrap: wrap; gap: 4px; min-width: 170px; }
.split-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 2px 7px; border: 1px solid var(--border); border-radius: 6px; white-space: nowrap; background: var(--surface); }
.split-chip i { width: 7px; height: 7px; border-radius: 50%; }
.cat-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.level { width: 120px; height: 7px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.level span { display: block; height: 100%; border-radius: 4px; }
.seg-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-filter button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 12.5px; color: var(--text-2); }
.seg-filter button em { font-style: normal; font-size: 11px; background: var(--surface-2); padding: 0 6px; border-radius: 8px; color: var(--muted); }
.seg-filter button.on { background: var(--text); color: #fff; border-color: var(--text); }
.seg-filter button.on em { background: rgba(255, 255, 255, .2); color: #fff; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 36px; height: 20px; border-radius: 10px; background: #cbd5e1; position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + span { background: var(--success); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch em { font-style: normal; min-width: 58px; }

/* Commission */
.global-rate { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; background: var(--accent-50); border-radius: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.global-rate small { display: block; color: var(--muted); font-size: 12px; }
.rate-input { display: flex; align-items: center; gap: 12px; }
.rate-input input[type=range] { width: 160px; accent-color: var(--accent); }
.num-box { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.num-box .input { width: 74px; text-align: right; }
.pill-live { font-size: 11.5px; font-weight: 700; color: var(--success); }
.impact { display: grid; gap: 8px; margin-bottom: 8px; }
.impact div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.impact b { font-size: 15px; transition: color .2s; }
.sub-h { font-size: 13px; margin: 16px 0 8px; color: var(--text-2); }
.examples { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }

.range-bar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.range-bar .input { width: auto; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Modal & toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 100; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .18s; }
.modal-backdrop.open { opacity: 1; }
.modal { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; transform: translateY(8px) scale(.98); transition: transform .2s; }
.modal-backdrop.open .modal { transform: none; }
.modal.md { max-width: 620px; }
.modal.lg { max-width: 860px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border-2); }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 16px 18px; overflow-y: auto; }
.modal-body p { margin: 0 0 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border-2); flex-wrap: wrap; }
.om-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.om-grid > div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.om-grid small { font-size: 11.5px; }
.om-status { display: flex; align-items: flex-end; gap: 10px; padding: 12px; background: var(--surface-2); border-radius: 10px; flex-wrap: wrap; }
.om-status .input { width: auto; min-width: 160px; }
.mini-tl { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.mini-tl li { display: flex; flex-direction: column; gap: 2px; }
.mini-tl small { color: var(--muted); font-size: 11.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid .span2 { grid-column: span 2; }
.sp-preview { grid-column: span 2; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sp-preview img { width: 72px; height: 72px; border-radius: 12px; border: 1px solid var(--border); }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 8px; background: #111827; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; max-width: 100%; }
.toast .ic { color: #4ade80; width: 16px; height: 16px; }
.toast.error .ic { color: #f87171; }
.toast.show { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :first-child { grid-column: span 2; }
}
@media (max-width: 1000px) {
  .stage-info { display: none; }
  .grid-2-1, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .om-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .icon-btn.menu-btn { display: inline-grid; }
  .side { position: absolute; top: 0; bottom: 0; left: 0; z-index: 25; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .dash.nav-open .side { transform: none; }
  .dash.nav-open .side-scrim { display: block; position: absolute; inset: 0; background: rgba(15, 23, 42, .35); z-index: 24; }
  .content { padding: 18px 16px 32px; }
  .login-wrap { grid-template-columns: 1fr; gap: 28px; padding: 28px 16px; }
  .login-card { justify-self: stretch; max-width: none; }
  .login-hero h1 { margin-top: 16px; }
}
@media (max-width: 700px) {
  .home-stage { padding: 0; }
  .phone { width: 100%; height: 100%; border-radius: 0; padding: 0; box-shadow: none; background: var(--bg); }
  .phone::before, .status-bar { display: none; }
  .phone-screen { border-radius: 0; }
  .hide-sm { display: none; }
  .top-tabs { margin-left: 4px; }
  .top-tab { padding: 6px 9px; }
  .topbar { gap: 6px; padding: 0 10px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-3 > :first-child { grid-column: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis.sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-val { font-size: 18px; }
  .kpi { padding: 12px; }
  .page-head h1 { font-size: 19px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2, .sp-preview { grid-column: auto; }
  .modal-backdrop { padding: 8px; align-items: end; }
  .om-grid { grid-template-columns: minmax(0, 1fr); }
  .rate-input input[type=range] { width: 110px; }
  .search-field { max-width: none; }
  .tbl-tools .sel, .tbl-tools .sel .input { width: 100%; }
  .chart .axis { font-size: 17px; }
}
@media (max-width: 480px) {
  :root { --banner-h: 32px; }
  .demo-banner { font-size: 11.5px; gap: 8px; padding: 0 10px; }
  .db-text .ic { display: none; }
  .logo.sm .logo-text { display: none; }
  .hide-xs { display: none; }
  .top-tab span { font-size: 13px; }
  .role-chip { display: none; }
  .bn-art { width: 84px; height: 84px; }
  .banner h3 { font-size: 17px; }
  .kpis, .kpis.sm { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kpi-val { font-size: 16px; }
  .kpi-top { margin-bottom: 4px; }
  .seller-row { grid-template-columns: 1fr; }
  .cred-box { flex-direction: column; align-items: stretch; }
  .login-card { padding: 20px; }
  .sim-box { flex-direction: column; align-items: stretch; }
  .seg { justify-content: stretch; }
  .seg button { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Business profile (white-label) ---------- */
.logo-mark.img { background: #fff; border: 1px solid var(--border); overflow: hidden; }
.logo-mark.img img { width: 100%; height: 100%; object-fit: contain; }
.logo-mark.sm { width: 26px; height: 26px; border-radius: 7px; }
.logo-mark.xl { width: 72px; height: 72px; border-radius: 20px; }
.logo-mark.xl svg { width: 64%; height: 64%; }
.login-tag { margin: 18px 0 0; font-weight: 600; color: var(--accent); }
.login-tag + h1 { margin-top: 6px; }
.small { font-size: 12px; }
.break { word-break: break-all; text-align: right; }
.center { justify-content: center; text-align: center; }

.app-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.app-brand .ab-name { flex: 1; font-weight: 800; font-size: 15px; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-brand .icon-btn { width: 32px; height: 32px; }
.splash { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; text-align: center; padding: 24px;
  background: linear-gradient(160deg, var(--accent), var(--brand-2)); animation: splash-out .45s ease 1.1s forwards; pointer-events: none; }
.splash .logo-mark { background: #fff; color: var(--accent); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.splash b { font-size: 24px; letter-spacing: -.02em; }
.splash small { opacity: .85; }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
.app-footer { margin: 22px -14px -20px; padding: 18px 16px 22px; background: var(--surface); border-top: 1px solid var(--border-2); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.app-footer p { margin: 0; font-size: 12px; color: var(--text-2); }
.app-footer small { font-size: 11px; color: var(--muted); }
.biz-strip { display: flex; gap: 10px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; padding: 10px 12px; }
.biz-strip small { display: block; color: var(--muted); font-size: 11.5px; }
.wa-btn { background: #25d366; border-color: #25d366; color: #fff; }
.wa-btn:hover:not(:disabled) { background: #1ebe5b !important; border-color: #1ebe5b !important; }
a.btn { text-decoration: none; }
.about-hero { text-align: center; padding: 8px 0 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.about-hero h2 { font-size: 20px; }
.about-hero p { margin: 0; color: var(--text-2); font-size: 13px; }
.contact-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.contact-btns .wa-btn { grid-column: span 2; }
.map-link { margin-top: 8px; font-size: 13px; text-decoration: none; }
.social-row { display: flex; flex-wrap: wrap; gap: 6px; }
.social-row .chip { text-decoration: none; }
.policy summary { cursor: pointer; font-weight: 700; font-size: 13.5px; }
.policy p { margin-top: 8px !important; }
.receipt { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-size: 13px; }
.rc-head { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.rc-head small { display: block; color: var(--muted); font-size: 11.5px; }
.rc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.rc-meta > div:last-child { grid-column: span 2; }
.rc-meta small { display: block; color: var(--muted); font-size: 11px; }
.rc-items { width: 100%; border-collapse: collapse; margin: 6px 0; }
.rc-items th { text-align: left; font-size: 11px; color: var(--muted); text-transform: uppercase; padding: 6px 0; }
.rc-items td { padding: 6px 0; border-top: 1px solid var(--border-2); vertical-align: top; }
.rc-items td small { display: block; color: var(--muted); font-size: 11px; }
.rc-items .num { text-align: right; white-space: nowrap; padding-left: 8px; }
.rc-tot div { display: flex; justify-content: space-between; padding: 3px 0; }
.rc-tot .grand { font-weight: 800; font-size: 15px; border-top: 1px solid var(--border); margin-top: 4px; padding-top: 6px; }
.rc-pay, .rc-note, .rc-small { margin: 10px 0 0; font-size: 12px; color: var(--text-2); }
.rc-note { text-align: center; font-weight: 600; color: var(--accent); }
.rc-small { color: var(--muted); font-size: 11px; }

.side-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 10px 4px; }
.bp-forms { display: grid; gap: 16px; min-width: 0; }
.bp-side .sticky { position: sticky; top: 0; }
.color-row { display: flex; gap: 8px; }
.color-row .input.color { width: 48px; flex: none; }
.logo-picker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.logo-opt, .logo-upload { width: 56px; height: 56px; border-radius: 12px; border: 2px solid var(--border); display: grid; place-items: center; background: var(--surface); position: relative; cursor: pointer; }
.logo-opt.on, .logo-upload.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-100); }
.logo-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.logo-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.logo-upload .logo-mark { width: 30px; height: 30px; }
.hours { display: grid; gap: 8px; }
.hours-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; }
.hours-row .check { font-size: 12.5px; }
.pv-phone { border: 8px solid #0b0f19; border-radius: 26px; overflow: hidden; background: var(--bg); max-width: 300px; margin: 0 auto; }
.pv-bar { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; padding: 6px 14px 2px; background: var(--surface); }
.pv-head { display: flex; gap: 8px; align-items: center; padding: 8px 12px 10px; background: var(--surface); border-bottom: 1px solid var(--border-2); min-width: 0; }
.pv-head > div { min-width: 0; }
.pv-head b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-head small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-logo { display: contents; }
.pv-banner { margin: 10px; border-radius: 12px; color: #fff; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.pv-banner small { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.pv-btn { align-self: flex-start; margin-top: 6px; background: #fff; color: #111; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.pv-row { display: flex; gap: 6px; padding: 0 10px; }
.pv-primary, .pv-wa { flex: 1; color: #fff; font-size: 11.5px; font-weight: 700; padding: 7px 6px; border-radius: 8px; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.pv-wa { background: #25d366; }
.pv-wa .ic { width: 13px; height: 13px; }
.pv-receipt { margin: 10px; padding: 10px; background: var(--surface); border: 1px dashed var(--border); border-radius: 10px; font-size: 12px; }
.pv-receipt small { display: block; color: var(--muted); font-size: 10.5px; }
@media (max-width: 700px) {
  .hours-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .hours-row b, .hours-row .check { grid-column: 1 / -1; }
  .bp-side .sticky { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
}

/* =================== Feature set v3: dark mode, auth, storefront extras, admin tools =================== */
:root[data-theme="dark"] {
  --bg: #0b1020; --surface: #121933; --surface-2: #18213f; --text: #e6e9f5; --text-2: #c3c9de; --muted: #8b93ad;
  --border: #263056; --border-2: #1e2748; --success-50: rgba(22, 163, 74, .16); --warn-50: rgba(217, 119, 6, .16); --danger-50: rgba(220, 38, 38, .16);
  --info-50: rgba(2, 132, 199, .16); --violet-50: rgba(124, 58, 237, .18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 2px 10px rgba(0, 0, 0, .35); --shadow-lg: 0 20px 50px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
:root[data-theme="dark"] body { background: var(--bg); }
:root[data-theme="dark"] .badge.ok { color: #4ade80; } :root[data-theme="dark"] .badge.warn { color: #fbbf24; } :root[data-theme="dark"] .badge.bad { color: #f87171; }
:root[data-theme="dark"] .badge.info { color: #38bdf8; } :root[data-theme="dark"] .badge.violet { color: #a78bfa; } :root[data-theme="dark"] .badge.muted { background: #1e2748; color: #a3abc6; }
:root[data-theme="dark"] .tbl tbody tr:hover { background: rgba(255, 255, 255, .03); }
:root[data-theme="dark"] .tbl tr.row-warn { background: rgba(217, 119, 6, .08); } :root[data-theme="dark"] .tbl tr.row-new { background: rgba(22, 163, 74, .1); }
:root[data-theme="dark"] .wl-btn, :root[data-theme="dark"] .gal-nav { background: rgba(18, 25, 51, .9); color: var(--text-2); }
:root[data-theme="dark"] .seg { background: var(--surface); } :root[data-theme="dark"] .sim-box { background: rgba(245, 158, 11, .1); color: #fbbf24; }
:root[data-theme="dark"] .cred-val code { background: var(--surface); } :root[data-theme="dark"] .alert.bad { color: #fecaca; border-color: rgba(220, 38, 38, .4); }
:root[data-theme="dark"] .btn.light { background: #fff; color: #111; } :root[data-theme="dark"] .phone { box-shadow: 0 20px 60px rgba(0, 0, 0, .6), inset 0 0 0 2px #2b3040; }
:root[data-theme="dark"] .stars .ic { fill: #2c365e; } :root[data-theme="dark"] .pv-btn { background: #fff; }
:root[data-theme="dark"] .seg-filter button.on { background: var(--accent); border-color: var(--accent); }
:root[data-theme="dark"] .ps-head, :root[data-theme="dark"] .ps-amount { filter: brightness(.95); }

/* auth */
.form-ok { color: var(--success); font-size: 13px; background: var(--success-50); padding: 8px 10px; border-radius: 8px; margin: 0 0 12px; }
.hint-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: -2px 0 12px; flex-wrap: wrap; }
.hint-row .hint { margin: 0; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.demo-mail { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--info-50); border: 1px dashed var(--info); margin-bottom: 12px; animation: drop .35s ease; }
.demo-mail b { display: block; font-size: 12px; } .demo-mail span { font-size: 13px; } .demo-mail code { font-size: 15px; letter-spacing: .12em; font-weight: 800; }
.input.otp { letter-spacing: .4em; font-size: 18px; font-weight: 700; text-align: center; }
.login-tools { margin-top: 18px; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* topbar extras */
.cmdk-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); background: var(--surface-2); font-size: 13px; min-width: 190px; }
.cmdk-btn kbd, .palette kbd { font: 600 10.5px var(--mono); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; background: var(--surface); color: var(--muted); margin-left: auto; }
.lang-btn { font-size: 12px; font-weight: 800; color: var(--accent); }
.user-btn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 999px; border: 1px solid var(--border); font-weight: 600; font-size: 12.5px; }
.user-btn .av.sm { width: 26px; height: 26px; font-size: 10.5px; }
.av.photo { overflow: hidden; padding: 0; background: var(--surface-2); } .av.photo img { width: 100%; height: 100%; object-fit: cover; }
.pop-wrap { position: relative; }
.pop-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 220px; animation: drop .18s ease; }
.user-menu { padding: 6px; } .user-menu button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; text-align: left; font-weight: 600; font-size: 13px; color: var(--text-2); }
.user-menu button:hover { background: var(--surface-2); } .user-menu button.danger { color: var(--danger); }
.um-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border-2); margin-bottom: 4px; } .um-head small { display: block; color: var(--muted); }
.bell-panel { width: min(360px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; }
.bp-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border-2); position: sticky; top: 0; background: var(--surface); }
.bell-panel ul { list-style: none; margin: 0; padding: 4px; }
.bell-panel li button { width: 100%; text-align: left; padding: 10px; border-radius: 8px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.bell-panel li button:hover { background: var(--surface-2); } .bell-panel li.unread button { background: var(--accent-50); }
.bell-panel li span { color: var(--text-2); font-size: 12.5px; } .bell-panel li small { color: var(--muted); font-size: 11px; }
.dot-badge { transition: transform .2s; }
.bump { animation: bump .45s ease; } @keyframes bump { 30% { transform: scale(1.25); } 60% { transform: scale(.92); } }

/* sidebar */
.as-role { display: flex; align-items: center; gap: 6px; margin: 0 14px 8px; font-size: 11.5px; color: var(--muted); }
.as-role select { flex: 1; border: 1px solid var(--border); border-radius: 7px; padding: 4px 6px; background: var(--surface); font-size: 12px; }
.side-group:first-child { padding-top: 4px; }
.page-enter { animation: pageIn .28s ease both; } .page-enter > * + * { margin-top: 16px; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.app-scroll.enter > * { animation: slideIn .25s ease both; } @keyframes slideIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.denied { padding: 40px 0; }
.alert.warn { background: var(--warn-50); color: #92400e; border: 1px solid rgba(217, 119, 6, .35); justify-content: space-between; flex-wrap: wrap; }
:root[data-theme="dark"] .alert.warn { color: #fde68a; }

/* skeletons */
.shimmer { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border-2) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-page > * + * { margin-top: 16px; } .sk-line { height: 14px; border-radius: 7px; } .sk-line.w40 { width: 40%; height: 22px; } .sk-line.short { width: 60%; }
.sk-card { height: 112px; border: 0; } .sk-chart { height: 240px; border: 0; } .sk-chart.short { height: 160px; }
.pcard.sk { padding: 0 0 10px; gap: 8px; } .sk-img { aspect-ratio: 1; } .pcard.sk .sk-line { margin: 0 10px; height: 10px; }

/* KPI & charts */
.kpi { position: relative; overflow: hidden; } .kpi.drillable { cursor: pointer; transition: transform .15s, box-shadow .15s; } .kpi.drillable:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.spark { width: 100%; height: 28px; margin-top: 6px; color: var(--accent); opacity: .8; }
.spark.green { color: var(--success); } .spark.blue { color: var(--info); } .spark.orange { color: var(--warn); } .spark.red { color: var(--danger); } .spark.violet { color: var(--violet); }
.chart .line.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .area { animation: fadeIn .8s ease both; } @keyframes fadeIn { from { opacity: 0; } }
.chart .line.cmp { stroke: var(--muted); stroke-dasharray: 4 4; opacity: .55; stroke-width: 1.5; fill: none; }
.chart .drillable { cursor: pointer; } .chart .drillable:hover circle { opacity: 1; }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.chart-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.lg-cur { background: var(--accent); } .lg-prev { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 7px); }
.donut circle { animation: donutIn .7s ease both; } @keyframes donutIn { from { opacity: 0; transform: scale(.9); transform-origin: 90px 90px; } }
.donut .drillable, .legend .drillable, .hbars .drillable, tr.drillable { cursor: pointer; }
.legend li.drillable:hover span, .hbars li.drillable:hover .hb-top span { color: var(--accent); text-decoration: underline; }
tr.drillable:hover td { background: var(--accent-50); }
.hb-track span { animation: grow .7s ease both; transform-origin: left; } @keyframes grow { from { transform: scaleX(0); } }
.range-pick { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.range-pick button { padding: 5px 10px; border-radius: 7px; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.range-pick button.on { background: var(--accent); color: #fff; } .range-pick .input { width: auto; padding: 4px 8px; font-size: 12.5px; }
.drill-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-50); color: var(--accent); font-size: 13px; border: 1px solid var(--accent-100); }
.small-sw em { min-width: 0; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 300px; overflow: auto; }
.feed li { display: flex; gap: 10px; font-size: 13px; color: var(--text-2); }
.feed li em { font-style: normal; color: var(--text); font-weight: 600; } .feed small { display: block; color: var(--muted); font-size: 11px; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-100); margin-top: 6px; flex: none; }
.feed li.fresh { animation: flashIn 1.2s ease; } .feed li.fresh .feed-dot { background: var(--success); box-shadow: 0 0 0 4px var(--success-50); }
@keyframes flashIn { from { background: var(--success-50); } }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 12px; align-items: center; }
.india-map { width: 100%; max-height: 320px; }
.map-land { fill: var(--surface-2); stroke: var(--border); stroke-width: 2; stroke-linejoin: round; }
.map-dot circle { fill: var(--accent); fill-opacity: var(--o); stroke: #fff; stroke-width: 1.5; animation: popDot .6s ease both; transform-box: fill-box; transform-origin: center; }
.map-dot:hover circle, .map-dot:focus circle { fill-opacity: 1; }
@keyframes popDot { from { transform: scale(0); } }
.map-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; } .map-legend span { display: block; color: var(--muted); font-size: 11.5px; }
.new-tag.live { background: var(--accent); }

/* tables */
.tbl-actions { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.cols-panel { padding: 8px 12px; display: grid; gap: 6px; min-width: 200px; max-height: 300px; overflow: auto; } .cols-panel .check { font-size: 13px; }
.views-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--border-2); color: var(--muted); }
.view-chip { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 600; }
.view-chip button { padding: 3px 10px; } .view-chip button:last-child { padding: 3px 8px; border-left: 1px solid var(--border); color: var(--muted); }
.view-chip button:hover { background: var(--surface-2); }
.tbl th.chk, .tbl td.chk { width: 34px; padding-right: 0; } .tbl tr.row-sel { background: var(--accent-50) !important; }
.bulk-bar { display: flex; gap: 8px; align-items: center; padding: 8px 16px; background: var(--accent-50); border-bottom: 1px solid var(--accent-100); flex-wrap: wrap; animation: drop .2s ease; font-size: 13px; }
.ps-sel { display: inline-flex; gap: 6px; align-items: center; } .ps-sel select { border: 1px solid var(--border); border-radius: 6px; padding: 2px 4px; background: var(--surface); }
.empty-mini { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); } .empty-mini svg { width: 80px; }
.chk-inline { font-size: 13px; white-space: nowrap; }
.level.mini { width: 70px; height: 4px; margin: 4px 0 0 auto; }
.wrap { white-space: normal; max-width: 320px; }
.alert-card { border-color: rgba(220, 38, 38, .35); }
.alert-card .card-h h3 { display: flex; gap: 6px; align-items: center; color: var(--danger); }
.alert-card .kv { padding: 8px 0; border-top: 1px solid var(--border-2); }

/* modals & palette */
.kyc-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kyc-docs li { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 10px; flex-wrap: wrap; }
.kyc-docs li > span:nth-child(2) { flex: 1; min-width: 140px; } .kyc-docs small { display: block; color: var(--muted); font-size: 11.5px; }
.doc-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; }
.admin-thread { max-height: 300px; overflow: auto; margin: 12px 0; padding: 10px; background: var(--surface-2); border-radius: 10px; }
.pal-wrap { align-items: start; padding-top: 12vh; }
.palette { width: min(620px, 100%); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border); animation: drop .18s ease; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border-2); }
.pal-in input { flex: 1; border: 0; background: transparent; font-size: 15px; outline: none; color: var(--text); }
#pal-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.pal-g { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; }
.pal-it { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.pal-it.on, .pal-it:hover { background: var(--accent-50); color: var(--accent); }
.pal-empty { padding: 20px; text-align: center; color: var(--muted); }
.pal-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--border-2); font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.pal-foot kbd { margin: 0 2px; }

/* tour */
.tour { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.tour-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .55); transition: all .3s ease; pointer-events: none; outline: 2px solid var(--accent); }
.tour-tip { position: fixed; background: var(--surface); color: var(--text); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-lg); pointer-events: auto; transition: left .3s ease, top .3s ease; animation: drop .25s ease; border: 1px solid var(--border); }
.tour-tip small { color: var(--accent); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.tour-tip h4 { font-size: 16px; margin: 4px 0 6px; } .tour-tip p { margin: 0 0 12px; color: var(--text-2); font-size: 13.5px; }
.tour-tip .row-btns { align-items: center; } .grow { flex: 1; }

/* print */
#print-area { display: none; }
@media print {
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; padding: 0; color: #000; }
  body.printing #print-area .receipt, body.printing #print-area .card { border: 0; box-shadow: none; }
  .print-title { font-size: 18px; margin: 0 0 12px; }
  .slip { page-break-after: always; border: 1px dashed #999; padding: 12px; margin-bottom: 12px; }
  body.printing .chart .line.draw { stroke-dashoffset: 0; animation: none; }
}

/* storefront extras */
.coin-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, #fde68a, #f59e0b); color: #78350f; font-weight: 800; font-size: 12.5px; }
.coin-chip .ic { width: 15px; height: 15px; }
.flash-box { margin: 12px 0 4px; padding: 10px 12px 4px; border-radius: 14px; background: linear-gradient(120deg, #fff1f2, #ffedd5); border: 1px solid #fed7aa; }
:root[data-theme="dark"] .flash-box { background: linear-gradient(120deg, rgba(225, 29, 72, .14), rgba(234, 88, 12, .14)); border-color: rgba(234, 88, 12, .3); }
.fb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: #c2410c; gap: 8px; flex-wrap: wrap; }
.fb-head b { display: inline-flex; align-items: center; gap: 4px; } .fb-head .ic { width: 16px; height: 16px; fill: currentColor; }
.countdown { font: 800 12px var(--mono); background: #e11d48; color: #fff; padding: 2px 6px; border-radius: 6px; letter-spacing: .04em; }
.flash-tag { display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 800; color: #fff; background: #e11d48; border-radius: 5px; padding: 1px 5px; }
.flash-tag .ic { width: 10px; height: 10px; fill: currentColor; }
.flash-strip { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #fff1f2; color: #be123c; font-weight: 700; font-size: 12.5px; margin-bottom: 8px; flex-wrap: wrap; }
:root[data-theme="dark"] .flash-strip { background: rgba(225, 29, 72, .15); color: #fda4af; }
.pc-var { margin-left: auto; font-size: 10px; color: var(--accent); font-weight: 700; background: var(--accent-50); padding: 1px 5px; border-radius: 4px; }
.ref-card { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 14px; text-align: left; color: #fff; background: linear-gradient(120deg, var(--accent), var(--brand-2)); }
.ref-card > span { flex: 1; } .ref-card small { display: block; opacity: .85; font-size: 11.5px; }
.variants { margin: 6px 0 4px; } .v-label { font-size: 13px; color: var(--muted); }
.v-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.v-opt { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--border); border-radius: 10px; font-weight: 600; font-size: 13px; background: var(--surface); transition: border-color .15s, transform .1s; }
.v-opt i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.v-opt small { color: var(--muted); font-size: 11px; } .v-opt.on { border-color: var(--accent); color: var(--accent); background: var(--accent-50); }
.v-opt.oos { opacity: .45; text-decoration: line-through; } .v-opt:active { transform: scale(.96); }
.rev-sum { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.rs-big { display: flex; flex-direction: column; align-items: center; gap: 2px; } .rs-big b { font-size: 28px; } .rs-big small { color: var(--muted); font-size: 11px; }
.rs-bars { list-style: none; padding: 0; margin: 0; flex: 1; display: grid; gap: 3px; font-size: 11.5px; }
.rs-bars li { display: grid; grid-template-columns: 26px 1fr 22px; gap: 6px; align-items: center; } .rs-bars i { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.rs-bars em { display: block; height: 100%; background: #f59e0b; border-radius: 3px; }
.review { padding: 10px 0; border-top: 1px solid var(--border-2); font-size: 13px; } .review p { margin: 4px 0; color: var(--text-2); }
.rv-top { display: flex; gap: 8px; align-items: center; } .rv-top small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; flex-wrap: wrap; }
.rv-top .stars .ic { width: 11px; height: 11px; } .rv-title { display: block; margin-top: 6px; }
.rv-reply { background: var(--surface-2); padding: 6px 8px; border-radius: 8px; font-size: 12.5px; }
.qa { background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; font-size: 13px; } .qa p { margin: 0; } .qa-a { color: var(--text-2); margin-top: 4px !important; }
.qa-a small { color: var(--muted); }
.ask-form, .coupon-form, .chat-form { display: flex; gap: 6px; margin-top: 8px; } .chat-form { margin: 0; width: 100%; }
.ask-form .input, .coupon-form .input, .chat-form .input { flex: 1; }
.ship-opt { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1.5px solid var(--border); border-radius: 10px; margin-bottom: 6px; cursor: pointer; font-size: 13px; transition: border-color .15s; }
.ship-opt > span { flex: 1; } .ship-opt small { display: block; color: var(--muted); font-size: 11.5px; }
.ship-opt.on { border-color: var(--accent); background: var(--accent-50); } .ship-opt.dis { opacity: .5; cursor: not-allowed; } .ship-opt.coins { margin: 0; }
.ship-opt input { accent-color: var(--accent); }
.coupon-on { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 1.5px dashed var(--success); border-radius: 10px; background: var(--success-50); font-size: 13px; }
.coupon-list { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; scrollbar-width: none; }
.coupon-chip { flex: none; text-align: left; padding: 6px 10px; border: 1px dashed var(--accent); border-radius: 8px; background: var(--accent-50); font-size: 12px; }
.coupon-chip small { display: block; color: var(--muted); font-size: 10.5px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.confetti { position: relative; height: 0; } .confetti i { position: absolute; top: -70px; left: 50%; width: 7px; height: 11px; border-radius: 2px; background: var(--accent); animation: confetti 1.1s ease-out forwards; opacity: 0; }
.confetti i:nth-child(3n) { background: #f59e0b; } .confetti i:nth-child(3n+1) { background: #22c55e; } .confetti i:nth-child(4n) { background: #ec4899; }
.confetti i:nth-child(1) { --x: -120px; --y: -40px; } .confetti i:nth-child(2) { --x: 110px; --y: -50px; } .confetti i:nth-child(3) { --x: -80px; --y: 30px; } .confetti i:nth-child(4) { --x: 90px; --y: 20px; }
.confetti i:nth-child(5) { --x: -40px; --y: -70px; } .confetti i:nth-child(6) { --x: 50px; --y: -80px; } .confetti i:nth-child(7) { --x: -130px; --y: 10px; } .confetti i:nth-child(8) { --x: 130px; --y: -10px; }
.confetti i:nth-child(9) { --x: -10px; --y: -90px; } .confetti i:nth-child(10) { --x: 20px; --y: 40px; } .confetti i:nth-child(11) { --x: -100px; --y: -80px; } .confetti i:nth-child(12) { --x: 100px; --y: 60px; } .confetti i:nth-child(13) { --x: -60px; --y: 60px; }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(320deg); } }
.awb { display: flex; align-items: center; gap: 6px; font-size: 12px; margin: 6px 0; color: var(--text-2); } .awb .ic { width: 14px; height: 14px; color: var(--accent); }
.courier-ev { list-style: none; margin: 0 0 6px 6px; padding: 0 0 0 10px; border-left: 2px solid var(--accent-100); font-size: 12px; }
.courier-ev li { padding: 2px 0; } .courier-ev b { font-weight: 600; } .courier-ev small { display: block; color: var(--muted); font-size: 10.5px; }
.shipment .link { font-size: 12.5px; margin-top: 4px; } .co-line .link { font-size: 12px; margin-top: 2px; }
.items-pick { border: 0; padding: 0; margin: 0 0 12px; } .items-pick legend, fieldset.field legend { font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 0; margin-bottom: 6px; }
fieldset.field { border: 0; padding: 0; } .items-pick .check { font-size: 12.5px; margin-bottom: 4px; }
.rv-img { width: 72px; height: 72px; border-radius: 12px; margin: 0 auto 8px; }
.star-pick { display: flex; justify-content: center; gap: 6px; margin-top: 10px; } .star-pick button .ic { width: 30px; height: 30px; color: #e5e7eb; transition: transform .15s, color .15s; }
.star-pick button.on .ic { color: #f59e0b; } .star-pick button:hover .ic { transform: scale(1.15); }
.panel.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.store-hero { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, var(--sc), color-mix(in srgb, var(--sc) 55%, #000)); margin-bottom: 10px; }
.store-hero h3 { font-size: 18px; display: flex; align-items: center; gap: 6px; } .store-hero small { display: flex; align-items: center; gap: 4px; opacity: .9; font-size: 12px; flex-wrap: wrap; }
.store-hero .av { border: 2px solid rgba(255, 255, 255, .6); }
.verified { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #22c55e; } .verified .ic { width: 12px; height: 12px; stroke-width: 3; }
.store-btns { margin-bottom: 10px; flex-wrap: nowrap; } .store-btns .btn { padding: 8px 10px; font-size: 13px; }
.seg-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 10px; } .seg-tabs button { flex: 1; padding: 9px 4px; font-weight: 700; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; }
.seg-tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.notif-list button { width: 100%; display: flex; gap: 10px; text-align: left; padding: 10px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; font-size: 13px; }
.notif-list li.unread button { border-color: var(--accent-100); background: var(--accent-50); }
.notif-list small { display: block; color: var(--text-2); font-size: 12px; } .notif-list small.muted { color: var(--muted); font-size: 11px; }
.nl-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; flex: none; }
.sm-link { font-size: 12px; white-space: nowrap; }
.card-like { background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; margin-bottom: 10px; }
.chat-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.bubble { max-width: 82%; padding: 8px 11px; border-radius: 14px; font-size: 13px; line-height: 1.4; animation: drop .2s ease; word-wrap: break-word; }
.bubble small { display: block; font-size: 10px; opacity: .7; margin-top: 2px; } .bubble .who { font-weight: 700; opacity: .85; margin: 0 0 2px; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--border-2); border-bottom-left-radius: 4px; }
.bubble.typing { display: flex; gap: 4px; padding: 12px 14px; } .bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.quick-replies { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.help-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; font-size: 12.5px; color: var(--text); text-decoration: none; text-align: center; }
.help-tile .ic { width: 22px; height: 22px; color: var(--accent); }
.cms-page p { line-height: 1.6; }
.photo-edit { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.lang-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; margin-bottom: 10px; font-weight: 600; font-size: 13px; flex-wrap: wrap; }
.lang-row > span { display: inline-flex; gap: 6px; align-items: center; }
.ref-hero { text-align: center; padding: 18px 14px; border-radius: 16px; background: linear-gradient(140deg, var(--accent), var(--brand-2)); color: #fff; margin-bottom: 10px; }
.ref-hero > .ic { width: 34px; height: 34px; } .ref-hero h3 { font-size: 19px; margin: 6px 0; } .ref-hero p { margin: 0 0 12px; font-size: 13px; opacity: .9; }
.small-hero { padding: 14px; } .small-hero p { margin: 0; }
.ref-code { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.ref-code code { font-size: 16px; font-weight: 800; letter-spacing: .1em; padding: 6px 12px; background: rgba(255, 255, 255, .95); color: #111; border: 0; }
.modal .ref-code code { background: var(--surface-2); color: var(--text); font-size: 12px; letter-spacing: 0; }
.break-all { word-break: break-all; }
.share-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; } .share-row .btn { flex: 1; min-width: 100px; }
.reward-card { padding: 18px; border-radius: 16px; color: #78350f; background: linear-gradient(135deg, #fde68a, #f59e0b); margin-bottom: 10px; display: flex; flex-direction: column; gap: 2px; }
.reward-card b { font-size: 32px; } .reward-card span { font-weight: 600; font-size: 13px; }
.tier-bar { height: 8px; border-radius: 4px; background: rgba(120, 53, 15, .2); margin: 10px 0 4px; overflow: hidden; } .tier-bar i { display: block; height: 100%; background: #78350f; border-radius: 4px; animation: grow .8s ease both; transform-origin: left; }
.doc-up { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px dashed var(--border); border-radius: 10px; margin-bottom: 6px; font-size: 12.5px; }
.doc-up input { font-size: 12px; max-width: 100%; }
.push { position: absolute; top: 46px; left: 10px; right: 10px; z-index: 25; transform: translateY(-140%); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.push.show { transform: none; }
.push-card { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); box-shadow: var(--shadow-lg); border: 1px solid var(--border); font-size: 12.5px; }
.push-card > span { flex: 1; min-width: 0; } .push-card small { display: block; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onboard { position: absolute; inset: 0; z-index: 28; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px 24px; gap: 10px; animation: fadeIn .3s ease both; }
.onboard.out { opacity: 0; transition: opacity .25s; }
.onb-skip { position: absolute; top: 54px; right: 20px; }
.onb-art { position: relative; width: 200px; } .onb-art svg { width: 100%; }
.onb-ic { position: absolute; inset: 0; display: grid; place-items: center; } .onb-ic .ic { width: 54px; height: 54px; color: var(--accent); stroke-width: 1.6; animation: pop .5s ease; }
.onboard h3 { font-size: 21px; letter-spacing: -.02em; } .onboard p { color: var(--text-2); margin: 0 0 6px; font-size: 14px; max-width: 280px; }
.onb-dots { display: flex; gap: 6px; margin-bottom: 14px; } .onb-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--border); transition: width .2s; } .onb-dots i.on { width: 22px; background: var(--accent); }
.es-art { position: relative; width: 160px; margin: 0 auto 8px; } .es-art svg { width: 100%; } .es-art .es-ic { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); margin: 0; background: transparent; }

/* admin extras */
.banner-admin { display: grid; gap: 10px; } .ba-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.ba-prev { border-radius: 12px; color: #fff; padding: 14px; display: flex; flex-direction: column; } .ba-prev small { opacity: .9; }
.ba-meta { display: flex; flex-direction: column; gap: 6px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; max-height: 260px; overflow: auto; padding: 8px; border: 1px solid var(--border); border-radius: 10px; }
.pick-grid .check { font-size: 13px; }
.tp-push { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; font-size: 13px; margin-bottom: 10px; } .tp-push > span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.tp-push > span small { margin-left: auto; }
.tp-mail, .tp-wa { border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; } .tp-mail { border: 1px solid var(--border); } .tp-wa { background: #dcf8c6; color: #111; }
:root[data-theme="dark"] .tp-wa { background: #1f3d2b; color: #e6f4ea; }
.tp-mail small, .tp-wa small { font-weight: 700; font-size: 11px; color: var(--muted); } .tp-mail p, .tp-wa p { margin: 4px 0 0; }
.outbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .outbox li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.outbox li > span:nth-child(2) { flex: 1; min-width: 0; } .outbox li small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faq-edit { display: grid; gap: 10px; margin-bottom: 12px; } .faq-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: start; }
.tbl.perm td.center, .tbl.perm th.center { text-align: center; } .tbl.perm input { width: 18px; height: 18px; accent-color: var(--accent); }
.center { text-align: center; }
.chat-split { display: grid; grid-template-columns: 260px minmax(0, 1fr); padding: 0; overflow: hidden; min-height: 420px; }
.thread-list { list-style: none; margin: 0; padding: 6px; border-right: 1px solid var(--border-2); overflow: auto; max-height: 520px; }
.thread-list button { width: 100%; display: flex; gap: 8px; align-items: center; text-align: left; padding: 8px; border-radius: 10px; font-size: 13px; position: relative; }
.thread-list button > span:nth-child(2) { flex: 1; min-width: 0; } .thread-list small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.thread-list button.on { background: var(--accent-50); } .thread-list button.unread b { color: var(--accent); }
.thread-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.thread-pane { display: flex; flex-direction: column; min-width: 0; }
.tp-head { padding: 12px 14px; border-bottom: 1px solid var(--border-2); } .tp-head small { display: block; color: var(--muted); }
.thread-pane .chat-body { flex: 1; overflow: auto; padding: 12px; max-height: 420px; background: var(--surface-2); }
.thread-pane .chat-form { padding: 10px; border-top: 1px solid var(--border-2); }
.qa-card .qa-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; } .qa-card .qa-head > span { flex: 1; } .qa-card .qa-head small { display: block; }
.qa-card p { margin: 0 0 6px; }
.error-state { border-color: rgba(220, 38, 38, .35); }
.input.mono { font-family: var(--mono); font-size: 12.5px; }

@media (max-width: 1000px) {
  .map-wrap { grid-template-columns: minmax(0, 1fr); }
  .cmdk-btn { min-width: 0; } .cmdk-btn span, .cmdk-btn kbd { display: none; }
}
@media (max-width: 700px) {
  .chat-split { grid-template-columns: minmax(0, 1fr); }
  .thread-list { border-right: 0; border-bottom: 1px solid var(--border-2); max-height: 180px; }
  .faq-row { grid-template-columns: minmax(0, 1fr) auto; } .faq-row textarea { grid-column: 1 / -1; grid-row: 2; }
  .ba-row { grid-template-columns: minmax(0, 1fr); }
  .tbl-actions { margin-left: 0; width: 100%; }
  .range-pick { width: 100%; } .page-head .ph-right { width: 100%; }
  .push { top: 8px; } .onb-skip { top: 16px; }
  .pop-panel { position: fixed; right: 8px; left: 8px; top: calc(var(--banner-h) + var(--top-h) + 4px); min-width: 0; }
  .user-btn { padding: 2px; border: 0; }
}
@media (max-width: 480px) {
  .topbar .icon-btn { width: 32px; height: 32px; }
  .top-right { gap: 2px; }
  .lang-row .seg button { padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .chart .line.draw { stroke-dashoffset: 0; }
  .onboard, .confetti { animation: none; }
}
@media (min-width: 701px) { .toasts { left: auto; right: 20px; transform: none; align-items: flex-end; } }
[hidden] { display: none !important; }
html { overflow-x: hidden; }
.topbar { min-width: 0; }
.top-tabs { min-width: 0; flex-shrink: 1; }
@media (max-width: 480px) {
  .top-tab span { display: none; }
  .top-tab { padding: 6px 8px; }
  .top-tabs { margin-left: 2px; }
  .topbar .theme-btn { display: none; }
  .user-btn { flex: none; }
}

/* ---------- language switch (ID / EN), payment sheet with 3-4 methods, QR box ---------- */
.ps-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.ps-tab { font-size: 11.5px; text-align: center; line-height: 1.15; }
.lang-seg { background: transparent; border-radius: 999px; flex: none; }
.lang-seg button { padding: 4px 9px; min-width: 32px; justify-content: center; }
.lang-seg button.on { background: var(--accent); color: #fff; }
.login-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qr-box { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; }
.qr-box .qr-svg { width: 84px; height: 84px; flex: none; color: var(--text); background: #fff; border-radius: 6px; padding: 3px; }
.qr-box b { display: block; margin-bottom: 2px; }
.qr-box small { color: var(--muted); font-size: 12px; line-height: 1.35; display: block; }
.upi-apps { flex-wrap: wrap; }
@media (max-width: 480px) {
  .lang-seg { justify-content: flex-start; }
  .lang-seg button { flex: none; padding: 4px 7px; min-width: 28px; }
}
