/* ShopLink dashboards — Aktivate brand.
   Ink rail, lilac canvas, white sheets. Electric blue for actions, teal for money, brand brown for "waiting". */
@font-face { font-family: 'Aileron'; src: url('/assets/fonts/aileron-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Aileron'; src: url('/assets/fonts/aileron-latin-600-normal.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Aileron'; src: url('/assets/fonts/aileron-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Aileron'; src: url('/assets/fonts/aileron-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
/* storefront fonts, so the theme picker can show them */
@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/fraunces-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Syne'; src: url('/assets/fonts/syne-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #07060E; --ink-2: #2D2A3E; --muted: #6E6987; --faint: #9A95B0;
  --canvas: #ECEBF2; --sheet: #FFFFFF; --line: #E2E0EA; --hover: #F5F4F9;
  --electric: #001FFF; --electric-ink: #0016B8; --electric-tint: #E8EBFF;
  --peri: #9EB3FF; --purple: #5331E8; --teal: #00C4BC; --money: #007F79; --money-tint: #DDF5F3;
  --brown: #9E5D3A; --brown-tint: #F6ECE5; --ok: #127A4E; --bad: #C2281D; --bad-tint: #FCEBE9;
  --r-sheet: 20px; --r-ctl: 12px;
  --pad: 28px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Aileron', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.5; }
a { color: var(--electric); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin: 0; }
h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
h3 { font-size: 15px; font-weight: 700; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.money { color: var(--money); font-weight: 700; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 2px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--ink) 252px, var(--canvas) 252px); }
.side { background: var(--ink); color: #fff; padding: 26px 16px 20px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brandmark { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 30px; }
.brandmark img { height: 26px; width: auto; align-self: flex-start; }
.brandmark span { font-size: 13px; color: var(--peri); font-weight: 600; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { position: relative; color: #BDB8D3; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav a.on { color: #fff; background: rgba(158,179,255,.12); }
.nav a.on::before { content: ''; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--electric); }
.nav a.on svg { opacity: 1; }
.nav .badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--electric); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.side-foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #8E88A8; }
.side-foot .who { font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.side-foot button { background: none; border: 0; color: #8E88A8; padding: 4px 0 0; cursor: pointer; }
.side-foot button:hover { color: #fff; }

.main { padding: 34px var(--pad) 72px; max-width: 1240px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head p { margin-top: 8px; color: var(--muted); max-width: 62ch; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-bar { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--brown); margin-bottom: 22px; }
.demo-bar::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brown); }

/* ---------- sheets (the only container) ---------- */
.card, .sheet { background: var(--sheet); border-radius: var(--r-sheet); padding: 22px 24px; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head a { font-size: 14px; font-weight: 600; text-decoration: none; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* "Needs you" list */
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.todo li:first-child { border-top: 0; padding-top: 4px; }
.todo li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--electric); }
.todo li.setup::before { background: transparent; border: 2px solid var(--peri); width: 6px; height: 6px; }
.todo li.done::before { background: var(--ok); }
.todo b { font-weight: 700; }
.todo .sub { display: block; font-size: 13px; color: var(--muted); }
.allclear { padding: 6px 0; color: var(--muted); }

/* money line */
.figures { display: flex; flex-wrap: wrap; gap: 14px 48px; }
.fig .v { font-size: 34px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fig .l { font-size: 13px; color: var(--muted); margin-top: 4px; }
.fig.money .v { color: var(--money); }
.fig.big .v { font-size: 46px; }
.subfigs { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.subfigs b { color: var(--ink); font-weight: 700; }

/* share bars (top creators) */
.share { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.share:first-of-type { border-top: 0; }
.share .bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--hover); overflow: hidden; }
.share .bar i { display: block; height: 100%; background: var(--electric); border-radius: 6px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; background: var(--electric); color: #fff; white-space: nowrap; line-height: 1.2; }
.btn:hover { background: var(--electric-ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--ink-2); }
.btn.teal { background: var(--teal); color: var(--ink); }
.btn.teal:hover { background: #00ADA6; }
.btn.danger { background: transparent; color: var(--bad); border-color: #F0C4BF; }
.btn.danger:hover { border-color: var(--bad); background: transparent; }
.btn.link { background: none; border: 0; color: var(--electric); padding: 6px 4px; }
.btn.link:hover { background: none; text-decoration: underline; }
.btn.sm { padding: 7px 13px; font-size: 13px; }
.btn.block { width: 100%; }

.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.pill.ok::before { background: var(--ok); } .pill.ok { color: var(--ok); }
.pill.warn::before { background: var(--brown); } .pill.warn { color: var(--brown); }
.pill.bad::before { background: var(--bad); } .pill.bad { color: var(--bad); }
.pill.accent::before { background: var(--electric); } .pill.accent { color: var(--electric); }
.pill.teal::before { background: var(--teal); } .pill.teal { color: var(--money); }

.tabs { display: flex; gap: 24px; border-bottom: 1px solid #D6D3E1; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 10px 0 12px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; position: relative; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--electric); }

label.f { display: block; font-size: 13px; font-weight: 700; margin: 0 0 7px; }
.field { margin-bottom: 16px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.hint.bad { color: #C2410C; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.photos .ph { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--canvas); border: 1px solid var(--line); }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .ph .main { position: absolute; left: 6px; bottom: 6px; background: rgba(7,6,14,.75); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.photos .ph .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(7,6,14,.75); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.photos .add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-style: dashed; cursor: pointer; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; }
.photos .add b { font-size: 26px; line-height: 1; color: var(--electric, #001FFF); }
.photos .add:hover { border-color: var(--electric, #001FFF); color: var(--ink); }
input.i, select.i, textarea.i { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: #fff; font-size: 15px; transition: border-color .15s; }
input.i:hover, select.i:hover, textarea.i:hover { border-color: #CFCCDB; }
textarea.i { min-height: 96px; resize: vertical; line-height: 1.45; }
input.i:focus, select.i:focus, textarea.i:focus { outline: none; border-color: var(--electric); box-shadow: 0 0 0 3px var(--electric-tint); }
.prefix { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: #fff; overflow: hidden; }
.prefix:focus-within { border-color: var(--electric); box-shadow: 0 0 0 3px var(--electric-tint); }
.prefix span { padding: 11px 0 11px 13px; color: var(--muted); white-space: nowrap; }
.prefix input { border: 0; padding-left: 2px; box-shadow: none !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--electric); }
.choice { display: grid; gap: 10px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; cursor: pointer; }
.choice label:hover { border-color: #CFCCDB; }
.choice label:has(input:checked) { border-color: var(--electric); background: #FAFBFF; }
.choice input { margin-top: 4px; accent-color: var(--electric); }
.choice b { display: block; margin-bottom: 2px; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t th:first-child, .t td:first-child { padding-left: 0; }
.t th:last-child, .t td:last-child { padding-right: 0; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: var(--hover); }
.t tr.click:hover td:first-child { box-shadow: -12px 0 0 var(--hover); }
.t tr.click:hover td:last-child { box-shadow: 12px 0 0 var(--hover); }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 17px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.01em; }
.card.empty { background: var(--sheet); }

.thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--canvas); flex-shrink: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; object-fit: cover; }
.person { display: flex; gap: 12px; align-items: center; min-width: 0; }
.person .n { font-weight: 700; }
.person .h { font-size: 13px; color: var(--muted); }
.prod { display: flex; gap: 14px; align-items: center; min-width: 0; }
.prod .n { font-weight: 700; line-height: 1.3; }
.prod .h { font-size: 13px; color: var(--muted); }

/* catalogue cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 18px; }
.pcard { display: flex; flex-direction: column; }
.pcard .img { aspect-ratio: 1; border-radius: 18px; background: var(--sheet) center/cover; position: relative; }
.pcard .img .tag { position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.pcard .body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pcard .brand { font-size: 13px; color: var(--muted); }
.pcard .title { font-weight: 700; line-height: 1.3; }
.pcard .earn { margin-top: 6px; font-size: 14px; }
.pcard .earn b { color: var(--money); font-size: 16px; }
.pcard .foot { margin-top: auto; padding-top: 12px; }

.linkbox { display: flex; gap: 6px; align-items: center; background: var(--ink); border-radius: 999px; padding: 6px 6px 6px 18px; color: #fff; max-width: 100%; }
.linkbox code { font-family: inherit; font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.linkbox .btn { padding: 8px 14px; font-size: 13px; }
.linkbox .btn.ghost { color: #fff; border-color: rgba(255,255,255,.2); }
.linkbox .btn.ghost:hover { border-color: #fff; }

/* ---------- creator studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.phone-wrap { position: sticky; top: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone { width: 360px; height: 740px; border-radius: 46px; background: var(--ink); padding: 12px; box-shadow: 0 30px 60px -20px rgba(7,6,14,.35); position: relative; }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 20px; background: var(--ink); z-index: 2; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #fff; display: block; }
.phone-note { font-size: 13px; color: var(--muted); text-align: center; }
.items-list { list-style: none; margin: 0; padding: 0; }
.items-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.items-list li:first-child { border-top: 0; padding-top: 2px; }
.items-list .note { font-size: 13px; color: var(--ink-2); margin-top: 4px; font-style: italic; }
.items-list .acts { display: flex; gap: 6px; align-items: center; }
.iconbtn { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.iconbtn:hover { border-color: var(--ink); }
.iconbtn:disabled { opacity: .3; cursor: default; border-color: var(--line); }
.iconbtn svg { width: 16px; height: 16px; }

.opt-group { margin-bottom: 26px; }
.opt-group > h3 { margin-bottom: 4px; }
.opt-group > .hint { margin: 0 0 12px; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.swatch { border: 2px solid transparent; border-radius: 16px; padding: 4px; background: none; cursor: pointer; text-align: left; }
.swatch .face { border-radius: 12px; height: 84px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 0 0 0 1px rgba(7,6,14,.08); }
.swatch .face b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.swatch .face i { display: block; width: 46px; height: 14px; border-radius: 99px; }
.swatch .lbl { display: block; font-size: 13px; font-weight: 700; padding: 8px 4px 2px; }
.swatch:hover { border-color: var(--line); }
.swatch.on { border-color: var(--electric); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 14px 10px 10px; cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tile:hover { border-color: #CFCCDB; }
.tile.on { border-color: var(--electric); box-shadow: 0 0 0 3px var(--electric-tint); }
.tile .aa { font-size: 30px; line-height: 1; height: 34px; display: flex; align-items: center; }
.tile span { font-size: 13px; font-weight: 700; }
.wire { width: 56px; height: 40px; display: grid; gap: 3px; }
.wire i { background: #CFCCDB; border-radius: 3px; display: block; }
.wire.grid { grid-template-columns: 1fr 1fr; }
.wire.list { grid-template-rows: repeat(3, 1fr); }
.wire.list i { background: linear-gradient(90deg, #CFCCDB 30%, #E7E5EE 30%); }
.wire.spotlight { grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; }
.wire.spotlight i:first-child { grid-column: span 2; }
.shape { width: 54px; height: 22px; background: var(--ink); }
.colorrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dot { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(7,6,14,.12); position: relative; }
.dot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--electric); }
.dot.custom { background: conic-gradient(#ff4d4d, #ffcc00, #00c4bc, #001fff, #8f74f7, #ff4d4d); overflow: hidden; }
.dot.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 22px; margin-top: 8px; transform: translateY(10px); opacity: 0; pointer-events: none; transition: all .2s ease; }
.savebar.show { transform: none; opacity: 1; pointer-events: auto; }
.savebar span { font-weight: 600; font-size: 14px; }

/* earnings */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.ledger li:first-child { border-top: 0; padding-top: 2px; }
.ledger .amt { text-align: right; font-weight: 800; color: var(--money); font-variant-numeric: tabular-nums; }
.ledger .amt.off { color: var(--faint); text-decoration: line-through; }

.steps { display: grid; gap: 14px; counter-reset: s; }
.steps > div { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.steps > div::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); font-weight: 800; font-size: 13px; display: grid; place-items: center; }

/* ---------- overlays ---------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; animation: up .2s ease; max-width: 90vw; }
.toast.bad { background: var(--bad); }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(7,6,14,.5); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 24px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; }
.modal.wide { max-width: 780px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 8px; position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-h h2 { font-size: 21px; }
.modal-h button { border: 0; background: var(--hover); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--ink); line-height: 1; }
.modal-b { padding: 12px 24px 22px; }
.modal-f { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; position: sticky; bottom: 0; background: #fff; flex-wrap: wrap; }
.box { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.loading { min-height: 66vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--muted); font-size: 14px; animation: loadin .2s ease .15s both; }
@keyframes loadin { from { opacity: 0; } }
.fold svg { width: 64px; height: auto; overflow: visible; display: block; }
.fold .fl, .fold .fr { transform-box: fill-box; }
.fold .fl { transform-origin: 50% 50%; animation: foldL 1.8s cubic-bezier(.6,0,.2,1) infinite; }
.fold .fr { transform-origin: 0% 50%; animation: foldR 1.8s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes foldL { 0% { opacity: 0; transform: translateX(-12px); } 20%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-12px); } }
@keyframes foldR { 0%, 15% { opacity: 0; transform: perspective(300px) rotateY(-80deg); } 40%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: perspective(300px) rotateY(-80deg); } }
@media (prefers-reduced-motion: reduce) { .fold .fl, .fold .fr { animation: none !important; opacity: 1; } .loading { animation: none; } }

/* ---------- responsive ---------- */
.topbar, .mnav { display: none; }
@media (max-width: 1180px) { .studio { grid-template-columns: minmax(0, 1fr) 320px; } .phone { width: 320px; height: 660px; } }
@media (max-width: 980px) { .studio { grid-template-columns: 1fr; } .phone-wrap.desk { display: none; } .split { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { display: block; background: var(--canvas); }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; padding: 12px 16px; align-items: center; justify-content: space-between; }
  .topbar .brandmark { padding: 0; flex-direction: row; align-items: center; gap: 10px; }
  .topbar .brandmark img { height: 22px; }
  .topbar button { background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13px; }
  .mnav { display: flex; overflow-x: auto; gap: 4px; background: var(--ink); padding: 0 10px 10px; position: sticky; top: 50px; z-index: 19; scrollbar-width: none; }
  .mnav a { color: #BDB8D3; text-decoration: none; padding: 7px 13px; border-radius: 99px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
  .mnav a.on { background: #fff; color: var(--ink); }
  .main { padding: 22px 16px 72px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 26px; }
  .card, .sheet { padding: 18px; border-radius: 18px; }
  .fig .v { font-size: 28px; } .fig.big .v { font-size: 38px; }
  .figures { gap: 14px 28px; }
  .t .hide-sm { display: none; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head .actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.mob-only { display: none; }
@media (max-width: 980px) { .mob-only { display: inline-block; } .phone-wrap.mob { margin-top: 4px; } .phone-wrap.mob .phone { width: min(360px, 100%); height: 680px; } }
@media (max-width: 640px) {
  .items-list li { grid-template-columns: auto minmax(0, 1fr); }
  .items-list .acts { grid-column: 1 / -1; justify-content: flex-end; }
  .subfigs { gap: 8px 18px; }
}

/* ---------- admin: daily orders chart ---------- */
.chart { position: relative; padding: 8px 0 0 44px; }
.chart .plot { position: relative; height: 220px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line); }
.chart .grid-line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); pointer-events: none; }
.chart .ylab { position: absolute; left: -44px; width: 36px; text-align: right; font-size: 12px; color: var(--muted); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.chart .col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; background: none; border: 0; padding: 0; cursor: default; position: relative; }
.chart .col i { display: block; width: 100%; max-width: 28px; min-height: 2px; background: var(--electric); border-radius: 4px 4px 0 0; }
.chart .col.zero i { background: var(--line); }
.chart .col:hover i, .chart .col:focus-visible i { background: var(--electric-ink); }
.chart .col.today i { background: var(--ink); }
.chart .xlabs { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }
.chart .tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.4; padding: 8px 11px; border-radius: 10px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; z-index: 3; }
.chart .col:hover .tip, .chart .col:focus-visible .tip { opacity: 1; }
.chart .tip b { display: block; font-size: 14px; }
.search { max-width: 340px; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--ink); }
.admin-login .box2 { width: 100%; max-width: 380px; background: #fff; border-radius: 24px; padding: 32px 28px; }
.admin-login img { height: 26px; margin-bottom: 22px; }
.main { min-width: 0; overflow-x: clip; }
.chart .col:first-child .tip, .chart .col:nth-child(-n+4) .tip { left: 0; transform: none; }
.chart .col:last-child .tip, .chart .col:nth-last-child(-n+4) .tip { left: auto; right: 0; transform: none; }

/* Creator search pages + profile */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pager .row { gap: 10px; align-items: center; }
.cprofile .top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cprofile h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.3px; }
.cprofile h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.cprofile .bio { margin: 0 0 18px; line-height: 1.55; }
.big-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--peri, #9EB3FF); color: var(--ink); font-weight: 800; font-size: 24px; }
.cprofile .links { display: grid; gap: 8px; }
.cprofile .link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.cprofile .link:hover { border-color: var(--electric, #001FFF); background: rgba(0,31,255,.03); }
.cprofile .link .n { font-weight: 700; }
.cprofile .link .h { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sicon { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; font-weight: 800; }
.sicon svg { width: 18px; height: 18px; fill: currentColor; }
.cprofile .figures b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.cprofile .figures span { font-size: 12.5px; color: var(--muted); }
