/* =========================================================
   Mins London - Affiliate System  ·  refined professional theme
   Brand: navy #0e3564 (primary)  ·  terracotta #e17347 (accent, used sparingly)
   Compact, hairline-bordered, enterprise SaaS density.
   ========================================================= */
:root{
  --navy:#0e3564; --navy-2:#16467e; --navy-soft:#274a78;
  --terra:#e17347; --terra-2:#cf5f33; --terra-soft:#f0a98e;
  --ink:#1c2430; --ink-soft:#475063; --muted:#828c9c; --muted-2:#a3abb8;
  --bg:#f5f6f8; --panel:#ffffff; --line:#e6e8ee; --line-2:#eef0f4; --hover:#f8f9fb;
  --gold:#b7902f;
  --good:#1f9d6b; --good-bg:#e7f5ee; --warn:#b9791b; --warn-bg:#fbf1de;
  --bad:#cf4233; --bad-bg:#fbe9e6; --info-bg:#eaf0fb;
  --r-xs:5px; --r-sm:6px; --r:8px; --r-lg:11px; --r-xl:14px;
  --sh-sm:0 1px 1px rgba(16,40,80,.04);
  --sh:0 1px 2px rgba(16,40,80,.05),0 1px 1px rgba(16,40,80,.04);
  --sh-lg:0 8px 28px rgba(16,40,80,.10);
  --sans:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --serif:'Poppins',-apple-system,BlinkMacSystemFont,sans-serif;
  --maxw:1200px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--sans);color:var(--ink);background:var(--bg);
  font-size:13px;line-height:1.55;font-weight:400;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
i[data-lucide]{display:inline-flex;width:16px;height:16px}
svg.lucide{width:16px;height:16px;flex:none;vertical-align:middle;stroke-width:1.9}
h1,h2,h3,h4{margin:0;line-height:1.25;font-weight:600;letter-spacing:-.01em}
p{margin:0 0 1em}
.serif{font-family:var(--serif)}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.eyebrow{font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;font-weight:600;color:var(--terra-2)}
.muted{color:var(--muted)}
.center{text-align:center}
.brand-img{height:24px;width:auto;display:block}
.brand-img.lg{height:30px}
.t-strong{color:var(--ink);font-weight:600}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45em;font-family:var(--sans);
  font-weight:500;font-size:12.5px;padding:8px 15px;border-radius:var(--r-sm);border:1px solid transparent;
  cursor:pointer;transition:.16s ease;white-space:nowrap;line-height:1}
.btn svg{width:15px;height:15px}
.btn-primary{background:var(--terra);color:#fff}
.btn-primary:hover{background:var(--terra-2)}
.btn-navy{background:var(--navy);color:#fff}
.btn-navy:hover{background:var(--navy-2)}
.btn-ghost{background:transparent;color:var(--navy);border-color:var(--line)}
.btn-ghost:hover{border-color:var(--navy)}
.btn-light{background:#fff;color:var(--ink-soft);border-color:var(--line)}
.btn-light:hover{border-color:var(--muted-2);color:var(--ink)}
.btn-white{background:#fff;color:var(--navy)}
.btn-white:hover{background:#f1f1f1}
.btn-sm{padding:6px 11px;font-size:11.5px}
.btn-block{width:100%}

/* ---------- Pills ---------- */
.pill{display:inline-flex;align-items:center;gap:.35em;font-size:10.5px;font-weight:500;
  padding:3px 8px;border-radius:5px;line-height:1.3}
.pill svg{width:12px;height:12px}
.pill-terra{background:rgba(225,115,71,.12);color:var(--terra-2)}
.pill-navy{background:rgba(14,53,100,.09);color:var(--navy)}
.pill-gold{background:rgba(183,144,47,.14);color:var(--gold)}
.pill-good{background:var(--good-bg);color:var(--good)}
.pill-warn{background:var(--warn-bg);color:var(--warn)}
.pill-bad{background:var(--bad-bg);color:var(--bad)}
.pill-mute{background:#eef0f3;color:var(--muted)}

/* ---------- top nav (plan reference page) ---------- */
.store-nav{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.store-nav .wrap{display:flex;align-items:center;justify-content:space-between;height:56px}
.brand-logo{display:flex;align-items:center;gap:9px;font-weight:600;font-size:16px;color:var(--navy)}
.brand-mark{width:30px;height:30px;border-radius:7px;background:var(--navy);color:#fff;display:grid;
  place-items:center;font-size:15px;font-weight:700;flex:none}
.brand-mark.terra{background:var(--terra)}
.nav-actions{display:flex;align-items:center;gap:9px}
.icon-btn{width:34px;height:34px;border-radius:var(--r-sm);border:1px solid var(--line);background:#fff;
  display:grid;place-items:center;color:var(--navy);cursor:pointer;transition:.15s}
.icon-btn:hover{border-color:var(--muted-2)}
.icon-btn svg{width:16px;height:16px}

/* =========================================================
   AUTH / PORTAL
   ========================================================= */
.auth{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}
.auth-art{background:linear-gradient(165deg,rgba(13,43,80,.86),rgba(7,24,45,.94)),url('/static/img/bg1.png.webp') center/cover no-repeat;
  color:#fff;padding:48px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.auth-art::after{content:"";position:absolute;right:-140px;bottom:-140px;width:340px;height:340px;border-radius:50%;
  background:radial-gradient(circle,rgba(225,115,71,.22),transparent 70%)}
.auth-art .brand-logo{color:#fff}
.auth-art h2{font-size:27px;line-height:1.18;position:relative;max-width:400px;font-weight:600}
.auth-art p{color:rgba(255,255,255,.7);max-width:360px;position:relative;font-size:13px}
.auth-art .mini-stats{display:flex;gap:26px;position:relative}
.auth-art .mini-stats .n{font-size:21px;font-weight:600;color:var(--terra-soft)}
.auth-art .mini-stats .l{font-size:10.5px;color:rgba(255,255,255,.55);text-transform:uppercase;letter-spacing:.08em;margin-top:2px}
.auth-form{display:flex;align-items:center;justify-content:center;padding:40px;background:#fff}
.auth-box{width:100%;max-width:380px}
.auth-box h1{font-size:23px;color:var(--navy);margin-bottom:5px;font-weight:600}
.auth-box .sub{color:var(--muted);margin-bottom:24px;font-size:13px}
.auth-note{margin-top:16px;padding:11px 13px;background:var(--info-bg);border-radius:var(--r-sm);font-size:12px;color:var(--navy)}
.auth-switch{text-align:center;margin-top:18px;font-size:12.5px;color:var(--muted)}
.auth-switch a{color:var(--terra-2);font-weight:500}

.portal-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:4px}
.portal-card{display:block;border:1px solid var(--line);border-radius:var(--r-lg);padding:18px;background:#fff;transition:.16s}
.portal-card:hover{border-color:var(--terra);box-shadow:var(--sh)}
.portal-card .pic{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;margin-bottom:11px;color:#fff}
.portal-card .pic svg{width:20px;height:20px}
.portal-card h3{font-size:15px;color:var(--navy);margin-bottom:3px}
.portal-card p{font-size:11.5px;color:var(--muted);margin:0 0 9px;line-height:1.45}
.portal-card .go{font-size:11.5px;font-weight:600;color:var(--terra-2);display:inline-flex;align-items:center;gap:4px}
.portal-card .go svg{width:13px;height:13px}

/* =========================================================
   PLAN REFERENCE PAGE
   ========================================================= */
.sec{padding:48px 0}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:26px;gap:18px}
.sec-head h2{font-size:23px;color:var(--navy);font-weight:600}
.sec-head p{margin:6px 0 0;color:var(--muted);max-width:520px;font-size:13px}
.plan-hero{background:var(--navy);color:#fff;padding:56px 0;text-align:center}
.plan-hero h1{font-size:34px;margin-bottom:12px;font-weight:600}
.plan-hero h1 em{font-style:normal;color:var(--terra-soft)}
.plan-hero p{color:rgba(255,255,255,.72);max-width:540px;margin:0 auto;font-size:14px}
.def-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.def-card{border:1px solid var(--line);border-radius:var(--r-lg);padding:24px;background:#fff}
.def-card .abbr{font-size:32px;font-weight:700;line-height:1}
.def-card.pv .abbr{color:var(--navy)} .def-card.bv .abbr{color:var(--terra)}
.def-card h3{font-size:15px;margin:9px 0 6px;color:var(--ink)}
.def-card p{font-size:12.5px;margin:0}
.bracket-table{width:100%;border-collapse:collapse;background:#fff;border-radius:var(--r);overflow:hidden;border:1px solid var(--line)}
.bracket-table th{background:var(--navy);color:#fff;font-size:11px;letter-spacing:.03em;text-transform:uppercase;
  padding:11px 16px;text-align:left;font-weight:500}
.bracket-table td{padding:11px 16px;border-bottom:1px solid var(--line-2);font-size:13px}
.bracket-table tr:last-child td{border-bottom:none}
.bracket-table tr:hover td{background:var(--hover)}
.bracket-table .pct{font-weight:600;color:var(--terra-2);font-size:14px}
.bracket-table .hl td{background:rgba(225,115,71,.06)}
.ladder{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.rank-card{border:1px solid var(--line);border-radius:var(--r-lg);padding:18px;background:#fff;position:relative;overflow:hidden}
.rank-card::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--rank,#0e3564)}
.rank-pin{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;margin-bottom:11px;background:var(--rank,#0e3564);color:#fff}
.rank-pin svg{width:19px;height:19px}
.rank-card h3{font-size:15px;color:var(--navy);margin-bottom:3px}
.rank-card .req{font-size:11.5px;color:var(--muted);min-height:34px;line-height:1.45}
.rank-card .reward{font-size:12px;color:var(--ink-soft);border-top:1px solid var(--line-2);margin-top:11px;padding-top:10px}
.bonus-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.bonus-row{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:16px}
.bonus-row .num{font-size:19px;font-weight:700;color:var(--terra);flex:none;width:30px}
.bonus-row h4{color:var(--navy);font-size:14px;margin-bottom:4px}
.bonus-row .rate{font-size:10.5px;font-weight:600;color:var(--terra-2);background:rgba(225,115,71,.1);padding:2px 7px;border-radius:5px}
.illus{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.illus .ill-row{display:flex;justify-content:space-between;align-items:center;padding:13px 20px;border-bottom:1px solid var(--line-2)}
.illus .ill-row .lab{font-weight:500} .illus .ill-row .note{font-size:11.5px;color:var(--muted)}
.illus .ill-row .val{font-size:15px;font-weight:600}
.illus .ill-row.neg .val{color:var(--bad)}
.illus .ill-row.total{background:var(--navy);color:#fff;border:none}
.illus .ill-row.total .val{color:var(--terra-soft);font-size:18px}
.illus .ill-row.total .note{color:rgba(255,255,255,.55)}
.store-foot{background:var(--navy);color:#aebbcf;padding:22px 0;margin-top:20px}
.foot-bottom{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#8fa0ba;flex-wrap:wrap;gap:10px}

/* =========================================================
   DASHBOARD SHELL
   ========================================================= */
.app{display:grid;grid-template-columns:228px 1fr;min-height:100vh;background:var(--bg)}
.side{background:var(--navy);color:#c2cee0;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.side-brand{padding:16px 18px;display:flex;align-items:center;gap:9px;border-bottom:1px solid rgba(255,255,255,.08);min-height:56px}
.side-brand .brand-mark{background:var(--terra);width:28px;height:28px;font-size:14px}
.side-brand .nm{font-size:14.5px;color:#fff;font-weight:600;line-height:1.05}
.side-brand .sub{font-size:9px;letter-spacing:.15em;text-transform:uppercase;color:#7f93b2;margin-top:1px}
.side-scroll{flex:1;overflow-y:auto;padding:12px 11px}
.side-label{font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:#6c80a1;padding:13px 10px 6px;font-weight:500}
.side-link{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--r-sm);font-size:12.5px;
  font-weight:400;color:#b3c1d6;transition:.14s;margin-bottom:1px}
.side-link svg{width:16px;height:16px;flex:none;opacity:.8}
.side-link:hover{background:rgba(255,255,255,.06);color:#fff}
.side-link.active{background:var(--terra);color:#fff;font-weight:500}
.side-link.active svg{opacity:1}
.side-foot{padding:11px;border-top:1px solid rgba(255,255,255,.08)}
.side-user{display:flex;align-items:center;gap:9px;padding:8px;border-radius:var(--r-sm);background:rgba(255,255,255,.05)}
.avatar{width:30px;height:30px;border-radius:50%;background:var(--terra);color:#fff;display:grid;place-items:center;font-weight:600;font-size:11px;flex:none}
.avatar.navy{background:var(--navy-soft)}
.side-user .nm{font-size:12px;color:#fff;font-weight:500;line-height:1.2}
.side-user .rk{font-size:10.5px;color:#8ba0c0}

.main{display:flex;flex-direction:column;min-width:0}
.topbar{height:56px;background:rgba(255,255,255,.9);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:30}
.topbar h1{font-size:16px;color:var(--ink);font-weight:600}
.topbar .sub{font-size:11.5px;color:var(--muted)}
.top-actions{display:flex;align-items:center;gap:10px}
.search{display:flex;align-items:center;gap:8px;background:var(--bg);border:1px solid var(--line);
  border-radius:var(--r-sm);padding:7px 12px;width:230px;color:var(--muted)}
.search svg{width:15px;height:15px}
.search input{border:none;background:none;outline:none;font-family:inherit;font-size:12.5px;width:100%;color:var(--ink)}
.top-ic{width:34px;height:34px;border-radius:var(--r-sm);border:1px solid var(--line);background:#fff;
  display:grid;place-items:center;color:var(--navy);cursor:pointer;position:relative}
.top-ic svg{width:16px;height:16px}
.top-ic .dot{position:absolute;top:7px;right:8px;width:6px;height:6px;border-radius:50%;background:var(--terra);border:2px solid #fff}
.content{padding:20px 24px 44px;max-width:1280px;width:100%}

/* KPI tiles */
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}
.kpi{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:15px}
.kpi .top{display:flex;justify-content:space-between;align-items:flex-start}
.kpi .ic{display:flex;align-items:center;justify-content:center;color:#aab2bf}
.kpi .ic svg{width:18px;height:18px}
.kpi .ic.terra,.kpi .ic.navy,.kpi .ic.gold,.kpi .ic.green{background:none;color:#aab2bf}
.kpi .lab{font-size:11px;color:var(--muted);margin-top:13px;font-weight:400}
.kpi .val{font-size:20px;font-weight:600;color:var(--ink);letter-spacing:-.01em;margin-top:2px}
.delta{font-size:11px;font-weight:500;display:inline-flex;align-items:center;gap:2px;margin-top:6px}
.delta svg{width:12px;height:12px}
.delta.up{color:var(--good)} .delta.down{color:var(--bad)}

/* panels */
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);margin-bottom:16px}
.panel-head{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border-bottom:1px solid var(--line)}
.panel-head h3{font-size:13.5px;color:var(--ink);font-weight:600}
.panel-head .sub{font-size:11.5px;color:var(--muted)}
.panel-body{padding:16px}
.grid-cols{display:grid;gap:16px}
.c-2-1{grid-template-columns:2fr 1fr}
.c-1-1{grid-template-columns:1fr 1fr}
.c-3{grid-template-columns:repeat(3,1fr)}
.chart-wrap{position:relative;height:230px}
.chart-sm{height:185px}

/* tables */
.tbl-wrap{overflow-x:auto}
table.data{width:100%;border-collapse:collapse;font-size:12.5px}
table.data th{text-align:left;padding:9px 14px;background:#fbfbfc;color:var(--muted);font-weight:500;
  font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;border-bottom:1px solid var(--line);white-space:nowrap}
table.data td{padding:10px 14px;border-bottom:1px solid var(--line-2);color:var(--ink-soft);white-space:nowrap}
table.data tr:last-child td{border-bottom:none}
table.data tbody tr:hover{background:var(--hover)}
.cell-id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;color:var(--navy);font-weight:500}
.cell-name{display:flex;align-items:center;gap:9px}
.cell-name .avatar{width:28px;height:28px;font-size:10.5px}
.cell-name b{color:var(--ink);font-weight:500}
.cell-name svg{width:22px;height:22px}
.rank-dot{display:inline-flex;align-items:center;gap:6px;font-weight:500;color:var(--ink)}
.rank-dot i{width:8px;height:8px;border-radius:50%;display:inline-block}

/* progress */
.progress{height:7px;border-radius:999px;background:var(--bg);overflow:hidden}
.progress .bar{height:100%;border-radius:999px;background:var(--terra)}
.progress.navy .bar{background:var(--navy)}
.rankprog{display:flex;align-items:center;justify-content:space-between;font-size:11.5px;color:var(--muted);margin-top:8px}

/* mini list */
.mini-item{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid var(--line-2)}
.mini-item:last-child{border-bottom:none}
.mini-item .meta{flex:1;min-width:0}
.mini-item .meta b{display:block;color:var(--ink);font-size:12.5px;font-weight:500}
.mini-item .meta span{font-size:11.5px;color:var(--muted)}
.mini-item .amt{font-weight:600;color:var(--ink)}
.mini-item .ic svg{width:16px;height:16px}

/* earnings split */
.split{display:flex;align-items:center;gap:9px;margin-bottom:11px}
.split .sw{width:10px;height:10px;border-radius:3px;flex:none}
.split .nm{flex:1;font-size:12.5px;color:var(--ink-soft)}
.split .vv{font-weight:600;color:var(--ink)}

/* genealogy tree */
.tree-tools{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.tree{padding:6px 2px;overflow-x:auto}
.tree ul{padding-left:24px;margin:0;list-style:none;position:relative}
.tree li{position:relative;padding:5px 0 5px 22px}
.tree li::before{content:"";position:absolute;left:0;top:0;bottom:50%;width:1px;background:var(--line)}
.tree li::after{content:"";position:absolute;left:0;top:50%;width:18px;height:1px;background:var(--line)}
.tree li:last-child::before{bottom:auto;height:50%}
.node{display:inline-flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);
  border-radius:8px;padding:6px 12px 6px 7px;cursor:pointer;transition:.14s;min-width:198px}
.node:hover{border-color:var(--terra-soft);box-shadow:var(--sh)}
.node.root{background:var(--navy);border-color:var(--navy)}
.node.root .nm{color:#fff} .node.root .rk{color:#a9bcd8}
.node .avatar{width:28px;height:28px;font-size:10px}
.node .info{line-height:1.25}
.node .nm{font-weight:500;color:var(--ink);font-size:12px}
.node .rk{font-size:10.5px;color:var(--muted);display:flex;align-items:center;gap:5px}
.node .pvs{margin-left:auto;text-align:right;font-size:10px;color:var(--muted);padding-left:10px}
.node .pvs b{display:block;color:var(--terra-2);font-size:11.5px}
.node.root .pvs{color:#a9bcd8} .node.root .pvs b{color:var(--terra-soft)}
.collapsed > ul{display:none}
.toggle{width:18px;height:18px;border-radius:5px;border:1px solid var(--line);background:#fff;display:grid;
  place-items:center;font-size:12px;line-height:1;color:var(--navy);cursor:pointer;margin-left:4px}

/* network stats */
.net-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}
.net-stat{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px}
.net-stat .v{font-size:19px;font-weight:600;color:var(--ink)}
.net-stat .l{font-size:11.5px;color:var(--muted)}

/* tools */
.copybox{display:flex;gap:8px;align-items:center;background:var(--bg);border:1px dashed var(--line);border-radius:var(--r-sm);padding:5px 5px 5px 13px}
.copybox input{flex:1;border:none;background:none;outline:none;font-family:ui-monospace,monospace;font-size:12px;color:var(--navy)}
.asset{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:#fff}
.asset .ph{aspect-ratio:16/10;background:#f1ece6;display:grid;place-items:center;overflow:hidden}
.asset .ph img{width:100%;height:100%;object-fit:cover}
.asset .cap{padding:10px 12px;display:flex;justify-content:space-between;align-items:center}
.asset .cap b{font-size:12px;color:var(--ink);font-weight:500}

/* product catalogue / order entry */
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.cat-card{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:#fff;display:flex;flex-direction:column}
.cat-card .pic{aspect-ratio:1/1;background:#f1ece6;overflow:hidden}
.cat-card .pic img{width:100%;height:100%;object-fit:cover}
.cat-card .bd{padding:11px 12px;display:flex;flex-direction:column;flex:1}
.cat-card .nm{font-size:12px;font-weight:500;color:var(--ink);line-height:1.35;min-height:32px}
.cat-card .pr{font-weight:600;color:var(--ink);font-size:13px}
.cat-card .add{margin-top:9px}
.bvpv{display:flex;gap:5px}
.bvpv span{font-size:10px;font-weight:600;padding:3px 7px;border-radius:5px}
.bvpv .pv{background:rgba(14,53,100,.08);color:var(--navy)}
.bvpv .bv{background:rgba(225,115,71,.11);color:var(--terra-2)}
.add-btn{width:30px;height:30px;border-radius:7px;background:var(--navy);color:#fff;border:none;display:grid;place-items:center;cursor:pointer;transition:.15s;flex:none}
.add-btn:hover{background:var(--terra)}
.add-btn svg{width:15px;height:15px}
.prod-thumb{width:34px;height:34px;border-radius:7px;object-fit:cover;background:#f1ece6;flex:none;border:1px solid var(--line)}

/* settings (admin plan) */
.setrow{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--line-2);gap:14px}
.setrow:last-child{border-bottom:none}
.setrow .lab b{color:var(--ink);font-weight:500;font-size:12.5px} .setrow .lab span{display:block;font-size:11px;color:var(--muted)}
.switch{width:40px;height:22px;border-radius:999px;background:var(--terra);position:relative;cursor:pointer;flex:none;transition:.18s}
.switch::after{content:"";position:absolute;top:3px;left:21px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.18s}
.switch.off{background:#cdd3dd}.switch.off::after{left:3px}
.inp-sm{width:74px;padding:6px 9px;border:1px solid var(--line);border-radius:var(--r-sm);font-family:inherit;text-align:center;font-weight:500;font-size:12px;color:var(--ink)}

/* forms */
.form-card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:18px;margin-bottom:16px}
.field{margin-bottom:13px}
.field label{display:block;font-size:11.5px;font-weight:500;color:var(--ink-soft);margin-bottom:5px}
.field input,.field select,.field textarea{width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:var(--r-sm);
  font-family:inherit;font-size:12.5px;background:#fff;color:var(--ink);transition:.15s}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--terra);box-shadow:0 0 0 3px rgba(225,115,71,.1)}

/* toast */
.toast{position:fixed;bottom:22px;right:22px;background:var(--navy);color:#fff;padding:11px 16px;border-radius:var(--r-sm);
  box-shadow:var(--sh-lg);font-size:12.5px;font-weight:500;display:flex;align-items:center;gap:8px;
  transform:translateY(16px);opacity:0;transition:.22s;z-index:100;pointer-events:none}
.toast.show{transform:translateY(0);opacity:1}
.toast svg{width:16px;height:16px;color:var(--terra-soft)}

/* utilities */
.flex{display:flex} .between{justify-content:space-between} .aic{align-items:center} .gap{gap:10px}
.mt0{margin-top:0}.mb0{margin-bottom:0}.mt8{margin-top:8px}.mt16{margin-top:16px}.mt24{margin-top:24px}
.note-band{background:#faf7f3;border:1px solid var(--line);border-radius:var(--r-sm);padding:11px 14px;font-size:12px;color:var(--muted)}
.demo-flag{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--terra-2);background:rgba(225,115,71,.1);padding:3px 9px;border-radius:999px}
.demo-flag svg{width:12px;height:12px}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width:1080px){
  .ladder{grid-template-columns:repeat(2,1fr)}
  .kpis{grid-template-columns:repeat(2,1fr)}
  .net-stats{grid-template-columns:repeat(2,1fr)}
  .cat-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:860px){
  .def-grid,.bonus-grid,.c-2-1,.c-1-1,.c-3{grid-template-columns:1fr}
  .app{grid-template-columns:1fr}
  .side{position:fixed;left:0;top:0;z-index:60;width:228px;transform:translateX(-100%);transition:.22s}
  .side.open{transform:translateX(0)}
  .search{display:none}
  .auth{grid-template-columns:1fr}
  .auth-art{display:none}
  .cat-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .wrap{padding:0 16px}
  .kpis,.net-stats,.ladder,.portal-cards{grid-template-columns:1fr}
  .plan-hero h1{font-size:26px}
  .content{padding:16px 14px 36px}
  .sec{padding:34px 0}
}
