:root {
  --navy: #0b1530;
  --navy-2: #13214a;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fc;
  --card: #ffffff;
  --accent: #0891b2;
  --accent-2: #6366f1;
  --grad: linear-gradient(135deg, #22d3ee 0%, #818cf8 100%);
  --ok: #059669;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.02em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.demo-banner { background: #fef3c7; color: #78350f; text-align: center; font-size: .8rem; padding: 6px 16px; }

/* top bar */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { width: 30px; height: 30px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a, .nav button.link { color: #cbd5e1; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav a:hover, .nav button.link:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav .chip { background: rgba(34, 211, 238, .15); color: #a5f3fc; font-weight: 600; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
}

.container { max-width: 1120px; width: 100%; margin: 0 auto; padding: 28px 16px 48px; flex: 1; outline: none; }
.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px; border-top: 1px solid var(--line); }

/* hero */
.hero { background: radial-gradient(1200px 400px at 80% -10%, rgba(129,140,248,.35), transparent), var(--navy); color: #fff;
  border-radius: 24px; padding: clamp(28px, 6vw, 64px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.hero p { color: #cbd5e1; font-size: 1.1rem; max-width: 34em; }
.hero-gem { width: 100%; max-width: 320px; justify-self: center; filter: drop-shadow(0 20px 40px rgba(34,211,238,.35)); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-gem { max-width: 180px; order: -1; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: var(--navy); display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }

/* cards & layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.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)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; }

.stat { padding: 18px; }
.stat .label { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.stat.hl { background: var(--navy); color: #fff; border-color: var(--navy); }
.stat.hl .label { color: #94a3b8; }
.stat.hl .value { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* product cards */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product { display: flex; flex-direction: column; overflow: hidden; padding: 0; color: inherit; transition: transform .15s, box-shadow .15s; }
.product:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(15,23,42,.12); text-decoration: none; }
.thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 34%; opacity: .9; }
.product .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product .title { font-weight: 600; }
.product .price { font-weight: 800; font-size: 1.1rem; margin-top: auto; padding-top: 6px; }

/* forms */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.hint { color: var(--muted); font-size: .8rem; margin-top: 4px; }
input, textarea, select {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid #a5b4fc; border-color: var(--accent-2); }
textarea { min-height: 90px; resize: vertical; }
.search { max-width: 360px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; padding: 10px 18px;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer; background: var(--navy); color: #fff; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.12); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.primary { background: var(--grad); color: var(--navy); }
.btn.ghost { background: #fff; color: var(--ink); border-color: #cbd5e1; }
.btn.danger { background: #fff; color: var(--bad); border-color: #fecaca; }
.btn.ok { background: var(--ok); }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn.block { width: 100%; }
.btn.lg { padding: 14px 22px; font-size: 1.05rem; }

/* sign-in buttons */
.auth-card { max-width: 420px; margin: 24px auto; text-align: center; }
.auth-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 16px; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; margin-top: 12px; }
.auth-btn svg { width: 20px; height: 20px; }
.auth-btn.google { background: #fff; color: #1f2937; border: 1px solid #d1d5db; }
.auth-btn.apple { background: #000; color: #fff; border: 1px solid #000; }
.auth-btn:hover { filter: brightness(.96); }
.gsi-btn { display: flex; justify-content: center; min-height: 44px; margin-top: 8px; }

/* role choice */
.role-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .role-choice { grid-template-columns: 1fr; } }
.role-opt { cursor: pointer; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: var(--radius); padding: 20px; font: inherit; color: inherit; }
.role-opt.selected { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.role-opt .icon { font-size: 1.8rem; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.empty { color: var(--muted); text-align: center; padding: 28px 12px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #e2e8f0; color: #334155; }
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.paid, .badge.in { background: #d1fae5; color: #065f46; }
.badge.rejected { background: #fee2e2; color: #991b1b; }
.badge.out { background: #e0e7ff; color: #3730a3; }

.progress { height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--grad); border-radius: 999px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--accent-2); }

/* detail page */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } }
.detail .thumb { border-radius: var(--radius); }
.big-price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.fee-box { background: #f1f5f9; border-radius: 10px; padding: 12px 14px; font-size: .88rem; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(11,21,48,.55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 440px; max-height: 90vh; overflow: auto; padding: 24px; box-shadow: 0 24px 64px rgba(0,0,0,.3); }
.modal h2 { margin-bottom: 4px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--navy); color: #fff;
  padding: 12px 20px; border-radius: 12px; font-weight: 500; transition: transform .25s, opacity .25s; z-index: 60; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { background: var(--bad); }

.error-text { color: var(--bad); font-size: .9rem; margin-top: 8px; min-height: 1.2em; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: var(--navy); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.seller-row { display: flex; align-items: center; gap: 14px; }

/* ---------- v2: trades, reports, chat ---------- */
.nowrap { white-space: nowrap; }
.modal.wide { max-width: 640px; }
.badge.ok { background: #d1fae5; color: #065f46; }
.badge.bad { background: #fee2e2; color: #991b1b; }
.badge.info { background: #e0e7ff; color: #3730a3; }
.badge.muted { background: #f1f5f9; color: #64748b; }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px;
  background: #f43f5e; color: #fff; font-size: .72rem; font-weight: 700; vertical-align: 1px; }
.stars { color: #f59e0b; font-weight: 700; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 4px 0; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps-4 { grid-template-columns: 1fr; } }

.protect { display: flex; gap: 12px; align-items: flex-start; background: #ecfeff; border: 1px solid #a5f3fc; border-radius: 12px; padding: 14px; }
.protect-icon { font-size: 1.5rem; line-height: 1; }

/* gallery */
.thumb.big { border-radius: var(--radius); aspect-ratio: 1 / 1; cursor: zoom-in; }
.gallery-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gthumb { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.gthumb.active { border-color: var(--accent-2); }
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.sm { width: 72px; height: 72px; aspect-ratio: auto; border-radius: 10px; flex-shrink: 0; }
.thumb.xs { width: 40px; height: 40px; aspect-ratio: auto; border-radius: 8px; flex-shrink: 0; }
.thumb.sm svg, .thumb.xs svg { width: 50%; }

/* photo picker */
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photo { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: #f1f5f9; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(15,23,42,.75); color: #fff; cursor: pointer; line-height: 1; }
.photo.add { display: grid; place-items: center; border: 2px dashed #cbd5e1; cursor: pointer; color: var(--muted); font-weight: 700; text-align: center; margin: 0; font-size: 1.1rem; line-height: 1.1; }
.photo.add small { font-size: .68rem; font-weight: 600; }
.photo.add:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* forms */
.radio-list { display: grid; gap: 8px; margin-bottom: 14px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px 14px; cursor: pointer; margin: 0; font-weight: 400; }
.radio-card:has(input:checked) { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.radio-card input { width: auto; margin-top: 4px; }
.radio-card > span { display: flex; flex-direction: column; }
.addr { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 2px; margin-bottom: 14px; }
.summary { background: #f8fafc; border-radius: 12px; padding: 12px 14px; margin-top: 4px; }
.card.summary { background: var(--card); }
.sum-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: .92rem; }
.sum-row.total { font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.sum-row.muted { color: var(--muted); }
.delivery-opts { display: grid; gap: 8px; margin: 6px 0 14px; }
.dopt { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.check { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
.check input { width: auto; }
.dsub { margin-top: 8px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin-bottom: 10px; }
.star-input label { margin: 0; cursor: pointer; font-size: 1.8rem; color: #cbd5e1; line-height: 1; }
.star-input input { position: absolute; opacity: 0; width: 1px; }
.star-input label:has(input:checked), .star-input label:has(input:checked) ~ label,
.star-input label:hover, .star-input label:hover ~ label { color: #f59e0b; }
.star-input input:focus-visible + span { outline: 2px solid var(--accent-2); border-radius: 4px; }
#reviewForm textarea { margin-bottom: 10px; }

/* order list */
.order-list { display: grid; gap: 10px; }
.order-row { display: flex; gap: 14px; align-items: center; padding: 12px 16px; color: inherit; }
.order-row:hover { text-decoration: none; box-shadow: 0 8px 28px rgba(15,23,42,.1); }
.order-row.needs { border-left: 4px solid #f43f5e; }
.order-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.need-text { color: #e11d48; font-weight: 600; }

/* order detail */
.steps-bar { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.sb { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .9rem; }
.sb span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e2e8f0; color: #475569; font-size: .8rem; flex-shrink: 0; }
.sb.done { color: var(--ink); border-color: #a7f3d0; background: #f0fdf4; }
.sb.done span { background: var(--ok); color: #fff; }
.sb.stop { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.sb.stop span { background: var(--bad); color: #fff; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .order-layout { grid-template-columns: 1fr; } }
.panel { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); background: #fff; }
.panel h3 { margin-bottom: 4px; }
.panel p { margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }
.panel.action { background: #eef2ff; border-color: #c7d2fe; }
.panel.info { background: #f8fafc; }
.panel.ok { background: #f0fdf4; border-color: #a7f3d0; }
.panel.bad { background: #fef2f2; border-color: #fecaca; }
.panel.muted { background: #f8fafc; color: var(--muted); }
.card.dispute.open { border-color: #fecaca; }
.trust-row { display: flex; gap: 32px; margin-top: 18px; flex-wrap: wrap; }
.trust-val { font-size: 1.3rem; font-weight: 800; }
.review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }

/* chat */
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; padding: 4px 2px 12px; }
.msg { max-width: 82%; align-self: flex-start; }
.msg.mine { align-self: flex-end; text-align: right; }
.msg .who { font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.msg .bubble { display: inline-block; text-align: left; padding: 9px 13px; border-radius: 14px; background: #f1f5f9; white-space: pre-wrap; word-break: break-word; }
.msg.mine .bubble { background: var(--navy); color: #fff; }
.msg.admin .bubble { background: #ecfeff; border: 1px solid #a5f3fc; color: var(--ink); }
.msg .when { font-size: .7rem; color: #94a3b8; margin-top: 2px; }
.msg.system { align-self: center; max-width: 92%; text-align: center; font-size: .82rem; color: #475569; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 8px 12px; }
.msg-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.msg.mine .msg-imgs { justify-content: flex-end; }
.msg-imgs img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; cursor: zoom-in; border: 1px solid var(--line); }
.composer { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.composer textarea { min-height: 60px; }
.tab-link { margin-left: auto; align-self: center; padding: 0 8px; font-weight: 600; white-space: nowrap; }

/* ---------- v3: codes & payment requests ---------- */
.nav-user { color: #94a3b8; font-size: .9rem; padding: 0 8px; }
.code-card { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
.code-card .label { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.9rem; font-weight: 800; letter-spacing: .12em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.connect { flex: 1; min-width: 260px; max-width: 420px; }
.connect input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } }
.contact { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.contact:last-child { border-bottom: 0; }
.contact .avatar { width: 36px; height: 36px; font-size: .85rem; }
.req { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px; border: 1px solid #fde68a; background: #fffbeb; border-radius: 12px; margin-bottom: 10px; }
.req-amount { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.report { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.report.open { border-color: #fecaca; background: #fef2f2; }
.quote { margin: 10px 0; font-style: italic; }
td .btn { white-space: nowrap; }
@media (max-width: 860px) { .dash { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .hist tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hist tr:last-child { border-bottom: 0; }
  .hist td { border: 0; padding: 0; text-align: left; }
  .hist td:nth-child(1), .hist td:nth-child(2), .hist td:nth-child(5) { grid-column: 1 / -1; }
  .hist td:nth-child(4) { text-align: right; }
  .hist td:empty { display: none; }
  .code { font-size: 1.6rem; }
}

/* ---------- v4: cashout ---------- */
.at-input { display: flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.at-input span { padding-left: 12px; color: var(--muted); font-weight: 600; }
.at-input input { border: 0; padding-left: 4px; }
.at-input:focus-within { outline: 2px solid #a5b4fc; border-color: var(--accent-2); }
.at-input input:focus { outline: none; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cashout { background: #0a0b0f; color: #e4e4e7; border-radius: 24px; padding: clamp(18px, 4vw, 40px); }
.co-top { display: flex; align-items: center; gap: 12px; }
.co-back { width: 40px; height: 40px; border-radius: 10px; background: #1a1b22; color: #d4d4d8; display: grid; place-items: center; font-size: 1.1rem; }
.co-back:hover { text-decoration: none; background: #23242d; }
.co-chip { background: #1a1b22; color: #a1a1aa; padding: 8px 28px; border-radius: 8px; font-size: .95rem; }
.co-wallet { margin-left: auto; display: flex; align-items: center; gap: 14px; background: #121318; border: 1px solid #1f2028; border-radius: 16px; padding: 10px 20px; font-size: 1.35rem; font-weight: 500; color: #f4f4f5; }
.co-wallet svg { width: 26px; height: 26px; }
.co-title { color: #a1a1aa; font-weight: 500; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 32px 0 6px; letter-spacing: 0; }
.co-sub { color: #71717a; margin: 0 0 20px; }
.co-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 700px) { .co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.co-card { font: inherit; cursor: pointer; border: 0; border-radius: 14px; padding: 34px 12px 30px; display: flex; flex-direction: column; align-items: center; gap: 22px;
  background: linear-gradient(180deg, #181a26 0%, #121318 100%); color: #d4d4d8; transition: transform .15s, filter .15s; }
.co-card.btc { background: radial-gradient(120% 70% at 50% 0%, rgba(243,154,51,.14), transparent 60%), linear-gradient(180deg, #17171c 0%, #121318 100%); }
.co-card:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.15); }
.co-card:focus-visible { outline: 2px solid #818cf8; outline-offset: 2px; }
.co-card:disabled { cursor: not-allowed; opacity: .35; }
.co-icon svg { width: clamp(64px, 9vw, 112px); height: clamp(64px, 9vw, 112px); display: block; }
.co-label { font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.4rem); letter-spacing: .02em; }
.co-mini svg { width: 36px; height: 36px; display: block; flex-shrink: 0; }
.co-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.co-row { display: flex; gap: 14px; align-items: center; background: #121318; border: 1px solid #1f2028; border-radius: 12px; padding: 12px 16px; }
.co-muted { color: #71717a; font-size: .85rem; }
.payout-req { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; display: grid; gap: 10px; }
.payout-req.pending { border-color: #fde68a; background: #fffbeb; }
.pd { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: .9rem; }
.pd dt { color: var(--muted); }
.pd dd { margin: 0; min-width: 0; word-break: break-all; }
.pd code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; }
.copy { border: 0; background: none; color: var(--accent-2); cursor: pointer; padding: 0 4px; font-size: .95rem; }
@media (max-width: 480px) { .co-chip { display: none; } .co-wallet { font-size: 1.15rem; padding: 8px 14px; } .co-card { padding: 24px 8px 20px; gap: 14px; } }
