/* ═══════════════════════════════════════════════════════════════════
   OCEVOHUB | WRS — design system
   Dark Navy · Electric Blue · White
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --navy-950: #050c1d;
  --navy-900: #081330;
  --navy-850: #0b1a3e;
  --navy-800: #0f2250;
  --navy-700: #173067;
  --navy-600: #22407f;
  --blue-700: #0a4fd6;
  --blue-600: #0f62fe;
  --blue-500: #1f7bff;
  --blue-400: #4a95ff;
  --blue-300: #8bbcff;
  --blue-100: #e3efff;
  --blue-50:  #f1f7ff;
  --cyan-400: #2fd3f5;
  --cyan-300: #7ee6fa;

  --ink: #0d1b36;
  --ink-2: #33415c;
  --muted: #64748f;
  --muted-2: #94a3b8;
  --border: #e2e8f2;
  --border-2: #cfd9e8;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafd;

  --success: #0ea66b; --success-bg: #e7f8f0;
  --warning: #d98b06; --warning-bg: #fff5e0;
  --danger:  #e5484d; --danger-bg:  #fdecec;
  --info:    #0f8fd6; --info-bg:    #e6f5fd;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(13, 27, 54, .06);
  --shadow-sm: 0 1px 3px rgba(13, 27, 54, .07), 0 1px 2px rgba(13, 27, 54, .04);
  --shadow: 0 6px 20px -6px rgba(13, 27, 54, .12), 0 2px 6px rgba(13, 27, 54, .05);
  --shadow-lg: 0 24px 60px -18px rgba(8, 19, 48, .35);
  --glow: 0 10px 30px -8px rgba(31, 123, 255, .55);
  --grad-blue: linear-gradient(135deg, #1f7bff 0%, #0f62fe 55%, #2fd3f5 140%);
  --grad-navy: radial-gradient(1200px 600px at 85% -10%, rgba(31,123,255,.35), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(47,211,245,.18), transparent 60%), linear-gradient(180deg, #081330 0%, #050c1d 100%);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sidebar-w: 256px;
  --topbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.55;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: 1.65rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
.icon { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--blue-600); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s, color .15s;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px -6px rgba(15,98,254,.7); }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-gradient { background: var(--grad-blue); color: #fff; box-shadow: var(--glow); }
.btn-gradient:hover { filter: brightness(1.07); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-2); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: var(--blue-400); color: var(--blue-700); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--blue-50); color: var(--blue-700); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #cc3439; color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-bg); color: var(--danger); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #0a8d5a; color: #fff; }
.btn-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Forms ───────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--border-2); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 500 14.5px var(--font);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 92px; padding: 10px 13px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748f' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(31,123,255,.15); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.input-sm { height: 34px; font-size: 13.5px; }
.field-error { color: var(--danger); font-size: 12.5px; font-weight: 600; margin: 0; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group > .icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.input-group > .input { padding-left: 38px; }
.input-group .input-suffix { position: absolute; right: 6px; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 550; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--blue-600); margin: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; background: var(--border-2); border-radius: 99px; position: relative; transition: background .15s; cursor: pointer; margin: 0; flex-shrink: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch input:checked { background: var(--blue-600); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 8px; flex-wrap: wrap; }
.form-section { padding: 22px 0; border-top: 1px solid var(--border); }
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-section h3 { margin-bottom: 4px; }
.form-section > p { color: var(--muted); font-size: 13.5px; }

/* ── Cards ───────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-body { padding: 20px 22px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-header h2, .card-header h3 { margin: 0; font-size: 1rem; }
.card-header .sub { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.content > .card + .card, .card-body > .card + .card { margin-top: 20px; }
.card-flush .card-body { padding: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card { position: relative; padding: 18px 20px; overflow: hidden; }
.stat-card .stat-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; margin-top: 8px; color: var(--ink); }
.stat-card .stat-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.amber { background: var(--warning-bg); color: var(--warning); }
.stat-icon.red { background: var(--danger-bg); color: var(--danger); }
.stat-icon.cyan { background: #e2f9fe; color: #0891b2; }
.stat-icon.navy { background: #e8ecf6; color: var(--navy-700); }
.stat-card.hero { background: var(--grad-navy); border-color: transparent; color: #fff; }
.stat-card.hero .stat-label { color: var(--blue-300); }
.stat-card.hero .stat-value { color: #fff; }
.stat-card.hero .stat-meta { color: rgba(255,255,255,.65); }
.stat-card.hero .stat-icon { background: rgba(255,255,255,.1); color: var(--cyan-300); }
.stat-card a.stretched::after { content: ""; position: absolute; inset: 0; }

/* ── Layout: app shell ───────────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  background: var(--navy-900); background-image: linear-gradient(180deg, #0b1a3e 0%, #071129 100%);
  color: #c8d3ea; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.04);
  transition: transform .2s ease;
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; height: var(--topbar-h); padding: 0 20px; color: #fff; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; filter: drop-shadow(0 6px 12px rgba(31,123,255,.45)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-weight: 800; letter-spacing: .02em; font-size: 15px; line-height: 1.1; color: #fff; }
.brand-text small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; color: var(--blue-300); margin-top: 3px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 12px 20px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.nav-section { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6f82a8; padding: 18px 12px 8px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 1px 0; border-radius: 10px;
  color: #b9c6e0; font-weight: 550; font-size: 14px; transition: background .12s, color .12s;
}
.nav-link .icon { width: 18px; height: 18px; color: #7d90b8; transition: color .12s; }
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link:hover .icon { color: var(--blue-300); }
.nav-link.active { background: linear-gradient(90deg, rgba(31,123,255,.28), rgba(31,123,255,.08)); color: #fff; box-shadow: inset 3px 0 0 var(--blue-500); }
.nav-link.active .icon { color: var(--cyan-300); }
.nav-link .nav-badge { margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(47,211,245,.14); color: var(--cyan-300); letter-spacing: .03em; }
.sidebar-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,.06); }
.plan-pill { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); color: #dbe5f7; font-size: 13px; }
.plan-pill strong { color: #fff; }
.plan-pill .btn { margin-left: auto; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h); display: flex; align-items: center; gap: 12px;
  padding: 0 28px; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .menu-toggle { display: none; }
.topbar-search { flex: 1; max-width: 420px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.branch-switch { display: flex; align-items: center; gap: 8px; }
.branch-switch .select { height: 36px; font-size: 13.5px; min-width: 160px; font-weight: 600; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--blue-50); color: var(--blue-700); }
.icon-btn .dot { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; line-height: 1; border-radius: 99px; background: var(--danger); color: #fff; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--grad-blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.avatar-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 19px; }
.avatar-sm { width: 30px; height: 30px; border-radius: 8px; font-size: 11.5px; }
.content { padding: 26px 28px 60px; flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-header h1 { margin: 0; }
.page-header .subtitle { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); font-weight: 550; }
.breadcrumbs a:hover { color: var(--blue-600); }
.breadcrumbs .sep { color: var(--muted-2); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main-side { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.stack > * + * { margin-top: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 700; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hide { display: none !important; }

/* ── Dropdown (details/summary) ──────────────────────────────────── */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 50;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px;
  animation: pop .12s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 9px;
  color: var(--ink-2); font: 550 13.5px var(--font); background: none; border: 0; cursor: pointer; text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--blue-50); color: var(--blue-700); }
.dropdown-menu .divider { height: 1px; background: var(--border); margin: 6px 4px; }
.dropdown-head { padding: 10px 11px 8px; }
.dropdown-head strong { display: block; }
.dropdown-head span { font-size: 12.5px; color: var(--muted); }
.notif-menu { width: 360px; max-width: calc(100vw - 24px); padding: 0; }
.notif-menu .notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: var(--blue-50); }
.notif-item .t { font-weight: 650; font-size: 13.5px; color: var(--ink); }
.notif-item .b { font-size: 12.5px; color: var(--muted); }

/* ── Tables ──────────────────────────────────────────────────────── */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  color: var(--muted); padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: #fafcff; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 0; }
.table-compact td { padding: 9px 14px; }
.sort-link { color: inherit; }
.sort-link:hover { color: var(--blue-600); }
.cell-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cell-main .t { font-weight: 650; color: var(--ink); }
.cell-main .s { font-size: 12.5px; color: var(--muted); }
a.row-link { color: var(--ink); font-weight: 650; }
a.row-link:hover { color: var(--blue-600); }

.toolbar { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toolbar .input-group { flex: 1; min-width: 200px; max-width: 360px; }
.toolbar .select, .toolbar .input { height: 38px; width: auto; min-width: 140px; }
.toolbar .spacer { flex: 1; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pagination .pages { display: flex; gap: 4px; }
.pagination a, .pagination span.cur { min-width: 32px; height: 32px; padding: 0 9px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); color: var(--ink-2); font-weight: 600; background: var(--surface); }
.pagination a:hover { border-color: var(--blue-400); color: var(--blue-700); }
.pagination span.cur { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ── Badges, progress, pills ─────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; letter-spacing: .01em; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: #b26f00; }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-primary { background: var(--blue-100); color: var(--blue-700); }
.badge-neutral { background: #eef1f6; color: var(--muted); }
.badge-pro { background: var(--grad-blue); color: #fff; }
.badge-pro::before, .badge-plain::before { display: none; }
.badge-soon { background: rgba(47,211,245,.14); color: #0891b2; }
.badge-soon::before { display: none; }

.progress { height: 8px; border-radius: 99px; background: #e8eef7; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--grad-blue); transition: width .4s ease; }
.progress.warn > span { background: linear-gradient(90deg, #f59e0b, #f97316); }
.progress.full > span { background: linear-gradient(90deg, #ef4444, #e11d48); }
.usage-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.usage-row:last-child { border-bottom: 0; }
.usage-row .row-between { margin-bottom: 7px; font-size: 13.5px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--border-2); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--blue-400); color: var(--blue-700); }
.chip.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* ── Alerts & toasts ─────────────────────────────────────────────── */
.alert { display: flex; gap: 12px; padding: 13px 16px; border-radius: 12px; border: 1px solid; font-size: 14px; margin-bottom: 18px; align-items: flex-start; }
.alert .icon { margin-top: 1px; }
.alert-info { background: var(--info-bg); border-color: #bfe6fa; color: #075985; }
.alert-success { background: var(--success-bg); border-color: #b5ead3; color: #065f46; }
.alert-warning { background: var(--warning-bg); border-color: #fbe0a6; color: #8a5300; }
.alert-danger { background: var(--danger-bg); border-color: #f8c5c6; color: #9f1d22; }
.alert-upgrade { background: var(--grad-navy); color: #dbe7ff; border: 0; padding: 18px 20px; align-items: center; }
.alert-upgrade strong { color: #fff; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 40px); }
.toast {
  display: flex; align-items: flex-start; gap: 11px; min-width: 280px; max-width: 420px; padding: 13px 14px 13px 16px;
  background: var(--navy-900); color: #e6edfb; border-radius: 13px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 550;
  animation: toast-in .22s ease-out; border-left: 4px solid var(--blue-500);
}
.toast.success { border-left-color: #22c55e; }
.toast.error { border-left-color: #f43f5e; }
.toast.warning { border-left-color: #f59e0b; }
.toast .icon { margin-top: 1px; }
.toast.success .icon { color: #4ade80; } .toast.error .icon { color: #fb7185; } .toast.warning .icon { color: #fbbf24; } .toast.info .icon { color: var(--cyan-300); }
.toast button { margin-left: auto; background: none; border: 0; color: #8da0c4; cursor: pointer; padding: 0 2px; font-size: 18px; line-height: 1; }
.toast.leaving { animation: toast-out .2s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ── Modal (native <dialog>) ─────────────────────────────────────── */
dialog.modal { border: 0; padding: 0; border-radius: 20px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); color: var(--ink); background: var(--surface); }
dialog.modal.modal-lg { width: min(820px, calc(100vw - 24px)); }
dialog.modal.modal-sm { width: min(420px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(5,12,29,.55); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: modal-in .18s ease-out; display: flex; flex-direction: column; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; font-size: 1.1rem; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 20px 20px; flex-wrap: wrap; }
.modal form { display: contents; }
.confirm-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--danger-bg); color: var(--danger); margin-bottom: 14px; }

/* ── Tabs ────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 11px 14px; border: 0; background: none; font: 650 14px var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tab:hover { color: var(--ink); }
.tab.active, .tab[aria-selected="true"] { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.tab .count { font-size: 11px; background: #eef1f6; color: var(--muted); padding: 1px 7px; border-radius: 99px; }
.tab-panel[hidden] { display: none; }

/* ── Empty & coming soon & errors ────────────────────────────────── */
.empty { text-align: center; padding: 54px 24px; }
.empty-art { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-50), #e3f7fd); color: var(--blue-600); box-shadow: inset 0 0 0 1px rgba(31,123,255,.12); }
.empty-art .icon { width: 34px; height: 34px; stroke-width: 1.7; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 380px; margin: 0 auto 18px; }
.empty-sm { padding: 30px 16px; }
.empty-sm .empty-art { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 12px; }
.empty-sm .empty-art .icon { width: 24px; height: 24px; }

.coming-soon { position: relative; overflow: hidden; background: var(--grad-navy); color: #c9d6f0; border-radius: var(--radius-xl); padding: 44px 40px; }
.coming-soon::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px; border-radius: 50%; border: 1px solid rgba(126,230,250,.15); box-shadow: 0 0 0 40px rgba(126,230,250,.03), 0 0 0 90px rgba(126,230,250,.02); pointer-events: none; }
.coming-soon h1, .coming-soon h2 { color: #fff; }
.coming-soon .cs-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(31,123,255,.18); color: var(--cyan-300); margin-bottom: 18px; box-shadow: inset 0 0 0 1px rgba(126,230,250,.2); }
.coming-soon .cs-icon .icon { width: 30px; height: 30px; }
.cs-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 26px 0; }
.cs-feature { display: flex; gap: 11px; padding: 13px 14px; border-radius: 13px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); font-size: 13.5px; }
.cs-feature .icon { color: var(--cyan-300); }
.cs-feature strong { display: block; color: #fff; font-size: 14px; }
.soon-card { border: 1px dashed var(--border-2); border-radius: var(--radius-lg); padding: 18px; background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px); }

.error-page { min-height: 100vh; display: grid; place-items: center; background: var(--grad-navy); padding: 24px; color: #c9d6f0; text-align: center; }
.error-code { font-size: 96px; font-weight: 800; letter-spacing: -.05em; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

.skeleton { background: linear-gradient(90deg, #eef2f8 25%, #f6f8fc 37%, #eef2f8 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ── Lists & key-value ───────────────────────────────────────────── */
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 550; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .t { font-weight: 650; }
.list-item .s { font-size: 12.5px; color: var(--muted); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.quick-actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.quick-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 16px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); font-weight: 650; font-size: 13px; text-align: center; transition: all .15s; box-shadow: var(--shadow-xs); }
.quick-action .qa-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); transition: all .15s; }
.quick-action:hover { border-color: var(--blue-300); color: var(--blue-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-action:hover .qa-icon { background: var(--blue-600); color: #fff; }

.container-balance { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 16px; overflow: hidden; background: var(--grad-navy); color: #fff; }
.container-balance > div { padding: 18px 20px; border-right: 1px solid rgba(255,255,255,.07); }
.container-balance > div:last-child { border-right: 0; background: rgba(31,123,255,.18); }
.container-balance .lbl { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-300); font-weight: 700; }
.container-balance .val { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }

.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-head .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.profile-head .meta span { display: inline-flex; align-items: center; gap: 6px; }

.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 220px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 16px 14px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--blue-500); }
.timeline .when { color: var(--muted); font-size: 12px; }

/* ── Permission matrix ───────────────────────────────────────────── */
.perm-table th, .perm-table td { text-align: center; }
.perm-table th:first-child, .perm-table td:first-child { text-align: left; }
.perm-module td { background: var(--surface-2); font-weight: 700; color: var(--ink); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }

/* ── POS ─────────────────────────────────────────────────────────── */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0; height: calc(100vh - var(--topbar-h)); margin: -26px -28px -60px; }
.pos-catalog { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 20px 22px; }
.pos-catalog .pos-top { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pos-catalog .pos-top .input-group { flex: 1; min-width: 200px; }
.pos-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; flex-shrink: 0; }
.pos-cats::-webkit-scrollbar { display: none; }
.pos-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; align-content: start; padding: 2px 2px 20px; }
.pos-product {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer; font-family: var(--font); transition: all .12s; box-shadow: var(--shadow-xs);
}
.pos-product:hover { border-color: var(--blue-400); box-shadow: var(--shadow); transform: translateY(-2px); }
.pos-product:active { transform: scale(.98); }
.pos-product .thumb { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #0f2250, #1f7bff); display: grid; place-items: center; color: rgba(255,255,255,.9); }
.pos-product .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pos-product .thumb .icon { width: 34px; height: 34px; stroke-width: 1.6; }
.pos-product .info { padding: 10px 12px 12px; }
.pos-product .name { font-weight: 700; font-size: 13.5px; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pos-product .price { font-weight: 800; color: var(--blue-600); margin-top: 4px; }
.pos-product .stock { position: absolute; top: 8px; right: 8px; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(5,12,29,.6); color: #fff; }
.pos-product .stock.low { background: var(--danger); }
.pos-product .in-cart { position: absolute; top: 8px; left: 8px; min-width: 24px; height: 24px; border-radius: 99px; background: var(--cyan-400); color: var(--navy-900); font-weight: 800; font-size: 12px; display: grid; place-items: center; padding: 0 6px; }

.pos-cart { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-left: 1px solid var(--border); }
.pos-cart-head { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.pos-cart-items { flex: 1; overflow-y: auto; padding: 6px 0; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 11px 18px; border-bottom: 1px solid var(--border); }
.cart-line .n { font-weight: 650; font-size: 13.5px; }
.cart-line .p { font-size: 12.5px; color: var(--muted); }
.cart-line .lt { font-weight: 750; text-align: right; }
.qty-ctl { display: inline-flex; align-items: center; border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; }
.qty-ctl button { width: 32px; height: 32px; border: 0; background: var(--surface-2); cursor: pointer; font-size: 17px; color: var(--ink-2); display: grid; place-items: center; }
.qty-ctl button:hover { background: var(--blue-50); color: var(--blue-700); }
.qty-ctl input { width: 46px; height: 32px; border: 0; text-align: center; font: 700 14px var(--font); -moz-appearance: textfield; }
.qty-ctl input::-webkit-outer-spin-button, .qty-ctl input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pos-totals { padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface-2); }
.pos-totals .line { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.pos-totals .total { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; padding-top: 8px; margin-top: 6px; border-top: 1px dashed var(--border-2); }
.pos-pay { padding: 14px 18px 18px; border-top: 1px solid var(--border); }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pay-method { flex: 1 1 auto; padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--border-2); background: var(--surface); font: 650 13px var(--font); cursor: pointer; color: var(--ink-2); }
.pay-method.active { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); }
.cash-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cash-quick button { flex: 1; min-width: 56px; }
.pos-mobile-bar { display: none; }

/* ── Receipt ─────────────────────────────────────────────────────── */
.receipt { width: 100%; max-width: 360px; margin: 0 auto; background: #fff; color: #111; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; padding: 22px 18px; }
.receipt .r-center { text-align: center; }
.receipt .r-logo { max-width: 90px; max-height: 60px; margin: 0 auto 6px; display: block; }
.receipt .r-name { font-family: var(--font); font-weight: 800; font-size: 16px; }
.receipt .r-sep { border-top: 1px dashed #999; margin: 10px 0; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { padding: 2px 0; vertical-align: top; }
.receipt .r-right { text-align: right; }
.receipt .r-total td { font-weight: 800; font-size: 15px; padding-top: 6px; }

/* ── Onboarding & auth ───────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--surface); }
.auth-side { position: relative; background: var(--grad-navy); color: #c9d6f0; padding: 48px 56px; display: flex; flex-direction: column; overflow: hidden; }
.auth-side h2 { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; max-width: 440px; }
.auth-side .auth-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.auth-side .auth-points li { display: flex; gap: 12px; align-items: flex-start; }
.auth-side .auth-points .icon { color: var(--cyan-300); margin-top: 2px; }
.auth-side .waves { position: absolute; left: 0; right: 0; bottom: 0; opacity: .5; pointer-events: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 620px; }
.auth-card h1 { font-size: 1.75rem; }
.auth-card .lead { color: var(--muted); margin-bottom: 26px; }
.auth-foot { text-align: center; color: var(--muted); margin-top: 22px; font-size: 14px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }

.steps { display: flex; gap: 6px; margin-bottom: 28px; }
.steps .step { flex: 1; }
.steps .bar { height: 5px; border-radius: 99px; background: var(--border); }
.steps .step.done .bar, .steps .step.current .bar { background: var(--grad-blue); }
.steps .step span { display: block; font-size: 11.5px; font-weight: 650; color: var(--muted); margin-top: 7px; }
.steps .step.current span { color: var(--blue-600); }
.onboard-page { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
.onboard-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; background: var(--navy-900); color: #fff; }
.onboard-body { flex: 1; display: flex; justify-content: center; padding: 36px 20px 60px; }
.onboard-card { width: 100%; max-width: 720px; }
.product-pick { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.product-pick label { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1.5px solid var(--border-2); cursor: pointer; background: var(--surface); }
.product-pick label:has(input:checked) { border-color: var(--blue-500); background: var(--blue-50); }
.logo-drop { display: flex; align-items: center; gap: 18px; padding: 22px; border: 2px dashed var(--border-2); border-radius: 16px; background: var(--surface-2); }
.logo-preview { width: 84px; height: 84px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; color: var(--muted-2); flex-shrink: 0; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }

/* ── Public / marketing ──────────────────────────────────────────── */
.site { background: #fff; }
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(5,12,29,.82); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-nav .inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.site-nav .links { display: flex; gap: 4px; }
.site-nav .links a { color: #b9c6e0; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 9px; }
.site-nav .links a:hover, .site-nav .links a.active { color: #fff; background: rgba(255,255,255,.06); }
.site-nav .cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.site-nav .nav-toggle { display: none; margin-left: auto; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site .hero { position: relative; background: var(--grad-navy); color: #c3d0ea; overflow: hidden; padding: 90px 0 0; }
.hero .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); pointer-events: none; }
.hero-inner { position: relative; text-align: center; max-width: 860px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; background: rgba(31,123,255,.14); border: 1px solid rgba(126,230,250,.2); color: var(--cyan-300); font-size: 13px; font-weight: 650; margin-bottom: 22px; }
.eyebrow .tag { background: var(--grad-blue); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.5vw, 4.1rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; margin-bottom: 20px; }
.hero h1 .accent { background: linear-gradient(90deg, #4a95ff, #2fd3f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 640px; margin: 0 auto 32px; color: #a9b8d6; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: #7d90b8; margin-top: 16px; }
.hero-shot { position: relative; margin: 60px auto 0; max-width: 1080px; border-radius: 20px 20px 0 0; padding: 10px 10px 0; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.02)); box-shadow: 0 -20px 80px -20px rgba(31,123,255,.45); }
.hero-shot .screen { border-radius: 12px 12px 0 0; overflow: hidden; background: var(--bg); }
.section { padding: 96px 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--grad-navy); color: #b9c6e0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .kicker { color: var(--blue-600); font-weight: 750; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.section-dark .kicker { color: var(--cyan-300); }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.section-dark .section-head p { color: #9fb0d0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.feature { padding: 26px; border-radius: 20px; border: 1px solid var(--border); background: #fff; transition: all .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.feature .f-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-blue); color: #fff; box-shadow: var(--glow); margin-bottom: 18px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }
.feature .soon { margin-left: 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split + .split { margin-top: 96px; }
.split .copy h3 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.split .copy p { color: var(--muted); font-size: 1.05rem; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 11px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-weight: 550; }
.check-list .icon { color: var(--blue-600); margin-top: 2px; }
.section-dark .check-list .icon { color: var(--cyan-300); }
.mock { border-radius: 20px; background: var(--grad-navy); padding: 22px; box-shadow: var(--shadow-lg); }
.mock .card { box-shadow: none; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; counter-reset: s; }
.step-card { position: relative; padding: 28px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.step-card::before { counter-increment: s; content: "0" counter(s); font-size: 44px; font-weight: 800; letter-spacing: -.04em; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 10px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 880px; margin: 0 auto; }
.price-card { position: relative; padding: 32px; border-radius: 24px; border: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; }
.price-card.featured { background: var(--grad-navy); color: #c3d0ea; border: 0; box-shadow: var(--shadow-lg); }
.price-card.featured h3, .price-card.featured .amount { color: #fff; }
.price-card .ribbon { position: absolute; top: 20px; right: 20px; }
.price-card .amount { font-size: 2.8rem; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.price-card .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card.featured .amount small { color: #8ea2c9; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.price-card li .icon { color: var(--blue-600); margin-top: 2px; }
.price-card.featured li .icon { color: var(--cyan-300); }
.price-card li.off { color: var(--muted-2); text-decoration: line-through; }
.price-card li.off .icon { color: var(--muted-2); }
.compare-table td, .compare-table th { text-align: center; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; }
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--blue-600); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }
.testimonial { padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--border); }
.testimonial .quote { font-size: 15.5px; color: var(--ink-2); }
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 60px; text-align: center; background: var(--grad-navy); color: #b9c6e0; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; }
.site-footer { background: var(--navy-950); color: #8a9bbd; padding: 64px 0 32px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.site-footer a { color: #8a9bbd; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.07); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-hero { background: var(--grad-navy); color: #a9b8d6; padding: 80px 0 70px; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.04em; }
.page-hero p { max-width: 620px; margin: 0 auto; font-size: 1.1rem; }


/* ── Legal pages ─────────────────────────────────────────────────── */
.legal-wrap { max-width: 820px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.legal-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: 14px; }
.legal-nav a:hover { color: var(--ink); }
.legal-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.legal { font-size: 1rem; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.legal-updated { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.legal h2 { color: var(--ink); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: 34px 0 10px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Admin variant ───────────────────────────────────────────────── */
.admin .sidebar { background-image: linear-gradient(180deg, #120f2e 0%, #070a1c 100%); }
.admin .nav-link.active { background: linear-gradient(90deg, rgba(139,92,246,.3), rgba(139,92,246,.06)); box-shadow: inset 3px 0 0 #8b5cf6; }
.admin-tag { font-size: 10px; font-weight: 800; letter-spacing: .12em; padding: 3px 8px; border-radius: 6px; background: #8b5cf6; color: #fff; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .quick-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pos { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main-side, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .sidebar-backdrop { display: block; }
  .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(5,12,29,.5); z-index: 35; }
  .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .topbar .menu-toggle { display: grid; }
  .topbar-search { display: none; }
  .content { padding: 20px 16px 60px; }
  .pos { margin: -20px -16px -60px; grid-template-columns: minmax(0, 1fr); height: auto; min-height: calc(100vh - var(--topbar-h)); }
  .pos-catalog { padding: 16px; padding-bottom: 90px; }
  .pos-cart { position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 45; transform: translateY(100%); transition: transform .22s ease; border-left: 0; }
  body.cart-open .pos-cart { transform: none; }
  .pos-mobile-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 44; }
  .auth-page { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .site-nav .links, .site-nav .cta { display: none; }
  .site-nav .nav-toggle { display: grid; }
  body.nav-open .site-nav .links { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy-950); padding: 12px 16px; }
  body.nav-open .site-nav .cta { display: flex; position: absolute; top: calc(70px + 230px); left: 0; right: 0; background: var(--navy-950); padding: 0 16px 16px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  h1 { font-size: 1.4rem; }
  .stat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-value { font-size: 1.25rem; }
  .grid-2, .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .quick-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .quick-action { padding: 12px 6px; font-size: 12px; }
  .branch-switch .select { min-width: 0; max-width: 130px; }
  .branch-switch .label-text { display: none; }
  .card-body { padding: 16px; }
  .card-header { padding: 14px 16px; }
  .page-header { align-items: flex-start; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .feature-grid { grid-template-columns: minmax(0,1fr); }
  .product-pick { grid-template-columns: minmax(0,1fr); }
  .container-balance .val { font-size: 1.5rem; }
  .container-balance > div { padding: 14px; }
  .section { padding: 64px 0; }
  .cta-band { padding: 40px 22px; }
  .site-footer .cols { grid-template-columns: minmax(0,1fr); }
  .toolbar .input-group { max-width: none; }
  .toolbar .select { flex: 1; }

  /* Tables → stacked cards */
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .table-cards td { padding: 3px 0; border: 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .table-cards td::before { content: attr(data-label); font-size: 12px; font-weight: 650; color: var(--muted); text-align: left; flex-shrink: 0; }
  .table-cards td:first-child { display: block; text-align: left; margin-bottom: 4px; }
  .table-cards td:first-child::before { display: none; }
  .table-cards td.actions { justify-content: flex-end; padding-top: 8px; }
  .table-cards td.actions::before { display: none; }
  .table-cards td[data-label=""]::before { display: none; }
  .table-cards tfoot { display: block; }
}

/* ── Print ───────────────────────────────────────────────────────── */
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .no-print, .toasts, .page-actions, .toolbar, .pagination, .btn { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; max-width: none; }
  .card { border: 0; box-shadow: none; }
  .print-only { display: block !important; }
  .receipt { padding: 0; max-width: 80mm; }
  a { color: inherit; }
}
.print-only { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ── Utility visibility ──────────────────────────────────────────── */
.hide-desktop { display: none !important; }
@media (max-width: 960px) { .hide-desktop { display: inline-flex !important; } }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* ── Fixes from browser review ───────────────────────────────────── */
.stat-card.hero { padding: 18px 20px; }
.stat-card .stat-value.text-danger { color: var(--danger); }
.stat-card .stat-value.text-success { color: var(--success); }
.stat-card .stat-value.text-warning { color: var(--warning); }
.cart-line .qty-ctl { justify-self: start; }
.cart-line > div:nth-child(4) { align-self: center; }
.platform-notice { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; background: linear-gradient(90deg, #f59e0b, #f97316); color: #1f1300; font-weight: 700; font-size: 13.5px; text-align: center; position: relative; z-index: 60; }
.platform-notice .icon { width: 16px; height: 16px; }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }

/* ── OcevoHub suite: launcher ─────────────────────────────────────── */
body.suite { min-height: 100vh; background: #040a19; background-image: radial-gradient(900px 600px at 90% -10%, rgba(31,123,255,.35), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(47,211,245,.16), transparent 60%); color: #c3d0ea; }
.suite-top { display: flex; align-items: center; padding: 18px 32px; border-bottom: 1px solid rgba(255,255,255,.06); }
.suite-main { padding: 56px 24px 80px; }
.suite-hero { text-align: center; max-width: 820px; margin: 0 auto 44px; }
.suite-kicker { color: #7ee6fa; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.suite-title { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.grad-text { background: linear-gradient(95deg, #4a95ff, #2fd3f5 60%, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.suite-sub { color: #9fb0d0; font-size: 1.08rem; margin-top: 12px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; max-width: 1180px; margin: 0 auto; }
.app-card { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 24px; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); transition: transform .2s, border-color .2s; }
.app-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.app-card.is-active { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 24px 60px -30px var(--accent); }
.app-card.is-soon { opacity: .82; }
.app-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.app-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--accent); box-shadow: 0 12px 30px -10px var(--accent); }
.app-icon .icon { width: 26px; height: 26px; }
.app-short { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: color-mix(in srgb, var(--accent) 70%, #fff); }
.app-card h2 { color: #fff; font-size: 1.2rem; margin: 6px 0 8px; }
.app-card p { color: #9fb0d0; font-size: 14px; flex: 1; }
.app-actions { margin-top: 14px; }
.app-actions form { display: block; }
.app-actions .btn-secondary { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.16); }
@media (max-width: 720px) { .suite-top { padding: 14px 16px; } .suite-main { padding: 36px 16px 60px; } }

/* App switcher in the product top bar */
.switcher-menu { width: 300px; padding: 8px; }
.switcher-menu a.sw-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; }
.sw-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.sw-item .t { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.sw-item .s { font-size: 12px; color: var(--muted); }
.sw-item.current { background: var(--blue-50); }

/* Sign-up product picker */
.app-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border-2); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.app-opt input { position: absolute; opacity: 0; pointer-events: none; }
.app-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.app-opt:has(input:focus-visible) { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.app-opt-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--accent); flex-shrink: 0; }
.app-opt-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.app-opt-text strong { font-size: 14px; color: var(--ink); }
.app-opt-text small { font-size: 12px; color: var(--muted); }
.app-opt .badge { margin-left: auto; }
.app-opt.soon .app-opt-icon { opacity: .75; }
@media (max-width: 560px) { .app-pick { grid-template-columns: minmax(0, 1fr); } }

/* Public nav products dropdown */
.site-nav .nav-products > summary { list-style: none; cursor: pointer; color: #b9c6e0; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 9px; display: inline-flex; align-items: center; gap: 4px; }
.site-nav .nav-products > summary::-webkit-details-marker { display: none; }
.site-nav .nav-products > summary:hover, .site-nav .nav-products > summary.active { color: #fff; background: rgba(255,255,255,.06); }
.site-nav .nav-products .icon { width: 15px; height: 15px; }
.site-nav .nav-products .dropdown-menu { padding: 8px; }
.site-nav .nav-products .sw-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; }
.site-nav .nav-products .sw-item:hover { background: var(--blue-50); }
@media (max-width: 960px) { body.nav-open .site-nav .nav-products .dropdown-menu { position: static; width: auto !important; box-shadow: none; } }
[data-upper]::placeholder { text-transform: none; }

/* ── Sign-up (step 1 of 3) ─────────────────────────────────────────── */
.su-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 22px; font-size: 12px; font-weight: 700; color: var(--muted-2); flex-wrap: wrap; }
.su-steps li { display: flex; align-items: center; gap: 6px; }
.su-steps li + li::before { content: ""; width: 18px; height: 1.5px; background: var(--border-2); margin-right: 2px; }
.su-steps span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface-2); border: 1.5px solid var(--border-2); }
.su-steps .is-on { color: var(--blue-600); }
.su-steps .is-on span { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.su-pick { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 20px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.su-pick-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--accent); flex-shrink: 0; }
.su-pick small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.su-pick strong { color: var(--ink); font-size: 14.5px; }
.su-pick .badge { margin-left: auto; }
.su-next { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.su-next .icon { color: var(--blue-500); width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.auth-soon { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.auth-soon p { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--cyan-300); font-weight: 700; font-size: 14px; }
.auth-soon p .icon { width: 16px; height: 16px; }
.auth-soon-row { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-soon-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: color-mix(in srgb, var(--accent) 80%, #0b1a3e); box-shadow: 0 8px 18px -8px var(--accent); }
.auth-soon-ic .icon { width: 17px; height: 17px; }

/* ── App launcher (/apps) ──────────────────────────────────────────── */
.lx { max-width: 1180px; margin: 0 auto; }
.lx-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.lx-title { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin: 0; }
.lx-sec { margin-bottom: 44px; }
.lx-sec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.lx-sec-head h2 { color: #fff; font-size: 1.15rem; margin: 0; letter-spacing: -.01em; }
.lx-sec-head p { margin: 0 0 0 auto; color: #7f93b8; font-size: 13.5px; }
.lx-count { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #cfe0ff; background: rgba(255,255,255,.08); }
.lx-mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.lx-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 250px; padding: 24px; border-radius: 24px; color: #c3d0ea; text-decoration: none; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, rgba(255,255,255,.06)), rgba(255,255,255,.02) 65%); border: 1px solid color-mix(in srgb, var(--accent) 40%, rgba(255,255,255,.08)); transition: transform .2s, box-shadow .2s, border-color .2s; }
.lx-tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px var(--accent); border-color: color-mix(in srgb, var(--accent) 75%, transparent); }
.lx-tile-glow { position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); pointer-events: none; }
.lx-tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; position: relative; }
.lx-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6ee7b7; padding: 5px 10px; border-radius: 99px; background: rgba(16,185,129,.12); }
.lx-live i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.lx-tile-name { color: #fff; font-size: 1.3rem; margin: 4px 0 8px; letter-spacing: -.015em; position: relative; }
.lx-tile-desc { font-size: 14px; color: #9fb0d0; flex: 1; position: relative; }
.lx-open { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 800; color: #fff; font-size: 14.5px; position: relative; }
.lx-open .icon { transition: transform .2s; }
.lx-tile:hover .lx-open .icon { transform: translateX(4px); }
.lx-add { align-items: center; justify-content: center; text-align: center; background: rgba(255,255,255,.02); border: 1.5px dashed rgba(126,230,250,.3); }
.lx-add:hover { border-color: var(--cyan-300); box-shadow: 0 30px 60px -34px rgba(47,211,245,.6); }
.lx-add.is-static:hover { transform: none; box-shadow: none; border-color: rgba(126,230,250,.3); }
.lx-add .lx-tile-desc { flex: 0; }
.lx-add-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; background: var(--grad-blue); box-shadow: var(--glow); }
.lx-add-ic .icon { width: 26px; height: 26px; }
.lx-avail { display: grid; gap: 10px; }
.lx-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.lx-row-ic, .lx-card-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--accent); flex-shrink: 0; box-shadow: 0 10px 22px -12px var(--accent); }
.lx-row-body { flex: 1; min-width: 0; }
.lx-row-body strong { display: block; color: #fff; }
.lx-row-body small { color: #9fb0d0; font-size: 13px; }
.lx-note { font-size: 12.5px; color: #7f93b8; }
.lx-soon { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.lx-card { display: flex; flex-direction: column; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); transition: border-color .2s, background .2s; }
.lx-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: rgba(255,255,255,.05); }
.lx-card .lx-card-ic { margin-bottom: 14px; }
.lx-card strong { color: #fff; font-size: 1.02rem; }
.lx-card small { color: #8fa2c6; font-size: 13px; line-height: 1.5; margin: 6px 0 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lx-card form { display: block; }
.lx-bell { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 9px 12px; border-radius: 12px; font: inherit; font-size: 13.5px; font-weight: 700; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); cursor: pointer; transition: background .15s, border-color .15s; }
.lx-bell:hover { background: color-mix(in srgb, var(--accent) 30%, transparent); border-color: var(--accent); }
.lx-bell .icon { width: 16px; height: 16px; }
.lx-bell.is-on { cursor: default; color: #6ee7b7; background: rgba(16,185,129,.1); border-color: rgba(52,211,153,.3); }
.lx-card.is-on { border-color: rgba(52,211,153,.25); }
@media (max-width: 720px) {
  .lx-hero .btn { width: 100%; justify-content: center; }
  .lx-sec-head p { margin-left: 0; flex-basis: 100%; }
  .lx-row { flex-wrap: wrap; }
  .lx-row .btn { margin-left: 60px; }
  .lx-soon { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lx-card { padding: 14px; }
  .lx-card small { -webkit-line-clamp: 2; }
}

/* ── Add-an-app wizard (/apps/add) ─────────────────────────────────── */
.wiz { max-width: 780px; margin: 0 auto; }
.wiz-head { text-align: center; margin-bottom: 26px; }
.wiz-back { display: inline-flex; align-items: center; gap: 6px; color: #9fb0d0; font-size: 13.5px; font-weight: 700; margin-bottom: 18px; }
.wiz-back:hover { color: #fff; }
.wiz-title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin: 0; }
.wiz-steps { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; margin: 0 0 22px; font-size: 13px; font-weight: 700; color: #6d80a6; flex-wrap: wrap; }
.wiz-steps li { display: flex; align-items: center; gap: 8px; }
.wiz-steps li + li::before { content: ""; width: 28px; height: 1.5px; background: rgba(255,255,255,.14); }
.wiz-steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.16); }
.wiz-steps .is-on { color: #fff; }
.wiz-steps .is-on span { background: var(--grad-blue); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.wiz-steps .is-done { color: #9fb0d0; }
.wiz-steps .is-done span { background: rgba(52,211,153,.18); border-color: rgba(52,211,153,.5); color: #6ee7b7; }
.wiz-card { background: var(--surface); color: var(--ink-2); border-radius: 26px; padding: 30px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); scroll-margin-top: 20px; }
.wiz-card .wiz-step + .wiz-step { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); }
.wiz-card.is-js .wiz-step + .wiz-step { margin-top: 0; padding-top: 0; border-top: 0; }
.wiz-h { font-size: 1.3rem; color: var(--ink); margin: 0 0 4px; }
.wiz-lead { color: var(--muted); margin: 0 0 20px; font-size: 14.5px; }
.wiz-apps { display: grid; gap: 10px; }
.wiz-apps.shake { animation: wiz-shake .4s; }
@keyframes wiz-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.wiz-app { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1.5px solid var(--border-2); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.wiz-app:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.wiz-app input { position: absolute; opacity: 0; pointer-events: none; }
.wiz-app:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.wiz-app:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.wiz-app.is-added { cursor: default; opacity: .6; }
.wiz-app-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--accent, var(--blue-500)); flex-shrink: 0; box-shadow: 0 10px 22px -12px var(--accent); }
.wiz-app-body { flex: 1; min-width: 0; }
.wiz-app-body strong { display: block; color: var(--ink); font-size: 15.5px; }
.wiz-app-body small { color: var(--muted); font-size: 13px; }
.wiz-app-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 99px; background: var(--success-bg); color: var(--success); }
.wiz-app.is-added .wiz-app-tag { background: var(--surface-2); color: var(--muted); }
.wiz-app-check { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border-2); color: transparent; flex-shrink: 0; }
.wiz-app-check .icon { width: 14px; height: 14px; }
.wiz-app:has(input:checked) .wiz-app-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.wiz-soon { margin-top: 26px; padding: 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.wiz-soon-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.wiz-soon-h .icon { width: 16px; height: 16px; color: var(--blue-500); }
.wiz-soon-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.wiz-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--border-2); font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.wiz-chip input { position: absolute; opacity: 0; pointer-events: none; }
.wiz-chip-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent); }
.wiz-chip-ic .icon { width: 14px; height: 14px; }
.wiz-chip-bell { display: none; color: var(--accent); }
.wiz-chip-bell .icon { width: 14px; height: 14px; }
.wiz-chip:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); }
.wiz-chip:has(input:checked) .wiz-chip-bell { display: inline-flex; }
.wiz-chip:has(input:disabled) { cursor: default; }
.wiz-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.wiz-review { display: grid; gap: 18px; }
.wiz-review-app { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--blue-50); border: 1px solid var(--blue-100); }
.wiz-review-app small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.wiz-review-app strong { color: var(--ink); font-size: 1.1rem; }
.wiz-review dl { margin: 0; display: grid; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.wiz-review dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 16px; }
.wiz-review dl > div + div { border-top: 1px solid var(--border); }
.wiz-review dt { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.wiz-review dd { margin: 0; color: var(--ink); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.wiz-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.wiz-perks li { display: flex; gap: 8px; align-items: center; }
.wiz-perks .icon { color: var(--success); width: 17px; height: 17px; }
.wiz-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.wiz-nav [data-wiz-prev] { margin-right: auto; }
.wiz-card:not(.is-js) [data-wiz-next] { display: none; }
.wiz-card:not(.is-js) [data-wiz-submit] { display: inline-flex !important; }
.wiz-empty { text-align: center; padding: 44px 30px; }
.wiz-empty-ic { width: 64px; height: 64px; border-radius: 20px; display: inline-grid; place-items: center; color: #fff; background: var(--grad-blue); box-shadow: var(--glow); margin-bottom: 16px; }
.wiz-empty h2 { color: var(--ink); font-size: 1.35rem; }
@media (max-width: 720px) {
  .wiz-card { padding: 20px; border-radius: 22px; }
  .wiz-steps { font-size: 0; gap: 6px; }
  .wiz-steps .is-on { font-size: 13px; }
  .wiz-app { padding: 12px; gap: 12px; }
  .wiz-app-ic { width: 42px; height: 42px; }
  .wiz-app:not(.is-added) .wiz-app-tag { display: none; }
  .wiz-review dl > div { grid-template-columns: 1fr; gap: 2px; }
  .wiz-nav .btn { flex: 1; justify-content: center; }
}
.wiz-nav [hidden] { display: none !important; }

/* ── Products mega menu (public header) ────────────────────────────── */
.site-nav .nav-products .dropdown-menu.pm { left: 0; right: auto; width: 720px; padding: 0; border-radius: 20px; overflow: hidden; }
.pm-grid { display: grid; grid-template-columns: 1fr 1.05fr; }
.pm-col { padding: 16px; }
.pm-soon { background: var(--surface-2); border-left: 1px solid var(--border); }
.pm-h { display: flex; align-items: center; gap: 8px; margin: 2px 6px 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pm-h em { font-style: normal; letter-spacing: 0; font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; color: var(--blue-600); background: var(--blue-100); }
.site-nav .links .pm a.pm-app { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; color: var(--ink); font-weight: 400; font-size: 14px; background: none; transition: background .15s; }
.site-nav .links .pm a.pm-app + a.pm-app { margin-top: 4px; }
.site-nav .links .pm a.pm-app:hover { background: color-mix(in srgb, var(--accent) 9%, #fff); color: var(--ink); }
.pm-app-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: var(--accent); box-shadow: 0 10px 22px -12px var(--accent); }
.site-nav .nav-products .pm-app-ic .icon { width: 22px; height: 22px; }
.pm-app-txt { flex: 1; min-width: 0; }
.pm-app-txt b { display: block; font-size: 14.5px; color: var(--ink); }
.pm-app-txt small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.pm-go { color: var(--muted-2); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.site-nav .links .pm a.pm-app:hover .pm-go { opacity: 1; transform: none; color: var(--accent); }
.pm-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.site-nav .links .pm a.pm-chip { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 8px; border-radius: 11px; color: var(--ink-2); font-weight: 600; font-size: 13px; background: none; }
.site-nav .links .pm a.pm-chip:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.pm-chip > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-chip-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: var(--accent); }
.site-nav .nav-products .pm-chip-ic .icon { width: 14px; height: 14px; }
.pm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border); background: linear-gradient(90deg, var(--blue-50), #fff); font-size: 13px; color: var(--ink-2); font-weight: 600; }
.pm-foot > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.site-nav .nav-products .pm-foot .icon { width: 15px; height: 15px; color: var(--blue-500); }
.site-nav .links .pm .pm-foot a { width: auto; flex: none; margin: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; color: var(--blue-600); font-weight: 800; font-size: 13px; background: none; }
.site-nav .links .pm .pm-foot a:hover { background: var(--blue-100); color: var(--blue-700); }
@media (max-width: 960px) {
  body.nav-open .site-nav .inner { flex-wrap: wrap; height: auto; min-height: 70px; row-gap: 0; }
  body.nav-open .site-nav .nav-toggle { order: 1; }
  body.nav-open .site-nav .links { position: static; order: 2; flex-basis: 100%; margin: 0 -16px; padding: 8px 16px 12px; max-height: calc(100vh - 150px); overflow-y: auto; }
  body.nav-open .site-nav .cta { position: static; order: 3; flex-basis: 100%; margin: 0 -16px; padding: 0 16px 16px; }
  body.nav-open .site-nav .cta .btn { flex: 1; justify-content: center; }
  .site-nav .nav-products .dropdown-menu.pm { width: auto; margin-top: 6px; border-radius: 16px; }
  .pm-grid { grid-template-columns: 1fr; }
  .pm-soon { border-left: 0; border-top: 1px solid var(--border); }
  .pm-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pm-app-txt small { -webkit-line-clamp: 1; }
}
@media (max-width: 480px) { .pm-chips { grid-template-columns: 1fr 1fr; } .site-nav .links .pm a.pm-chip { gap: 7px; padding: 6px; font-size: 12.5px; } .pm-chip-ic { width: 24px; height: 24px; border-radius: 8px; } .pm-col { padding: 12px; } }
@media (max-width: 480px) { .pm-foot { flex-wrap: wrap; padding: 10px 14px; gap: 4px 12px; } .site-nav .links .pm .pm-foot a { padding: 6px 0; } .pm-chip > span:last-child { white-space: normal; line-height: 1.2; } }

/* ── Country support (sign-up notice, request page) ─────────────────── */
.su-country { margin: -4px 0 16px; padding: 14px; border-radius: 14px; background: var(--warning-bg); border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent); }
.su-country-head { display: flex; gap: 10px; margin-bottom: 10px; }
.su-country-head > .icon { color: var(--warning); width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.su-country-head strong { color: var(--ink); }
.su-country-head p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.su-country .field { margin-bottom: 10px; }
.cr-points h3 { font-size: 1rem; margin: 10px 0 4px; }
.lx-country { margin-bottom: 28px; }

/* ── Phones: app top bar and shared layout (WRS, POS, LPG, admin) ───── */
.show-xs, .show-sm { display: none !important; }
@media (max-width: 720px) {
  .show-sm { display: grid !important; }
  .topbar { gap: 6px; padding: 0 10px; }
  .topbar-actions { gap: 4px; min-width: 0; }
  .topbar-actions .icon-btn, .topbar .menu-toggle { width: 36px; height: 36px; }
  .topbar-actions > .btn { padding: 0 10px; height: 36px; margin-left: 0 !important; }
  /* POS / LPG search becomes an icon that opens Ctrl+K search */
  .topbar-search.gsearch-open { display: grid !important; flex: 0 0 36px; max-width: 36px; height: 36px; padding: 0; place-items: center; border: 0; background: none; }
  .topbar-search.gsearch-open .gsearch-fake, .topbar-search.gsearch-open kbd { display: none; }
  .topbar-search.gsearch-open .input-group > .icon { position: static; }
  .branch-switch .select { max-width: 118px; height: 34px; font-size: 12.5px; padding-left: 8px; }
  .dropdown-menu { max-width: calc(100vw - 20px); }
  .notif-menu, .switcher-menu { width: calc(100vw - 20px) !important; }
  .content { padding-left: 14px; padding-right: 14px; }
  .page-header { flex-wrap: wrap; gap: 10px; }
  .page-actions { flex-wrap: wrap; width: 100%; }
  .page-actions .btn { flex: 1 1 auto; justify-content: center; }
  .toolbar { flex-wrap: wrap; }
  .toolbar > * { flex: 1 1 160px; min-width: 0; max-width: none !important; }
  .card-header { flex-wrap: wrap; gap: 8px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .stat-card .stat-value { font-size: 1.25rem; overflow-wrap: anywhere; }
  .grid-2, .grid-3, .grid-main-side { grid-template-columns: minmax(0, 1fr) !important; }
  .modal { width: calc(100vw - 16px); max-width: calc(100vw - 16px); }
  .chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .table-wrap { max-width: 100%; }
  img, video, canvas, svg { max-width: 100%; }
}
@media (max-width: 540px) {
  .hide-xs { display: none !important; }
  .show-xs { display: flex !important; }
}

/* WRS → Online Shop settings */
.shop-url { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 17px; font-weight: 700; word-break: break-all; }
.shop-url a { color: var(--blue-600); text-decoration: none; }
.shop-stats { display: flex; gap: 18px; }
.shop-stats div { display: flex; flex-direction: column; align-items: flex-end; }
.shop-stats strong { font-size: 22px; line-height: 1.1; }
.shop-stats span { font-size: 12px; color: var(--muted); }
.shop-slug { max-width: none; }
.shop-slug > span { padding: 0 2px 0 12px; white-space: nowrap; }
.shop-slug .input { padding-left: 4px; flex: 1; min-width: 0; }
.sub-card { border: 1.5px dashed var(--border-2); }
.sub-card.is-on { border: 1.5px solid var(--success, #16a34a); }
.sub-domain { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 600; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; word-break: break-all; margin-bottom: 10px; }
.ocs-owner.is-on { border: 1.5px solid var(--success, #16a34a); }
.ap { position: relative; }
.ap-search { position: relative; }
.ap-search > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.ap-search .input { padding-left: 36px; }
.ap-results { position: absolute; left: 0; right: 0; z-index: 30; margin-top: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 14px 30px rgba(13,27,54,.14); max-height: 300px; overflow: auto; }
.ap-res { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; text-align: left; font: inherit; font-size: 14px; color: inherit; cursor: pointer; }
.ap-res:hover, .ap-res:focus-visible { background: var(--blue-50); outline: none; }
.ap-res-kind { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0; }
.ap-none { padding: 10px 12px; margin: 0; }
.ap-list { display: grid; gap: 8px; margin-top: 10px; }
.ap-empty { margin: 8px 0 0; }
.ap-city { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.ap-city-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ap-city-title { display: flex; gap: 6px; align-items: center; min-width: 0; font-size: 14px; }
.ap-city-title .icon { width: 15px; height: 15px; color: var(--blue-600); flex-shrink: 0; }
.ap-mode { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0; font-size: 13px; }
.ap-mode label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.ap-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--blue-50); color: var(--blue-700, #1d4ed8); border-radius: 99px; padding: 3px 4px 3px 10px; font-size: 12.5px; font-weight: 600; }
.ap-chip button { border: 0; background: none; cursor: pointer; color: inherit; font-size: 15px; line-height: 1; padding: 0 5px; }
.ap-panel { margin-top: 8px; border-top: 1px dashed var(--border); padding-top: 8px; }
.ap-panel-bar { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.ap-panel-bar .input { flex: 1; min-width: 0; }
.ap-brgys { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 10px; max-height: 260px; overflow: auto; padding: 2px; }
.ap-brgy { display: flex; gap: 6px; align-items: center; font-size: 13px; padding: 3px 0; cursor: pointer; }
.ocs-owner .card-header h3 { display: flex; gap: 6px; align-items: center; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); }
.radio-card input { margin-top: 3px; }
.radio-card small { display: block; color: var(--muted); font-size: 12.5px; }
.slide-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); overflow: hidden; }
.slide-row.is-off { opacity: .6; }
.slide-thumb { width: 100%; height: 100%; min-height: 150px; object-fit: cover; aspect-ratio: 8 / 3; background: var(--surface-2); }
.slide-size { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--blue-50); color: var(--ink); }
.slide-size > .icon { color: var(--blue-600); flex-shrink: 0; margin-top: 2px; }
.slide-preview img { width: 100%; aspect-ratio: 8 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.pay-opt small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.pay-opt.is-soon { cursor: default; background: var(--surface-2); }
.pay-opt.is-soon strong { color: var(--muted); }
.pay-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); flex-shrink: 0; }
.pay-opt.is-soon .pay-ic { background: var(--border); color: var(--muted); }
.section-label { display: flex; gap: 6px; align-items: center; padding: 12px 18px 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.shop-pthumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex-shrink: 0; }
@media (max-width: 720px) { .slide-row { grid-template-columns: 1fr; } .shop-stats { gap: 12px; } .shop-stats div { align-items: flex-start; } }

/* Refer & earn dashboard */
.ref-wrap { max-width: 1180px; margin: 0 auto; }
.ref-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: center; background: var(--grad-navy, linear-gradient(135deg, #081330, #173067)); color: #dfe7f7; border-radius: var(--radius-xl); padding: 28px; }
.ref-hero h1 { color: #fff; margin: 8px 0; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; }
.ref-hero p { margin: 0; color: #b9c6e0; }
.ref-kicker { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 13px; color: var(--cyan-300); text-transform: uppercase; letter-spacing: .06em; }
.ref-link-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 18px; }
.ref-link { display: flex; gap: 8px; margin-top: 6px; }
.ref-link .input { flex: 1; min-width: 0; font-weight: 600; }
.ref-share { display: flex; flex-wrap: wrap; gap: 6px; }
.ref-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ref-methods input { position: absolute; opacity: 0; pointer-events: none; }
.ref-methods span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1.5px solid var(--border); border-radius: 12px; font-weight: 600; font-size: 13px; cursor: pointer; text-align: center; }
.ref-methods input:checked + span { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); }
.ref-methods input:focus-visible + span { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.ref-steps { padding-left: 18px; margin: 0 0 10px; display: grid; gap: 8px; }
.su-ref summary { cursor: pointer; color: var(--blue-600); font-weight: 600; }
@media (max-width: 860px) { .ref-hero { grid-template-columns: 1fr; padding: 20px; } }
.ref-methods span { color: var(--ink-2); background: var(--surface); }
.ref-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--warning-bg); color: #7a4b00; font-size: 13.5px; line-height: 1.45; margin-top: 4px; }
.ref-warn .icon { color: var(--warning); flex-shrink: 0; margin-top: 2px; }

/* Refer & earn dashboard (v2) */
.rf { max-width: 1200px; margin: 0 auto; }
.rf h3 { font-size: 17px; margin: 0 0 14px; }
.rf-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; padding: 28px; border-radius: var(--radius-xl); color: #dfe7f7;
  background: radial-gradient(circle at 10% 0%, rgba(251,191,36,.22), transparent 45%), radial-gradient(circle at 100% 100%, rgba(34,197,94,.22), transparent 50%), linear-gradient(150deg, #10224f, #081330 70%);
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.rf-kicker { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; font-size: 12.5px; color: #fde68a; text-transform: uppercase; letter-spacing: .1em; }
.rf-hero h1 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 6px 0 14px; }
.rf-earned span { display: block; font-size: 13px; color: #9fb0d3; font-weight: 600; }
.rf-earned b { display: block; font-size: clamp(40px, 5.5vw, 58px); line-height: 1.05; letter-spacing: -.03em;
  background: linear-gradient(90deg, #fde68a, #fbbf24 45%, #4ade80); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rf-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.rf-mini div { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.rf-mini span { display: block; font-size: 12px; color: #9fb0d3; }
.rf-mini b { display: block; font-size: 17px; color: #fff; margin-top: 2px; white-space: nowrap; }
.rf-next { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); font-size: 13.5px; line-height: 1.45; color: #d1fae5; }
.rf-next .icon { color: #4ade80; flex-shrink: 0; margin-top: 1px; }
.rf-next strong { color: #fff; }
.rf-next em { font-style: normal; color: #fde68a; font-weight: 700; }
.rf-share { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.rf-share-top { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; }
.rf-qr { width: 132px; height: 132px; border-radius: 16px; border: 1px solid var(--border); padding: 6px; background: #fff; }
.rf-qr svg { width: 100%; height: 100%; display: block; }
.rf-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rf-link { display: flex; gap: 8px; margin-top: 6px; }
.rf-link .input { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.rf-code { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.rf-code b { font-size: 20px; letter-spacing: .06em; color: var(--blue-700); }
.rf-share-btns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rf-sb { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.rf-sb .icon { width: 20px; height: 20px; color: var(--c); }
.rf-sb:hover { border-color: var(--c); background: #fff; }
.rf-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.rf-day { text-align: center; padding: 10px 4px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #b9c6e0; }
.rf-day span { display: block; font-size: 12px; }
.rf-day b { display: block; font-size: 18px; color: #fff; }
.rf-day em { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; min-height: 14px; }
.rf-day.cut { border-color: rgba(251,191,36,.6); }
.rf-day.cut em { color: #fbbf24; }
.rf-day.pay { background: linear-gradient(160deg, #16a34a, #0f766e); border-color: transparent; }
.rf-day.pay em { color: #ecfdf5; }
.rf-day.today { box-shadow: 0 0 0 2px #4a95ff inset; }
.rf-day.today em { color: #93c5fd; }
.rf-day.pay.today em { color: #ecfdf5; }
.rf-day.cut.today em { color: #fbbf24; }
.rf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; margin-top: 18px; align-items: start; }
.rf-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rf-card { padding: 20px; }
.rf-row2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
.rf-funnel { display: grid; gap: 14px; }
.rf-fs-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; }
.rf-fs-top span { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }
.rf-fs-top .icon { width: 16px; height: 16px; }
.rf-fs-top b { font-size: 20px; }
.rf-bar { height: 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin-top: 6px; }
.rf-bar i { display: block; height: 100%; border-radius: 99px; }
.rf-fs small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.rf-rates .rf-rate { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 14px; font-weight: 600; }
.rf-rates .rf-rate small { color: var(--muted); font-weight: 500; }
.rf-rates .rf-rate b { font-size: 24px; color: #16a34a; letter-spacing: -.02em; white-space: nowrap; }
.rf-rates p { margin-top: 12px; }
.rf-tabbar { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.rf-tabbar button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 10px; background: none; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.rf-tabbar button em { font-style: normal; font-size: 12px; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); }
.rf-tabbar button.on { background: var(--blue-50); color: var(--blue-700); }
.rf-tabbar button.on em { background: var(--blue-100); }
.rf-list { list-style: none; margin: 0; padding: 4px 0; }
.rf-list li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.rf-list li:last-child { border-bottom: 0; }
.rf-list b { display: block; font-size: 14.5px; }
.rf-list small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.rf-av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-weight: 800; background: var(--blue-50); color: var(--blue-700); }
.rf-av.rf-ok { background: #dcfce7; color: #15803d; }
.rf-av.rf-bad { background: var(--danger-bg); color: var(--danger); }
.rf-av.rf-wait { background: var(--warning-bg); color: var(--warning); }
.rf-av .icon { width: 18px; height: 18px; }
.rf-amt { min-width: 92px; text-align: right; white-space: nowrap; }
.rf-empty { text-align: center; padding: 34px 20px; }
.rf-empty-ic { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.rf-empty b { display: block; font-size: 16px; }
.rf-empty p { color: var(--muted); font-size: 14px; max-width: 380px; margin: 6px auto 14px; }
.rf-acct { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.rf-acct-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #dcfce7; color: #15803d; flex-shrink: 0; }
.rf-acct > div { flex: 1; min-width: 0; }
.rf-acct b, .rf-acct span, .rf-acct small { display: block; }
.rf-acct span { font-size: 14px; }
.rf-acct small { font-size: 12.5px; color: var(--muted); }
.rf-msg { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 10px; }
.rf-msg p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.rf-how summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.rf-how summary::-webkit-details-marker { display: none; }
.rf-how[open] summary .icon { transform: rotate(180deg); }
@media (max-width: 1000px) { .rf-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .rf-hero { grid-template-columns: 1fr; padding: 20px; } .rf-row2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .rf-share-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .rf-share-info { width: 100%; }
  .rf-code { justify-content: center; }
  .rf-share-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rf-mini b { font-size: 15px; }
  .rf-week { gap: 4px; }
  .rf-day { padding: 8px 2px; }
  .rf-day em { font-size: 9px; letter-spacing: 0; }
  .rf-list li { flex-wrap: wrap; padding: 12px 14px; }
  .rf-amt { min-width: 0; margin-left: auto; }
}
.rf .card, .rf .rf-share { color: var(--ink); }
.rf .rf-rate span { color: var(--ink); }
.rf-list .grow { flex: 1 1 auto; min-width: 0; }
