@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;700;800&family=Noto+Sans+Lao:wght@400;500;700;800&family=Noto+Sans+Devanagari:wght@400;500;700;800&display=swap");

:root {
  --ink: #070b16;
  --fog: #f4f7ff;
  --mist: #9aa3bc;
  --panel: #12182a;
  --line: rgba(140, 160, 220, 0.18);
  --accent: #3ee0ff;
  --accent-2: #7af0c8;
  --gold: #ffc857;
  --gold-2: #ffe29a;
  --violet: #8b7cff;
  --long: #3dff9a;
  --short: #ff5d7a;
  --wait: #ffc857;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans Thai", "Noto Sans Lao", "Noto Sans Devanagari", sans-serif;
  --ui: var(--font);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--fog);
  font-family: var(--ui);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(880px 520px at 100% -4%, rgba(255, 200, 87, 0.28), transparent 52%),
    radial-gradient(760px 500px at -8% 8%, rgba(62, 224, 255, 0.22), transparent 54%),
    radial-gradient(680px 460px at 78% 108%, rgba(139, 124, 255, 0.26), transparent 56%),
    linear-gradient(180deg, #0c1428 0%, #070b16 42%, #101018 100%);
}

a { color: var(--accent-2); }
button, input, textarea { font-family: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 22, 0.78);
  border-bottom: 1px solid rgba(139, 124, 255, 0.22);
  backdrop-filter: blur(16px);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  max-width: 1240px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fog);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img { width: 32px; height: 32px; border-radius: 10px; }
.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-meta small {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-menu {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  align-items: center;
}

.site-menu a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-menu a:hover {
  color: var(--fog);
  background: rgba(62, 224, 255, 0.12);
}

.site-menu a.is-active {
  color: #1a1206;
  background: linear-gradient(90deg, #ffc857, #ff9f43);
  border-color: #ffc857;
}

.site-menu a.nav-account {
  border-color: var(--line);
  color: var(--fog);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-switch select {
  background: rgba(139, 124, 255, 0.16);
  color: var(--fog);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 0.82rem;
  max-width: 42vw;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[lang="th"] .page-title,
html[lang="lo"] .page-title,
html[lang="hi"] .page-title,
html[lang="ru"] .page-title,
html[lang="vi"] .page-title {
  font-family: var(--ui);
}

.auth-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin: 16px 0 8px;
}
.auth-grid h2 { margin: 0 0 4px; font-size: 1.05rem; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(139, 124, 255, 0.16);
  color: var(--fog);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
  flex: 1;
}

.page-title {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(92deg, #3ee0ff 0%, #f4f7ff 38%, #ffc857 72%, #ff5d7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--mist);
  max-width: 62ch;
  line-height: 1.65;
  margin: 0 0 22px;
  font-size: 1.02rem;
}

.hero {
  margin: 4px 0 22px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.hero-points span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #9ef6ff;
  background: rgba(62, 224, 255, 0.14);
  border: 1px solid rgba(62, 224, 255, 0.4);
}
.hero-points span:nth-child(1) {
  color: #ffc48a;
  background: rgba(247, 147, 26, 0.16);
  border-color: rgba(247, 147, 26, 0.45);
}
.hero-points span:nth-child(2) {
  color: #d7d0ff;
  background: rgba(139, 124, 255, 0.18);
  border-color: rgba(139, 124, 255, 0.45);
}
.hero-points span:nth-child(3) {
  color: #9ef6d4;
  background: rgba(20, 241, 149, 0.14);
  border-color: rgba(20, 241, 149, 0.4);
}
.hero-points span:nth-child(4) {
  color: #9ed4ff;
  background: rgba(35, 141, 232, 0.16);
  border-color: rgba(35, 141, 232, 0.45);
}

.disclaimer,
.disclaimer-bar {
  border: 1px solid rgba(232, 197, 107, 0.28);
  background: rgba(232, 197, 107, 0.08);
  color: var(--gold-2);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.disclaimer-bar { margin: 18px 0 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  background: linear-gradient(165deg, #1c2748 0%, #141b32 52%, #101624 100%);
  border: 1px solid rgba(140, 160, 220, 0.2);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.mode-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  min-height: 0;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.mode-card:hover {
  border-color: rgba(62, 224, 255, 0.55);
  transform: translateY(-2px);
}
.mode-card.accent-gold {
  background: linear-gradient(165deg, #3a2e18 0%, #1a1624 60%);
  border-color: rgba(255, 200, 87, 0.28);
}
.mode-card.accent-gold .kicker { color: var(--gold); }
.mode-card.accent-gold:hover {
  border-color: rgba(255, 200, 87, 0.6);
}

.mode-card h2 { margin: 0; font-size: 1.1rem; font-weight: 650; }
.mode-card p { margin: 0; color: var(--mist); line-height: 1.5; flex: 1; }
.kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  color: #04151a;
  background: linear-gradient(90deg, #2ee6b0, #3ee0ff);
  box-shadow: 0 8px 24px rgba(62, 224, 255, 0.22);
}

.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }
.btn.ghost {
  background: transparent;
  color: var(--fog);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.long {
  background: var(--long);
  color: #04221c;
  border: 0;
}
.btn.short {
  background: var(--short);
  color: #fff8f8;
  border: 0;
}
.btn.wait {
  background: var(--gold);
  color: #1c1812;
  border: 0;
}
.btn.wide { width: 100%; }

.guess-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.dropzone {
  border: 1.5px dashed rgba(139, 124, 255, 0.45);
  border-radius: 16px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
  color: var(--mist);
  cursor: pointer;
  background: rgba(139, 124, 255, 0.08);
}

.dropzone.drag { border-color: var(--accent); background: rgba(62, 224, 255, 0.12); }
.dropzone img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 12px;
}

textarea, input[type="text"], input[type="search"], input[type="password"] {
  width: 100%;
  background: #0b1020;
  border: 1px solid var(--line);
  color: var(--fog);
  border-radius: 12px;
  padding: 11px 12px;
  resize: vertical;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 14px 0 8px;
}

.muted { color: var(--mist); font-size: 0.9rem; }
.row-between {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.stat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  background: rgba(139, 124, 255, 0.12);
}

.pill strong { color: var(--accent-2); }

.chart-box {
  position: relative;
  height: 360px;
}

.chart-box.volume { height: 110px; margin-top: 8px; }

.empty {
  color: var(--mist);
  text-align: center;
  padding: 48px 12px;
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.trend.bullish, .trend.long { color: var(--long); }
.trend.bearish, .trend.short { color: var(--short); }
.trend.sideways, .trend.wait { color: var(--wait); }

.verdict {
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
}
.verdict .kicker { margin: 0 0 4px; }
.verdict h2 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.1;
}
.verdict p { margin: 8px 0 0; color: var(--fog); line-height: 1.5; }
.verdict.long {
  background: rgba(61, 255, 154, 0.12);
  border-color: rgba(61, 255, 154, 0.45);
}
.verdict.long h2 { color: var(--long); }
.verdict.short {
  background: rgba(255, 93, 122, 0.14);
  border-color: rgba(255, 93, 122, 0.5);
}
.verdict.short h2 { color: var(--short); }
.verdict.wait {
  background: rgba(255, 200, 87, 0.12);
  border-color: rgba(255, 200, 87, 0.5);
}
.verdict.wait h2 { color: var(--wait); }

.result-block h3 { margin: 18px 0 8px; font-size: 0.95rem; color: var(--mist); }
.result-block ul { margin: 0; padding-left: 18px; line-height: 1.55; }

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.82rem;
  opacity: 0.45;
}
.badge.earned {
  opacity: 1;
  border-color: rgba(255, 200, 87, 0.45);
  background: rgba(255, 200, 87, 0.14);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
th { color: var(--mist); font-weight: 650; font-size: 0.8rem; }

.ok { color: var(--long); }
.no { color: var(--short); }

.toast {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: #0c1c22;
  border: 1px solid rgba(139, 124, 255, 0.4);
  padding: 12px 14px;
  border-radius: 14px;
  max-width: min(420px, calc(100% - 24px));
  z-index: 50;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 16px clamp(16px, 4vw, 40px) 24px;
  color: var(--mist);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer p { margin: 0; max-width: 62ch; }
.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--mist);
  text-decoration: none;
}
.site-footer a:hover { color: var(--accent-2); }

.roadmap-phase {
  margin: 28px 0 8px;
}
.roadmap-phase h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.roadmap-grid {
  display: grid;
  gap: 12px;
  margin: 12px 0 8px;
}
.roadmap-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}
.roadmap-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--mist);
  line-height: 1.55;
}
.roadmap-card .status {
  margin: 12px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-2);
}
.roadmap-card.done {
  border-color: rgba(46, 230, 176, 0.4);
}
.roadmap-card.next {
  border-color: rgba(232, 197, 107, 0.4);
}

.mission-summary {
  margin: 8px 0 22px;
  padding: 16px 18px;
}
.mission-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.mission-summary-top strong {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.mission-pct {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
}
.mission-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 12px;
  overflow: hidden;
}
.mission-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 999px;
}
.mission-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.mission-item {
  position: relative;
  padding: 16px 16px 14px;
}
.mission-item h3 {
  margin: 0 72px 8px 0;
  font-size: 1.02rem;
}
.mission-flag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.75rem;
  font-weight: 750;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--long);
  border: 1px solid rgba(46, 230, 176, 0.45);
  background: rgba(46, 230, 176, 0.14);
}
.mission-flag.now {
  color: #1c1812;
  border-color: rgba(232, 197, 107, 0.6);
  background: var(--gold);
}
.mission-item:not(.done):not(.now) .mission-flag {
  color: var(--mist);
  border-color: var(--line);
  background: transparent;
}
.mission-item.done { border-color: rgba(46, 230, 176, 0.4); }
.mission-item.now { border-color: rgba(232, 197, 107, 0.45); }
.mission-do, .mission-out {
  margin: 0 0 6px;
  color: var(--mist);
  line-height: 1.5;
  font-size: 0.92rem;
}
.mission-out { margin-bottom: 0; color: var(--fog); }
.mission-out span {
  display: inline-block;
  min-width: 4.5rem;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.78rem;
}
.mission-out code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent-2);
}
.hard-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 8px;
}
.hard-line .card {
  padding: 14px 16px;
}
.hard-line strong { display: block; margin-bottom: 4px; color: var(--fog); }

.page-visual {
  margin: 8px 0 28px;
}
.page-visual img {
  display: block;
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.page-visual figcaption {
  color: var(--mist);
  font-size: 0.85rem;
  margin-top: 8px;
}
.doc-section {
  margin: 32px 0;
}
.doc-section h2 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}
.doc-section p, .doc-section li {
  color: var(--mist);
  line-height: 1.6;
}
.doc-section p { margin: 0 0 10px; }
.doc-section ol, .doc-section ul { margin: 0 0 12px; padding-left: 20px; }
.doc-quote {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(232, 197, 107, 0.08);
  color: var(--fog);
  border-radius: 0 14px 14px 0;
}
.doc-pre {
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--accent-2);
  white-space: pre;
}

.zone-grid {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.zone-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.zone-card h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}
.zone-card p, .zone-card li { margin: 0; color: var(--mist); line-height: 1.5; }
.zone-card ul { margin: 0; padding-left: 18px; }
.zone-card.entry { border-color: rgba(46, 230, 176, 0.5); background: rgba(46, 230, 176, 0.08); }
.zone-card.exit { border-color: rgba(255, 107, 122, 0.5); background: rgba(255, 107, 122, 0.08); }
.dropzone.has-preview { position: relative; }
.preview-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.summary-card {
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
}
.summary-card h2 { margin: 4px 0 10px; font-family: var(--font); }
.summary-card.bullish { background: rgba(61, 255, 154, 0.12); border-color: rgba(61, 255, 154, 0.45); }
.summary-card.bullish h2 { color: var(--long); }
.summary-card.bearish { background: rgba(255, 93, 122, 0.14); border-color: rgba(255, 93, 122, 0.5); }
.summary-card.bearish h2 { color: var(--short); }
.summary-card.sideways { background: rgba(154, 163, 188, 0.14); border-color: rgba(154, 163, 188, 0.4); }
.conf-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-right: 8px;
}
.conf-badge.low { background: rgba(255, 93, 122, 0.2); color: var(--short); }
.conf-badge.medium { background: rgba(255, 200, 87, 0.22); color: var(--gold); }
.conf-badge.high { background: rgba(61, 255, 154, 0.2); color: var(--long); }
.pattern-grid, .levels-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin: 8px 0 16px;
}
.pattern-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(139, 124, 255, 0.08);
}
.pattern-card h4 { margin: 0 0 6px; }
.risk-box {
  border: 1px solid rgba(255, 200, 87, 0.55);
  background: rgba(255, 200, 87, 0.12);
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
}
.disclaimer-fixed {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(154, 163, 188, 0.12);
  color: var(--mist);
  font-size: 0.82rem;
  line-height: 1.5;
}
.result-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.result-tools p { margin: 0 8px 0 0; }
.skel { background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.14), rgba(255,255,255,0.06)); background-size: 200% 100%; animation: skel 1.2s ease-in-out infinite; border-radius: 12px; }
.skel-card { height: 88px; margin-bottom: 10px; }
.skel-line { height: 14px; margin-bottom: 8px; }
.skel-line.short { width: 55%; }
.skel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.result-error { color: var(--short); }
.hist-item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--fog);
  padding: 8px;
  margin: 0 0 8px;
  cursor: pointer;
}
.hist-item img, .hist-ph {
  width: 56px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #0b1020;
  flex-shrink: 0;
}
.hist-item small { display: block; color: var(--mist); }
.first-run {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.first-run li {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 24, 42, 0.7);
  color: var(--mist);
  font-size: 0.88rem;
  font-weight: 700;
}
.first-run li.is-now {
  border-color: rgba(232, 197, 107, 0.55);
  color: var(--gold-2);
  background: rgba(255, 200, 87, 0.12);
}
.first-run li.is-done {
  border-color: rgba(46, 230, 176, 0.4);
  color: var(--accent-2);
}
.fail-card {
  border: 1px solid rgba(255, 93, 122, 0.45);
  background: rgba(255, 93, 122, 0.12);
  border-radius: 16px;
  padding: 16px 16px 14px;
}
.fail-card h2 { margin: 0 0 8px; font-size: 1.15rem; }
.fail-card p { margin: 0 0 8px; line-height: 1.5; }
.fail-card .fail-next { color: var(--gold-2); margin-bottom: 0; }
.pay-box h2 { font-size: 1.15rem; margin: 0 0 8px; }
.pay-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.pay-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  color: var(--fog);
}
.wallet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 8px;
}
.wallet-row code {
  flex: 1;
  min-width: 0;
  word-break: break-all;
  font-size: 0.82rem;
}
.result-wrap {
  border-color: rgba(232, 197, 107, 0.45);
  scroll-margin-top: 18px;
}
#serviceNote { margin: 0 0 14px; }
#authReadyNote { margin: 0; color: var(--accent-2); }
@media (max-width: 720px) {
  .first-run { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-footer, .atmosphere, #coinPicker, #liveChart, #authCard, .dropzone, #analyse, textarea, label, .result-tools, #historyList, .first-run { display: none !important; }
  body { background: #fff; color: #111; }
  .summary-card, .pattern-card, .risk-box { break-inside: avoid; }
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.compare .card { padding: 14px; }

@media (max-width: 860px) {
  .grid-2, .compare, .guess-row, .hard-line, .auth-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-tools { margin-left: auto; }
  .site-nav {
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
  }
  .site-menu {
    display: none;
    position: absolute;
    top: 56px;
    left: 10px;
    right: 10px;
    background: #0c1c22;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
  }
  .site-menu.open { display: flex; }
  .site-menu a { padding: 12px 14px; font-size: 1rem; }
  .wrap {
    width: calc(100% - 20px);
    padding: 12px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  }
  .page-title { font-size: 1.42rem; }
  .lede { font-size: 0.92rem; margin-bottom: 14px; }
  .hero { margin: 0 0 14px; }
  .card { padding: 14px; }
  .chart-box { height: 280px; }
  .coin-leader { flex-wrap: wrap; }
  .coin-leader .chg { margin-left: auto; }
  .coin-filter { flex-wrap: wrap; }
  .coin-filter input { width: 100%; min-height: 44px; }
  .coin-grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    max-height: 220px;
  }
  .live-head {
    flex-direction: column;
    align-items: stretch;
  }
  .live-quote { text-align: left; }
  .live-price { font-size: 1.28rem; }
  .tv-host,
  .tv-host iframe,
  .live-chart-tv {
    height: min(52vh, 420px);
    min-height: 280px;
  }
}

.pipeline-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.stage-card {
  padding: 14px;
}
.stage-card h3 {
  margin: 8px 0 6px;
  font-size: 0.95rem;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mist);
}
.dot.ok { background: var(--long); }
.dot.error { background: var(--short); }
.dot.running { background: var(--accent-2); }
.dot.idle { background: #5c5668; }
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feed li {
  display: grid;
  grid-template-columns: 92px 88px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.feed .time { color: var(--mist); font-variant-numeric: tabular-nums; }
.feed .stage { color: var(--accent-2); font-weight: 650; }
@media (max-width: 860px) {
  .pipeline-stages { grid-template-columns: 1fr 1fr; }
  .feed li { grid-template-columns: 1fr; gap: 4px; }
}

.coin-panel {
  margin: 0 0 14px;
  background: linear-gradient(165deg, #16302c 0%, #142028 48%, #12182a 100%);
  border-color: rgba(61, 255, 154, 0.22);
}
.live-card {
  margin: 0;
  background: linear-gradient(165deg, #1a2458 0%, #141b36 55%, #101624 100%);
  border-color: rgba(62, 224, 255, 0.28);
}
.coin-panel .coin-head {
  margin-bottom: 8px;
  gap: 10px;
}
.coin-panel .coin-head label {
  margin: 0;
  font-weight: 700;
}
.coin-panel input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b1020;
  color: var(--fog);
  border-radius: 12px;
  padding: 11px 12px;
}
.coin-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--mist);
  font-weight: 500;
}
.coin-filter input { width: auto; }
.coin-picked {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--mist);
  font-size: 0.88rem;
  min-height: 1.4em;
}
.coin-picked img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
}
.coin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  margin-top: 10px;
  padding-right: 4px;
  border: 0;
}
.coin-panel.is-compact .coin-grid,
.coin-panel.is-compact .pump-tape,
.coin-panel.is-compact #promoRow,
.coin-panel.is-compact .coin-filter {
  display: none;
}
.coin-panel.is-compact.is-open .coin-grid {
  display: grid;
}
.coin-panel.is-compact.is-open .pump-tape,
.coin-panel.is-compact.is-open .coin-filter {
  display: block;
}
.coin-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 10px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 21, 26, 0.7);
  color: var(--fog);
  cursor: pointer;
  text-align: center;
  width: auto;
}
.coin-chip:last-child { border-bottom: 1px solid var(--line); }
.coin-chip:hover:not(:disabled) {
  background: rgba(62, 224, 255, 0.12);
  border-color: rgba(62, 224, 255, 0.45);
}
.coin-chip.is-on {
  background: rgba(62, 224, 255, 0.18);
  box-shadow: 0 0 0 2px rgba(62, 224, 255, 0.3);
  border-color: var(--accent);
}
.coin-chip.is-up:not(.is-on):not(.is-pump-1):not(.is-pump-2):not(.is-pump-3):not(.is-gold) {
  background: rgba(61, 255, 154, 0.08);
  border-color: rgba(61, 255, 154, 0.28);
}
.coin-chip.is-down:not(.is-on):not(.is-pump-1):not(.is-gold) {
  background: rgba(255, 93, 122, 0.08);
  border-color: rgba(255, 93, 122, 0.28);
}
.coin-chip.is-gold:not(.is-on) {
  border-color: rgba(255, 200, 87, 0.6);
  background: linear-gradient(180deg, rgba(255, 200, 87, 0.2), rgba(255, 200, 87, 0.06));
}
.coin-chip.is-featured:not(.is-pump-1):not(.is-on) {
  box-shadow: inset 0 0 0 1px rgba(255, 200, 87, 0.35);
}
.coin-chip.is-off,
.coin-chip:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.coin-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #f4f4f8;
  flex-shrink: 0;
}
.coin-logo-random {
  display: grid;
  place-items: center;
  background: rgba(139, 124, 255, 0.22);
  color: #d7d0ff;
  font-weight: 700;
}
.coin-chip .sym {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  display: block;
}
.coin-chip .rank {
  font-size: 0.68rem;
  color: var(--mist);
  min-width: 0;
  text-align: center;
}
.coin-chip .chg {
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  text-align: center;
}
.coin-chip .chg.up, .pump-item.up, .coin-leader .chg.up { color: var(--long); }
.coin-chip .chg.down, .pump-item.down, .coin-leader .chg.down { color: var(--short); }
.coin-chip.is-pump-1 {
  grid-column: span 2;
  padding: 14px 10px 12px;
  border-color: rgba(255, 200, 87, 0.85);
  background: linear-gradient(135deg, rgba(61, 255, 154, 0.32), rgba(255, 200, 87, 0.22) 55%, rgba(255, 159, 67, 0.16));
  box-shadow: 0 10px 28px rgba(255, 200, 87, 0.22);
}
.coin-chip.is-pump-2 {
  border-color: rgba(62, 224, 255, 0.75);
  background: linear-gradient(180deg, rgba(62, 224, 255, 0.28), rgba(62, 224, 255, 0.08));
}
.coin-chip.is-pump-3 {
  border-color: rgba(139, 124, 255, 0.75);
  background: linear-gradient(180deg, rgba(139, 124, 255, 0.28), rgba(139, 124, 255, 0.08));
}
.coin-chip.is-pump-1 .coin-logo {
  width: 44px;
  height: 44px;
}
.coin-chip.is-pump-1 .sym {
  font-size: 1rem;
}
.coin-chip.is-pump-1 .chg {
  font-size: 0.95rem;
}
.leader-tag {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: uppercase;
}
@keyframes hotPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(61, 255, 154, 0.12);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 16px 2px rgba(61, 255, 154, 0.7);
    filter: brightness(1.18);
  }
}
@keyframes hotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.38; }
}
.coin-chip.is-hot,
.promo-card.is-hot,
.coin-leader.is-hot {
  animation: hotPulse 1.35s ease-in-out infinite;
}
.coin-chip.is-pump-1.is-hot {
  animation-duration: 1s;
}
.coin-chip.is-hot .chg.up,
.promo-card.is-hot .chg.up,
.coin-leader.is-hot .chg.up,
.pump-item.is-hot {
  animation: hotBlink 1.15s ease-in-out infinite;
  color: var(--long);
}
@media (prefers-reduced-motion: reduce) {
  .coin-chip.is-hot,
  .promo-card.is-hot,
  .coin-leader.is-hot,
  .coin-chip.is-hot .chg.up,
  .promo-card.is-hot .chg.up,
  .coin-leader.is-hot .chg.up,
  .pump-item.is-hot {
    animation: none;
  }
}
.coin-leader {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 10px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 200, 87, 0.55);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(61, 255, 154, 0.22) 0%, rgba(62, 224, 255, 0.14) 48%, rgba(255, 200, 87, 0.22) 100%);
  color: var(--fog);
  cursor: pointer;
  text-align: left;
}
.coin-leader[hidden] { display: none; }
.coin-leader.is-on {
  box-shadow: 0 0 0 2px rgba(255, 200, 87, 0.45);
}
.coin-leader img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.coin-leader-copy {
  min-width: 0;
  flex: 1;
}
.coin-leader-copy .kicker { margin: 0 0 2px; color: var(--gold); }
.coin-leader-copy strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.coin-leader-copy span {
  color: var(--mist);
  font-size: 0.85rem;
}
.coin-leader .chg {
  font-size: 1.35rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  flex-shrink: 0;
}
.promo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 8px;
}
.promo-row[hidden] { display: none; }
.promo-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 21, 26, 0.55);
  color: var(--fog);
  cursor: pointer;
  text-align: left;
  min-width: 0;
  min-height: 36px;
}
.promo-card img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.promo-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.promo-copy .kicker { display: none; }
.promo-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.promo-copy .sym {
  color: var(--mist);
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}
.promo-card .chg {
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  flex-shrink: 0;
}
.promo-card.is-on { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22); }
.promo-btc {
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.28), rgba(247, 147, 26, 0.06));
  border-color: rgba(247, 147, 26, 0.55);
}
.promo-btc .kicker { color: #f7931a; }
.promo-eth {
  background: linear-gradient(135deg, rgba(139, 124, 255, 0.28), rgba(98, 126, 234, 0.08));
  border-color: rgba(139, 124, 255, 0.55);
}
.promo-eth .kicker { color: #b9b0ff; }
.promo-sol {
  background: linear-gradient(135deg, rgba(20, 241, 149, 0.22), rgba(153, 69, 255, 0.12));
  border-color: rgba(20, 241, 149, 0.5);
}
.promo-sol .kicker { color: #14f195; }
.promo-xrp {
  background: linear-gradient(135deg, rgba(35, 141, 232, 0.28), rgba(35, 141, 232, 0.06));
  border-color: rgba(35, 141, 232, 0.55);
}
.promo-xrp .kicker { color: #5eb5ff; }
@media (max-width: 860px) {
  .promo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 16px); }
  .promo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-title { font-size: 1.28rem; }
  .hero-points span { font-size: 0.78rem; padding: 6px 10px; }
}

.pump-tape {
  overflow: hidden;
  border: 1px solid rgba(139, 124, 255, 0.28);
  border-radius: 14px;
  padding: 8px 0;
  background: linear-gradient(90deg, rgba(62, 224, 255, 0.12), rgba(139, 124, 255, 0.14), rgba(255, 200, 87, 0.12));
}
.pump-tape-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: pumpScroll 48s linear infinite;
}
.pump-item {
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fog);
  font-family: var(--mono);
  padding: 0 4px;
}
@keyframes pumpScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.live-head { align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.live-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-title img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
}
.live-title .kicker { margin: 0 0 2px; display: flex; align-items: center; gap: 6px; }
.live-title strong { font-size: 1rem; font-weight: 650; }
.live-quote { text-align: right; }
.live-price {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  letter-spacing: -0.03em;
}
.live-price.up, #liveChange.up { color: var(--long); }
.live-price.down, #liveChange.down { color: var(--short); }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--long);
  box-shadow: 0 0 0 4px rgba(62, 224, 255, 0.22);
}
.tv-host {
  height: min(62vh, 560px);
  min-height: 420px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #101624;
}
.tv-host iframe,
.live-chart-tv {
  display: block;
  width: 100%;
  height: min(62vh, 560px);
  min-height: 420px;
  border: 0;
  background: #101624;
}
.live-card .empty { padding: 28px 12px; }

.live-card.is-capturing .chart-shot-top,
.live-card.is-capturing .live-head,
.live-card.is-capturing .disclaimer,
.live-card.is-capturing #liveEmpty,
.live-card.is-capturing .chart-shot-preview {
  display: none !important;
}
  padding: 10px;
  border: 1px dashed rgba(62, 224, 255, 0.35);
  border-radius: 12px;
  background: rgba(8, 21, 26, 0.45);
}
.chart-shot-top {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 200, 87, 0.55);
  background: linear-gradient(90deg, rgba(255, 200, 87, 0.18), rgba(62, 224, 255, 0.14), rgba(255, 93, 122, 0.16));
  animation: shotBarPulse 1.35s ease-in-out infinite;
}
.chart-shot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.chart-shot-bar .btn {
  padding: 8px 12px;
  font-size: 0.82rem;
}
.chart-shot-btn {
  padding: 11px 16px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #1a1206;
  border: 0;
  background: linear-gradient(90deg, #ffc857, #ff9f43 42%, #3ee0ff);
  box-shadow: 0 0 0 0 rgba(255, 200, 87, 0.45);
  animation: shotBtnPulse 1.05s ease-in-out infinite;
}
.chart-shot-pick {
  min-height: 42px;
}
.chart-shot-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
}
.chart-shot-preview {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.chart-shot-preview[hidden] { display: none; }
.chart-shot-preview img {
  width: 120px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #101624;
}
.chart-shot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@keyframes shotBarPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 200, 87, 0.12); }
  50% { box-shadow: 0 0 18px 2px rgba(255, 200, 87, 0.55); }
}
@keyframes shotBtnPulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: 0 0 0 0 rgba(62, 224, 255, 0.2);
  }
  50% {
    transform: scale(1.04);
    filter: brightness(1.12);
    box-shadow: 0 0 16px 3px rgba(255, 200, 87, 0.7);
  }
}
@media (prefers-reduced-motion: reduce) {
  .chart-shot-top,
  .chart-shot-btn {
    animation: none;
  }
}
@media (max-width: 860px) {
  .chart-shot-preview { grid-template-columns: 1fr; }
  .chart-shot-preview img { width: 100%; height: 140px; }
  .chart-shot-btn { width: 100%; justify-content: center; }
  .chart-shot-pick { flex: 1; justify-content: center; }
}

@media (max-width: 860px) {
  .live-head {
    flex-direction: column;
    align-items: stretch;
  }
  .live-quote { text-align: left; }
  .live-price { font-size: 1.28rem; }
  .tv-host,
  .tv-host iframe,
  .live-chart-tv {
    height: min(52vh, 420px);
    min-height: 280px;
  }
  .site-footer {
    flex-direction: column;
    padding: 14px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

.hero-points .btn { text-decoration: none; }
.cycle-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}
.cycle-toggle .btn.is-on {
  color: #1a1206;
  background: linear-gradient(90deg, #ffc857, #ffe29a);
  border-color: transparent;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.plan-card {
  position: relative;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 24, 42, 0.82);
}
.plan-card.is-featured {
  border-color: rgba(255, 200, 87, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 200, 87, 0.25);
  background: linear-gradient(180deg, rgba(255, 200, 87, 0.14), rgba(18, 24, 42, 0.92));
}
.plan-card.is-current { outline: 1px solid rgba(62, 224, 255, 0.45); }
.plan-badge {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan-card h2 { margin: 0 0 6px; font-size: 1.2rem; }
.plan-price {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.plan-card .btn { margin-top: 14px; }
.sub-banner p { margin: 0 0 10px; }
.compare-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.92rem;
}
.compare-table th, .compare-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.compare-table th:first-child, .compare-table td:first-child {
  text-align: left;
  font-weight: 700;
}
details {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
details summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; color: var(--mist); line-height: 1.55; }
@media (max-width: 860px) {
  .plan-grid { grid-template-columns: 1fr; }
}
