/* Rapple Distributor Portal — design system
   Ink #141414/#26241F · Gold #C6A766/#A88848/#E5CD92 · Ivory #FAF8F2 · Line #E7E1D3
   Marcellus (headings) + Figtree (body). Mobile first. */

:root {
  --black: #141414; --ink: #26241F;
  --gold: #C6A766; --gold-deep: #A88848; --gold-light: #E5CD92; --gold-pale: #F0E6CF;
  --grad: linear-gradient(135deg, #A88848 0%, #E5CD92 45%, #C6A766 70%, #A88848 100%);
  --bg: #FAF8F2; --card: #FFFFFF; --card-2: #F6F2E8; --line: #E7E1D3; --line-2: #D9D1BE;
  --text: #141414; --muted: #6B665B; --soft: #8A8476;
  --ok: #2F6B3B; --ok-bg: #E4EFE5; --warn: #7A5E12; --warn-bg: #F6EDD3; --bad: #A1453A; --bad-bg: #F6E3E0; --info: #2F5876; --info-bg: #E2ECF3;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,20,20,.04), 0 6px 20px rgba(20,20,20,.05);
  --shadow-lg: 0 10px 40px rgba(20,20,20,.12);
  --top-h: 58px; --tab-h: 64px;
  --focus: 0 0 0 3px rgba(198,167,102,.55);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #100F0D; --card: #1A1916; --card-2: #22201C; --line: #2E2B25; --line-2: #3A362E;
  --text: #F2EEE4; --muted: #ADA695; --soft: #8C8677;
  --ok: #8FCB9A; --ok-bg: #1C2B1F; --warn: #E3C77A; --warn-bg: #2D2616; --bad: #EE9C90; --bad-bg: #2E1B18; --info: #9CC3E0; --info-bg: #182530;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: Marcellus, Georgia, serif; font-weight: 400; line-height: 1.2; margin: 0 0 .4em; letter-spacing: .1px; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
p { margin: 0 0 .8em; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); } .soft { color: var(--soft); }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .3px; }
.pre { white-space: pre-line; }
.block { display: block; }
.center { text-align: center; } .center-block { display: block; text-align: center; margin: 10px auto 0; }
.mt { margin-top: 16px; }
.grow { flex: 1 1 auto; min-width: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--black); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.gold-text { color: var(--gold-deep); } :root[data-theme="dark"] .gold-text { color: var(--gold-light); }
.ok-text { color: var(--ok); } .due { color: var(--bad); font-weight: 600; }
.ic { flex: 0 0 auto; vertical-align: middle; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 18px; border-radius: 11px; border: 1px solid transparent; font: 600 14.5px/1.1 Figtree, sans-serif; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--grad); background-size: 140% 140%; color: var(--black); box-shadow: 0 2px 10px rgba(168,136,72,.28); }
.btn-gold:hover { background-position: 100% 0; box-shadow: 0 4px 18px rgba(168,136,72,.38); }
.btn-dark { background: var(--black); color: #fff; }
:root[data-theme="dark"] .btn-dark { background: var(--card-2); border-color: var(--line-2); }
.btn-dark:hover { background: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--card-2); }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { min-height: 50px; padding: 13px 22px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-text { background: none; border: 0; padding: 6px 2px; font: 600 14px Figtree, sans-serif; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.btn-text.danger, .danger { color: var(--bad); text-decoration-color: currentColor; }
.link { font-weight: 600; text-decoration: none; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 4px; }
:root[data-theme="dark"] .link { color: var(--gold-light); }
.link:hover { text-decoration: underline; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn-line { border: 1px solid var(--line-2); width: 36px; height: 36px; color: var(--muted); background: var(--card); }
.icon-btn-line:hover { color: var(--text); background: var(--card-2); }
.icon-btn-line.is-on { color: var(--gold-deep); border-color: var(--gold); background: var(--gold-pale); }
:root[data-theme="dark"] .icon-btn-line.is-on { background: #2d261a; color: var(--gold-light); }
.dot-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--black); font: 700 11px/18px Figtree, sans-serif; text-align: center; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(20,20,20,.96); color: #fff; backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid rgba(198,167,102,.18); }
.topbar-in { height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px; max-width: 1480px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; }
.logo { width: 118px; height: auto; display: block; }
.brand-sub { font: 500 11px/1 Figtree, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-light); border-left: 1px solid rgba(255,255,255,.2); padding-left: 10px; white-space: nowrap; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
@media (max-width: 459px) { .brand-sub { display: none; } .logo { width: 108px; } }
.top-link { white-space: nowrap; }
.filter-more { display: contents; }
.filter-more > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; background: var(--card); }
.filter-more[open] > summary { background: var(--card-2); }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.filter-grid select { min-height: 40px; padding: 8px 10px; font-size: 14px; }
@media (max-width: 759px) { .filters .search-in { flex: 1 1 0; order: 0; } .filters > .btn { order: 1; } .filter-more { display: block; flex: 1 1 100%; order: 2; } .filter-more[open] .filter-grid { margin-top: 8px; } }
@media (min-width: 760px) { .filter-more > summary { display: none; } .filter-grid { display: flex; flex: 3 1 480px; } .filter-grid select { flex: 1 1 0; } }
.top-link { color: #fff; text-decoration: none; font-weight: 600; padding: 8px 12px; }
.top-search { display: none; }
.avatar { list-style: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--black); font-weight: 700; cursor: pointer; margin-left: 6px; }
.avatar::-webkit-details-marker { display: none; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: 46px; width: 260px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; animation: pop .16s ease; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px; border-radius: 9px; border: 0; background: none; color: inherit; font: 500 14px Figtree, sans-serif; text-decoration: none; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--card-2); }
.menu-pop form { margin: 0; }
.menu-head { padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-head strong { display: block; } .menu-head span { font-size: 12.5px; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- shell ---------- */
.shell { max-width: 1480px; margin: 0 auto; }
.sidenav { display: none; }
.content { min-width: 0; padding-bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); }
.page { padding: 16px; max-width: 1180px; margin: 0 auto; animation: fadeUp .22s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(20,20,20,.97); border-top: 1px solid rgba(198,167,102,.2); backdrop-filter: blur(10px); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #A9A396; text-decoration: none; font: 600 11px Figtree, sans-serif; }
.tabbar a.on { color: var(--gold-light); }
.tabbar a.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
.tab-dot { position: absolute; top: 10px; left: 55%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13.5px; margin-bottom: 10px; }
.back:hover { color: var(--text); }

@media (min-width: 960px) {
  .top-search { display: flex; align-items: center; gap: 8px; margin-left: 28px; flex: 0 1 420px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 0 12px; color: #bdb6a6; }
  .top-search input { flex: 1; background: none; border: 0; color: #fff; font: 14px Figtree, sans-serif; padding: 9px 0; outline: none; }
  .top-search:focus-within { border-color: var(--gold); }
  .top-actions a[aria-label="Search"] { display: none; }
  .shell { display: grid; grid-template-columns: 236px 1fr; }
  .sidenav { display: block; position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; border-right: 1px solid var(--line); padding: 14px 10px 30px; }
  .sidenav nav { display: flex; flex-direction: column; gap: 1px; }
  .sidenav a { display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; }
  .sidenav a:hover { background: var(--card-2); color: var(--text); }
  .sidenav a.on { background: var(--black); color: #fff; }
  .sidenav a.on .ic { color: var(--gold); }
  :root[data-theme="dark"] .sidenav a.on { background: var(--card-2); }
  .nav-group { font: 700 10.5px Figtree, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: var(--soft); padding: 16px 11px 6px; }
  .nav-wa { margin-top: 16px; border: 1px solid var(--line); }
  .tabbar { display: none; }
  .content { padding-bottom: 40px; }
  .page { padding: 24px 28px; }
  h1 { font-size: 30px; }
}
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: var(--black); font: 700 11px/20px Figtree, sans-serif; text-align: center; }

/* ---------- hero bands ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(90% 120% at 88% -20%, rgba(229,205,146,.34) 0%, rgba(198,167,102,.12) 35%, transparent 62%),
  radial-gradient(60% 80% at 0% 120%, rgba(168,136,72,.18), transparent 60%), #141414; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(198,167,102,.5), transparent); }
.hero-in { max-width: 1180px; margin: 0 auto; padding: 22px 16px 24px; display: grid; gap: 16px; }
.hero h1 { color: #fff; font-size: 27px; margin-bottom: 4px; }
.hero-sub { color: #CFC8B8; margin: 0; }
.eyebrow { font: 700 11px Figtree, sans-serif; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold-light); margin: 0 0 8px; }
.eyebrow.dark { color: var(--gold-deep); }
.hero-kpi { background: rgba(255,255,255,.06); border: 1px solid rgba(229,205,146,.22); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 6px; backdrop-filter: blur(6px); }
.hero-kpi span { font-size: 12.5px; color: #CFC8B8; } .hero-kpi strong { font: 400 30px/1 Marcellus, serif; color: #fff; } .hero-kpi small { color: #CFC8B8; }
.hero-xl .hero-in { padding: 44px 16px 48px; }
.hero-xl h1 { font-size: 34px; max-width: 16ch; }
.hero-xl .hero-sub { font-size: 16.5px; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.link-light { color: #EDE6D6; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.glass { background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); border: 1px solid rgba(229,205,146,.28); border-radius: 18px; padding: 18px; max-width: 380px; }
.glass-label { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-light); }
.glass-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.14); color: #D9D2C2; }
.glass-row strong { color: #fff; font-weight: 600; }
.glass-row.total strong { font: 400 24px Marcellus, serif; color: var(--gold-light); }
.glass-note { font-size: 11.5px; color: #9D978A; margin: 10px 0 0; }
@media (min-width: 760px) {
  .hero-in { grid-template-columns: 1fr auto; align-items: end; padding: 30px 28px; }
  .hero-kpi { min-width: 300px; }
  .hero-xl .hero-in { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 80px 28px; }
  .hero-xl h1 { font-size: 50px; }
}

/* ---------- page head, primary action ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin: 2px 0 16px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; }
.page-action { display: flex; gap: 8px; align-items: center; }
.page-action form { margin: 0; }
.primary-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 16px; }
.primary-action form { margin: 0; }
@media (max-width: 559px) { .page-action { width: 100%; } .page-action > .btn, .page-action > form, .page-action > form .btn { width: 100%; } .primary-action > .btn { flex: 1 1 100%; } }

/* ---------- cards, kpis ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; }
.pad { padding: 16px; } .pad-x { padding-left: 16px; padding-right: 16px; }
.card-title { padding: 14px 16px 6px; margin: 0; font-size: 17px; }
.card-title h2 { margin: 0; font-size: 17px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row-wrap form { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { display: flex; flex-direction: column; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: border-color .2s, transform .2s; min-width: 0; }
a.kpi:hover { border-color: var(--gold); transform: translateY(-1px); }
.kpi-label { font: 600 11px Figtree, sans-serif; letter-spacing: .9px; text-transform: uppercase; color: var(--muted); }
.kpi-value { font: 400 23px/1.15 Marcellus, serif; overflow-wrap: anywhere; }
.kpi-sub { font-size: 12.5px; color: var(--muted); }
.kpi-gold { background: linear-gradient(160deg, var(--gold-pale), var(--card) 70%); border-color: rgba(198,167,102,.55); }
:root[data-theme="dark"] .kpi-gold { background: linear-gradient(160deg, #2A2418, var(--card) 70%); }
.kpi-bad { border-color: rgba(161,69,58,.45); }
@media (min-width: 960px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dash-grid { display: grid; gap: 14px; }
.dash-grid > * { min-width: 0; }
@media (min-width: 1060px) { .dash-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; } }

/* ---------- pills, badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 12px/1.5 Figtree, sans-serif; white-space: nowrap; vertical-align: middle; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-bg); color: var(--ok); } .pill-warn { background: var(--warn-bg); color: var(--warn); } .pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-info { background: var(--info-bg); color: var(--info); } .pill-neutral { background: var(--card-2); color: var(--muted); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font: 700 11px/1.6 Figtree, sans-serif; letter-spacing: .3px; }
.badge-in { background: var(--ok-bg); color: var(--ok); } .badge-soon { background: var(--info-bg); color: var(--info); } .badge-back { background: var(--warn-bg); color: var(--warn); }
.badge-gold { background: var(--grad); color: var(--black); }
.unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 7px; vertical-align: middle; }

/* ---------- flash ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 20px); transform: translateX(-50%); z-index: 99; box-shadow: var(--shadow-lg); animation: pop .16s ease; }
.flash { padding: 11px 14px; border-radius: 11px; margin: 0 0 14px; font-size: 14px; border: 1px solid transparent; }
.flash-ok { background: var(--ok-bg); color: var(--ok); } .flash-bad { background: var(--bad-bg); color: var(--bad); } .flash-info { background: var(--info-bg); color: var(--info); }
.flash a { color: inherit; font-weight: 700; }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0 0 6px; }
.list > li + li { border-top: 1px solid var(--line); }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
a.list-row:hover, button.list-row:hover { background: var(--card-2); }
.list-row strong { font-weight: 600; }
.list-row.unread strong { font-weight: 800; }
.list-end { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 600; }
.row-ic { display: flex; align-items: center; gap: 12px; }
.row-ic .ic { color: var(--gold-deep); }
.mini-list { margin: 6px 0; padding-left: 18px; font-size: 14px; }
.list-row.is-done p { text-decoration: line-through; color: var(--muted); }
@media (max-width: 559px) { .list-end { flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13.5px; } }

/* ---------- forms ---------- */
.stack { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label, fieldset legend.small { font: 600 12px Figtree, sans-serif; letter-spacing: .4px; color: var(--muted); }
.req { color: var(--gold-deep); }
input, select, textarea { width: 100%; font: 15px Figtree, sans-serif; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-height: 44px; transition: border-color .15s, box-shadow .15s; }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background: #13120F; }
input[type="color"] { padding: 4px; height: 44px; }
input[type="file"] { padding: 8px; font-size: 14px; }
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus); }
input[disabled], select[disabled], textarea[disabled] { opacity: .65; }
.hint { font-size: 12.5px; color: var(--soft); }
.err { color: var(--bad); font-size: 13px; font-weight: 600; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; accent-color: var(--gold-deep); flex: 0 0 auto; }
.check.indent { margin-left: 30px; }
.grid2, .grid3 { display: grid; gap: 12px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } }
.divider { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 13px; margin: 4px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.summary-title { font: 400 18px Marcellus, serif; cursor: pointer; display: flex; align-items: center; gap: 8px; }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; align-items: center; }
.filters select { flex: 1 1 140px; min-height: 40px; padding: 8px 10px; font-size: 14px; }
.filters .btn { flex: 0 0 auto; }
.search-in { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; background: var(--bg); color: var(--soft); }
.search-in input { border: 0; background: none; min-height: 40px; padding: 8px 0; box-shadow: none; }
.search-in:focus-within { border-color: var(--gold); box-shadow: var(--focus); }
@media (min-width: 760px) { .search-in { flex: 2 1 260px; } }

/* segmented tabs */
.seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 2px 16px; }
.seg::-webkit-scrollbar { display: none; }
.seg a { flex: 0 0 auto; padding: 7px 13px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 13.5px; color: var(--muted); border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; gap: 6px; }
.seg a.on { background: var(--black); color: #fff; border-color: var(--black); }
:root[data-theme="dark"] .seg a.on { background: var(--gold); color: var(--black); border-color: var(--gold); }
@media (min-width: 960px) { .seg { margin: 0 0 12px; padding: 2px 0; } }

/* ---------- product grid ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1200px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(198,167,102,.5); }
.pcard-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
.thumb-wrap { position: relative; }
.thumb { aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--soft); }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: opacity .3s; }
.thumb-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pcard-body { padding: 10px 12px 8px; display: grid; gap: 3px; }
.pcard-brand { font: 700 10.5px Figtree, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-deep); }
:root[data-theme="dark"] .pcard-brand { color: var(--gold); }
.pcard h3 { font: 600 14px/1.3 Figtree, sans-serif; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.price-pair { display: flex; flex-direction: column; margin-top: 2px; }
.price-pair strong { font-size: 17px; }
.price-pair span { font-size: 12px; }
.margin { justify-self: start; font: 700 11.5px Figtree, sans-serif; color: var(--ok); background: var(--ok-bg); padding: 1px 7px; border-radius: 6px; }
.pcard-price { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; font-size: 16px; }
.pcard-foot { display: flex; gap: 6px; padding: 0 10px 10px; align-items: center; margin-top: auto; }
.pcard-foot form { margin: 0; }
.thumb-sm { width: 56px; height: 56px; border-radius: 10px; flex: 0 0 auto; background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); color: var(--soft); }
.thumb-xs { width: 40px; height: 40px; border-radius: 8px; flex: 0 0 auto; background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.thumb-sm img, .thumb-xs img { width: 100%; height: 100%; object-fit: contain; }

/* skeleton shimmer */
.sk { background-color: var(--card-2); background-image: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
:root[data-theme="dark"] .sk { background-image: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.05) 50%, transparent 80%); }
.sk.loaded { animation: none; background-image: none; background-color: #fff; }
.sk img:not(.is-loaded) { opacity: 0; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* product detail */
.pdetail { display: grid; gap: 16px; }
@media (min-width: 900px) { .pdetail { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; } .gallery { position: sticky; top: calc(var(--top-h) + 16px); } }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gmain { grid-column: 1 / -1; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.gmain img, .gthumb img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.gthumb { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.pinfo h1 { font-size: 26px; margin: 4px 0; }
.price-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 14px 0; }
.price-panel > div { display: grid; gap: 2px; }
.price-panel > div:first-child { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.price-big { font: 400 26px/1.1 Marcellus, serif; }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
.qty-row label { font-weight: 600; font-size: 13px; color: var(--muted); }
.qty-row input { width: 78px; flex: 0 0 auto; text-align: center; }
.secondary-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 10px; }
.secondary-actions form { margin: 0; }
.inline-pop { position: relative; }
.pop-form { display: grid; gap: 8px; padding: 12px; margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); min-width: 240px; }
.crumbs { margin: 0; }
.prose { line-height: 1.65; }
.prose h2 { margin-top: 1.2em; } .prose ul, .prose ol { padding-left: 20px; }
.prose .lead { font-size: 17px; color: var(--muted); }

/* ---------- lines (basket, quotes, orders) ---------- */
.lines { list-style: none; margin: 0; padding: 0; }
.lines > li { display: grid; grid-template-columns: 56px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.lines > li:first-child { border-top: 0; }
.line-main { display: grid; gap: 2px; min-width: 0; }
.line-main a { text-decoration: none; }
.line-qty input { width: 70px; text-align: center; }
.line-total { font-weight: 700; white-space: nowrap; }
.lines-edit > li { grid-template-columns: 56px 1fr; }
.line-inputs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; }
.mini { display: grid; gap: 3px; }
.mini label { font: 600 11px Figtree, sans-serif; color: var(--muted); letter-spacing: .3px; }
.mini input { width: 116px; min-height: 40px; padding: 8px 10px; }
.mini input[type="number"] { width: 76px; }
.line-inputs .line-total { margin-left: auto; align-self: center; }
.warn-below { grid-column: 1 / -1; margin: 0; color: var(--bad); font-weight: 600; }
input.is-below { border-color: var(--bad); }
@media (min-width: 760px) { .lines-edit > li { grid-template-columns: 56px 1fr auto; } .line-inputs { grid-column: auto; flex-wrap: nowrap; } }
.lines-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.lines-total { display: flex; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); }
.summary .sum-row, .sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; }
.checkout-actions { display: grid; gap: 10px; margin-top: 12px; }
.totals { display: grid; gap: 6px; }
.totals > div { display: flex; justify-content: space-between; gap: 10px; }
.totals .grand { border-top: 1px solid var(--line); padding-top: 8px; font-size: 17px; }
.sticky-cta { position: sticky; bottom: calc(var(--tab-h) + 8px + env(safe-area-inset-bottom)); z-index: 5; margin: 14px 0; padding: 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-radius: 16px; }
@media (min-width: 960px) { .sticky-cta { bottom: 12px; max-width: 520px; margin-left: auto; } }

/* tables */
.qtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.qtable th { text-align: left; font: 600 11.5px Figtree, sans-serif; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.qtable td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.num { text-align: right; white-space: nowrap; }
@media (max-width: 639px) {
  .qtable thead { display: none; }
  .qtable tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .qtable td { border: 0; padding: 2px 0; text-align: left; }
  .qtable td:first-child { grid-column: 1 / -1; font-weight: 600; }
  .qtable td[data-label]:not(:first-child)::before { content: attr(data-label) " "; display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
}

/* ---------- dashboard bits ---------- */
.onboarding h2 { margin: 0; }
.bar { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; overflow: hidden; background: var(--card-2); display: block; margin: 8px 0; }
.bar::-webkit-progress-bar { background: var(--card-2); border-radius: 99px; }
.bar::-webkit-progress-value { background: var(--black); border-radius: 99px; transition: width .6s ease; }
.bar::-moz-progress-bar { background: var(--black); border-radius: 99px; }
:root[data-theme="dark"] .bar::-webkit-progress-value { background: var(--gold); }
.bar-gold::-webkit-progress-value { background: var(--grad); } .bar-gold::-moz-progress-bar { background: var(--grad); }
.hero .bar { background: rgba(255,255,255,.12); } .hero .bar::-webkit-progress-bar { background: rgba(255,255,255,.12); }
.bar-ok::-webkit-progress-value { background: var(--ok); } .bar-ok::-moz-progress-bar { background: var(--ok); }
.bar-bad::-webkit-progress-value { background: var(--bad); } .bar-bad::-moz-progress-bar { background: var(--bad); }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.checklist .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: 0 0 auto; }
.checklist li.done { color: var(--muted); } .checklist li.done span:last-child { text-decoration: line-through; }
.checklist li.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist a { font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 3px; }
@media (min-width: 760px) { .checklist { grid-template-columns: 1fr 1fr; } }
.action-list { list-style: none; margin: 0; padding: 4px 0 8px; }
.action-list li { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; }
.action-list li + li { border-top: 1px solid var(--line); }
.action-list div { display: grid; min-width: 0; } .action-list div span { font-size: 13px; color: var(--muted); }
.al-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--card-2); }
.al-warn { background: var(--warn-bg); color: var(--warn); } .al-ok { background: var(--ok-bg); color: var(--ok); }
.promo { display: grid; gap: 4px; padding: 10px 16px 14px; text-decoration: none; color: inherit; justify-items: start; }
.promo + .promo { border-top: 1px solid var(--line); }
.countdown { font-size: 12.5px; color: var(--bad); font-weight: 700; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-grid a { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 13.5px; background: var(--bg); }
.quick-grid a:hover { border-color: var(--gold); }
.quick-grid .ic { color: var(--gold-deep); }
.more-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .more-grid { grid-template-columns: 1fr 1fr; } }
.empty { text-align: center; padding: 36px 20px; background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--radius); margin-bottom: 14px; }
.empty .ic { color: var(--gold); margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 14px; }

/* pager */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0; }
.pager a, .pg-dis { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; background: var(--card); }
.pager a:hover { border-color: var(--gold); }
.pg-dis { opacity: .4; }
.pg-info { font-size: 13.5px; color: var(--muted); }

/* share / tools */
.share-card { display: grid; gap: 12px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-size: 13.5px; min-height: 38px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-row a, .tool-row button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); text-decoration: none; font: 600 13.5px Figtree, sans-serif; color: var(--text); cursor: pointer; }
.tool-row a:hover, .tool-row button:hover { border-color: var(--gold); }
.tool-row form { margin: 0; }

/* order */
.choice-grid { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 760px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice-body { display: grid; gap: 5px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color .15s, background .15s; height: 100%; }
.choice-body strong { font: 400 19px Marcellus, serif; }
.choice-body > span:last-child { font-size: 14px; color: var(--muted); }
.choice input:checked + .choice-body { border-color: var(--gold); background: linear-gradient(160deg, var(--gold-pale), var(--card) 60%); box-shadow: 0 4px 18px rgba(168,136,72,.18); }
:root[data-theme="dark"] .choice input:checked + .choice-body { background: linear-gradient(160deg, #2a2418, var(--card) 60%); }
.choice input:focus-visible + .choice-body { box-shadow: var(--focus); }
.mode-tag { justify-self: start; font: 700 10.5px Figtree, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; background: var(--black); color: var(--gold-light); padding: 3px 8px; border-radius: 6px; }
.choice-list { display: grid; gap: 8px; margin-top: 10px; }
.choice-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice-row input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--gold-deep); flex: 0 0 auto; }
.choice-row span { display: grid; }
.choice-row:has(input:checked) { border-color: var(--gold); background: var(--card-2); }
[data-mode][hidden] { display: none !important; }
.flow { display: grid; gap: 0; }
.flow-step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px 0; position: relative; }
.flow-step + .flow-step { border-top: 1px dashed var(--line-2); }
.flow-step > div { display: grid; gap: 2px; }
.flow-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--black); color: var(--gold-light); }
.flow-earn .flow-ic { background: var(--grad); color: var(--black); }
@media (min-width: 960px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 16px; } .flow-step + .flow-step { border-top: 0; border-left: 1px dashed var(--line-2); padding-left: 16px; } }
.stepper-track { list-style: none; display: flex; margin: 4px 0 16px; padding: 0; overflow-x: auto; scrollbar-width: none; }
.stepper-track li { flex: 1 0 74px; display: grid; justify-items: center; gap: 6px; position: relative; font-size: 11.5px; color: var(--soft); text-align: center; }
.stepper-track li::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--line-2); }
.stepper-track li:first-child::before { display: none; }
.stepper-track li.done::before { background: var(--gold); }
.stepper-track .dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-2); display: grid; place-items: center; }
.stepper-track li.done .dot { background: var(--gold); border-color: var(--gold); color: var(--black); }
.stepper-track li.current .lbl { color: var(--text); font-weight: 700; }
.pay-box { border-color: var(--gold); background: linear-gradient(160deg, var(--gold-pale), var(--card) 55%); }
:root[data-theme="dark"] .pay-box { background: linear-gradient(160deg, #2a2418, var(--card) 55%); }
.pay-grid { display: grid; gap: 10px; margin: 10px 0; }
.pay-grid > div { display: grid; }
@media (min-width: 640px) { .pay-grid { grid-template-columns: 1fr 1fr; } }
.timeline { list-style: none; margin: 0; padding: 4px 16px 14px 30px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 12px; bottom: 18px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; gap: 1px; padding: 8px 0; }
.timeline li::before { content: ""; position: absolute; left: -14px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--card); }
.timeline-simple { padding-left: 20px; display: grid; gap: 8px; }

/* commission / targets */
.chart-wrap { overflow-x: auto; }
.chart { width: 100%; min-width: 360px; height: auto; }
.chart .c-target { fill: var(--card-2); stroke: var(--line-2); }
.chart .c-actual { fill: var(--black); } :root[data-theme="dark"] .chart .c-actual { fill: var(--gold-light); }
.chart .c-hit { fill: var(--gold-deep); }
.chart text { font: 12px Figtree, sans-serif; fill: var(--muted); }
.chart-legend { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; } .lg-target { background: var(--card-2); border: 1px solid var(--line-2); } .lg-actual { background: var(--black); margin-left: 10px; }
.board { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 26px 1fr 1fr 44px; gap: 8px; align-items: center; font-size: 14px; }
.board li.me { font-weight: 700; } .board .bar { margin: 0; }
.rank { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); font-size: 12px; font-weight: 700; }
.board li.me .rank { background: var(--gold); color: var(--black); }
.calc-out { display: grid; gap: 4px; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--card-2); font-size: 14px; }
.calc-out strong { font: 400 22px Marcellus, serif; }
.ticks { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 7px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 13px; height: 7px; border-left: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(-45deg); }

/* clients, support */
.client-head { display: grid; gap: 12px; }
@media (min-width: 760px) { .client-head { grid-template-columns: 1fr auto; align-items: center; } }
.lead-new { border-left: 4px solid var(--gold); }
.lead .row-wrap { margin-top: 10px; }
.thread { display: grid; gap: 12px; }
.msg { display: grid; gap: 4px; justify-items: start; max-width: 88%; }
.msg.mine { justify-self: end; justify-items: end; }
.bubble { padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--card-2); line-height: 1.5; }
.msg.mine .bubble { background: var(--black); color: #fff; border-radius: 14px 14px 4px 14px; }
:root[data-theme="dark"] .msg.mine .bubble { background: #3a3122; }
.dl { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; overflow-wrap: anywhere; }
.file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.code { background: var(--card-2); border-radius: 10px; padding: 12px; overflow: auto; font: 12.5px/1.5 ui-monospace, Consolas, monospace; max-height: 520px; white-space: pre-wrap; word-break: break-word; }
.profile-grid { display: grid; gap: 0; }
.logo-preview { display: grid; place-items: center; min-height: 110px; border: 1px dashed var(--line-2); border-radius: 12px; margin-bottom: 12px; padding: 12px; background: #fff; }
.logo-preview img { max-height: 90px; width: auto; }
.territory-card h1 { font-size: 30px; margin: 4px 0; }
.group-title { margin: 20px 0 10px; }

/* resources / marketing */
.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .res-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.res { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; margin: 0; }
.res-thumb { aspect-ratio: 4/3; display: grid; place-items: center; color: var(--gold); overflow: hidden; }
.res-thumb img { width: 100%; height: 100%; object-fit: cover; }
.res-body { padding: 10px 12px; display: grid; gap: 3px; flex: 1; }
.res-body h3 { font: 600 14px/1.3 Figtree, sans-serif; margin: 0; }
.res-foot { padding: 0 12px 12px; }
.train .res-body { padding-top: 14px; }
.compose { display: grid; gap: 14px; }
@media (min-width: 900px) { .compose { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.compose-canvas { padding: 10px; }
.compose-canvas canvas { width: 100%; height: auto; display: block; border-radius: 8px; }
.promo-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .promo-grid { grid-template-columns: 1fr 1fr; } }
.promo-big { padding: 16px; }
.promo-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mini-products { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.mini-products a { display: flex; gap: 10px; align-items: center; text-decoration: none; font-size: 14px; }

/* application stepper */
.apply { padding-top: 16px; padding-bottom: 40px; }
.step legend { float: left; width: 100%; padding: 0; display: flex; align-items: center; gap: 10px; font: 400 20px Marcellus, serif; margin-bottom: 4px; }
.order-setup legend.summary-title, .card > fieldset > legend { float: left; width: 100%; padding: 0; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--black); color: var(--gold-light); display: grid; place-items: center; font: 700 14px Figtree, sans-serif; }
.step { display: grid; gap: 12px; }
.step-dots { display: none; }
.stepper.js .step-dots { display: flex; list-style: none; padding: 0; margin: 0 0 14px; gap: 4px; counter-reset: s; }
.stepper.js .step-dots li { flex: 1; font-size: 11px; color: var(--soft); text-align: center; padding-top: 10px; border-top: 3px solid var(--line-2); }
.stepper.js .step-dots li.on { color: var(--text); border-color: var(--gold); font-weight: 700; }
.stepper.js .step-dots li.done { border-color: var(--gold-deep); }
.stepper.js .step:not(.on) { display: none; }
.step-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 4px; }
.step-nav [data-step-next], .step-nav [data-step-submit] { margin-left: auto; }
.stepper.js .step-nav [data-step-submit] { display: none; }
.stepper.js.last .step-nav [data-step-submit] { display: inline-flex; }
.stepper.js.last .step-nav [data-step-next] { display: none; }
.terms-box { max-height: 220px; overflow: auto; padding: 12px; border-radius: 10px; background: var(--card-2); font-size: 14px; }
.sig-wrap { position: relative; border: 1px dashed var(--line-2); border-radius: 12px; background: #fff; touch-action: none; }
.sig-wrap canvas { width: 100%; height: 170px; display: block; border-radius: 12px; cursor: crosshair; }
.sig-clear { position: absolute; top: 8px; right: 8px; background: #fff; color: var(--black); }
.sig-img { max-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }

/* auth */
.auth { min-height: calc(100vh - var(--top-h) - 120px); display: grid; place-items: center; padding: 28px 16px; background: radial-gradient(70% 60% at 50% 0%, rgba(198,167,102,.18), transparent 70%); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 26px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 16px 0 0; font-size: 14px; }

/* ---------- public site ---------- */
.public-main { min-height: 60vh; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: 40px 16px; }
.section-head { margin-bottom: 20px; max-width: 640px; }
.section-head h2 { font-size: 28px; }
.section-head.light h2 { color: #fff; }
.benefits { display: grid; gap: 12px; }
@media (min-width: 700px) { .benefits { grid-template-columns: repeat(3, 1fr); gap: 16px; } .section { padding: 64px 28px; } .section-head h2 { font-size: 36px; } }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.benefit h3 { font-size: 19px; margin-top: 10px; }
.benefit p { color: var(--muted); margin: 0; font-size: 14.5px; }
.benefit-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--black); color: var(--gold-light); }
.band-ink { background: radial-gradient(80% 100% at 100% 0%, rgba(198,167,102,.2), transparent 60%), #141414; color: #E8E2D4; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { border: 1px solid rgba(229,205,146,.2); border-radius: var(--radius); padding: 18px; background: rgba(255,255,255,.03); }
.steps h3 { color: #fff; font-size: 20px; margin: 10px 0 6px; }
.steps p { color: #BDB6A6; margin: 0; }
.step-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--black); font-weight: 800; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.modes { display: grid; gap: 12px; }
@media (min-width: 760px) { .modes { grid-template-columns: 1fr 1fr; gap: 16px; } }
.mode-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--card); display: grid; gap: 6px; justify-items: start; }
.mode-card h3 { font-size: 24px; margin: 6px 0 0; }
.mode-card p { color: var(--muted); margin: 0; }
.mode-card-gold { border-color: rgba(198,167,102,.6); background: linear-gradient(160deg, var(--gold-pale), var(--card) 60%); }
:root[data-theme="dark"] .mode-card-gold { background: linear-gradient(160deg, #2a2418, var(--card) 60%); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font: 400 16px Marcellus, serif; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 14px 30px 14px 0; font-weight: 600; cursor: pointer; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; color: var(--gold-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 14px; color: var(--muted); }
.faq.card { padding: 4px 16px; }
.cta-band { display: grid; gap: 16px; align-items: center; background: radial-gradient(90% 140% at 100% 0%, rgba(229,205,146,.3), transparent 60%), #141414; color: #fff; border-radius: 22px; padding: 28px 22px; }
.cta-band h2 { color: #fff; font-size: 28px; } .cta-band p { color: #CFC8B8; margin: 0; }
@media (min-width: 760px) { .cta-band { grid-template-columns: 1fr auto; padding: 40px; } }
.site-foot { background: #141414; color: #9D978A; padding: 28px 0 90px; font-size: 13.5px; margin-top: 30px; }
.site-foot a { color: #E8E2D4; }
.logo-foot { width: 110px; margin-bottom: 12px; }
@media (min-width: 960px) { .site-foot { padding-bottom: 32px; } }
body.public .tabbar { display: none; }

/* ---------- client-facing (distributor branding) ---------- */
body.branded { --brand-soft: color-mix(in srgb, var(--brand) 14%, var(--card)); }
.b-top { position: sticky; top: 0; z-index: 30; background: var(--card); border-bottom: 1px solid var(--line); }
.b-top-in { max-width: 1180px; margin: 0 auto; height: 60px; padding: 0 12px 0 16px; display: flex; align-items: center; justify-content: space-between; }
.b-brand { text-decoration: none; display: flex; align-items: center; min-width: 0; }
.b-logo { max-height: 42px; width: auto; max-width: 180px; }
.b-name { font: 400 20px Marcellus, serif; }
.b-contact { display: flex; gap: 4px; }
.b-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.b-hero { background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, #000) 100%); color: var(--brand-ink); }
.b-hero-in { max-width: 1180px; margin: 0 auto; padding: 28px 16px; }
.b-hero h1 { color: var(--brand-ink); font-size: 28px; }
.b-hero p { opacity: .9; max-width: 60ch; }
.b-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.b-btn { background: var(--brand); color: var(--brand-ink); border: 1px solid transparent; }
.b-hero .b-btn { background: var(--brand-ink); color: var(--brand); }
.b-btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.b-main { min-height: 60vh; padding-bottom: 90px; }
.b-wrap { max-width: 1180px; margin: 0 auto; padding: 16px; }
.b-wrap.narrow { max-width: 760px; }
.b-foot { text-align: center; padding: 24px 16px 100px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }
.b-foot p { margin: 0 0 4px; }
.supplied { font-size: 12px; color: var(--soft); margin-top: 8px !important; }
.float-cta { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; text-align: center; padding: 15px; border-radius: 14px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-lg); }
@media (min-width: 760px) { .float-cta { left: auto; right: 24px; width: 300px; } }
.quote-doc { padding: 18px; }
.quote-head { display: grid; gap: 12px; margin-bottom: 12px; }
.q-logo { max-height: 56px; width: auto; }
.q-meta { display: grid; gap: 2px; font-size: 13.5px; justify-items: start; }
.q-title { font: 400 22px Marcellus, serif; }
@media (min-width: 640px) { .quote-head { grid-template-columns: 1fr auto; } .q-meta { justify-items: end; text-align: right; } }

/* ---------- print documents ---------- */
body.doc-page { background: #EDEAE2; color: #141414; }
:root[data-theme="dark"] body.doc-page { background: #0c0b0a; }
.doc-bar, .doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.doc-bar { position: sticky; top: 0; z-index: 5; justify-content: space-between; padding: 10px 16px; background: #141414; }
.doc-bar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.doc-actions { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #E7E1D3; }
.doc { max-width: 820px; margin: 16px auto 40px; background: #fff; color: #141414; padding: 28px 22px; border-radius: 6px; box-shadow: 0 6px 30px rgba(0,0,0,.08); --muted: #6B665B; --line: #E7E1D3; --card-2: #F6F2E8; --text: #141414; }
.doc-head { display: grid; gap: 14px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 3px solid var(--brand); }
.doc-logo { max-height: 64px; width: auto; max-width: 240px; margin-bottom: 8px; }
.doc-name { font: 400 24px Marcellus, serif; }
.doc-title h1 { font-size: 26px; margin: 0; }
@media (min-width: 640px) { .doc-head { grid-template-columns: 1fr auto; } .doc-title { text-align: right; } }
.doc-parties { display: grid; gap: 14px; margin-bottom: 18px; }
@media (min-width: 640px) { .doc-parties { grid-template-columns: 1fr 1fr; } }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 18px; }
.doc-table th { text-align: left; border-bottom: 2px solid #141414; padding: 8px; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.doc-table td { border-bottom: 1px solid #E7E1D3; padding: 8px; }
.doc-table tr.sec td { background: #F6F2E8; font-weight: 700; }
.doc-table tfoot td { border: 0; padding: 6px 8px; }
.doc-table tfoot .grand td { font-size: 17px; font-weight: 700; border-top: 2px solid #141414; }
.doc-bank { background: #F6F2E8; border-radius: 8px; padding: 12px; margin: 14px 0; }
.cover { min-height: 60vh; display: grid; align-content: center; justify-items: center; text-align: center; gap: 10px; border-bottom: 3px solid var(--brand); margin-bottom: 20px; }
.cover-logo { max-height: 120px; width: auto; }
.cover h1 { font-size: 38px; }
.cat-section h2 { border-left: 4px solid var(--brand); padding-left: 10px; margin: 22px 0 12px; }
.print-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .print-grid { grid-template-columns: repeat(3, 1fr); } }
.print-item { border: 1px solid #E7E1D3; border-radius: 8px; padding: 10px; display: grid; gap: 3px; break-inside: avoid; }
.print-item img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.print-price { font: 400 18px Marcellus, serif; color: #141414; }
.certificate { text-align: center; border: 10px double #C6A766; padding: 40px 20px; display: grid; gap: 8px; justify-items: center; }
.certificate h1 { font-size: 40px; margin: 10px 0; } .certificate h2 { font-size: 24px; }
.sig-block { display: grid; gap: 20px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #E7E1D3; }
@media (min-width: 640px) { .sig-block { grid-template-columns: 1fr 1fr; } }

@media print {
  @page { margin: 14mm; }
  body, body.doc-page { background: #fff !important; }
  .no-print, .doc-bar, .doc-actions, .topbar, .tabbar, .sidenav, .b-top, .b-foot, .float-cta, .b-contact { display: none !important; }
  .doc { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  .cover { min-height: 90vh; page-break-after: always; }
  .cat-section { break-before: auto; }
  .print-grid { grid-template-columns: repeat(3, 1fr); }
  a { text-decoration: none; }
  .card { box-shadow: none; }
}
/* Money and counts: Figtree with tabular figures (Marcellus zero reads like the letter O). */
.kpi-value, .price-big, .hero-kpi strong, .glass-row.total strong, .calc-out strong, .print-price { font-family: Figtree, system-ui, sans-serif; font-weight: 700; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.kpi-value { font-size: 22px; } .hero-kpi strong { font-size: 30px; } .price-big { font-size: 25px; }
.list-end, .num, .line-total { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
