/* ==========================================================================
   Relaydesk: public site styles
   1 Tokens · 2 Base · 3 Layout · 4 Background · 5 Components · 6 Header
   7 Hero · 8 Ticker · 9 Status board · 10 Steps · 11 Bento · 12 Issues
   13 Markets · 14 Reviews · 15 Safety · 16 FAQ · 17 CTA · 18 Footer
   19 Forms & inner pages · 20 Chat · 21 Overlays · 22 Responsive
   ========================================================================== */

/* 1 · Tokens ------------------------------------------------------------- */
:root {
  --ink-0: #070816;
  --ink-1: #0c0e22;
  --ink-2: #12152e;
  --ink-3: #1a1e40;
  --line: rgba(150, 160, 255, 0.14);
  --line-strong: rgba(150, 160, 255, 0.3);
  --text: #e8eaff;
  --muted: #a2a8d0;
  --dim: #7a7fab;

  --violet: #7b5cff;
  --cyan: #37d8ff;
  --mint: #2de3a6;
  --amber: #ffb547;
  --coral: #ff5f7e;

  --grad: linear-gradient(120deg, #7b5cff 0%, #4f8bff 55%, #37d8ff 100%);
  --glass: rgba(20, 23, 54, 0.58);
  --glass-line: rgba(170, 180, 255, 0.18);

  --r-xs: 8px;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 28px;

  --shadow-glow: 0 18px 50px -18px rgba(123, 92, 255, 0.6);
  --shadow-deep: 0 30px 70px -28px rgba(0, 0, 0, 0.85);

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(16px, 4.5vw, 32px);
}

/* 2 · Base --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink-0);
  color: var(--text);
  font: 400 15px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.95rem, 6.4vw, 3.9rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.45rem, 4.2vw, 2.35rem); }
h3 { font-size: 1rem; letter-spacing: -0.01em; }
small, .small { font-size: 0.8rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(123, 92, 255, 0.55); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 1000; background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; font-weight: 600; transition: top 0.2s; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.up { color: var(--mint); }
.down { color: var(--coral); }

/* 3 · Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 112px); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head p { color: var(--muted); font-size: 1rem; margin: 14px 0 0; max-width: 56ch; }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head.row > div { max-width: 640px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--cyan); padding: 8px 0; }
.link-more i { transition: transform 0.25s var(--ease); font-size: 0.8em; }
.link-more:hover i { transform: translateX(4px); }

/* 4 · Background --------------------------------------------------------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 46% at 82% -4%, rgba(123, 92, 255, 0.3), transparent 70%),
    radial-gradient(46% 38% at -4% 28%, rgba(55, 216, 255, 0.13), transparent 70%),
    radial-gradient(40% 36% at 62% 104%, rgba(255, 95, 126, 0.1), transparent 70%);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(150, 160, 255, 0.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(150, 160, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 10%, transparent 75%);
}
.bg-grain {
  position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* 5 · Components --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 22px; border-radius: var(--r-s);
  border: 1px solid transparent; font-weight: 600; font-size: 0.92rem; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-position 0.5s var(--ease), border-color 0.25s;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.86rem; }
.btn-primary {
  color: #fff; background: var(--grad); background-size: 160% 100%;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 22px 54px -16px rgba(55, 216, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(190, 198, 255, 0.55); background: rgba(255, 255, 255, 0.08); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-s);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--line-strong); }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.status {
  --c: var(--mint);
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 9px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; color: var(--c); white-space: nowrap;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
}
.status.ok { --c: var(--mint); }
.status.warn { --c: var(--amber); }
.status.bad { --c: var(--coral); }
.status.info { --c: var(--cyan); }
.status.mute { --c: var(--dim); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 var(--c); flex: none; }
.status.warn i, .status.bad i { animation: beacon 1.8s infinite; }

.stars { display: inline-flex; gap: 2px; color: var(--amber); font-size: 0.78rem; }
.stars .fa-regular { color: var(--dim); }

.orb {
  --a: var(--violet);
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; font-size: 1.05rem; color: #fff;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--a) 70%, #fff) 0%, var(--a) 45%, color-mix(in srgb, var(--a) 40%, #000) 100%);
  box-shadow: 0 8px 22px -8px var(--a), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.orb.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 1.6rem; }

.toast {
  position: fixed; left: 50%; top: calc(var(--header-h) + 14px); z-index: 90; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 12px 18px;
  background: rgba(14, 17, 40, 0.95); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-deep);
  font-size: 0.9rem; animation: toastIn 0.5s var(--ease) both, toastOut 0.4s 5s ease forwards;
}
.toast.ok i { color: var(--mint); }
.toast.err i { color: var(--coral); }

/* 6 · Header ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 9, 24, 0.66);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
}
.bar { height: 100%; display: flex; align-items: center; gap: 14px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.03em; flex: none; }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a { padding: 8px 12px; border-radius: 10px; font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a.on { color: #fff; background: rgba(255, 255, 255, 0.06); }

.tx { position: relative; flex: 1 1 260px; max-width: 360px; margin-left: auto; }
.tx input {
  width: 100%; height: 42px; padding: 0 74px 0 40px; border-radius: 999px; font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.055); border: 1px solid var(--line); outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.tx input::placeholder { color: var(--dim); }
.tx input:focus { border-color: rgba(55, 216, 255, 0.7); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 4px rgba(55, 216, 255, 0.12); }
.tx-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 0.85rem; pointer-events: none; }
.tx-key { position: absolute; right: 50px; top: 50%; transform: translateY(-50%); font: 600 0.7rem var(--font-body); color: var(--dim); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 6px; pointer-events: none; }
.tx input:focus ~ .tx-key { opacity: 0; }
.tx-go { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 0.85rem; }
.tx-toggle { display: none; margin-left: auto; }

.disc-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; flex: none;
  font-size: 0.82rem; font-weight: 700; color: #ffd48a; position: relative;
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.2), rgba(255, 95, 126, 0.16));
  border: 1px solid rgba(255, 181, 71, 0.55);
  box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.5), 0 10px 26px -12px rgba(255, 181, 71, 0.6);
  animation: discGlow 2.8s ease-in-out infinite;
}
.disc-chip:hover { color: #fff; border-color: #ffb547; }
.disc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: beacon 1.6s infinite; --c: var(--amber); }

.menu-btn { display: none; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.2s, top 0.35s var(--ease); }
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 20px; }
.menu-btn span:nth-child(3) { top: 26px; }
.menu-btn[aria-expanded='true'] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded='true'] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; transition: visibility 0s 0.5s; }
.drawer-back { position: absolute; inset: 0; background: rgba(4, 5, 14, 0.7); opacity: 0; transition: opacity 0.35s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); padding: calc(var(--header-h) + 8px) 20px 24px;
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  background: linear-gradient(180deg, rgba(18, 21, 46, 0.98), rgba(9, 10, 26, 0.98)); border-left: 1px solid var(--line-strong);
  transform: translateX(100%); transition: transform 0.45s var(--ease);
}
.drawer-panel > a:not(.btn):not(.drawer-disc) { padding: 14px 12px; border-radius: 12px; font-weight: 600; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
.drawer-panel > a:not(.btn):not(.drawer-disc):hover { background: rgba(255, 255, 255, 0.05); }
.drawer-disc { margin: 14px 0 10px; display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; font-weight: 700; color: #ffd48a; background: linear-gradient(135deg, rgba(255, 181, 71, 0.2), rgba(255, 95, 126, 0.15)); border: 1px solid rgba(255, 181, 71, 0.55); }
.drawer.open { visibility: visible; transition-delay: 0s; }
.drawer.open .drawer-back { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-panel .btn { margin-top: 6px; }

/* 7 · Hero --------------------------------------------------------------- */
.hero { padding: calc(var(--header-h) + clamp(36px, 7vw, 84px)) 0 clamp(48px, 8vw, 88px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-live {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 7px 14px 7px 10px; border-radius: 999px; margin-bottom: 22px;
  font-size: 0.82rem; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong);
}
.hero-live .status { padding: 2px 9px; }
.hero-live span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero h1 { max-width: 13ch; }
.hero-sub { margin: 22px 0 30px; max-width: 48ch; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.12rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: var(--muted); font-size: 0.86rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points i { color: var(--mint); }
.hero-load > * { animation: heroIn 0.9s var(--ease) both; }
.hero-load > *:nth-child(2) { animation-delay: 0.08s; }
.hero-load > *:nth-child(3) { animation-delay: 0.16s; }
.hero-load > *:nth-child(4) { animation-delay: 0.24s; }
.hero-load > *:nth-child(5) { animation-delay: 0.32s; }

.relay { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 560 / 520; transform: translateY(calc(var(--sy, 0) * -0.06px)); }
.relay::before { content: ''; position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(123, 92, 255, 0.35), rgba(55, 216, 255, 0.08) 60%, transparent 75%); }
.relay svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.r-path { fill: none; stroke: rgba(150, 165, 255, 0.4); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; animation-delay: var(--d, 0.3s); }
.r-path.user { stroke: rgba(55, 216, 255, 0.55); }
.r-ring { fill: none; stroke: rgba(150, 165, 255, 0.3); stroke-dasharray: 3 7; transform-box: fill-box; transform-origin: center; animation: spin 38s linear infinite; }
.r-ring.b { stroke: rgba(55, 216, 255, 0.28); stroke-dasharray: 1 9; animation-duration: 56s; animation-direction: reverse; }
.r-ripple { fill: none; stroke: var(--violet); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ripple 3.6s ease-out infinite; opacity: 0; }
.r-ripple.b { animation-delay: 1.8s; }
.r-node { transform-box: fill-box; animation: bob 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.r-node .body { fill: #10132c; stroke: rgba(170, 180, 255, 0.3); stroke-width: 1.2; }
.r-node .ring { fill: none; stroke: var(--c, var(--mint)); stroke-width: 1.6; opacity: 0.85; }
.r-node.warn .ring, .r-node.bad .ring { animation: ringPulse 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.r-node .dot { fill: var(--c, var(--mint)); stroke: #070816; stroke-width: 2.5; }
.r-node.ok { --c: var(--mint); }
.r-node.warn { --c: var(--amber); }
.r-node.bad { --c: var(--coral); }
.r-node text { font-family: var(--font-display); fill: #fff; text-anchor: middle; }
.r-node .ini { font-size: 19px; font-weight: 500; }
.r-node .nm { font-family: var(--font-body); font-size: 13px; font-weight: 600; fill: var(--muted); }
.r-hub-core { fill: #0e1130; stroke: rgba(123, 92, 255, 0.7); stroke-width: 1.5; }
.r-label { font: 600 12px var(--font-body); fill: var(--muted); text-anchor: middle; }

/* 8 · Status ticker ------------------------------------------------------ */
.ticker { border-block: 1px solid var(--line); background: rgba(10, 12, 32, 0.5); overflow: hidden; position: relative; }
.ticker::before, .ticker::after { content: ''; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--ink-0), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--ink-0), transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; font-size: 0.86rem; color: var(--muted); white-space: nowrap; border-right: 1px solid var(--line); }
.ticker-item b { color: var(--text); font-weight: 600; }
.ticker-item .status { padding: 2px 9px; }

/* 9 · Status board ------------------------------------------------------- */
.board { border-radius: var(--r-l); overflow: hidden; }
.board-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--muted);
  background: transparent; border: 1px solid var(--line); transition: all 0.2s;
}
.chip:hover { color: #fff; border-color: var(--line-strong); }
.chip.on { color: #fff; background: rgba(123, 92, 255, 0.25); border-color: rgba(123, 92, 255, 0.7); }
.board-count { font-size: 0.82rem; color: var(--dim); }
.board-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row {
  --a: var(--violet);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 16px 20px;
  border-bottom: 1px solid var(--line); position: relative; transition: background 0.25s;
}
.board-list .row:nth-child(odd) { border-right: 1px solid var(--line); }
.row::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--a); opacity: 0; transition: opacity 0.25s; }
.row:hover { background: rgba(255, 255, 255, 0.035); }
.row:hover::before { opacity: 1; }
.row[hidden] { display: none; }
.row-main { min-width: 0; }
.row-name { font-weight: 700; font-size: 0.98rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-type { font-size: 0.72rem; font-weight: 600; color: var(--dim); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.row-note { color: var(--muted); font-size: 0.82rem; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row-rate { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); }

/* 10 · Steps ------------------------------------------------------------- */
.steps { --n: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; counter-reset: s; }
.steps::before, .steps::after { content: ''; position: absolute; top: 21px; left: 12.5%; right: 12.5%; height: 2px; border-radius: 2px; }
.steps::before { background: var(--line); }
.steps::after { background: var(--grad); transform-origin: 0 50%; transform: scaleX(calc(max(var(--n) - 1, 0) / 3)); transition: transform 0.9s var(--ease); box-shadow: 0 0 14px rgba(55, 216, 255, 0.6); }
.step { position: relative; padding-top: 62px; text-align: center; }
.step-dot {
  position: absolute; top: 0; left: 50%; margin-left: -22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  font: 500 0.95rem var(--font-display); color: var(--dim); background: var(--ink-2); border: 1px solid var(--line-strong); transition: all 0.5s var(--ease);
}
.step.on .step-dot { color: #fff; background: var(--violet); border-color: #b3a2ff; box-shadow: 0 0 0 6px rgba(123, 92, 255, 0.18), 0 0 26px rgba(123, 92, 255, 0.7); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.9rem; max-width: 30ch; margin-inline: auto; }

/* 11 · Bento ------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; padding: 24px; border-radius: var(--r-m); overflow: hidden; background: linear-gradient(160deg, rgba(26, 30, 66, 0.7), rgba(13, 15, 36, 0.8)); border: 1px solid var(--line); }
.tile h3 { font-size: 1.02rem; margin-bottom: 8px; }
.tile > p { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; max-width: 42ch; }
.tile.a { grid-column: span 4; border-radius: var(--r-l) var(--r-m) var(--r-m) var(--r-m); }
.tile.c { grid-column: span 2; grid-row: span 2; }
.tile.b, .tile.d { grid-column: span 2; }
.tile.e, .tile.f { grid-column: span 3; }
.tile.f { border-radius: var(--r-m) var(--r-m) var(--r-l) var(--r-m); }
.spot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(123, 92, 255, 0.2), transparent 65%);
}
.spot:hover::after { opacity: 1; }
.spot:hover { border-color: var(--line-strong); }

.mock-form { display: grid; gap: 10px; max-width: 420px; }
.mock-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 42px; padding: 0 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); }
.mock-field b { color: var(--text); font-weight: 600; }
.mock-field.area { height: 64px; align-items: flex-start; padding-top: 12px; }
.mock-btn { height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); font-weight: 600; font-size: 0.86rem; box-shadow: var(--shadow-glow); }
.mock-chat { display: grid; gap: 10px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 0.84rem; line-height: 1.45; }
.bubble.in { background: rgba(255, 255, 255, 0.07); border-bottom-left-radius: 5px; color: var(--text); }
.bubble.out { margin-left: auto; background: linear-gradient(135deg, #6a4cf0, #4f8bff); border-bottom-right-radius: 5px; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: rgba(255, 255, 255, 0.07); border-radius: 16px; border-bottom-left-radius: 5px; width: max-content; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
.mini-status { display: grid; gap: 8px; }
.mini-status div { display: flex; align-items: center; justify-content: space-between; font-size: 0.84rem; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.mock-tx { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-size: 0.78rem; color: var(--dim); overflow: hidden; white-space: nowrap; }
.mock-tx i { color: var(--cyan); }
.big-rate { display: flex; align-items: baseline; gap: 12px; margin-top: 4px; }
.big-rate strong { font: 600 2.4rem var(--font-display); letter-spacing: -0.04em; }
.tile-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 16px; font-size: 1rem; color: var(--cyan); background: rgba(55, 216, 255, 0.1); border: 1px solid rgba(55, 216, 255, 0.28); }

/* 12 · Issues ------------------------------------------------------------ */
.issues { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.issue { position: relative; padding: 26px 22px; background: var(--ink-1); transition: background 0.3s; }
.issue i { font-size: 1.15rem; color: var(--violet); margin-bottom: 18px; display: block; transition: color 0.3s, transform 0.4s var(--ease); }
.issue:hover i { color: var(--cyan); transform: translateY(-3px); }
.issue h3 { margin-bottom: 6px; font-size: 0.95rem; }
.issue p { color: var(--muted); font-size: 0.86rem; margin: 0; }

/* 13 · Markets ----------------------------------------------------------- */
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.coin { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 16px; border-radius: var(--r-m); background: rgba(16, 19, 44, 0.65); border: 1px solid var(--line); transition: border-color 0.25s, background 0.25s; }
.coin:hover { border-color: var(--line-strong); background: rgba(24, 28, 62, 0.8); }
.coin-img, .coin-ph { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.coin-ph { display: grid; place-items: center; font: 600 0.8rem var(--font-display); text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--ink-3), #2b2f6b); border: 1px solid var(--line-strong); }
.coin-name { min-width: 0; }
.coin-name b { display: block; font-size: 0.92rem; line-height: 1.2; }
.coin-name span { font-size: 0.74rem; color: var(--dim); text-transform: uppercase; }
.coin-price { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 12px; }
.coin-price strong { font: 600 1.02rem var(--font-body); font-variant-numeric: tabular-nums; }
.coin-chg { font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.spark { grid-column: 1 / -1; height: 30px; margin-top: 8px; }
.spark svg { width: 100%; height: 100%; }
.flash-up { animation: flashUp 1.2s ease-out; }
.flash-down { animation: flashDown 1.2s ease-out; }

.table-wrap { border-radius: var(--r-l); overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
.table-wrap.glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0b0e27; }
.mkt { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.mkt th { background: rgba(13, 15, 36, 0.96); padding: 14px 16px; text-align: right; font-size: 0.76rem; font-weight: 600; color: var(--dim); border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
.mkt th[data-sort] { cursor: pointer; }
.mkt th[data-sort]:hover { color: #fff; }
.mkt th.sorted { color: var(--cyan); }
.mkt td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mkt th:nth-child(2), .mkt td:nth-child(2) { text-align: left; }
.mkt th:first-child, .mkt td:first-child { text-align: left; color: var(--dim); width: 44px; padding-right: 4px; }
/* the coin column stays pinned (and compact) while the numbers scroll sideways */
.mkt th:nth-child(2), .mkt td:nth-child(2) { position: sticky; left: 0; z-index: 1; background: #0d1029; box-shadow: 8px 0 14px -10px rgba(0, 0, 0, 0.7); }
.mkt tbody tr:hover td:nth-child(2) { background: #151938; }
.mkt-coin > span:last-child { min-width: 0; }
.mkt-coin b { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.scroll-hint { display: none; margin: 0 0 10px; font-size: 0.78rem; color: var(--dim); }
.mkt tbody tr { transition: background 0.2s; }
.mkt tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
.mkt-coin { display: flex; align-items: center; gap: 12px; }
.mkt-coin img, .mkt-coin .coin-ph { width: 28px; height: 28px; }
.mkt-coin b { font-weight: 600; }
.mkt-coin small { color: var(--dim); text-transform: uppercase; margin-left: 4px; }
.mkt .spark { height: 28px; width: 110px; margin: 0 0 0 auto; }
.tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search-box { position: relative; flex: 1 1 260px; max-width: 380px; }
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 0.85rem; }
.search-box input { width: 100%; height: 46px; padding: 0 16px 0 40px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); outline: none; }
.search-box input:focus { border-color: rgba(55, 216, 255, 0.7); box-shadow: 0 0 0 4px rgba(55, 216, 255, 0.12); }
.feed-note { font-size: 0.8rem; color: var(--dim); display: inline-flex; align-items: center; gap: 8px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* 14 · Reviews ----------------------------------------------------------- */
.rank { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.rank-list { border-radius: var(--r-l); padding: 8px; }
.rank-item { --a: var(--violet); display: grid; grid-template-columns: 30px auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 14px; border-radius: 16px; transition: background 0.25s; }
.rank-item:hover { background: rgba(255, 255, 255, 0.05); }
.rank-pos { font: 500 0.95rem var(--font-display); color: var(--dim); text-align: center; }
.rank-item:first-child .rank-pos { color: var(--amber); }
.rank-name { font-weight: 700; font-size: 0.95rem; }
.bar-track { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); margin-top: 8px; overflow: hidden; }
.bar-track i { display: block; height: 100%; width: calc(var(--w, 0) * 1%); border-radius: 3px; background: var(--a); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s var(--ease) 0.2s; }
.in .bar-track i, .bar-track.in i { transform: scaleX(1); }
.rank-score { text-align: right; }
.rank-score strong { font: 600 1.15rem var(--font-display); letter-spacing: -0.03em; }
.rank-score small { display: block; color: var(--dim); font-size: 0.72rem; }
.rank-copy p { color: var(--muted); max-width: 46ch; }
.rank-copy .btn { margin-top: 10px; }

.reviews { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; margin-top: 40px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
.review { --a: var(--violet); flex: 0 0 min(340px, 82vw); scroll-snap-align: start; padding: 22px; border-radius: var(--r-m); background: rgba(16, 19, 44, 0.7); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; font-size: 0.93rem; color: var(--text); line-height: 1.6; flex: 1; }
.review footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.8rem; color: var(--muted); }
.review footer a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.review footer .orb { width: 26px; height: 26px; border-radius: 9px; font-size: 0.7rem; }

/* 15 · Safety ------------------------------------------------------------ */
.safety { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(24px, 4vw, 52px); border-radius: var(--r-l); position: relative; overflow: hidden; }
.safety::before { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; background: radial-gradient(closest-side, rgba(255, 95, 126, 0.16), transparent); pointer-events: none; }
.shield { max-width: 340px; margin-inline: auto; width: 100%; }
.sh-ring { fill: none; stroke: rgba(55, 216, 255, 0.4); stroke-width: 1.2; stroke-dasharray: 2 8; transform-box: fill-box; transform-origin: center; animation: spin 30s linear infinite; }
.sh-body { fill: rgba(123, 92, 255, 0.14); stroke: #9a85ff; stroke-width: 2; }
.sh-key { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.sh-slash { stroke: var(--coral); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.shield.in .sh-slash { animation: draw 0.9s 0.5s var(--ease) forwards; }
.sh-scan { fill: url(#scanGrad); animation: scan 3.6s ease-in-out infinite; }
.rules { display: grid; gap: 4px; margin-top: 22px; }
.rules li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.rules li:last-child { border: 0; }
.rules i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 0.85rem; color: var(--coral); background: rgba(255, 95, 126, 0.1); border: 1px solid rgba(255, 95, 126, 0.3); }
.rules b { color: var(--text); font-weight: 600; }

/* 16 · FAQ --------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 28px); }
.faq-side p { color: var(--muted); margin: 14px 0 22px; max-width: 34ch; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; background: none; border: 0; text-align: left; font: 600 0.98rem/1.4 var(--font-body); color: var(--text); }
.faq-q:hover { color: #fff; }
.faq-q i { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 0.75rem; color: var(--cyan); transition: transform 0.4s var(--ease), background 0.3s; }
.faq-item.open .faq-q i { transform: rotate(135deg); background: rgba(55, 216, 255, 0.14); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--muted); padding: 0 44px 22px 4px; margin: 0; max-width: 62ch; }

/* 17 · CTA --------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 56px); border-radius: var(--r-l); border: 1px solid rgba(123, 92, 255, 0.5); background: radial-gradient(70% 120% at 50% 0%, rgba(123, 92, 255, 0.38), transparent 70%), linear-gradient(180deg, rgba(20, 23, 54, 0.8), rgba(10, 12, 30, 0.9)); box-shadow: var(--shadow-glow); }
.cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.07) 50%, transparent 60%); transform: translateX(-100%); animation: sheen 6s 1s infinite; pointer-events: none; }
.cta p { color: var(--muted); max-width: 48ch; margin: 16px auto 28px; }
.cta .hero-cta { justify-content: center; }

/* 18 · Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: rgba(6, 7, 20, 0.7); margin-top: 40px; padding-top: 56px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 14px; max-width: 34ch; }
.foot-col h4 { font: 600 0.82rem var(--font-body); color: var(--text); margin-bottom: 14px; letter-spacing: 0; }
.foot-col a { display: block; padding: 5px 0; color: var(--muted); font-size: 0.88rem; transition: color 0.2s; }
.foot-col a:hover { color: #fff; }
.foot-col .foot-disc { display: inline-flex; align-items: center; gap: 8px; color: #ffd48a; font-weight: 700; }
.foot-base { padding-block: 36px 100px; color: var(--dim); font-size: 0.82rem; }

/* 19 · Forms & inner pages ----------------------------------------------- */
.page-top { padding: calc(var(--header-h) + clamp(32px, 6vw, 64px)) 0 clamp(24px, 4vw, 40px); }
.page-top p { color: var(--muted); max-width: 58ch; margin: 14px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: var(--dim); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; padding-bottom: clamp(48px, 8vw, 96px); }
.panel { padding: clamp(20px, 3.5vw, 34px); border-radius: var(--r-l); }
.panel h2, .panel h3.ph { font-size: 1.1rem; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .lbl { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.field label em { font-style: normal; font-weight: 500; color: var(--dim); }
.input, .field input[type='text'], .field input[type='email'], .field input[type='password'], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-s); font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); outline: none; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23a2a8d0' stroke-width='1.6' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field select option { background: #12152e; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(55, 216, 255, 0.75); background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 4px rgba(55, 216, 255, 0.12); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: rgba(255, 95, 126, 0.75); }
.err { color: #ff8da4; font-size: 0.8rem; display: flex; gap: 6px; align-items: center; }
.hint { color: var(--dim); font-size: 0.78rem; }
.count { text-align: right; color: var(--dim); font-size: 0.75rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.drop { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-s); border: 1.5px dashed var(--line-strong); background: rgba(255, 255, 255, 0.025); cursor: pointer; transition: border-color 0.25s, background 0.25s; position: relative; }
.drop:hover, .drop.over { border-color: var(--cyan); background: rgba(55, 216, 255, 0.06); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--cyan); background: rgba(55, 216, 255, 0.1); }
.drop-txt b { display: block; font-size: 0.9rem; }
.drop-txt span { font-size: 0.78rem; color: var(--dim); }
.preview { display: none; align-items: center; gap: 12px; margin-top: 10px; padding: 8px; border-radius: var(--r-s); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.preview.on { display: flex; }
.preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.preview span { flex: 1; min-width: 0; font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: transparent; }
.side-card { padding: 26px; border-radius: var(--r-m); }
.side-card + .side-card { margin-top: 16px; }
.side-card h3 { margin-bottom: 14px; }
.tips li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 7px 0; font-size: 0.88rem; color: var(--muted); }
.tips i { color: var(--mint); margin-top: 4px; font-size: 0.8rem; }
.warn-card { border-color: rgba(255, 95, 126, 0.4); background: linear-gradient(160deg, rgba(255, 95, 126, 0.1), rgba(13, 15, 36, 0.8)); }
.warn-card i.top { color: var(--coral); font-size: 1.2rem; margin-bottom: 10px; display: block; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: var(--r-s); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); outline: none; text-transform: uppercase; }
.inline-form input:focus { border-color: rgba(55, 216, 255, 0.75); }

.ticket-hero { text-align: center; padding: clamp(28px, 5vw, 48px) 20px; }
.tick { width: 76px; height: 76px; margin: 0 auto 20px; }
.tick circle { fill: rgba(45, 227, 166, 0.12); stroke: var(--mint); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s var(--ease) forwards; }
.tick path { fill: none; stroke: var(--mint); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.6s 0.7s var(--ease) forwards; }
.refbox { display: inline-flex; align-items: center; gap: 12px; margin: 18px 0 8px; padding: 10px 10px 10px 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px dashed var(--line-strong); font: 500 clamp(1.1rem, 4.5vw, 1.5rem) var(--font-display); letter-spacing: 0.02em; }
.progress-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 30px 0 6px; }
.ps { text-align: center; position: relative; font-size: 0.82rem; color: var(--dim); }
.ps::before { content: ''; display: block; width: 14px; height: 14px; margin: 0 auto 10px; border-radius: 50%; background: var(--ink-3); border: 2px solid var(--line-strong); position: relative; z-index: 1; }
.ps::after { content: ''; position: absolute; top: 6px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.ps:first-child::after { display: none; }
.ps.done { color: var(--text); }
.ps.done::before { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 14px rgba(45, 227, 166, 0.6); }
.ps.done::after { background: var(--mint); }
.reply-box { margin-top: 24px; padding: 18px 20px; border-radius: var(--r-m); background: rgba(55, 216, 255, 0.07); border: 1px solid rgba(55, 216, 255, 0.3); text-align: left; }
.reply-box h3 { font-size: 0.92rem; margin-bottom: 8px; }
.reply-box p { margin: 0; white-space: pre-wrap; color: var(--text); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 22px 0 0; font-size: 0.9rem; text-align: left; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; }

.plat-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.plat-head h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); }
.plat-head .tag { color: var(--muted); margin: 8px 0 0; }
.banner { --c: var(--mint); display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: var(--r-m); margin-top: 26px; background: color-mix(in srgb, var(--c) 9%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.banner.warn { --c: var(--amber); }
.banner.bad { --c: var(--coral); }
.banner > i { color: var(--c); margin-top: 3px; }
.banner b { display: block; }
.banner span { color: var(--muted); font-size: 0.9rem; }
.score { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.score-n { font: 600 3rem var(--font-display); letter-spacing: -0.05em; line-height: 1; }
.dist { display: grid; gap: 7px; font-size: 0.78rem; color: var(--muted); }
.dist div { display: grid; grid-template-columns: 16px 1fr 28px; gap: 10px; align-items: center; }
.dist .bar-track { margin: 0; }
.rv { padding: 20px 0; border-bottom: 1px solid var(--line); }
.rv:last-child { border: 0; }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.rv-top b { font-size: 0.92rem; }
.rv p { margin: 0; color: var(--muted); }
.rv small { color: var(--dim); }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 1.7rem; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 4px; transition: color 0.15s, transform 0.2s var(--ease); -webkit-text-stroke: 1px rgba(150, 160, 255, 0.5); }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--amber); -webkit-text-stroke: 1px var(--amber); }
.star-input label:hover { transform: scale(1.15); }
.star-input input:focus-visible + label { outline: 2px solid var(--cyan); border-radius: 6px; }

.disc-banner { display: flex; gap: 18px; align-items: flex-start; padding: clamp(20px, 4vw, 32px); border-radius: var(--r-l); border: 1px solid rgba(255, 181, 71, 0.6); background: linear-gradient(135deg, rgba(255, 181, 71, 0.16), rgba(255, 95, 126, 0.1)); box-shadow: 0 0 60px -20px rgba(255, 181, 71, 0.5); }
.disc-banner > i { font-size: 1.6rem; color: var(--amber); margin-top: 4px; }
.disc-banner h2 { font-size: clamp(1.1rem, 3.5vw, 1.5rem); margin-bottom: 8px; }
.disc-banner p { margin: 0; color: #f1dcc0; }
.legal { max-width: 760px; margin-top: 36px; }
.legal section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.legal h3 { margin-bottom: 10px; font-size: 1.02rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { display: grid; gap: 8px; padding-left: 4px; }
.legal li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.legal li i { color: var(--amber); margin-top: 5px; font-size: 0.7rem; }

.error-page { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 20px) 20px 40px; }
.error-page .code { font: 600 clamp(4rem, 20vw, 8rem) var(--font-display); letter-spacing: -0.06em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page p { color: var(--muted); max-width: 44ch; margin: 14px auto 26px; }

/* 20 · Chat -------------------------------------------------------------- */
.chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80; }
.chat-launch { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; color: #fff; font-size: 1.3rem; background: var(--grad); box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); transition: transform 0.3s var(--ease); }
.chat-launch:hover { transform: scale(1.07) rotate(-4deg); }
.chat[data-open='true'] .chat-launch { display: none; }
.chat-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--coral); font-size: 0.72rem; display: grid; place-items: center; border: 2px solid var(--ink-0); }
.chat-panel {
  position: absolute; right: 0; bottom: 0; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 32px)); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; background: rgba(12, 14, 34, 0.94); border: 1px solid var(--line-strong); box-shadow: var(--shadow-deep), 0 0 80px -30px rgba(123, 92, 255, 0.7);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transform-origin: 100% 100%; animation: chatIn 0.45s var(--ease);
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(123, 92, 255, 0.18), transparent); }
.chat-av .logo { width: 36px; height: 36px; }
.chat-title { flex: 1; min-width: 0; line-height: 1.3; }
.chat-title strong { display: block; font-size: 0.95rem; }
.chat-title small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.76rem; }
.pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.chat-title.online .pdot { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; animation: msgIn 0.35s var(--ease); }
.msg.visitor { align-self: flex-end; background: linear-gradient(135deg, #6a4cf0, #4f8bff); border-bottom-right-radius: 5px; }
.msg.admin { align-self: flex-start; background: rgba(255, 255, 255, 0.08); border-bottom-left-radius: 5px; }
.msg.system { align-self: center; max-width: 92%; background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 0.8rem; text-align: center; border-radius: 12px; }
.msg time { display: block; margin-top: 4px; font-size: 0.68rem; opacity: 0.6; }
.chat-pre { padding: 14px 16px 16px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.chat-pre p { margin: 0; font-size: 0.84rem; color: var(--muted); }
.chat-pre input { height: 46px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); outline: none; }
.chat-pre input:focus { border-color: rgba(55, 216, 255, 0.75); }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button { flex: none; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong); color: var(--muted); }
.chat-quick button:hover { color: #fff; border-color: var(--cyan); }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chat-form[hidden], .chat-pre[hidden], .chat-quick[hidden] { display: none; }
.chat-form textarea { flex: 1; min-width: 0; max-height: 110px; min-height: 44px; padding: 11px 14px; border-radius: 14px; resize: none; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); outline: none; line-height: 1.4; font-size: 16px; }
.chat-form textarea:focus { border-color: rgba(55, 216, 255, 0.75); }
.chat-send { width: 44px; height: 44px; flex: none; border-radius: 14px; border: 0; background: var(--grad); color: #fff; }
.typing-row { align-self: flex-start; }

/* 21 · Overlays ---------------------------------------------------------- */
.disc-float {
  position: fixed; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 75;
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 13px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: #ffd48a;
  background: rgba(30, 20, 8, 0.82); border: 1px solid rgba(255, 181, 71, 0.65); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px -12px rgba(255, 181, 71, 0.7); animation: discGlow 2.8s ease-in-out infinite;
}
.disc-float:hover { color: #fff; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(4, 5, 14, 0.74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s; }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; border-radius: var(--r-l); opacity: 0; transform: translateY(18px) scale(0.97); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); background: rgba(14, 17, 40, 0.92); }
.modal.open .modal-back { opacity: 1; }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-x { position: absolute; top: 14px; right: 14px; }
.modal-title { font-size: 1.15rem; margin-bottom: 18px; padding-right: 44px; }
.tx-val { display: block; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font: 500 0.82rem ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; color: var(--cyan); }
.tx-checks { display: grid; gap: 10px; margin: 18px 0; }
.tx-checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.tx-checks i { margin-top: 4px; }
.tx-checks .ok i { color: var(--mint); }
.tx-checks .wait i { color: var(--amber); }
.tx-checks .no i { color: var(--coral); }
.tx-checks b { color: var(--text); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pt { position: fixed; inset: 0; z-index: 999; pointer-events: none; --x: 50%; --y: 50%; }
.pt i { position: absolute; inset: 0; clip-path: circle(0% at var(--x) var(--y)); }
.pt-a { background: linear-gradient(120deg, #7b5cff, #37d8ff); animation: ptOut 0.75s 0.05s var(--ease) both; }
.pt-b { background: var(--ink-0); animation: ptOut 0.75s var(--ease) both; }
.pt.go i { animation: none; clip-path: circle(0% at var(--x) var(--y)); transition: clip-path 0.55s var(--ease); }
.pt.go .pt-a { clip-path: circle(150% at var(--x) var(--y)); }
.pt.go .pt-b { clip-path: circle(150% at var(--x) var(--y)); transition-delay: 0.08s; }

/* Reveal effects (only when JS has loaded) */
.js [data-reveal] { opacity: 0; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: var(--rd, 0s); }
.js [data-reveal='rise'] { transform: translateY(26px); }
.js [data-reveal='pop'] { transform: scale(0.95); }
.js [data-reveal='wipe'] { transform: translateY(14px); filter: blur(6px); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* 22 · Keyframes --------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c, var(--amber)) 70%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes ringPulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.12); opacity: 0.35; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes flashUp { 0% { background: rgba(45, 227, 166, 0.35); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: rgba(255, 95, 126, 0.35); } 100% { background: transparent; } }
@keyframes discGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0), 0 10px 26px -12px rgba(255, 181, 71, 0.6); } 50% { box-shadow: 0 0 0 6px rgba(255, 181, 71, 0.12), 0 10px 34px -10px rgba(255, 181, 71, 0.85); } }
@keyframes sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes scan { 0%, 100% { transform: translateY(-40px); opacity: 0; } 50% { transform: translateY(150px); opacity: 1; } }
@keyframes chatIn { from { opacity: 0; transform: translateY(18px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, -10px); visibility: hidden; } }
@keyframes ptOut { from { clip-path: circle(150% at var(--x) var(--y)); } to { clip-path: circle(0% at var(--x) var(--y)); } }

/* 23 · Responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav, .head-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .tx { max-width: none; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .issues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .relay { max-width: 480px; }
  .board-list { grid-template-columns: minmax(0, 1fr); }
  .board-list .row:nth-child(odd) { border-right: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 8px; }
  .steps::before, .steps::after { top: 22px; bottom: 22px; left: 29px; right: auto; width: 2px; height: auto; }
  .steps::after { transform-origin: 50% 0; transform: scaleY(calc(max(var(--n) - 1, 0) / 3)); }
  .step { text-align: left; padding: 0 0 36px 66px; }
  .step:last-child { padding-bottom: 0; }
  .step-dot { left: 0; margin-left: 0; top: 0; }
  .step p { margin-inline: 0; max-width: 46ch; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.a, .tile.e, .tile.f { grid-column: 1 / -1; }
  .tile.b, .tile.c, .tile.d { grid-column: span 1; }
  .tile.c { grid-row: auto; }
  .rank, .safety, .faq-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .faq-side { position: static; }
  .shield { max-width: 240px; }
}
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .tx-toggle { display: inline-grid; }
  .disc-chip { margin-left: auto; }
  .tx {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px); max-width: none; margin: 0; z-index: 3;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  .site-header.tx-open .tx { opacity: 1; visibility: visible; transform: none; }
  .tx { border-radius: 999px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.5); }
  .tx input, .tx input:focus { height: 48px; background: #0c0f2a; font-size: 16px; }
  .tx input { border-color: var(--line-strong); }
  .tx-go { width: 40px; height: 40px; }
  .tx-key { display: none; }
  .tx input { padding-right: 52px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .plat-head { grid-template-columns: auto 1fr; }
  .plat-head .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .coins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .coin { padding: 13px; }
  .coin-price { flex-direction: column; align-items: flex-start; gap: 0; }
  .mkt th, .mkt td { padding: 12px 10px; }
  .mkt-coin b { max-width: 84px; }
  .mkt-coin small { display: none; }
  .mkt-coin img, .mkt-coin .coin-ph { width: 24px; height: 24px; }
  .mkt-coin { gap: 8px; }
  .scroll-hint { display: block; }
  .issues { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile.b, .tile.c, .tile.d { grid-column: 1 / -1; }
  .rank-item { grid-template-columns: 22px auto minmax(0, 1fr); }
  .rank-score { grid-column: 2 / -1; display: flex; align-items: baseline; gap: 8px; text-align: left; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .disc-chip { padding: 0 11px; }
  .disc-chip .fa-triangle-exclamation { display: none; }
  .row { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .row-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-left: 56px; margin-top: 2px; }
  .chat-panel { position: fixed; inset: 0; width: 100%; height: 100dvh; border-radius: 0; }
  .faq-a p { padding-right: 8px; }
  .score { grid-template-columns: minmax(0, 1fr); }
  .disc-banner { flex-direction: column; gap: 10px; }
  .r-node .nm { font-size: 21px; font-weight: 700; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (max-width: 400px) {
  :root { --gutter: 14px; }
  body { font-size: 14.5px; }
  .brand span { font-size: 0.92rem; }
  .bar { gap: 8px; }
  .icon-btn { width: 40px; height: 40px; }
  .menu-btn span { left: 11px; right: 11px; }
  .disc-chip { height: 38px; font-size: 0.76rem; }
  .disc-float { height: 38px; padding: 0 13px 0 11px; font-size: 0.76rem; }
  .chat-launch { width: 52px; height: 52px; font-size: 1.15rem; }
  .tile, .side-card, .panel { padding: 18px; }
  .btn { padding: 0 16px; }
  .hero-live { font-size: 0.76rem; }
  .row-side { padding-left: 0; }
  .coins { gap: 8px; }
  .coin-name b { font-size: 0.84rem; }
  .coin-price strong { font-size: 0.92rem; }
  .step { padding-left: 58px; }
  .refbox { padding-left: 14px; gap: 8px; }
  .modal-card { padding: 22px 18px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .inline-form { flex-direction: column; }
  .inline-form .btn { width: 100%; }
}
@media (max-width: 340px) {
  .brand span { display: none; }
  .disc-chip { padding: 0 9px; font-size: 0.72rem; }
  .coins { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) { .tx-key { display: none; } .spot::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .pt { display: none; }
}
[hidden]{display:none!important}

/* Preview tags, loading buttons, receipt */
.mock-form, .mock-chat, .mock-tx, .mini-status { pointer-events: none; user-select: none; }
.btn.is-loading, .chip.is-loading { position: relative; pointer-events: none; opacity: 0.78; }
.btn.is-loading .spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.btn.is-loading > i:not(.spin) { display: none; }
.receipt-card { max-width: 720px; margin-inline: auto; }
.receipt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.receipt-code { font: 500 clamp(1rem, 4.4vw, 1.35rem) var(--font-display); letter-spacing: 0.02em; word-break: break-all; }
.receipt-msg { margin: 20px 0 0; padding: 14px 16px; border-radius: var(--r-m); background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); color: var(--muted); }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: stretch; margin: 24px 0; }
.flow > div { padding: 16px; border-radius: var(--r-m); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); min-width: 0; }
.flow .lbl { display: block; font-size: 0.74rem; font-weight: 700; color: var(--dim); margin-bottom: 6px; }
.flow strong { display: block; font: 600 1.1rem var(--font-body); margin-bottom: 6px; overflow-wrap: anywhere; }
.flow code { display: block; font: 500 0.78rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--cyan); overflow-wrap: anywhere; }
.flow .mid { display: grid; place-items: center; background: none; border: 0; padding: 0; color: var(--cyan); }
.qr-box { display: grid; justify-items: center; gap: 10px; margin-top: 8px; padding: 18px; border-radius: var(--r-m); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.qr-box img { width: min(220px, 100%); height: auto; border-radius: 12px; background: #fff; padding: 8px; }
@media (max-width: 560px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow .mid { transform: rotate(90deg); padding: 2px 0; } }

.tx.busy .tx-go { opacity: 0.6; pointer-events: none; animation: spin 0.8s linear infinite; }
@media (max-width: 520px) { .r-label { font-size: 19px; font-weight: 700; } }

.drawer-close { position: absolute; top: 12px; right: 14px; z-index: 2; }
.inline-form.lg { flex-direction: column; gap: 12px; }
.inline-form.lg input { flex: none; width: 100%; height: 62px; padding: 0 18px; border-radius: 16px; font-size: 1.2rem; font-weight: 600; letter-spacing: 0.12em; text-align: center; }
.inline-form.lg input::placeholder { letter-spacing: 0.08em; font-weight: 500; }
.inline-form.lg .btn { width: 100%; min-height: 54px; font-size: 1rem; }
