/* CHM BREAKER — Telegram Mini App
   Dark burgundy / neon red, condensed uppercase headings, mono labels. */

:root {
  --bg-0: #120508;
  --bg-1: #14070b;
  --bg-2: #2a0a12;
  --bg-3: #3a0d19;

  --card: rgba(22, 8, 12, 0.62);
  --card-2: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);

  --text: #f6eef0;
  --muted: rgba(246, 238, 240, 0.58);
  --dim: rgba(246, 238, 240, 0.36);

  --red: #ff2a4d;
  --red-2: #e8193c;
  --red-glow: rgba(255, 42, 77, 0.45);
  --green: #3df2a0;
  --green-dim: rgba(61, 242, 160, 0.14);
  --red-dim: rgba(255, 42, 77, 0.14);
  --amber: #ffc24b;
  --violet-1: #7c3aed;
  --violet-2: #a855f7;

  --r-sm: 6px;
  --r: 8px;
  --r-lg: 10px;

  --f-head: "Oswald", "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --gutter: 16px;
  --tabbar-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg-0); }
body {
  min-height: 100vh;
  min-height: var(--tg-viewport-stable-height, 100vh);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.45;
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- background: burgundy glow + vertical stripes + grain ---------- */
.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(120, 18, 40, 0.55), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 38%, #200811 62%, var(--bg-0) 100%);
}
.bg::before {
  /* soft vertical light bands, like the reference */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,.28) 0%, transparent 9%, transparent 16%, rgba(0,0,0,.22) 22%,
      transparent 30%, rgba(255,60,90,.035) 40%, transparent 48%, rgba(0,0,0,.25) 58%,
      transparent 66%, rgba(255,60,90,.03) 76%, transparent 84%, rgba(0,0,0,.3) 100%);
  filter: blur(6px);
}
.bg::after {
  /* film grain + dust specks */
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- app shell ---------- */
.app {
  position: relative; z-index: 1;
  max-width: 480px; margin: 0 auto;
  padding: calc(var(--safe-top) + 8px) 0 calc(var(--tabbar-h) + var(--safe-bottom) + 20px);
  min-height: 100vh;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px var(--gutter) 4px;
  min-height: 40px;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 18px; height: 18px; fill: var(--red); filter: drop-shadow(0 0 6px var(--red-glow)); }
.brand-name {
  font-family: var(--f-head); font-weight: 700; font-size: 18px; letter-spacing: .04em;
  text-transform: uppercase;
}
.topbar-right { display: flex; align-items: center; gap: 6px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; line-height: 1;
  padding: 5px 7px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted);
}
.badge-plan.is-pro {
  color: #fff; border-color: transparent;
  background: linear-gradient(90deg, var(--violet-1), var(--violet-2));
  box-shadow: 0 0 14px rgba(168, 85, 247, .35);
}
.badge-plan.is-free { color: var(--text); }
.badge-demo { color: var(--amber); border-color: rgba(255, 194, 75, .4); }

.view { padding: 0 var(--gutter); }
.screen { animation: fadeUp .28s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- type ---------- */
.h1 {
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase;
  font-size: 34px; line-height: .95; letter-spacing: -.005em; margin: 18px 0 14px;
  transform: scaleY(1.04); transform-origin: left bottom;
}
.h1.center { text-align: center; transform-origin: center bottom; }
.h2 {
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase;
  font-size: 28px; line-height: 1; margin: 28px 0 12px; letter-spacing: -.005em;
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.h2 .link {
  font-family: var(--f-mono); font-weight: 500; font-size: 10px; color: var(--muted);
  letter-spacing: .08em;
}
.mono { font-family: var(--f-mono); }
.label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; color: var(--dim);
  text-transform: uppercase; white-space: nowrap;
}
.label-b { color: var(--muted); }
.cond {
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .01em;
}
.up { color: var(--green); }
.down { color: var(--red); }
.muted { color: var(--muted); }

/* ---------- cards ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card.pad { padding: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 18px; border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
  user-select: none;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red {
  color: #fff;
  background: linear-gradient(180deg, var(--red), var(--red-2));
  box-shadow: 0 6px 22px -6px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-dark {
  color: var(--text); background: rgba(255,255,255,.055); border: 1px solid var(--line);
}
.btn-ghost { color: var(--muted); border: 1px solid var(--line); background: transparent; }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 11px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted);
}
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- svg strokes ---------- */
.tab svg, .icon-btn svg, .btn svg, .ico {
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- promo banner ---------- */
.promo {
  position: relative; overflow: hidden; border-radius: var(--r);
  min-height: 150px; padding: 18px 16px 16px 16px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(115deg, #5b21b6 0%, var(--violet-1) 35%, var(--violet-2) 100%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 40px -18px rgba(124, 58, 237, .65);
  display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: center;
}
.promo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 22px);
}
.promo-art { position: relative; height: 118px; }
.promo-art svg { width: 100%; height: 100%; overflow: visible; }
.promo-text { position: relative; z-index: 1; text-align: right; }
.promo-title {
  font-family: var(--f-head); font-weight: 700; font-style: italic; text-transform: uppercase;
  font-size: 34px; line-height: .92; letter-spacing: -.01em; color: #fff;
  text-shadow: 0 2px 18px rgba(40, 0, 80, .4);
}
.promo-title .nw { white-space: nowrap; }
.promo-title.sm { font-size: 28px; }
.promo-sub {
  margin-top: 6px;
  font-family: var(--f-head); font-weight: 500; font-style: italic; text-transform: uppercase;
  font-size: 15px; line-height: 1.08; color: rgba(255,255,255,.82);
}
.promo .btn { margin-top: 12px; height: 34px; font-size: 11px; background: #fff; color: #3b0b6e; box-shadow: none; }
.dots { display: flex; justify-content: center; gap: 5px; margin: 10px 0 0; }
.dots i { width: 5px; height: 5px; background: rgba(255,255,255,.28); border-radius: 1px; }
.dots i.on { width: 8px; background: #fff; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat { padding: 11px 10px 10px; }
.stat-val {
  font-family: var(--f-head); font-weight: 700; font-size: 26px; line-height: 1; margin-top: 8px;
  letter-spacing: -.01em;
}
.stat-val small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 1px; }
.stat-sub { font-family: var(--f-mono); font-size: 9.5px; color: var(--dim); margin-top: 5px; }

/* ---------- market strip ---------- */
.market { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.mkt { padding: 11px 12px; display: flex; flex-direction: column; gap: 4px; }
.mkt + .mkt { border-left: 1px solid var(--line); }
.mkt-head { display: flex; justify-content: space-between; align-items: center; }
.mkt-sym { font-family: var(--f-head); font-weight: 600; font-size: 16px; letter-spacing: .02em; }
.mkt-price { font-family: var(--f-mono); font-size: 14px; font-weight: 500; }
.chg { font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; }

/* ---------- strategy grid ---------- */
.strat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.strat {
  padding: 10px 10px 10px; min-height: 152px; display: flex; flex-direction: column;
  text-align: left; width: 100%; overflow: hidden;
}
.strat.is-active { border-color: rgba(255, 42, 77, .55); box-shadow: inset 0 0 0 1px rgba(255,42,77,.18), 0 0 24px -10px var(--red-glow); }
.strat-top { display: flex; justify-content: space-between; align-items: center; }
.strat-art { flex: 1; display: flex; align-items: center; justify-content: center; padding: 6px 0; }
.strat-art svg { width: 64px; height: 46px; }
.strat-name {
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 15px; line-height: 1;
  letter-spacing: .01em;
}
.ls { display: flex; gap: 4px; margin-top: 8px; }
.ls span {
  flex: 1; text-align: center; font-family: var(--f-mono); font-size: 9px; font-weight: 700;
  padding: 3px 0; border-radius: 3px; border: 1px solid var(--line); color: var(--dim);
}
.ls span.on-l { color: #072; color: var(--green); border-color: rgba(61,242,160,.4); background: var(--green-dim); }
.ls span.on-s { color: var(--red); border-color: rgba(255,42,77,.45); background: var(--red-dim); }
.lock { width: 14px; height: 14px; color: var(--muted); }
.strat.is-locked .strat-art, .strat.is-locked .strat-name { opacity: .45; }

/* ---------- squares (LONG/SHORT pictogram like reference) ---------- */
.sq { display: inline-flex; gap: 3px; align-items: center; }
.sq i { width: 14px; height: 14px; display: block; background: #0a0306; border: 1px solid var(--line-2); }
.sq i.w { background: #fff; border-color: #fff; }
.sq i.t { background: linear-gradient(135deg, #fff 50%, transparent 50%); border-color: #fff; }

/* ---------- direction / status badges ---------- */
.dir {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 7px; border-radius: 3px; line-height: 1;
}
.dir.long { color: #04140c; background: var(--green); }
.dir.short { color: #fff; background: var(--red); }
.st {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .05em;
  padding: 4px 7px; border-radius: 3px; line-height: 1; border: 1px solid var(--line-2); color: var(--muted);
}
.st.open { color: var(--amber); border-color: rgba(255,194,75,.45); }
.st.open::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 6px var(--amber); animation: pulse 1.6s infinite; }
.st.win { color: var(--green); border-color: rgba(61,242,160,.45); background: var(--green-dim); }
.st.loss { color: var(--red); border-color: rgba(255,42,77,.5); background: var(--red-dim); }
.st.be { color: var(--text); border-color: var(--line-2); }
@keyframes pulse { 50% { opacity: .3; } }

.stars { font-size: 11px; letter-spacing: 1px; color: var(--red); white-space: nowrap; }
.stars .off { color: rgba(255,255,255,.18); }

/* ---------- horizontal offers (recent signals) ---------- */
.hscroll {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.offer {
  flex: 0 0 72%; max-width: 280px; scroll-snap-align: start;
  padding: 12px 12px 12px; display: flex; flex-direction: column; gap: 10px;
}
.offer-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.offer-pair { font-family: var(--f-head); font-weight: 600; font-size: 19px; line-height: 1; text-transform: uppercase; }
.offer-spark { height: 70px; margin: 0 -2px; }
.offer-spark svg { width: 100%; height: 100%; }
.offer-price { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.offer-price b { font-family: var(--f-head); font-weight: 600; font-size: 20px; letter-spacing: .01em; }
.meter { display: flex; flex-direction: column; gap: 5px; }
.meter-top { display: flex; justify-content: space-between; }
.bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-2), var(--red)); box-shadow: 0 0 10px var(--red-glow); }
.offer-actions { display: flex; gap: 6px; }
.offer-actions .btn { flex: 1; height: 36px; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chip {
  height: 34px; padding: 0 14px; border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip.on { color: #fff; border-color: transparent; background: linear-gradient(180deg, var(--red), var(--red-2)); box-shadow: 0 4px 16px -6px var(--red-glow); }
.chip .cnt { opacity: .6; font-size: 10px; }

/* ---------- select-like field (CATEGORIES ALL) ---------- */
.field {
  display: flex; align-items: stretch; gap: 8px;
}
.field-box {
  flex: 1; padding: 8px 12px 9px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 2px;
}
.field-box:focus-within { border-color: rgba(255,42,77,.6); box-shadow: 0 0 0 3px rgba(255,42,77,.12); }
.field-box input {
  background: transparent; border: 0; outline: 0; padding: 0; width: 100%;
  font-family: var(--f-head); font-weight: 600; font-size: 26px; letter-spacing: .03em; text-transform: uppercase;
}
.field-box input::placeholder { color: rgba(255,255,255,.18); }

/* ---------- signal list cards ---------- */
.sig-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.sig { padding: 12px; width: 100%; text-align: left; display: block; }
.sig:active { border-color: var(--line-2); }
.sig-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sig-pair { font-family: var(--f-head); font-weight: 600; font-size: 22px; line-height: 1; text-transform: uppercase; }
.sig-meta { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.sig-badges { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.levels { display: grid; grid-template-columns: 1fr; margin-top: 12px; border-top: 1px dashed var(--line); }
.lvl {
  display: grid; grid-template-columns: 44px 1fr auto 18px; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.lvl:last-child { border-bottom: 0; }
.lvl .k { font-family: var(--f-mono); font-size: 10px; color: var(--dim); letter-spacing: .06em; }
.lvl .v { font-family: var(--f-mono); font-size: 13px; font-weight: 500; }
.lvl .r { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); text-align: right; }
.lvl .ok { width: 16px; height: 16px; color: var(--green); }
.lvl.hit .v { color: var(--green); }
.lvl.hit-sl .v { color: var(--red); }
.lvl.entry .v { color: #fff; }
.sig-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }

.empty {
  text-align: center; padding: 36px 16px; color: var(--muted);
}
.empty .cond { font-size: 22px; color: var(--text); margin-bottom: 6px; }

/* skeleton */
.sk { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- detail (product page) ---------- */
.detail {
  padding: 0 var(--gutter);
  margin-bottom: calc(-1 * var(--tabbar-h) + 8px);
  animation: slideIn .24s ease both;
}
.detail-inner { max-width: 480px; margin: 0 auto; }
@keyframes slideIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.back {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; color: var(--text);
  font-family: var(--f-body); font-size: 13px;
}
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.detail-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 10px; }
.detail-title .h1 { margin: 0; font-size: 38px; }
.chart-box {
  margin-top: 14px; overflow: hidden; border-radius: var(--r);
  border: 1px solid var(--line); background: #0b0306; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.chart-box img { width: 100%; height: auto; }
.chart-box .label { padding: 30px 0; }
.price-line { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.price-line b { font-family: var(--f-head); font-weight: 600; font-size: 28px; }
.desc { font-family: var(--f-mono); font-size: 12px; line-height: 1.6; color: var(--muted); margin: 10px 0 0; }

.timeline { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; margin: 18px 0 6px; padding: 0 2px; }
.tl-node { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tl-dot {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35);
  font-family: var(--f-mono); font-size: 9px; color: var(--dim);
}
.tl-dot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.tl-node.done .tl-dot { border-color: var(--green); color: #04140c; background: var(--green); box-shadow: 0 0 14px -2px rgba(61,242,160,.6); }
.tl-node.cur .tl-dot { border-color: var(--amber); color: var(--amber); }
.tl-node.fail .tl-dot { border-color: var(--red); color: #fff; background: var(--red); box-shadow: 0 0 14px -2px var(--red-glow); }
.tl-line { height: 2px; background: rgba(255,255,255,.12); margin: 0 4px 18px; }
.tl-line.done { background: var(--green); }
.tl-line.fail { background: linear-gradient(90deg, var(--green), var(--red)); }

/* ---------- analysis ---------- */
.an-form { display: flex; flex-direction: column; gap: 12px; }
.loading {
  margin-top: 16px; padding: 22px 16px; text-align: center; overflow: hidden;
}
.scan { position: relative; height: 70px; margin: 0 0 14px; border-radius: var(--r-sm); overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 18px), rgba(0,0,0,.2); }
.scan::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,42,77,.35), transparent);
  animation: scan 1.4s ease-in-out infinite;
}
@keyframes scan { from { left: -40%; } to { left: 100%; } }
.scan svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loading .cond { font-size: 22px; }
.result { margin-top: 16px; }
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.reasons { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.reasons li { display: grid; grid-template-columns: 26px 1fr; gap: 6px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.reasons li span:first-child { font-family: var(--f-mono); font-size: 10px; color: var(--red); padding-top: 2px; }
.coin-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.coin-head .cond { font-size: 26px; }
.none-art { width: 72px; height: 72px; margin: 4px auto 10px; color: var(--muted); }

/* ---------- profile ---------- */
.user-card { display: flex; gap: 12px; align-items: center; padding: 14px; }
.avatar {
  width: 54px; height: 54px; border-radius: var(--r); flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head); font-weight: 700; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, var(--red-2), #6d0f25); border: 1px solid rgba(255,255,255,.18);
}
.user-name { font-family: var(--f-head); font-weight: 600; font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.kv { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.kv > div { padding: 11px 12px; }
.kv > div + div { border-left: 1px solid var(--line); }
.kv b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 18px; margin-top: 4px; }
.tg-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px dashed var(--line); }
.tg-row:first-of-type { border-top: 0; }
.tg-row .lbl { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .05em; }
.strat-card { padding: 12px 14px 4px; margin-bottom: 8px; }
.strat-card.is-active { border-color: rgba(255,42,77,.5); }
.strat-card-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; }
.strat-card-head .cond { font-size: 20px; }
.lock-cta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0 12px; }
.lock-cta p { margin: 0; font-size: 12px; color: var(--muted); }
.note { font-family: var(--f-mono); font-size: 11px; color: var(--muted); line-height: 1.55; padding: 12px 14px; margin-top: 8px; }
.note b { color: var(--text); font-weight: 700; }
.stack { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

/* switch */
.sw { position: relative; width: 44px; height: 24px; flex: none; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.sw span {
  position: absolute; inset: 0; border-radius: 4px; background: rgba(255,255,255,.08); border: 1px solid var(--line-2);
  transition: background .18s, border-color .18s;
}
.sw span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 2px;
  background: rgba(255,255,255,.55); transition: transform .18s, background .18s;
}
.sw input:checked + span { background: linear-gradient(180deg, var(--red), var(--red-2)); border-color: transparent; box-shadow: 0 0 14px -4px var(--red-glow); }
.sw input:checked + span::after { transform: translateX(20px); background: #fff; }
.sw input:disabled + span { opacity: .4; }
.sw.long input:checked + span { background: linear-gradient(180deg, #4dffb1, #22c985); box-shadow: 0 0 14px -4px rgba(61,242,160,.6); }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 480px; margin: 0 auto;
  height: calc(var(--tabbar-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  background: linear-gradient(180deg, rgba(26, 7, 12, 0.72), rgba(16, 4, 8, 0.96));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: rgba(255,255,255,.55); position: relative;
}
.tab svg { width: 24px; height: 24px; stroke-width: 1.3; }
.tab span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .02em; }
.tab.is-active { color: #fff; }
.tab.is-active::before {
  content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px;
  background: var(--red); box-shadow: 0 0 12px var(--red);
}
.tab.is-active svg { filter: drop-shadow(0 0 6px rgba(255,42,77,.6)); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 14px); z-index: 50;
  transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 10px 14px; border-radius: var(--r-sm);
  background: rgba(20, 6, 10, .96); border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: 12px; color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: fadeUp .2s ease both;
}
.toast.err { border-color: rgba(255,42,77,.6); }

.fatal { text-align: center; padding: 60px 20px; }
.fatal .h1 { font-size: 30px; }
.noscript { color: #fff; text-align: center; padding: 40px; }

.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 8px; }
.between { justify-content: space-between; }

@media (max-width: 360px) {
  :root { --gutter: 12px; }
  .h1 { font-size: 30px; }
  .promo { grid-template-columns: 90px 1fr; }
  .promo-title { font-size: 28px; }
  .strat-name { font-size: 13px; }
  .stat-val { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
