/* Vedagini Partner Program — design system
   Velvet (jewel-box plum), antique gold, pearl. Arch frames for jewellery, gems for levels. */

@font-face { font-family: "Cardo"; src: url("../fonts/Cardo-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("../fonts/Cardo-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("../fonts/Cardo-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-var.woff") format("woff"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --velvet: #2A0E2E;
  --velvet-2: #3D1644;
  --velvet-3: #55215D;
  --gold: #C8A04A;
  --gold-lt: #E9CF8A;
  --gold-xl: #F8ECC8;
  --gold-dk: #8A6214;
  --gold-grad: linear-gradient(135deg, #F7E6A8 0%, #D9B456 42%, #A97C22 100%);
  --pearl: #F6F2F7;
  --pearl-2: #EFE8F1;
  --surface: #FFFFFF;
  --line: #EAE1EC;
  --line-2: #D9CCDC;
  --ink: #24121F;
  --ink-2: #4B3748;
  --muted: #7A6577;
  --ruby: #B3173F;
  --money: #0E6E66;
  --money-bg: #E3F3F0;
  --amber: #A45F00;
  --amber-bg: #FCF1DC;
  --red: #BE2430;
  --red-bg: #FBE7E8;
  --blue: #2B5C9E;
  --blue-bg: #E6EEF9;
  --wa: #1A8D4E;
  --serif: "Cardo", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 11px;
  --arch: 50% 50% 14px 14px / 38% 38% 14px 14px;
  --shadow-1: 0 1px 2px rgba(42, 14, 46, .05), 0 6px 18px -10px rgba(42, 14, 46, .18);
  --shadow-2: 0 2px 4px rgba(42, 14, 46, .05), 0 22px 48px -22px rgba(42, 14, 46, .38);
  --jali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 0 28 14 14 28 0 14z' fill='none' stroke='%23E9CF8A' stroke-width='.7' opacity='.12'/%3E%3Ccircle cx='14' cy='14' r='1.1' fill='%23E9CF8A' opacity='.16'/%3E%3C/svg%3E");
  --ease: cubic-bezier(.2, .7, .2, 1);
  --tabbar: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--pearl); color: var(--ink);
  font: 400 16px/1.55 var(--sans); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--velvet-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--velvet); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-xl); color: var(--velvet); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; color: var(--velvet); }
h1, h2, .display { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5.2vw, 54px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font: 650 19px/1.3 var(--sans); letter-spacing: -.01em; }
h4 { font: 650 16px/1.35 var(--sans); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.strong { font-weight: 650; }
.serif { font-family: var(--serif); }
.num, .tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.money { color: var(--money); font-weight: 650; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--gold-dk); margin-bottom: 10px; }
.kicker .i { width: 16px; height: 16px; }
.mb0 { margin-bottom: 0 !important; } .mt0 { margin-top: 0 !important; }
.mt1 { margin-top: 8px; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 28px; } .mt4 { margin-top: 44px; }
.mb1 { margin-bottom: 8px; } .mb2 { margin-bottom: 16px; } .mb3 { margin-bottom: 28px; }

/* ---------- icons ---------- */
.i { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.gem { flex: none; display: inline-block; vertical-align: middle; }

/* ---------- layout ---------- */
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(520px, 100% - 32px); margin-inline: auto; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.nowrap { flex-wrap: nowrap; }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sticky { position: sticky; top: 88px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid-2, .grid-3, .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .hide-sm { display: none !important; }
}
@media (min-width: 761px) { .show-sm { display: none !important; } }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--velvet); --fg: #FFF8EC; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 15.5px; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { color: var(--fg); box-shadow: 0 10px 24px -12px rgba(42, 14, 46, .55); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn .i { width: 18px; height: 18px; }
.btn-gold { --bg: var(--gold-grad); --fg: var(--velvet); background: var(--gold-grad); }
.btn-gold:hover { box-shadow: 0 12px 26px -12px rgba(169, 124, 34, .8); }
.btn-ghost { --bg: transparent; --fg: var(--velvet); --bd: var(--line-2); }
.btn-ghost:hover { --bd: var(--velvet-3); background: rgba(255, 255, 255, .6); }
.btn-soft { --bg: var(--pearl-2); --fg: var(--velvet); }
.btn-light { --bg: rgba(255, 255, 255, .1); --fg: #FFF8EC; --bd: rgba(233, 207, 138, .45); }
.btn-light:hover { --bg: rgba(255, 255, 255, .18); }
.btn-wa { --bg: var(--wa); --fg: #fff; }
.btn-danger { --bg: transparent; --fg: var(--red); --bd: #F0C4C7; }
.btn-danger:hover { --bg: var(--red-bg); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; min-height: 42px; padding: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--velvet-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.red { color: var(--red); }

/* ---------- forms ---------- */
fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
legend { font: 650 17px/1.3 var(--sans); color: var(--velvet); padding: 0; margin-bottom: 14px; }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 13px;
  background: #fff; color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237A6577' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
input:hover, select:hover, textarea:hover { border-color: #C9B8CC; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--velvet-3); box-shadow: 0 0 0 4px rgba(200, 160, 74, .22); }
input::placeholder, textarea::placeholder { color: #A898A6; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--red); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.error { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; color: var(--red); margin-top: 6px; font-weight: 500; }
.error .i { width: 16px; height: 16px; margin-top: 2px; }
.input-prefix { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: 13px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.input-prefix:focus-within { border-color: var(--velvet-3); box-shadow: 0 0 0 4px rgba(200, 160, 74, .22); }
.has-error .input-prefix { border-color: var(--red); }
.input-prefix > span { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.input-prefix input { border: 0; box-shadow: none !important; padding-left: 6px; min-width: 0; }
.input-icon { position: relative; }
.input-icon > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; color: var(--muted); cursor: pointer; border-radius: 9px; }
.pw-wrap { position: relative; } .pw-wrap input { padding-right: 48px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--velvet); flex: none; }
.strength { height: 5px; border-radius: 9px; background: var(--pearl-2); margin-top: 8px; overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; border-radius: 9px; background: var(--red); transition: width .25s var(--ease), background-color .25s; }
input[type=range] { width: 100%; accent-color: var(--gold-dk); height: 30px; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1); }
.card.flat { box-shadow: none; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.card-head a { font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.velvet {
  background: var(--jali), radial-gradient(120% 140% at 85% -10%, var(--velvet-3) 0%, var(--velvet-2) 38%, var(--velvet) 75%);
  color: #F5EDF2; border: 0;
}
.velvet h1, .velvet h2, .velvet h3, .velvet h4 { color: #FFF8EC; }
.velvet .muted { color: #CDB7C9; }
.velvet a:not(.btn) { color: var(--gold-lt); }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--amber-bg); color: #5C3A00; border-radius: var(--r); padding: 14px 16px; font-size: 15px; }
.notice .i { color: var(--amber); margin-top: 2px; }
.notice.info { background: var(--blue-bg); color: #1C3B66; } .notice.info .i { color: var(--blue); }
.notice.bad { background: var(--red-bg); color: #6B141A; } .notice.bad .i { color: var(--red); }
.notice.good { background: var(--money-bg); color: #0B4943; } .notice.good .i { color: var(--money); }
.notice p { margin: 0; } .notice a { color: inherit; font-weight: 650; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* ---------- pills, chips, levels ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px 4px 9px; border-radius: 999px; background: var(--pearl-2); color: var(--ink-2); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.p-placed, .p-submitted, .p-unpaid { background: var(--blue-bg); color: var(--blue); }
.p-awaiting_payment, .p-pending, .p-refund_due { background: var(--amber-bg); color: var(--amber); }
.p-confirmed { background: #EFE6FA; color: #5B2E9A; }
.p-shipped { background: #E2F1F8; color: #12607E; }
.p-delivered, .p-active, .p-available, .p-verified, .p-paid { background: var(--money-bg); color: var(--money); }
.p-returned, .p-cancelled, .p-suspended, .p-rejected { background: var(--red-bg); color: var(--red); }
.p-refunded, .p-not_submitted { background: var(--pearl-2); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--gold-xl); color: var(--gold-dk); }
.tag.rent { background: var(--velvet); color: var(--gold-lt); }
.tag.mine { background: var(--money-bg); color: var(--money); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; font-weight: 550; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--velvet-3); color: var(--velvet); }
.chip.on { background: var(--velvet); border-color: var(--velvet); color: #FFF8EC; }
.chip b { font-weight: 650; font-size: 12px; background: rgba(0, 0, 0, .07); border-radius: 99px; padding: 0 7px; }
.chip.on b { background: rgba(255, 255, 255, .16); }
.lvl { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14px; color: var(--velvet); }
.lvl small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.velvet .lvl { color: var(--gold-lt); }
.ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--velvet); color: var(--gold-lt); font: 700 15px/1 var(--serif); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--gold); }
.ava.lg { width: 72px; height: 72px; font-size: 26px; }
.ava.xl { width: 96px; height: 96px; font-size: 34px; }
.ava.sm { width: 32px; height: 32px; font-size: 12px; box-shadow: 0 0 0 1px var(--gold); border-width: 1.5px; }

/* ---------- tables and lists ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 650; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FCFAFC; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #FBF8FB; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a { font-weight: 600; text-decoration: none; }
.cell-main { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.cell-main img, .cell-main .thumb { width: 44px; height: 54px; border-radius: 22px 22px 6px 6px / 18px 18px 6px 6px; object-fit: cover; flex: none; }
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.li:last-child { border-bottom: 0; }
a.li:hover { background: #FBF8FB; }
.li .grow { flex: 1; min-width: 0; }
.li .t { font-weight: 600; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .s { font-size: 13.5px; color: var(--muted); }
.li .end { text-align: right; flex: none; }
.li .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--pearl-2); color: var(--velvet-3); flex: none; }
.li .ic.money { background: var(--money-bg); color: var(--money); }
.li .ic.gold { background: var(--gold-xl); color: var(--gold-dk); }
.li .ic.red { background: var(--red-bg); color: var(--red); }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 15px; }
.sum-row.total { border-top: 1px dashed var(--line-2); margin-top: 6px; padding-top: 14px; font-weight: 700; font-size: 18px; color: var(--velvet); }
.velvet .sum-row.total { color: #FFF8EC; border-color: rgba(233, 207, 138, .3); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }

/* ---------- stats ---------- */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.stat .k { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 550; }
.stat .k .i { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--pearl-2); color: var(--velvet-3); }
.stat .v { font: 700 clamp(24px, 3vw, 30px)/1.1 var(--serif); color: var(--velvet); margin-top: 12px; font-variant-numeric: lining-nums tabular-nums; }
.stat .s { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat.money-stat .k .i { background: var(--money-bg); color: var(--money); }
.stat.gold-stat .k .i { background: var(--gold-xl); color: var(--gold-dk); }
a.stat { text-decoration: none; color: inherit; transition: transform .15s var(--ease), box-shadow .2s; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

/* ---------- chart, ring, progress ---------- */
.bars { display: flex; align-items: stretch; gap: clamp(4px, 1.4vw, 12px); height: 190px; }
.bars .b { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bars i { display: block; width: 100%; max-width: 64px; min-height: 3px; border-radius: 9px 9px 4px 4px; background: #E9DFEB; transform-origin: bottom; animation: grow .9s var(--ease) both; }
.bars .b:nth-child(2) i { animation-delay: .04s; } .bars .b:nth-child(3) i { animation-delay: .08s; } .bars .b:nth-child(4) i { animation-delay: .12s; } .bars .b:nth-child(5) i { animation-delay: .16s; } .bars .b:nth-child(6) i { animation-delay: .2s; }
.bars .b.now i { background: var(--gold-grad); box-shadow: 0 8px 18px -10px rgba(169, 124, 34, .9); }
.bars .cv { font-size: 12px; font-weight: 650; color: var(--ink-2); margin-bottom: 5px; white-space: nowrap; }
.bars .cl { font-size: 12px; color: var(--muted); margin-top: 7px; white-space: nowrap; }
.bars.dense .cv { display: none; }
.bars.dense .b:hover .cv { display: block; }
@keyframes grow { from { transform: scaleY(0); } }
.ring { display: block; }
.ring-bg { stroke: rgba(255, 255, 255, .12); }
.ring-fg { stroke: url(#ringGold); stroke: var(--gold-lt); animation: ringIn 1.1s var(--ease) both; }
.card:not(.velvet) .ring-bg { stroke: var(--pearl-2); }
.card:not(.velvet) .ring-fg { stroke: var(--gold); }
@keyframes ringIn { from { stroke-dashoffset: var(--c); } }
.progress { height: 10px; border-radius: 99px; background: var(--pearl-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--gold-grad); transition: width .8s var(--ease); }
.velvet .progress { background: rgba(255, 255, 255, .12); }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 90; top: 14px; left: 50%; transform: translateX(-50%); width: min(460px, 100% - 24px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; background: var(--velvet); color: #FFF8EC; padding: 14px 16px; border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(20, 4, 22, .6); font-size: 15px; animation: toastIn .45s var(--ease) both; }
.toast .i { color: var(--gold-lt); margin-top: 1px; }
.toast.error { background: #6B141A; } .toast.error .i { color: #FFB3B8; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; padding: 0 0 0 6px; }
.toast.out { animation: toastOut .35s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* ---------- sheets (modal) ---------- */
dialog.sheet { border: 0; padding: 0; background: transparent; max-width: 520px; width: 100%; margin: auto auto 0; max-height: 92vh; color: var(--ink); }
dialog.sheet::backdrop { background: rgba(26, 6, 28, .55); backdrop-filter: blur(3px); }
dialog.sheet[open] .sheet-body { animation: sheetUp .38s var(--ease) both; }
.sheet-body { background: #fff; border-radius: 26px 26px 0 0; padding: 10px 22px calc(22px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; }
.sheet-grip { width: 44px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 4px auto 14px; }
@media (min-width: 640px) { dialog.sheet { margin: auto; } .sheet-body { border-radius: 26px; padding: 22px 26px 26px; } .sheet-grip { display: none; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }

/* ---------- arch media ---------- */
.arch { border-radius: var(--arch); overflow: hidden; background: var(--pearl-2); aspect-ratio: 4 / 5; position: relative; isolation: isolate; }
.arch > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(200, 160, 74, .35); pointer-events: none; }

/* ======================================================================
   PUBLIC SITE
   ====================================================================== */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(42, 14, 46, .92); backdrop-filter: saturate(1.4) blur(12px); color: #FFF8EC; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand b { font: 700 22px/1 var(--serif); letter-spacing: .01em; color: #FFF8EC; }
.brand-txt { display: block; line-height: 1; }
.brand-txt > span { display: block; font-size: 11.5px; color: var(--gold-lt); font-weight: 600; letter-spacing: .04em; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) { color: #E9DCE6; text-decoration: none; font-size: 15px; font-weight: 550; padding: 8px 12px; border-radius: 99px; }
.site-nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .08); }

.hero { position: relative; overflow: hidden; padding: clamp(36px, 7vw, 84px) 0 clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 6.4vw, 70px); line-height: 1.02; margin-bottom: 18px; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold-lt); }
.hero .lead { color: #E3D3DF; }
.name-try { margin-top: 26px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(233, 207, 138, .35); border-radius: 22px; padding: 16px; max-width: 520px; }
.name-try label { display: block; font-size: 14px; color: var(--gold-lt); font-weight: 600; margin-bottom: 8px; }
.name-try .row { flex-wrap: nowrap; }
.name-try input { background: #fff; border-color: transparent; }
.name-try .btn { flex: none; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: #D9C6D5; }
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof .i { width: 17px; height: 17px; color: var(--gold-lt); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .name-try .row { flex-wrap: wrap; } .name-try .btn { width: 100%; } }

/* phone mockup showing her store */
.phone { position: relative; width: min(320px, 82vw); margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 11px; background: linear-gradient(150deg, #5c2a63, #1b061d 60%); box-shadow: 0 0 0 1.5px rgba(233, 207, 138, .5), 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08); transform: rotate(-2.5deg); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; border-radius: 99px; background: #12020f; z-index: 3; }
.phone-screen { height: 100%; border-radius: 36px; overflow: hidden; background: var(--pearl); display: flex; flex-direction: column; }
.ps-top { padding: 44px 14px 10px; background: #fff; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.ps-top .ava { width: 34px; height: 34px; font-size: 13px; }
.ps-top b { display: block; font: 700 16px/1.1 var(--serif); color: var(--velvet); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.ps-top small { font-size: 10.5px; color: var(--gold-dk); font-weight: 600; }
.ps-url { margin: 9px 12px 0; font-size: 10.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px 10px; display: flex; gap: 6px; align-items: center; overflow: hidden; white-space: nowrap; }
.ps-url b { color: var(--velvet); font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.ps-url .i { width: 12px; height: 12px; color: var(--money); }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 11px 12px; }
.ps-card { background: #fff; border-radius: 14px; padding: 6px; box-shadow: var(--shadow-1); }
.ps-card .arch { aspect-ratio: 4 / 4.6; }
.ps-card p { margin: 6px 2px 0; font-size: 10.5px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.ps-card span { display: block; margin: 2px 2px 2px; font-size: 11px; font-weight: 700; color: var(--velvet); }
.ps-card s { font-weight: 400; color: var(--muted); font-size: 9.5px; margin-left: 3px; }
.ps-bar { margin: auto 12px 12px; background: var(--velvet); color: var(--gold-lt); border-radius: 99px; padding: 9px 12px; font-size: 11px; font-weight: 650; text-align: center; }
.float-note { position: absolute; z-index: 4; background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 13px; box-shadow: var(--shadow-2); font-size: 13px; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.float-note b { color: var(--money); font-size: 15px; }
.float-note .i { color: var(--money); }
.float-note.n1 { left: -8%; top: 30%; animation: bob 5s ease-in-out infinite; }
.float-note.n2 { right: -6%; bottom: 18%; animation: bob 6s ease-in-out -2s infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 480px) { .float-note.n1 { left: -2%; } .float-note.n2 { right: -2%; } }

.section { padding: clamp(52px, 8vw, 96px) 0; }
.section.tight { padding: clamp(36px, 5vw, 60px) 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 34px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; }

.barriers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.barrier { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; position: relative; }
.barrier .was { font-size: 14px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(179, 23, 63, .6); text-decoration-thickness: 1.5px; }
.barrier .now { margin-top: 10px; font-weight: 600; color: var(--velvet); display: flex; gap: 10px; align-items: flex-start; }
.barrier .now .i { color: var(--money); margin-top: 2px; }
@media (max-width: 900px) { .barriers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .barriers { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.step { position: relative; padding: 22px 18px 20px; background: var(--pearl); border-radius: var(--r-lg); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--velvet); color: var(--gold-lt); font: 700 19px/1 var(--serif); margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-2); }
.calc-in { background: #fff; padding: clamp(22px, 4vw, 36px); }
.calc-out { padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; justify-content: center; }
.calc .ctl { margin-bottom: 22px; }
.calc .ctl .row { justify-content: space-between; margin-bottom: 4px; }
.calc .ctl b { font: 700 22px/1 var(--serif); color: var(--velvet); }
.calc .big { font: 700 clamp(46px, 7vw, 72px)/1 var(--serif); margin: 8px 0 10px; font-variant-numeric: lining-nums; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

.ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; }
.rung { background: #fff; border: 1px solid var(--line); border-radius: 20px 20px 14px 14px; padding: 18px 14px; text-align: center; box-shadow: var(--shadow-1); }
.rung .gem { margin: 0 auto 8px; filter: drop-shadow(0 6px 10px rgba(42, 14, 46, .18)); }
.rung h3 { font: 700 21px/1.1 var(--serif); margin: 0; }
.rung .sub { font-size: 13px; color: var(--muted); }
.rung .off { margin: 12px 0 4px; font: 700 26px/1 var(--serif); color: var(--velvet); }
.rung .need { font-size: 13px; color: var(--muted); }
.rung.top { background: var(--velvet); border-color: transparent; color: #F5EDF2; }
.rung.top h3, .rung.top .off { color: var(--gold-lt); }
.rung.top .sub, .rung.top .need { color: #CDB7C9; }
@media (max-width: 860px) { .ladder { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; } .rung { scroll-snap-align: start; } }

.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature { border-radius: 26px; padding: clamp(22px, 4vw, 34px); position: relative; overflow: hidden; }
.feature .i.big { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--gold-xl); color: var(--gold-dk); margin-bottom: 16px; }
.velvet.feature .i.big { background: rgba(233, 207, 138, .15); color: var(--gold-lt); }
@media (max-width: 760px) { .feature-split { grid-template-columns: 1fr; } }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-1); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--velvet); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .25s var(--ease); color: var(--gold-dk); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); }

.cta-band { border-radius: 32px; padding: clamp(32px, 6vw, 64px); text-align: center; }
.cta-band h2 { font-size: clamp(30px, 5vw, 48px); }
.site-footer { background: var(--velvet); color: #CDB7C9; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14.5px; }
.site-footer a { color: #F5EDF2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-lt); }
.site-footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: var(--gold-lt); font-size: 14px; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin-bottom: 8px; }
.site-footer .legal { border-top: 1px solid rgba(233, 207, 138, .18); margin-top: 28px; padding-top: 18px; font-size: 13px; }
@media (max-width: 760px) { .site-footer .foot-grid { grid-template-columns: 1fr 1fr; } .site-footer .foot-grid > :first-child { grid-column: 1 / -1; } }
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; position: fixed; z-index: 35; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateY(140%); transition: transform .35s var(--ease); }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { width: 100%; box-shadow: 0 16px 32px -14px rgba(42, 14, 46, .6); }
}

/* auth pages */
.auth { min-height: calc(100vh - 66px); display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.auth-side { position: relative; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.auth-side h2 { font-size: clamp(30px, 4vw, 46px); }
.auth-side .gems { display: flex; gap: 10px; margin-top: 26px; }
.auth-main { padding: clamp(24px, 5vw, 64px) 16px; display: flex; align-items: flex-start; justify-content: center; }
.auth-card { width: min(470px, 100%); }
.auth-card h1 { font-size: clamp(30px, 4vw, 40px); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; min-height: 0; } .auth-side { display: none; } }
.wizard-steps { display: flex; gap: 8px; margin-bottom: 22px; }
.wizard-steps span { flex: 1; height: 5px; border-radius: 9px; background: var(--pearl-2); position: relative; overflow: hidden; }
.wizard-steps span.on::after { content: ""; position: absolute; inset: 0; background: var(--gold-grad); animation: fillIn .5s var(--ease) both; }
@keyframes fillIn { from { transform: translateX(-100%); } }
.slug-status { display: flex; align-items: center; gap: 6px; font-size: 13.5px; margin-top: 7px; min-height: 20px; font-weight: 550; }
.slug-status.ok { color: var(--money); } .slug-status.bad { color: var(--red); } .slug-status .i { width: 16px; height: 16px; }
.link-preview { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--pearl); border: 1px dashed var(--line-2); margin-bottom: 18px; }
.link-preview b { display: block; font: 700 18px/1.2 var(--serif); color: var(--velvet); }
.link-preview small { color: var(--muted); font-size: 13px; word-break: break-all; }

/* ======================================================================
   CUSTOMER STORE
   ====================================================================== */
.store-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.store-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.store-id { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.store-id b { display: block; font: 700 20px/1.1 var(--serif); color: var(--velvet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-id small { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--gold-dk); font-weight: 650; }
.bag-link { position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--velvet); font-weight: 600; padding: 9px 14px; border-radius: 99px; background: var(--pearl); }
.bag-link .i { width: 22px; height: 22px; }
.bag-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--velvet); color: var(--gold-lt); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.bag-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.preview-bar { background: var(--amber-bg); color: #5C3A00; font-size: 14px; text-align: center; padding: 9px 16px; font-weight: 550; }

.store-hero { margin: 18px 0 8px; border-radius: 30px; padding: clamp(22px, 4.5vw, 44px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ava title seal" "ava acts seal"; gap: 6px 24px; align-items: center; position: relative; overflow: hidden; }
.store-hero > .ava { grid-area: ava; } .store-hero .sh-title { grid-area: title; min-width: 0; align-self: end; } .store-hero .sh-acts { grid-area: acts; align-self: start; margin-top: 10px; } .store-hero .seal { grid-area: seal; }
.store-hero h1 { font-size: clamp(30px, 5vw, 50px); margin-bottom: 6px; }
.store-hero p { margin: 0; color: #E3D3DF; font-size: 16.5px; }
.store-hero .ava { width: 92px; height: 92px; font-size: 34px; box-shadow: 0 0 0 2px var(--gold); border-color: var(--velvet); }
.seal { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(233, 207, 138, .4); font-size: 13px; color: var(--gold-lt); font-weight: 600; white-space: nowrap; }
.seal .i { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .store-hero { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ava title" "acts acts"; gap: 12px 16px; border-radius: 26px; }
  .store-hero .seal { display: none; }
  .store-hero .sh-title { align-self: center; }
  .store-hero h1 { font-size: 30px; }
  .store-hero p { font-size: 15px; }
  .store-hero .ava { width: 64px; height: 64px; font-size: 24px; }
  .store-hero .sh-acts { margin-top: 4px; }
  .shop-bar { flex-wrap: wrap; }
  .shop-bar .chips { flex: 1 1 100%; }
  .shop-bar select { margin-left: auto; }
}
.trust-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 6px 0 4px; }
.trust-strip::-webkit-scrollbar { display: none; }
.trust-strip span { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 7px 13px; font-weight: 550; }
.trust-strip .i { width: 17px; height: 17px; color: var(--gold-dk); }
.shop-bar { display: flex; gap: 10px; align-items: center; margin: 18px 0 12px; }
.shop-bar .chips { flex: 1; padding-bottom: 2px; }
.shop-bar select { width: auto; min-height: 40px; padding: 6px 36px 6px 14px; border-radius: 99px; font-size: 14px; font-weight: 550; flex: none; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }
.pcard { display: block; text-decoration: none; color: inherit; position: relative; }
.pcard .arch { box-shadow: var(--shadow-1); }
.pcard:hover .arch > img { transform: scale(1.05); }
.pcard .badges { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; z-index: 2; }
.pcard .name { display: block; margin-top: 10px; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--ink); }
.pcard .cat { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.price-line { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.price { font: 700 19px/1.2 var(--sans); color: var(--velvet); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mrp { font-size: 13.5px; color: var(--muted); }
.off { font-size: 13px; font-weight: 700; color: var(--money); }

.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(22px, 4vw, 52px); padding: 18px 0 40px; align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }
.gallery { position: sticky; top: 86px; }
.gallery .arch { aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-2); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--arch); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > img { flex: 0 0 100%; scroll-snap-align: center; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; justify-content: center; }
.thumbs button { width: 58px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 29px 29px 8px 8px / 26px 26px 8px 8px; overflow: hidden; cursor: pointer; background: none; opacity: .65; transition: opacity .15s, border-color .15s; }
.thumbs button.on { border-color: var(--gold); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .gallery { position: static; } }
.pdp h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.pdp .price { font-size: 30px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--pearl-2); border-radius: 99px; padding: 5px; margin: 20px 0 16px; }
.seg button { border: 0; background: transparent; border-radius: 99px; min-height: 44px; font-weight: 650; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, color .2s, box-shadow .2s; }
.seg button.on { background: #fff; color: var(--velvet); box-shadow: var(--shadow-1); }
.seg .i { width: 18px; height: 18px; }
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.days label { position: relative; cursor: pointer; }
.days input { position: absolute; opacity: 0; }
.days span { display: block; text-align: center; border: 1.5px solid var(--line-2); border-radius: 16px; padding: 12px 6px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.days b { display: block; font-size: 15px; color: var(--velvet); }
.days em { display: block; font-style: normal; font: 700 19px/1.3 var(--serif); color: var(--ink); margin-top: 2px; }
.days input:checked + span { border-color: var(--velvet); background: #FBF7FC; box-shadow: 0 0 0 3px rgba(200, 160, 74, .3); }
.days input:focus-visible + span { outline: 3px solid var(--gold); }
.qty-step { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 99px; background: #fff; overflow: hidden; }
.qty-step button { width: 42px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--velvet); display: grid; place-items: center; }
.qty-step button:hover { background: var(--pearl); }
.qty-step input { width: 44px; min-height: 44px; border: 0; padding: 0; text-align: center; font-weight: 650; box-shadow: none !important; -moz-appearance: textfield; }
.qty-step input::-webkit-outer-spin-button, .qty-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.perks { display: grid; gap: 2px; margin-top: 22px; border-top: 1px solid var(--line); }
.perks div { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.perks .i { color: var(--gold-dk); margin-top: 1px; }
.perks b { display: block; color: var(--ink); font-weight: 600; }
.perks span { color: var(--muted); font-size: 14px; }
.buy-bar { display: none; }
@media (max-width: 860px) {
  .buy-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 12px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(42, 14, 46, .4); }
  .buy-bar .btn { flex: 1; }
  .buy-bar .price { font-size: 21px; }
  body.has-buybar { padding-bottom: 86px; }
}

.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line .arch { width: 84px; aspect-ratio: 4 / 5; }
.cart-line h4 { margin: 0 0 4px; }
.cart-line .meta { font-size: 13.5px; color: var(--muted); }
.checkout-steps { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); margin: 22px 0 10px; }
.checkout-steps span { display: inline-flex; align-items: center; gap: 6px; }
.checkout-steps span i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--pearl-2); color: var(--muted); }
.checkout-steps span.done i { background: var(--money); color: #fff; }
.checkout-steps span.on { color: var(--velvet); } .checkout-steps span.on i { background: var(--velvet); color: var(--gold-lt); }
.checkout-steps hr { flex: 1; max-width: 50px; border: 0; height: 1px; background: var(--line-2); margin: 0; }
.pay-option { display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid var(--line-2); border-radius: 18px; padding: 15px 16px; margin-bottom: 10px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pay-option:has(input:checked) { border-color: var(--velvet); box-shadow: 0 0 0 3px rgba(200, 160, 74, .28); }
.pay-option input { width: 20px; height: 20px; accent-color: var(--velvet); margin-top: 2px; flex: none; }
.pay-option .i { color: var(--gold-dk); }
.pay-option b { display: block; color: var(--velvet); }
.pay-option span span { font-size: 13.5px; color: var(--muted); }
.summary h3 { margin-bottom: 10px; }
.summary .line-mini { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 14.5px; }
.summary .line-mini .arch { width: 44px; flex: none; }
.summary .line-mini .grow { flex: 1; min-width: 0; }

.order-hero { text-align: center; padding: 34px 0 10px; }
.tick { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--money-bg); display: grid; place-items: center; }
.tick svg { width: 46px; height: 46px; stroke: var(--money); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .25s var(--ease) forwards; }
.tick.wait { background: var(--amber-bg); } .tick.wait svg { stroke: var(--amber); }
.tick.stop { background: var(--red-bg); } .tick.stop svg { stroke: var(--red); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.tracker { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin: 8px 0 4px; }
.tracker::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 17px; height: 3px; background: var(--pearl-2); border-radius: 9px; }
.tracker .fill { position: absolute; left: 12.5%; top: 17px; height: 3px; background: var(--gold-grad); border-radius: 9px; transition: width .8s var(--ease); }
.tracker div { position: relative; text-align: center; font-size: 13px; color: var(--muted); font-weight: 550; }
.tracker div i { width: 36px; height: 36px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); color: var(--muted); position: relative; z-index: 1; }
.tracker div i .i { width: 17px; height: 17px; }
.tracker div.done { color: var(--velvet); } .tracker div.done i { background: var(--velvet); border-color: var(--velvet); color: var(--gold-lt); }
.tracker div.now i { box-shadow: 0 0 0 6px rgba(200, 160, 74, .28); }
.tracker.three { grid-template-columns: repeat(3, 1fr); }
.tracker.three::before { left: 16.66%; right: 16.66%; }
.tracker.three .fill { left: 16.66%; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-xl); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; } .timeline li:last-child::after { display: none; }
.timeline b { color: var(--velvet); }
.timeline .when { font-size: 13px; color: var(--muted); }

.store-footer { margin-top: 48px; background: #fff; border-top: 1px solid var(--line); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.store-footer .powered { display: inline-flex; align-items: center; gap: 10px; color: var(--velvet); font-weight: 600; }
.store-footer .powered b { font: 700 18px/1 var(--serif); }
.store-footer a { color: var(--ink-2); }
.wa-float { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30; box-shadow: 0 14px 30px -12px rgba(26, 141, 78, .7); }
@media (max-width: 640px) { .wa-float span { display: none; } .wa-float { width: 56px; height: 56px; padding: 0; } .wa-float .i { width: 26px; height: 26px; } }

.empty { text-align: center; padding: 44px 20px; }
.empty .art { width: 120px; margin: 0 auto 18px; }
.empty h3 { font: 700 24px/1.2 var(--serif); }
.empty p { color: var(--muted); max-width: 44ch; margin-inline: auto; }

/* ======================================================================
   APP SHELL (partner + admin)
   ====================================================================== */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 22px 16px; gap: 6px; }
.side .brand { padding: 4px 8px 18px; }
.side-store { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(233, 207, 138, .18); margin-bottom: 14px; text-decoration: none; }
.side-store b { display: block; color: #FFF8EC; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-store .lvl { font-size: 12.5px; }
.side-store > div { min-width: 0; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; color: #DCCAD8; text-decoration: none; font-weight: 550; font-size: 15px; transition: background .15s, color .15s; position: relative; }
.side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side nav a.on { background: rgba(233, 207, 138, .14); color: var(--gold-lt); }
.side nav a.on::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 4px 4px 0; background: var(--gold); }
.side nav a .count { margin-left: auto; font-size: 11.5px; font-weight: 700; background: var(--gold); color: var(--velvet); border-radius: 99px; padding: 1px 8px; }
.side .side-label { font-size: 12px; color: #9F889B; font-weight: 600; padding: 14px 12px 6px; }
.side .side-foot { margin-top: auto; padding-top: 16px; }
.side .side-foot form button, .side .side-foot a { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; background: none; border: 0; color: #BFA9BB; font-weight: 550; font-size: 15px; cursor: pointer; text-decoration: none; }
.side .side-foot form button:hover, .side .side-foot a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.main { min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 48px; }
.main-inner { max-width: 1120px; margin: 0 auto; }
.topbar { display: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); margin-bottom: 10px; }
.back:hover { color: var(--velvet); }
.back .i { width: 18px; height: 18px; }
.tabbar { display: none; }
@media (max-width: 960px) {
  .app { display: block; }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; min-height: 60px; }
  .topbar .brand b { font-size: 20px; }
  .topbar .brand-mark { width: 30px; height: 30px; }
  .main { padding: 20px 16px calc(var(--tabbar) + 28px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(42, 14, 46, .5); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; position: relative; }
  .tabbar .i { width: 23px; height: 23px; }
  .tabbar .on { color: var(--velvet); }
  .tabbar .on::before { content: ""; position: absolute; top: 0; width: 32px; height: 3px; border-radius: 0 0 4px 4px; background: var(--gold); }
  .tabbar .badge-dot { position: absolute; top: 9px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; background: var(--ruby); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
}
.menu-sheet nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.menu-sheet nav a, .menu-sheet nav button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; border-radius: 18px; background: var(--pearl); color: var(--velvet); text-decoration: none; font-size: 13.5px; font-weight: 600; text-align: center; border: 0; cursor: pointer; width: 100%; }
.menu-sheet nav .i { width: 26px; height: 26px; color: var(--gold-dk); }
.menu-sheet nav a.on { background: var(--velvet); color: var(--gold-lt); } .menu-sheet nav a.on .i { color: var(--gold-lt); }

/* partner home */
.welcome { border-radius: 28px; padding: clamp(20px, 3.5vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; margin-bottom: 18px; overflow: hidden; position: relative; }
.welcome h1 { font-size: clamp(28px, 4vw, 42px); margin: 4px 0 8px; }
.welcome .hello { color: var(--gold-lt); font-weight: 600; font-size: 15px; }
.link-box { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(233, 207, 138, .3); border-radius: 16px; padding: 8px 8px 8px 14px; margin: 16px 0 14px; max-width: 560px; }
.link-box .i { color: var(--gold-lt); }
.link-box code { flex: 1; min-width: 0; font: 550 14.5px/1.3 var(--sans); color: #FFF8EC; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome .lvl-ring { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.welcome .lvl-ring .ring { position: absolute; inset: 0; }
.welcome .lvl-ring .inner { text-align: center; }
.welcome .lvl-ring .inner .gem { margin: 0 auto 2px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)); }
.welcome .lvl-ring .inner b { display: block; font: 700 19px/1.1 var(--serif); color: var(--gold-lt); }
.welcome .lvl-ring .inner small { font-size: 12px; color: #CDB7C9; }
@media (max-width: 640px) { .welcome { grid-template-columns: 1fr; } .welcome .lvl-ring { display: none; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .tickbox { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; color: transparent; }
.checklist li.done .tickbox { background: var(--money); border-color: var(--money); color: #fff; }
.checklist .tickbox .i { width: 15px; height: 15px; stroke-width: 3; }
.checklist li.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.checklist a { font-weight: 600; text-decoration: none; }
.checklist .go { margin-left: auto; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--velvet); font-weight: 600; font-size: 13.5px; text-align: center; box-shadow: var(--shadow-1); transition: transform .15s var(--ease); }
.quick a:hover { transform: translateY(-2px); }
.quick .i { width: 40px; height: 40px; padding: 9px; border-radius: 13px; background: var(--gold-xl); color: var(--gold-dk); }
@media (max-width: 520px) { .quick a { padding: 12px 4px; font-size: 12.5px; } .quick .i { width: 36px; height: 36px; padding: 8px; } }

/* catalogue */
.cat-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.cat-tools .input-icon { flex: 1; min-width: 220px; }
.cat-tools input { min-height: 46px; border-radius: 99px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 10px 10px 14px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.ccard .arch { aspect-ratio: 4 / 4.3; }
.ccard .top-tags { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; z-index: 2; }
.ccard h4 { margin: 10px 4px 2px; font-size: 15px; line-height: 1.3; }
.ccard .cat { margin: 0 4px; font-size: 12.5px; color: var(--muted); }
.earn { margin: 10px 4px 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.earn .lbl { font-size: 12px; color: var(--muted); }
.earn .val { font: 700 22px/1.1 var(--serif); color: var(--money); }
.earn .sell { text-align: right; }
.earn .sell .val { color: var(--velvet); font-size: 17px; font-family: var(--sans); font-weight: 650; }
.ccard .acts { margin-top: auto; display: flex; gap: 8px; padding: 0 4px; }
.ccard .acts .btn { flex: 1; padding: 0 10px; }
.ccard .acts .btn-icon { flex: none; width: 38px; }
@media (max-width: 560px) {
  .ccard .acts { gap: 6px; padding: 0; }
  .ccard .acts .btn:not(.btn-icon) { padding: 0 8px; font-size: 13.5px; min-width: 0; }
  .ccard .acts .btn:not(.btn-icon) .i { display: none; }
  .ccard .acts .btn-icon { width: 36px; min-height: 36px; }
  .stat { padding: 14px; }
  .stat .k .i { display: none; }
  .stat .v { margin-top: 6px; }
}
@media (max-width: 560px) { .earn { flex-direction: column; align-items: flex-start; } .earn .sell { text-align: left; } .earn .val { font-size: 20px; } .ccard h4 { font-size: 14px; } }
.price-sheet .big-earn { text-align: center; padding: 18px; border-radius: 20px; background: var(--money-bg); margin: 14px 0 18px; }
.price-sheet .big-earn small { display: block; color: var(--money); font-weight: 600; font-size: 13.5px; }
.price-sheet .big-earn b { font: 700 44px/1.1 var(--serif); color: var(--money); font-variant-numeric: lining-nums; }
.price-sheet .band { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 2px; }
.price-sheet .price-input { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 6px; }
.price-sheet .price-input span { font: 700 34px/1 var(--serif); color: var(--velvet); }
.price-sheet .price-input input { width: 150px; text-align: center; font: 700 34px/1 var(--serif); color: var(--velvet); border: 0; border-bottom: 2px solid var(--gold); border-radius: 0; padding: 4px; min-height: 0; box-shadow: none !important; }
.price-sheet .presets { display: flex; gap: 8px; justify-content: center; margin: 10px 0 18px; flex-wrap: wrap; }
.price-sheet .presets button .i { width: 15px; height: 15px; color: var(--gold-dk); margin: -2px 2px 0 0; }
.price-sheet .presets button { border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.price-sheet .presets button:hover { border-color: var(--velvet-3); color: var(--velvet); }
.sheet-head { display: flex; gap: 14px; align-items: center; }
.sheet-head .arch { width: 64px; flex: none; }
.sheet-head h3 { margin: 0 0 2px; }

/* wallet */
.balance { border-radius: 28px; padding: clamp(22px, 4vw, 32px); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.balance .main-amt small { color: var(--gold-lt); font-weight: 600; font-size: 14px; }
.balance .main-amt b { display: block; font: 700 clamp(40px, 6vw, 56px)/1.05 var(--serif); color: #FFF8EC; margin: 6px 0; font-variant-numeric: lining-nums; }
.balance .sub-amt { border-left: 1px solid rgba(233, 207, 138, .2); padding-left: 18px; display: flex; flex-direction: column; justify-content: center; }
.balance .sub-amt small { color: #CDB7C9; font-size: 13.5px; }
.balance .sub-amt b { font: 700 26px/1.2 var(--serif); color: #FFF8EC; }
@media (max-width: 700px) { .balance { grid-template-columns: 1fr 1fr; } .balance .main-amt { grid-column: 1 / -1; } .balance .sub-amt:nth-child(2) { border-left: 0; padding-left: 0; } }

/* team */
.team-tree { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 10px 0; }
.team-tree .me { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.team-tree .branch { width: 2px; height: 22px; background: var(--line-2); }
.team-tree .kids { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; border-top: 2px solid var(--line-2); padding-top: 16px; position: relative; }

/* admin extras */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.kanban a { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-decoration: none; color: inherit; box-shadow: var(--shadow-1); transition: transform .15s var(--ease); }
.kanban a:hover { transform: translateY(-2px); }
.kanban b { display: block; font: 700 30px/1.1 var(--serif); color: var(--velvet); margin: 6px 0 2px; }
.kanban .k { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.kanban .s { font-size: 12.5px; color: var(--muted); }
.kanban a.hot { border-color: var(--gold); background: #FFFBF0; }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.band-viz { position: relative; height: 70px; margin: 14px 12px 6px; }
.band-viz .track { position: absolute; left: 0; right: 0; top: 22px; height: 10px; border-radius: 99px; background: var(--pearl-2); }
.band-viz .zone { position: absolute; top: 22px; height: 10px; border-radius: 99px; background: var(--gold-grad); }
.band-viz .mk { position: absolute; top: 0; transform: translateX(-50%); font-size: 11.5px; font-weight: 650; color: var(--ink-2); white-space: nowrap; text-align: center; }
.band-viz .mk::after { content: ""; display: block; width: 2px; height: 16px; margin: 3px auto 0; background: var(--velvet); border-radius: 2px; }
.band-viz .mk.low { top: 30px; } .band-viz .mk.low::after { display: none; } .band-viz .mk.low::before { content: ""; display: block; width: 2px; height: 14px; margin: 0 auto 3px; background: var(--velvet-3); border-radius: 2px; }
.dropzone { border: 2px dashed var(--line-2); border-radius: 20px; padding: 24px; text-align: center; background: var(--pearl); cursor: pointer; transition: border-color .15s, background .15s; display: block; }
.dropzone:hover, .dropzone.over { border-color: var(--gold); background: #FFFBF0; }
.dropzone .i { width: 34px; height: 34px; color: var(--gold-dk); margin: 0 auto 8px; display: block; }
.dropzone input { display: none; }
.img-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.img-admin label { display: block; cursor: pointer; }
.img-admin .arch { aspect-ratio: 4 / 5; }
.img-admin span { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12.5px; color: var(--red); margin-top: 6px; }
.img-admin input:checked + .arch { opacity: .35; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 10px; }
.previews img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 40px 40px 8px 8px / 32px 32px 8px 8px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 550; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 46px; height: 28px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--money); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid var(--gold); outline-offset: 2px; }
.settings-nav { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; scrollbar-width: none; position: sticky; top: 0; z-index: 5; background: var(--pearl); padding: 6px 0; }
@media (max-width: 960px) { .settings-nav { top: 60px; } }

/* misc */
.reveal { animation: rise .6s var(--ease) both; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
.page-plain { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.center-box { text-align: center; }
.terms h2 { font-size: 26px; margin-top: 34px; }
.terms li { margin-bottom: 6px; }
@media print { .site-header, .side, .tabbar, .topbar, .store-header, .wa-float, .buy-bar { display: none !important; } .app { display: block; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.welcome.profile { grid-template-columns: auto minmax(0, 1fr) auto; }
@media (max-width: 760px) {
  .welcome.profile { grid-template-columns: auto minmax(0, 1fr); }
  .welcome.profile > .row:last-child { grid-column: 1 / -1; justify-content: flex-start !important; }
  .welcome.profile .ava.xl { width: 64px; height: 64px; font-size: 24px; }
}
.next-step { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.next-step form { margin: 0; }
.preview-hero { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ava title" "acts acts"; }
.preview-hero .seal { display: inline-flex !important; }
@media (max-width: 720px) {
  .shop-bar { flex-wrap: wrap; }
  .shop-bar .chips { flex: 1 1 100%; }
  .shop-bar select { margin-left: auto; }
}

/* ---------- growth tools: offers, share kit, academy, news ---------- */
.empty-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50% 50% 16px 16px / 42% 42% 16px 16px; background: var(--gold-xl); color: var(--gold-dk); margin-bottom: 12px; }
.empty-ic .i { width: 30px; height: 30px; }
.code-tag { display: inline-block; font: 700 13px/1 var(--sans); letter-spacing: .06em; padding: 5px 9px; border-radius: 8px; border: 1.5px dashed var(--gold); background: var(--gold-xl); color: var(--gold-dk); cursor: pointer; }
.sum-row .code-tag { font-size: 11.5px; padding: 3px 7px; margin-left: 4px; cursor: default; }

/* store side */
.offer-ribbon { display: flex; gap: 12px; align-items: center; margin: 14px 0 0; padding: 12px 16px; border-radius: var(--r); background: linear-gradient(90deg, #FBEFF2, var(--gold-xl)); color: #5E0618; }
.offer-ribbon .i { color: var(--ruby); flex: none; }
.offer-ribbon p { margin: 0; font-size: 15px; }
.offer-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--ruby); font-weight: 600; font-size: 14.5px; margin: 6px 0 0; }
.offer-box { margin: 10px 0 4px; border-top: 1px dashed var(--line-2); padding-top: 10px; }
.offer-box summary { cursor: pointer; display: flex; gap: 8px; align-items: center; color: var(--velvet-3); font-weight: 600; font-size: 14.5px; list-style: none; }
.offer-box summary::-webkit-details-marker { display: none; }
.offer-form { display: flex; gap: 8px; margin-top: 10px; }
.offer-form input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.offer-applied { display: flex; gap: 10px; align-items: center; margin: 10px 0 4px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--money-bg); color: #0B4943; font-size: 14px; }
.offer-applied.bad { background: var(--red-bg); color: #6B141A; }
.offer-applied .i { flex: none; }

/* partner offers */
.tickets { display: grid; gap: 14px; }
.ticket { display: grid; grid-template-columns: 104px minmax(0, 1fr); background: #fff; border-radius: var(--r); box-shadow: var(--shadow-1); border: 1px solid var(--line); overflow: hidden; position: relative; }
.ticket-l { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--velvet) var(--jali); color: var(--gold-lt); position: relative; padding: 14px 6px; }
.ticket-l::after { content: ""; position: absolute; right: -1px; top: 8px; bottom: 8px; border-right: 2px dashed rgba(233, 207, 138, .45); }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 95px; width: 18px; height: 18px; border-radius: 50%; background: var(--pearl); z-index: 1; }
.ticket::before { top: -9px; } .ticket::after { bottom: -9px; }
.ticket-pct { font: 700 36px/1 var(--serif); }
.ticket-l span { font-size: 13px; font-weight: 600; opacity: .8; }
.ticket-r { padding: 14px 16px; min-width: 0; }
.ticket-code { display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; font: 700 20px/1.2 var(--sans); letter-spacing: .08em; color: var(--velvet); }
.ticket-code .i { width: 16px; height: 16px; color: var(--muted); }
.ticket-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.ticket.paused, .ticket.expired, .ticket.used { opacity: .72; }
.ticket.paused .ticket-l, .ticket.expired .ticket-l, .ticket.used .ticket-l { filter: grayscale(.8); }
.pct-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pct-pick.tone-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pct-pick label { position: relative; cursor: pointer; }
.pct-pick input { position: absolute; opacity: 0; }
.pct-pick span { display: block; text-align: center; padding: 11px 4px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; color: var(--velvet); transition: background .15s, border-color .15s; }
.tone-pick span { font-size: 13px; font-weight: 600; }
.pct-pick input:checked + span { background: var(--velvet); border-color: var(--velvet); color: var(--gold-lt); }
.pct-pick input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.offer-calc { background: var(--pearl); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 16px; }
.offer-calc .sum-row { padding: 3px 0; }

/* share kit */
.pick-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 -2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.pick { flex: none; width: 116px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 8px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pick img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--pearl-2); }
.pick span { font-size: 12.5px; line-height: 1.25; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.pick b { font-size: 13px; color: var(--velvet); }
.pick.on { border-color: var(--velvet); box-shadow: 0 0 0 3px rgba(85, 33, 93, .14); }
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.share-stage { text-align: center; }
.seg-sm { margin: 0 0 14px; }
.seg-sm button { min-height: 38px; font-size: 14px; }
.canvas-wrap { margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-2); background: var(--velvet); }
.canvas-wrap[data-format-box="status"] { max-width: 300px; }
.canvas-wrap[data-format-box="post"] { max-width: 380px; }
.canvas-wrap canvas { display: block; width: 100%; height: auto; }
.share-stage .switch { display: flex; justify-content: center; }
.share-text textarea { width: 100%; font-size: 15px; line-height: 1.5; }
.share-acts { display: grid; gap: 10px; margin-top: 14px; }
.share-mini { gap: 8px; }
.share-mini .btn { padding-inline: 8px; }
.how summary { cursor: pointer; display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--velvet-3); }
.how ol { padding-left: 20px; margin-top: 8px; }
.store-share { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
@media (max-width: 860px) { .share-grid { grid-template-columns: 1fr; } }

/* academy */
.learn-hero { grid-template-columns: auto minmax(0, 1fr); }
.learn-hero h2 { color: #FFF8EC; font-size: clamp(24px, 3.4vw, 32px); margin: 4px 0 6px; }
.learn-hero p { color: #E3D3DF; margin: 0 0 14px; }
.ring-box { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.ring-box .ring { position: absolute; inset: 0; }
.ring-label { text-align: center; color: #CDB7C9; font-size: 12px; line-height: 1.2; }
.ring-label b { display: block; font: 700 24px/1 var(--serif); color: var(--gold-lt); }
@media (max-width: 640px) { .learn-hero { grid-template-columns: 1fr; } .ring-box { display: none; } }
.lessons { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lesson-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); transition: border-color .15s, transform .15s var(--ease); }
.lesson-row:hover { border-color: var(--line-2); transform: translateY(-1px); color: var(--ink); }
.lesson-row .t { display: block; font-weight: 650; color: var(--velvet); }
.lesson-row .s { display: block; font-size: 14px; color: var(--muted); }
.lesson-row .end { display: inline-flex; gap: 4px; align-items: center; }
.lesson-row .end .i { width: 15px; height: 15px; }
.lesson-num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--serif); background: var(--pearl-2); color: var(--velvet); }
.lesson-num .i { width: 18px; height: 18px; }
.lesson-row.done .lesson-num { background: var(--money-bg); color: var(--money); }
.lesson-row.current { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 160, 74, .16), var(--shadow-1); }
.lesson-row.current .lesson-num { background: var(--gold-grad); color: var(--velvet); }
.lesson { max-width: 760px; }
.lesson h1 { font-size: clamp(28px, 4vw, 40px); margin: 6px 0 8px; }
.lesson-progress { height: 4px; border-radius: 4px; background: var(--pearl-2); overflow: hidden; }
.lesson-progress i { display: block; height: 100%; background: var(--gold-grad); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; margin: 18px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 66ch; }
.prose h3 { font: 700 21px/1.3 var(--serif); color: var(--velvet); margin: 26px 0 8px; }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--gold); }
.prose b { color: var(--ink); }
.prose.small { font-size: 14.5px; }
.lesson-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; }

/* announcements */
.news-stack { display: grid; gap: 10px; }
.news-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 14px 14px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--velvet-3); box-shadow: var(--shadow-1); transition: opacity .3s, transform .3s var(--ease); }
.news-card p { margin-top: 2px; color: var(--ink-2); }
.news-card.tone-offer { border-left-color: var(--gold); }
.news-card.tone-important { border-left-color: var(--ruby); }
.news-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--pearl-2); color: var(--velvet-3); }
.tone-offer .news-ic { background: var(--gold-xl); color: var(--gold-dk); }
.tone-important .news-ic { background: var(--red-bg); color: var(--ruby); }
.news-x { background: transparent; color: var(--muted); }
.news-card.ended { opacity: .6; }
.news-card.out { opacity: 0; transform: translateX(16px); }
@media (max-width: 960px) { .offers-split { grid-template-columns: 1fr; } .offers-split > aside { position: static; } .offers-split:not(.has-list) > aside { order: -1; } }
.grid.share-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.share-mini .btn { min-width: 0; font-size: 14px; gap: 6px; padding-inline: 6px; } .share-mini .btn .i { width: 17px; height: 17px; }

/* ---------- product videos ---------- */
.tag.vid { background: var(--ruby); color: #FFF4F6; }
.tag.vid .i { width: 12px; height: 12px; fill: currentColor; }
.slide-video { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 4.6; background: #1E0921; display: flex; align-items: center; justify-content: center; }
.slide-video video, .slide-video iframe { width: 100%; height: 100%; object-fit: contain; border: 0; background: #1E0921; }
.thumbs button { position: relative; }
.thumbs video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(30, 9, 33, .35); color: #fff; }
.thumb-play .i { width: 20px; height: 20px; fill: currentColor; }
.vid-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.vid-admin label { display: block; cursor: pointer; }
.vid-frame { position: relative; aspect-ratio: 9 / 14; border-radius: 14px; overflow: hidden; background: #1E0921; }
.vid-frame video, .vid-frame img { width: 100%; height: 100%; object-fit: cover; }
.vid-kind { position: absolute; left: 8px; bottom: 8px; font-size: 11.5px; font-weight: 650; color: #fff; background: rgba(0, 0, 0, .55); padding: 2px 8px; border-radius: 99px; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.vid-play .i { width: 30px; height: 30px; fill: currentColor; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.vid-admin span:not(.vid-kind):not(.vid-play) { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12.5px; color: var(--red); margin-top: 6px; }
.vid-admin input:checked + .vid-frame { opacity: .35; }
.vid-previews { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.vid-prev { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); text-align: center; }
.vid-prev video { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; border-radius: 12px; background: #1E0921; }
.vid-prev.bad span { color: var(--red); font-weight: 650; }
.vid-prev.bad video { outline: 2px solid var(--red); }
.pick { position: relative; }
.pick-vid { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ruby); color: #fff; }
.pick-vid .i { width: 13px; height: 13px; fill: currentColor; }
.share-videos { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.share-videos h4 { margin: 0 0 4px; font-size: 16px; color: var(--velvet); }
.share-video-list { display: grid; gap: 10px; }
.share-video { display: flex; gap: 12px; align-items: center; }
.share-video video, .share-video img { width: 54px; height: 72px; object-fit: cover; border-radius: 10px; background: #1E0921; flex: none; }

/* ---------- product removal ---------- */
.sample-note { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sample-note p { margin: 0; }
.check-col { width: 44px; text-align: center; }
.check-col input { width: 18px; height: 18px; accent-color: var(--velvet); cursor: pointer; }
.bulk-bar { position: sticky; top: 12px; z-index: 5; display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 10px 14px; border-radius: var(--r); background: var(--velvet); color: #FFF8EC; box-shadow: var(--shadow-2); }
.bulk-bar .btn-danger { --bg: #FFF4F6; --bd: #FFF4F6; }

/* ---------- product import ---------- */
.import-rules { padding-left: 18px; } .import-rules li { margin-bottom: 8px; }
.import-log { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.import-bar { height: 6px; border-radius: 6px; background: var(--pearl-2); overflow: hidden; }
.import-bar i { display: block; height: 100%; width: 8%; background: var(--gold-grad); transition: width .4s var(--ease); }
.import-log ul { max-height: 260px; overflow: auto; padding-left: 18px; margin: 0 0 12px; }

/* real logo image */
.brand-mark.brand-logo { width: auto; height: 44px; max-width: 120px; object-fit: contain; }
.topbar .brand-mark.brand-logo { height: 38px; }
