/* ==========================================================================
   Antibuy — page styles (wallet, account, creator, quote, how-it-works)
   ========================================================================== */

/* ------------------------------------------------------------------ wallet */
.wallet-hero {
  margin: 0 16px; border-radius: var(--radius-lg); padding: 20px;
  background: linear-gradient(135deg, var(--ink) 0%, #2E2721 100%);
  color: var(--paper); position: relative; overflow: hidden;
}
.wallet-hero .lbl { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .55; }
.wallet-hero .amt { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.wallet-hero .amt small { font-size: 13px; font-weight: 600; opacity: .6; margin-inline-start: 6px; letter-spacing: .06em; }
.wallet-hero .acts { display: flex; gap: 8px; margin-top: 16px; }
.wallet-hero .acts .btn { height: 36px; font-size: 12px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.wallet-hero .glow { position: absolute; width: 180px; height: 180px; border-radius: 999px; background: var(--brand); opacity: .3; filter: blur(40px); inset-inline-end: -40px; top: -60px; }

.tx { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx .ic { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--sand); flex: none; }
.tx .ic svg { width: 15px; height: 15px; stroke: var(--ink-2); fill: none; stroke-width: 1.9; }
.tx .t { font-size: 12px; font-weight: 600; }
.tx .s { font-size: 10px; color: var(--muted); margin-top: 2px; }
.tx .amt { margin-inline-start: auto; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tx .amt.in { color: var(--ok); }

/* ---------------------------------------------------------------------- me */
.profile { display: flex; align-items: center; gap: 13px; padding: 6px 16px 16px; }
.avatar { width: 56px; height: 56px; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.profile .n { font-size: 16px; font-weight: 700; }
.profile .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 16px; }
.quad a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; position: relative; }
.quad svg { width: 21px; height: 21px; stroke: var(--brand); fill: none; stroke-width: 1.7; }
.quad span { font-size: 10px; font-weight: 600; color: var(--ink-2); }
.quad .n { position: absolute; top: 0; inset-inline-end: 8px; min-width: 15px; height: 15px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 9px; font-weight: 700; line-height: 15px; text-align: center; }

.menu { margin: 14px 16px 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 11px; padding: 14px 15px; border-bottom: 1px solid var(--line); width: 100%; text-align: start; }
.menu-row:last-child { border-bottom: 0; }
.menu-row svg.mi { width: 19px; height: 19px; stroke: var(--ink-2); fill: none; stroke-width: 1.7; }
.menu-row .t { font-size: 13px; font-weight: 600; }
.menu-row .chev { margin-inline-start: auto; color: var(--muted); }
.menu-row .chev svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

.theme-swatches { display: flex; gap: 10px; align-items: center; }
.tsw { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.tsw .dots { display: flex; }
.tsw .dots i { width: 16px; height: 16px; border-radius: 99px; border: 2px solid var(--card); margin-inline-start: -5px; }
.tsw .dots i:first-child { margin: 0; }
.tsw span { font-size: 9px; color: var(--muted); font-weight: 600; }
.tsw.on span { color: var(--ink); font-weight: 700; }
.tsw.on .dots { box-shadow: 0 0 0 2px var(--ink); border-radius: 99px; }

/* ----------------------------------------------------------------- creator */
.creator-hero {
  margin: 0 16px; border-radius: var(--radius-lg); padding: 18px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.creator-hero .lbl { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .72; }
.creator-hero .code { font-family: var(--serif); font-size: 25px; letter-spacing: .1em; margin-top: 4px; }
.creator-hero .row { justify-content: space-between; margin-top: 16px; }
.creator-hero .kpi .v { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.creator-hero .kpi .l { font-size: 9.5px; opacity: .72; margin-top: 1px; }
.creator-hero .glow { position: absolute; width: 150px; height: 150px; border-radius: 999px; background: #fff; opacity: .12; filter: blur(30px); inset-inline-end: -30px; top: -40px; }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; padding: 0 4px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar i { width: 100%; border-radius: 6px 6px 3px 3px; background: var(--brand-soft); transition: height .6s; }
.bars .bar.on i { background: var(--brand); }
.bars .bar span { font-size: 9px; color: var(--muted); font-weight: 600; }

/* ------------------------------------------------------------------- quote */
.quote-hero { margin: 0 16px; padding: 18px; border-radius: var(--radius-lg); background: var(--ink); color: var(--paper); }
.quote-hero h2 { font-family: var(--serif); font-size: 23px; line-height: 1.15; font-weight: 600; }
.quote-hero p { font-size: 11.5px; opacity: .72; margin-top: 6px; line-height: 1.5; }
.quote-hero .platforms { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.quote-hero .platforms span { font-size: 9.5px; font-weight: 700; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); letter-spacing: .04em; }
.quote-input {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  height: 50px; padding: 0 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.quote-input svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 1.8; }
.quote-input input {
  flex: 1; height: 48px; border-radius: 0; border: 0; padding: 0;
  font-size: 12.5px; background: transparent; color: var(--ink); outline: none; min-width: 0;
}
.quote-input input::placeholder { color: var(--muted); }
/* 深色底上沿用旧白字规则时的兜底：hero 内仍按深色处理 */
.hero .quote-input, .dark .quote-input {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); box-shadow: none;
}
.hero .quote-input svg, .dark .quote-input svg { stroke: rgba(255,255,255,.6); }
.hero .quote-input input, .dark .quote-input input { color: #fff; }
.hero .quote-input input::placeholder, .dark .quote-input input::placeholder { color: rgba(255,255,255,.45); }

.quote-result { margin: 14px 16px 0; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.qr-head { padding: 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.qr-head .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; flex: none; }
.qr-head .ic svg { width: 18px; height: 18px; stroke: var(--brand); fill: none; stroke-width: 1.8; }
.qr-lines { padding: 6px 0; }
.qr-line { display: flex; justify-content: space-between; align-items: center; padding: 6px 15px; font-size: 12px; color: var(--ink-2); }
.qr-line b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.qr-total { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; background: var(--sand); }
.qr-total .l { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.qr-total .v { font-size: 20px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }

.steps { counter-reset: s; }
.step-item { display: flex; gap: 12px; padding: 12px 0; }
.step-item .n {
  width: 26px; height: 26px; border-radius: 999px; flex: none;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.step-item .t { font-size: 12.5px; font-weight: 700; }
.step-item .s { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

/* misc helpers */
.hr { height: 1px; background: var(--line); margin: 16px; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.note { font-size: 11px; line-height: 1.55; color: var(--muted); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 12px; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; text-align: end; }
