/* ═══════════════════════════════════════════════════════════════════
   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; }

/* ── 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; } }
