/* ================= WeoxPay — design system =================
   Near-monochrome dark UI: large rounded surfaces, white primary actions, colour only for status. */
:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f0f;
  --card: #141414;
  --card-2: #1d1d1d;
  --line: #242424;
  --line-2: #2d2d2d;
  --text: #ffffff;
  --muted: #a3a3a3;
  --dim: #6e6e6e;
  --brand: #2f6bff;
  --brand-hover: #4a80ff;
  --ok: #3ac270;
  --warn: #ffa64d;
  --bad: #ff3d4d;
  --info: #6aa3ff;
  --radius: 20px;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
::selection { background: rgba(47, 107, 255, 0.4); }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--card-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
pre { background: var(--bg-2); border: 1px solid var(--line); color: #d6d6dc; padding: 16px 18px; border-radius: 10px; overflow-x: auto; font-size: 12.5px; line-height: 1.65; }
pre code { background: none; border: 0; padding: 0; }
hr { border: none; border-top: 1px solid var(--line); margin: 22px 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.break { word-break: break-all; }
.right { text-align: right; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 1100px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
.grad-text { color: inherit; }
/* numbers: aligned digits, never spill out of their box */
.num, .stat .value, td.right, .due, .amt { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid #ffffff;
  background: #ffffff; color: #000; font: inherit; font-weight: 600; font-size: 13.5px;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn:hover { background: #e4e4e7; border-color: #e4e4e7; color: #000; }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
.btn.grad { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.grad:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--card-2); border-color: #3a3a40; color: #fff; }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(248, 81, 73, 0.45); }
.btn.danger:hover { background: rgba(248, 81, 73, 0.1); color: #ff7b72; }
.btn.ok { background: transparent; color: var(--ok); border-color: rgba(63, 185, 80, 0.45); }
.btn.ok:hover { background: rgba(63, 185, 80, 0.1); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn.block { width: 100%; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 500; font-size: 12.5px; margin: 14px 0 6px; color: var(--muted); }
input, select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--bg-2); font: inherit; color: var(--text); outline: none; transition: border-color 0.12s, box-shadow 0.12s;
}
textarea { height: auto; padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2); }
input[disabled] { opacity: 0.55; }
input[type='checkbox'] { width: 15px; height: 15px; margin: 0 9px 0 0; accent-color: var(--brand); }
.check { display: flex; align-items: center; font-weight: 500; color: var(--muted); }
.inline-form { display: inline; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }
.otp-input { font-family: var(--mono); letter-spacing: 0.35em; text-align: center; font-size: 20px; font-weight: 600; height: 48px; }

/* ---------- Cards, tables, badges ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card + .card { margin-top: 14px; }
.grid > .card + .card, .bento > .card + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.stat { overflow: hidden; }
.stat .label { color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .value { font-size: clamp(18px, 1.75vw, 26px); font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .value small { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 2px; }
.stat .sub { color: var(--dim); font-size: 12px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; color: var(--dim); font-weight: 500; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.right, th.right { text-align: right; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.empty { text-align: center; color: var(--dim); padding: 36px 12px; }
dl.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
dl.kv dt { color: var(--dim); font-size: 12.5px; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) { dl.kv { grid-template-columns: 1fr; gap: 2px; } dl.kv dd { margin-bottom: 10px; } }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--card-2); border: 1px solid var(--line-2); color: var(--muted); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); }
.badge-warn { color: var(--warn); }
.badge-bad { color: var(--bad); }
.badge-info { color: var(--info); }
.badge-muted { color: var(--dim); }
.cur { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.cur::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: #26a17b; display: inline-block; flex-shrink: 0; }
.cur.TRX::before { background: #e5383b; }
.alert { padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 13.5px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); border-left-width: 3px; }
.alert.ok { border-left-color: var(--ok); }
.alert.bad { border-left-color: var(--bad); }
.alert.warn { border-left-color: var(--warn); }
.alert.info { border-left-color: var(--brand); }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 12px; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--text); }
.copy { cursor: pointer; border: 1px solid var(--line-2); background: transparent; border-radius: 6px; padding: 2px 8px; font-size: 11.5px; font-weight: 500; color: var(--muted); font-family: inherit; }
.copy:hover { color: var(--text); border-color: #45454c; }
.secret { background: var(--bg-2); padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; word-break: break-all; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.countdown { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.countdown.urgent { color: var(--bad); }
.chart { width: 100%; height: 180px; display: block; }
.chart .axis { stroke: var(--line); }
.chart .labels text { fill: var(--dim); font-size: 11px; font-family: 'Golos Text', sans-serif; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.timeline li { position: relative; padding: 0 0 16px 24px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--card); border: 2px solid var(--muted); }
.timeline li.ok::before { border-color: var(--ok); }
.timeline li.bad::before { border-color: var(--bad); }
.timeline .t { font-weight: 500; }
.progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--text); border-radius: 4px; transition: width 1s linear; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -0.03em; text-decoration: none; }
.logo:hover { color: var(--text); }
.logo .mark { width: 30px; height: 30px; display: block; flex-shrink: 0; }
.logo .mark svg { width: 100%; height: 100%; display: block; }

/* ---------- Panel layout ---------- */
.panel { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side > .logo { padding: 2px 8px 20px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--muted); font-weight: 500; font-size: 13.5px; margin-bottom: 1px; text-decoration: none; }
.side nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.side nav a:hover { background: var(--card-2); color: var(--text); }
.side nav a.on { background: var(--card-2); color: var(--text); }
.side .section { font-size: 11px; color: var(--dim); padding: 16px 10px 6px; font-weight: 500; }
.side .me { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.side .me .avatar { width: 32px; height: 32px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 600; color: var(--text); flex-shrink: 0; }
.side .me button { background: none; border: none; color: var(--muted); padding: 0; cursor: pointer; font: inherit; }
.side .me button:hover { color: var(--text); }
.main { padding: 26px 36px 60px; min-width: 0; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar h1 { margin: 0; font-size: 24px; }
.crumb { color: var(--dim); font-size: 12.5px; margin-bottom: 4px; }
.devbar { background: #1c1606; border: 1px solid #4d3a0b; color: #e3b341; font-size: 12.5px; padding: 8px 12px; border-radius: 8px; margin-bottom: 16px; }
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .main { padding: 18px 16px 50px; }
}

/* ---------- Public site ---------- */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-nav .in { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 32px; max-width: 1200px; margin: 0 auto; }
.site-nav .links { display: flex; gap: 26px; align-items: center; }
.site-nav .links a { color: var(--muted); font-weight: 500; font-size: 13.5px; text-decoration: none; }
.site-nav .links a:hover { color: var(--text); }
.site-nav .links a.btn { color: #000; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
section.block { padding: 96px 0; border-top: 1px solid var(--line); }
.eyebrow { display: inline-block; color: var(--brand); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.eyebrow .dot { display: none; }
.section-title { font-size: 40px; letter-spacing: -0.035em; font-weight: 600; line-height: 1.1; margin-bottom: 14px; }
.lead { font-size: 17px; color: var(--muted); max-width: 580px; }
.hero { padding: 88px 0 96px; }
.hero .in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 56px; letter-spacing: -0.045em; line-height: 1.04; font-weight: 600; margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }
.hero .proof { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.hero .proof b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero .proof span { color: var(--dim); font-size: 13px; }
.grid-floor, .scene .coin { display: none; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); max-width: 400px; margin-left: auto; }
.product .amt { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; margin: 2px 0 14px; }
.product .addr { background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-family: var(--mono); font-size: 11.5px; word-break: break-all; color: var(--muted); }
.product .status { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.feature { padding: 24px; }
.feature .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line-2); display: grid; place-items: center; margin-bottom: 16px; color: var(--text); }
.feature .ico svg { width: 18px; height: 18px; }
.feature h3 { font-size: 15.5px; }
.feature p { margin: 0; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } }
.big-num { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::after { counter-increment: s; content: counter(s); position: absolute; top: 20px; left: 20px; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.fee-table td, .fee-table th { padding: 13px 16px; }
.fee-table td:last-child { font-weight: 600; font-size: 15px; }
.cta { border: 1px solid var(--line); border-radius: 16px; padding: 56px 40px; text-align: center; background: var(--card); }
footer.site { border-top: 1px solid var(--line); color: var(--dim); padding: 36px 32px; font-size: 13px; }
footer.site .in { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }
@media (max-width: 1000px) {
  .hero .in { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .product { margin: 0; }
  .section-title { font-size: 30px; }
  .site-nav .in { padding: 0 16px; }
  .site-nav .links { gap: 16px; }
  .site-nav .links a.hide-m { display: none; }
  .wrap { padding: 0 16px; }
  section.block { padding: 64px 0; }
}

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth .art { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: var(--bg-2); }
.auth .art h2 { font-size: 34px; letter-spacing: -0.035em; max-width: 440px; font-weight: 600; line-height: 1.15; }
.auth .form-side { display: grid; place-items: center; padding: 40px 20px; }
.auth .box { width: 100%; max-width: 400px; }
.auth .box h1 { font-size: 26px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth .art { display: none; } }

/* ---------- Checkout ---------- */
.checkout-bg { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; background: var(--bg); }
.checkout { width: 100%; max-width: 440px; }
.checkout .card { padding: 26px; }
.checkout .merchant { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.checkout .avatar { width: 38px; height: 38px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 600; }
.checkout .due { font-size: clamp(24px, 6vw, 32px); font-weight: 600; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.checkout .qr { display: grid; place-items: center; margin: 20px 0; }
.checkout .qr img { width: 200px; height: 200px; border-radius: 10px; padding: 10px; background: #fff; }
.field-copy { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.field-copy > div { min-width: 0; }
.field-copy .v { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.field-copy .k { font-size: 11px; color: var(--dim); font-weight: 500; }
.state { text-align: center; padding: 18px 0 6px; }
.state .big { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; font-size: 24px; border: 1px solid var(--line-2); background: var(--card-2); }
.state.ok .big { color: var(--ok); border-color: rgba(63, 185, 80, 0.5); }
.state.wait .big { color: var(--info); animation: pulse 1.6s infinite; }
.state.bad .big { color: var(--bad); border-color: rgba(248, 81, 73, 0.5); }
@keyframes pulse { 50% { opacity: 0.5; } }
.netwarn { font-size: 12.5px; background: var(--bg-2); border: 1px solid var(--line-2); border-left: 3px solid var(--warn); color: var(--muted); border-radius: 9px; padding: 10px 12px; margin-top: 12px; }
.hidden { display: none !important; }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; max-width: 1200px; margin: 0 auto; padding: 40px 32px 90px; }
.docs aside { position: sticky; top: 88px; align-self: start; }
.docs aside a { display: block; padding: 5px 0 5px 12px; color: var(--muted); font-size: 13.5px; text-decoration: none; border-left: 1px solid var(--line); }
.docs aside a:hover { color: var(--text); border-color: var(--text); }
.docs article section { margin-bottom: 52px; }
.docs article h1 { font-size: 36px; letter-spacing: -0.035em; }
.docs article h2 { font-size: 22px; padding-top: 8px; }
.docs table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.docs ol, .docs ul { color: #cfcfd6; }
.docs li { margin-bottom: 6px; }
.method { display: inline-block; font-family: var(--mono); font-weight: 600; font-size: 11.5px; padding: 2px 7px; border-radius: 5px; margin-right: 8px; vertical-align: middle; border: 1px solid var(--line-2); }
.method.post { color: var(--ok); }
.method.get { color: var(--info); }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; padding: 20px 16px 60px; } .docs aside { position: static; } }

/* ---------- Language selector & RTL ---------- */
.lang-form { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin: 0; }
.lang-form svg { width: 15px; height: 15px; flex-shrink: 0; }
.lang-select { width: auto; height: 30px; padding: 0 26px 0 8px; font-size: 13px; background-color: transparent; border-color: var(--line-2); border-radius: 7px; color: var(--muted); cursor: pointer; }
.lang-select:hover { color: var(--text); }
.lang-select option { background: var(--card); color: var(--text); }
[dir='rtl'] .side { border-right: 0; border-left: 1px solid var(--line); }
[dir='rtl'] .auth .art { border-right: 0; border-left: 1px solid var(--line); }
[dir='rtl'] th, [dir='rtl'] td { text-align: right; }
[dir='rtl'] td.right, [dir='rtl'] th.right, [dir='rtl'] .right { text-align: left; }
[dir='rtl'] .timeline::before { left: auto; right: 5px; }
[dir='rtl'] .timeline li { padding: 0 24px 16px 0; }
[dir='rtl'] .timeline li::before { left: auto; right: 0; }
[dir='rtl'] .alert { border-left-width: 1px; border-right-width: 3px; }
[dir='rtl'] .alert.ok { border-right-color: var(--ok); } [dir='rtl'] .alert.bad { border-right-color: var(--bad); }
[dir='rtl'] .alert.warn { border-right-color: var(--warn); } [dir='rtl'] .alert.info { border-right-color: var(--brand); }
[dir='rtl'] .mono, [dir='rtl'] code, [dir='rtl'] pre, [dir='rtl'] .field-copy .v { direction: ltr; unicode-bidi: embed; }

/* ================= Mobile: app-like panel ================= */
.m-appbar, .m-tabbar, .scrim, .menu-btn { display: none; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--text); cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 22px; height: 22px; }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
@media (max-width: 900px) {
  body { font-size: 15px; }
  .panel { grid-template-columns: 1fr; }
  .m-appbar { display: flex; position: sticky; top: 0; z-index: 60; height: 56px; padding: 0 8px; padding-top: env(safe-area-inset-top); align-items: center; justify-content: space-between; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .m-appbar .logo { font-size: 16px; }
  .m-appbar .logo .mark { width: 26px; height: 26px; }
  .side { position: fixed; top: 0; bottom: 0; left: 0; width: 84%; max-width: 320px; height: 100%; z-index: 90; transform: translateX(-102%); transition: transform 0.25s ease; padding-top: calc(18px + env(safe-area-inset-top)); }
  [dir='rtl'] .side { left: auto; right: 0; transform: translateX(102%); }
  body.nav-open .side { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, 0.8); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .side nav a { padding: 11px 12px; font-size: 15px; }
  .main { padding: 16px 14px calc(92px + env(safe-area-inset-bottom)); }
  .topbar { margin-bottom: 16px; gap: 12px; align-items: stretch; flex-direction: column; }
  .topbar h1 { font-size: 22px; }
  .topbar .crumb { display: none; }
  .topbar > .row { width: 100%; }
  .topbar > .row:empty { display: none; }
  .topbar > .row .btn { flex: 1; }
  .card { padding: 16px; border-radius: 16px; }
  .grid { gap: 10px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat .value { font-size: 20px; }
  .stat .sub { white-space: normal; }
  .btn { height: 44px; font-size: 14.5px; }
  .btn.sm { height: 34px; }
  input, select, textarea { height: 46px; font-size: 16px; }
  textarea { height: auto; }
  .otp-input { height: 54px; font-size: 22px; }
  .alert { font-size: 14px; }
  .devbar { font-size: 12px; }
  .m-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(10, 10, 11, 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .m-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--dim); text-decoration: none; font-size: 10.5px; font-weight: 500; min-width: 0; }
  .m-tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
  .m-tabbar a svg { width: 22px; height: 22px; }
  .m-tabbar a.on { color: var(--text); }
  .m-tabbar a.fab .fab-in { width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(47, 107, 255, 0.45); }
  .m-tabbar a.fab .fab-in svg { width: 22px; height: 22px; }
  /* tables become stacked cards */
  table.responsive thead { display: none; }
  table.responsive, table.responsive tbody, table.responsive tr, table.responsive td { display: block; width: 100%; }
  table.responsive tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.responsive tr:last-child { border-bottom: 0; }
  table.responsive td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; border: 0; text-align: right; white-space: normal; }
  table.responsive td::before { content: attr(data-label); color: var(--dim); font-size: 12.5px; text-align: left; flex-shrink: 0; }
  table.responsive td:not([data-label])::before { content: none; }
  table.responsive td.empty { justify-content: center; }
  table.responsive td > * { min-width: 0; }
  .table-wrap { margin: 0; }
  dl.kv dd { font-size: 14px; }
}
@media (max-width: 330px) { .g4 { grid-template-columns: 1fr; } }

/* ================= Public site mobile menu ================= */
@media (max-width: 1000px) {
  .menu-btn { display: grid; }
  .site-nav .in { height: 60px; }
  .site-nav .links { gap: 10px; }
  .site-nav .links > a:not(.btn), .site-nav .links .lang-form { display: none; }
  .site-nav.open .links { position: absolute; top: 60px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: #000; border-bottom: 1px solid var(--line); }
  .site-nav.open .links > a:not(.btn) { display: block; padding: 14px 4px; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--line); }
  .site-nav.open .links .lang-form { display: flex; padding: 14px 4px; }
  .site-nav.open .links .btn { margin-top: 14px; height: 46px; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 16px; }
  .hero .row .btn { flex: 1; }
  .hero .proof { gap: 22px; }
  .section-title { font-size: 28px; }
  .lead { font-size: 15.5px; }
  .auth .form-side { padding: 28px 16px; place-items: start center; }
  .checkout-bg { padding: 16px 12px; place-items: start center; }
}

/* ================= Surfaces & controls (reference-style polish) ================= */
.btn { height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 600; }
.btn.sm { height: 34px; border-radius: 10px; }
.btn.lg { height: 52px; padding: 0 28px; border-radius: 14px; font-size: 15.5px; }
.btn.grad { background: #fff; border-color: #fff; color: #000; }
.btn.grad:hover { background: #e6e6e6; border-color: #e6e6e6; color: #000; }
.btn.ghost { background: var(--card-2); border-color: var(--card-2); }
.btn.ghost:hover { background: #252525; border-color: #252525; }
input, select, textarea { background: var(--card-2); border-color: var(--card-2); border-radius: 12px; height: 46px; }
textarea { height: auto; }
input:focus, select:focus, textarea:focus { border-color: #4d4d4d; box-shadow: none; background: #222; }
.card { border-radius: 24px; padding: 24px; border-color: transparent; }
.card .card { background: var(--card-2); border-radius: 16px; }
.stat .label { font-size: 13px; }
.badge { border-radius: 8px; border-color: transparent; background: var(--card-2); padding: 3px 10px; }
.badge-ok { background: rgba(58, 194, 112, 0.12); }
.badge-warn { background: rgba(255, 166, 77, 0.12); }
.badge-bad { background: rgba(255, 61, 77, 0.12); }
.badge-info { background: rgba(106, 163, 255, 0.12); }
.alert { border-radius: 14px; border: 0; border-left: 3px solid; background: var(--card); }
.tabs { border: 0; gap: 6px; }
.tabs a { border: 0; border-radius: 10px; background: var(--card); padding: 8px 14px; margin: 0; }
.tabs a.on { background: #fff; color: #000; }
th { color: var(--dim); }
td { border-color: var(--line); }
.side { background: var(--bg); border-color: var(--line); }
.side nav a { border-radius: 10px; }
.side nav a.on { background: var(--card-2); }
.main { background: var(--bg); }
.secret { background: var(--card-2); border: 0; border-radius: 14px; }
.field-copy { background: var(--card-2); border: 0; border-radius: 14px; }
pre { background: var(--card-2); border: 0; border-radius: 16px; }
code { background: var(--card-2); border: 0; }
.form-section { display: flex; align-items: center; gap: 10px; margin: 26px 0 4px; font-weight: 600; font-size: 15px; }
.form-section span { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

/* public site sections */
.site-nav { background: rgba(10, 10, 10, 0.85); border-color: transparent; }
section.block { border: 0; padding: 72px 0; }
.hero h1 { font-weight: 700; letter-spacing: -0.04em; }
.section-title { font-weight: 700; }
.eyebrow { color: var(--muted); background: var(--card); padding: 6px 12px; border-radius: 999px; font-weight: 500; }
.product { border-radius: 28px; border: 0; background: var(--card); box-shadow: none; padding: 26px; }
.feature .ico { border: 0; border-radius: 12px; background: var(--card-2); }
.tile { border-radius: 28px; background: var(--card); padding: 30px; display: flex; flex-direction: column; min-height: 260px; text-decoration: none; color: var(--text); transition: background 0.15s; }
.tile:hover { background: #191919; color: var(--text); }
.tile h3 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 8px; }
.tile p { color: var(--muted); }
.tile .big { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; margin-top: auto; }
.tile .go { margin-top: 20px; align-self: flex-start; }
.tiles { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.coins { display: flex; gap: 10px; flex-wrap: wrap; }
.coin-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 999px; background: var(--card); font-weight: 600; }
.coin-chip i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; color: #fff; }
.coin-chip small { color: var(--dim); font-weight: 500; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc .out { background: var(--card-2); border-radius: 20px; padding: 22px; display: grid; gap: 14px; align-content: start; }
.calc .out .line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.calc .out .line b { font-variant-numeric: tabular-nums; }
.calc .out .total { border-top: 1px solid var(--line-2); padding-top: 14px; font-size: 18px; }
.seg { display: flex; background: var(--card-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg label { flex: 1; margin: 0; text-align: center; padding: 10px; border-radius: 9px; cursor: pointer; color: var(--muted); font-size: 14px; }
.seg input { display: none; }
.seg label:has(input:checked) { background: #fff; color: #000; }
.faq details { background: var(--card); border-radius: 18px; padding: 0 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }
.app-banner { border-radius: 28px; background: var(--card); padding: 40px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: center; overflow: hidden; }
.app-banner .shot { background: var(--bg); border-radius: 18px; padding: 18px; border: 1px solid var(--line-2); }
.app-banner .shot .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.app-banner .shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.app-banner .shot .ln { height: 10px; border-radius: 6px; background: var(--card-2); margin-bottom: 10px; }
.cta { border: 0; border-radius: 28px; }
@media (max-width: 1000px) {
  .tiles, .calc, .app-banner { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 24px; }
  .tile .big { font-size: 34px; margin-top: 16px; }
  .app-banner { padding: 26px; }
  .app-banner .shot { display: none; }
  section.block { padding: 48px 0; }
}
@media (max-width: 900px) { .m-tabbar a.fab .fab-in { background: #fff; color: #000; box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15); } }
@media (max-width: 900px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px 14px; padding: 0 14px 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; flex-shrink: 0; }
  form.row > input[name=q] { flex: 1; min-width: 0; }
}

/* ================= Hosted checkout (payment window) ================= */
.co-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 22px 16px 28px; background: radial-gradient(900px 420px at 50% -10%, rgba(47, 107, 255, 0.09), transparent 70%), var(--bg); }
.co-top { width: 100%; max-width: 940px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.co-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.co-brand svg { width: 28px; height: 28px; }
.co { width: 100%; max-width: 940px; display: grid; grid-template-columns: 340px minmax(0, 1fr); background: var(--card); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.co-sum { background: var(--bg-2); padding: 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.co-merchant { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; min-width: 0; }
.co-avatar { width: 44px; height: 44px; border-radius: 14px; background: var(--card-2); display: grid; place-items: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.co-mname { min-width: 0; display: flex; flex-direction: column; }
.co-mname b, .co-mname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-mname span { font-size: 12.5px; color: var(--dim); }
.co-k { font-size: 12.5px; color: var(--dim); font-weight: 500; }
.co-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: clamp(26px, 4vw, 34px); font-weight: 700; letter-spacing: -0.03em; margin: 4px 0 6px; overflow-wrap: anywhere; }
.co-cur { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.coin { width: 16px; height: 16px; border-radius: 50%; background: #26a17b; display: inline-block; flex-shrink: 0; }
.coin.TRX { background: #e5383b; }
.co-desc { color: var(--muted); font-size: 13px; margin: 4px 0 0; overflow-wrap: anywhere; }
.co-rows { margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.co-rows > div { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; min-width: 0; }
.co-rows dt { color: var(--dim); flex-shrink: 0; }
.co-rows dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.co-rows .mono { font-size: 12px; }
.co-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; }
.co-steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 0 18px; color: var(--dim); font-size: 13px; font-weight: 500; }
.co-steps li:last-child { padding-bottom: 0; }
.co-steps li:not(:last-child)::after { content: ''; position: absolute; left: 8px; top: 20px; bottom: 2px; width: 2px; background: var(--line-2); border-radius: 2px; }
.co-steps i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; background: var(--bg-2); position: relative; z-index: 1; }
.co-steps li.on, .co-steps li.done { color: var(--text); }
.co-steps li.on i { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.18); }
.co-steps li.done i { background: var(--ok); border-color: var(--ok); }
.co-steps li.done:not(:last-child)::after { background: var(--ok); }
.co-steps li.bad i { border-color: var(--bad); }
.co-return { margin-top: auto; padding-top: 24px; color: var(--muted); font-size: 13px; text-decoration: none; }
.co-return:hover { color: var(--text); }

.co-main { padding: 28px 30px 30px; min-width: 0; }
.co-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.co-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.co-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--card-2); font-weight: 600; font-size: 13.5px; }
.co-chip span { color: var(--dim); font-weight: 500; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--bg); }
.co-timer { display: flex; align-items: center; gap: 10px; background: var(--card-2); border-radius: 16px; padding: 8px 14px 8px 8px; flex-shrink: 0; }
.co-timer svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.co-timer circle { fill: none; stroke-width: 3.5; stroke: var(--line-2); }
.co-timer #timering { stroke: var(--text); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.co-timer small { display: block; font-size: 11px; color: var(--dim); }
.co-timer b { font-size: 17px; font-variant-numeric: tabular-nums; font-family: var(--mono); font-weight: 600; }
.co-timer.urgent #timering { stroke: var(--bad); }
.co-timer.urgent b { color: var(--bad); }
.co-alert { background: rgba(255, 166, 77, 0.1); color: var(--warn); border-radius: 14px; padding: 12px 14px; font-size: 13px; margin-bottom: 16px; }
.co-pay { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 18px; align-items: start; }
.co-qr { background: #fff; border-radius: 20px; padding: 12px 12px 8px; display: flex; flex-direction: column; align-items: center; }
.co-qr img { width: 172px; height: 172px; display: block; }
.co-qr span { color: #555; font-size: 11.5px; font-weight: 500; margin-top: 4px; text-align: center; }
.co-fields { display: grid; gap: 10px; min-width: 0; }
.co-field { position: relative; background: var(--card-2); border-radius: 16px; padding: 13px 110px 13px 16px; min-width: 0; }
.co-field .k { font-size: 11.5px; color: var(--dim); font-weight: 500; margin-bottom: 4px; }
.co-field .v { font-size: 15px; overflow-wrap: anywhere; word-break: break-all; }
.co-field .v.mono { font-size: 13px; line-height: 1.5; }
.co-field .v b { font-size: 18px; font-weight: 700; }
.co-copy { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: #fff; color: #000; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.co-copy svg { width: 15px; height: 15px; }
.co-copy:hover { background: #e6e6e6; }
.co-copy.done { background: var(--ok); color: #fff; }
.co-warn { margin-top: 16px; font-size: 12.5px; color: var(--muted); background: var(--bg-2); border-radius: 14px; padding: 12px 14px; border-left: 3px solid var(--warn); }
.co-waiting { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.co-waiting .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: co-ping 1.6s infinite; }
@keyframes co-ping { 0% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(47, 107, 255, 0); } }

.co-state { text-align: center; padding: 34px 6px 6px; max-width: 420px; margin: 0 auto; }
.co-state h2 { font-size: 22px; margin: 18px 0 8px; }
.co-state p { color: var(--muted); margin: 0 0 12px; }
.co-state .btn { margin-top: 10px; }
.co-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; }
.co-icon svg { width: 34px; height: 34px; }
.co-icon.ok { background: rgba(58, 194, 112, 0.14); color: var(--ok); animation: co-pop 0.4s ease-out; }
.co-icon.bad { background: rgba(255, 61, 77, 0.12); color: var(--bad); }
.co-icon.warn { background: rgba(255, 166, 77, 0.12); color: var(--warn); }
.co-icon.wait { background: rgba(47, 107, 255, 0.1); }
.co-icon .ring { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(47, 107, 255, 0.25); border-top-color: var(--brand); animation: co-spin 0.9s linear infinite; }
@keyframes co-spin { to { transform: rotate(360deg); } }
@keyframes co-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.co-tx { font-size: 12px; word-break: break-all; color: var(--dim) !important; }
.co-tx a { font-family: var(--mono); color: var(--muted); }
.co-redirect { font-size: 13px; }
.co-foot { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 12.5px; margin-top: 20px; }
.co-foot svg { width: 14px; height: 14px; }
[dir='rtl'] .co-sum { border-right: 0; border-left: 1px solid var(--line); }
[dir='rtl'] .co-field { padding: 13px 16px 13px 110px; }
[dir='rtl'] .co-copy { right: auto; left: 10px; }
[dir='rtl'] .co-field .v.mono { direction: ltr; text-align: right; }

@media (max-width: 860px) {
  .co { grid-template-columns: minmax(0, 1fr); border-radius: 24px; }
  .co-sum { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  [dir='rtl'] .co-sum { border-left: 0; }
  .co-merchant { margin-bottom: 18px; }
  .co-steps { display: flex; justify-content: space-between; margin-top: 20px; }
  .co-steps li { flex-direction: column; text-align: center; gap: 6px; padding: 0; flex: 1; font-size: 11.5px; }
  .co-steps li:not(:last-child)::after { left: calc(50% + 14px); right: calc(-50% + 14px); top: 8px; bottom: auto; width: auto; height: 2px; }
  .co-return { padding-top: 18px; }
  .co-main { padding: 22px; }
}
@media (max-width: 560px) {
  .co-page { padding: 12px 12px 22px; }
  .co-top { margin-bottom: 14px; }
  .co { border-radius: 22px; }
  .co-sum, .co-main { padding: 18px; }
  .co-head { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .co-timer { align-self: flex-start; }
  .co-pay { grid-template-columns: minmax(0, 1fr); }
  .co-qr { width: 196px; margin: 0 auto; }
  .co-field { padding: 13px 16px 54px; }
  .co-copy { top: auto; bottom: 10px; transform: none; right: 10px; }
  [dir='rtl'] .co-field { padding: 13px 16px 54px; }
}

/* Merchant logo: checkout avatar + settings upload */
.co-avatar.has-logo { background: #fff; padding: 0; overflow: hidden; }
.co-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.co-merchant .co-avatar { width: 64px; height: 64px; border-radius: 18px; }
.co-site { display: inline-flex !important; align-items: center; gap: 4px; color: var(--ok) !important; font-size: 12px; font-weight: 500; }
.co-site svg { width: 12px; height: 12px; flex-shrink: 0; }
.logo-edit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 6px; }
.logo-box { width: 72px; height: 72px; border-radius: 18px; background: var(--card-2); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; font-weight: 700; font-size: 26px; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-form { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.logo-form input[type=file] { padding: 8px; height: auto; font-size: 12.5px; }
