:root {
  --bg: #07090c;
  --panel: #0e1218;
  --panel-2: #121821;
  --line: #1e2733;
  --text: #e6edf3;
  --muted: #8b98a8;
  --accent: #f0b90b;
  --accent-2: #ffd75e;
  --green: #34d399;
  --red: #f87171;
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.glow {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.glow-a { top: -220px; left: -120px; background: #f0b90b; }
.glow-b { top: 30%; right: -260px; background: #1e6bff; opacity: 0.1; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 5vw;
  background: rgba(7, 9, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: 0.2px; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #b8860b);
  color: #171100;
  font-weight: 900;
}
.accent { color: var(--accent); }

.nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
  font-family: inherit;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #d9a400); color: #171100; }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(240, 185, 11, 0.22); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

main { position: relative; z-index: 1; padding: 0 5vw 80px; max-width: 1180px; margin: 0 auto; }

.hero { padding: 72px 0 40px; text-align: center; }
.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(240, 185, 11, 0.35);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.15; margin: 22px 0 18px; letter-spacing: -0.02em; }
.lede { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin: 30px 0 46px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: left; }
.stat {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.stat strong { font-size: 22px; letter-spacing: -0.01em; }
.stat-lg strong { font-size: 28px; }

.panel {
  margin-top: 26px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-head h2 { margin: 0 0 4px; font-size: 22px; }
.muted { color: var(--muted); margin: 0; font-size: 14px; }

.countdown { text-align: right; }
.countdown strong { display: block; font-size: 26px; font-variant-numeric: tabular-nums; color: var(--accent); }

.progress { height: 10px; background: #0a0d12; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d9a400, var(--accent-2));
  border-radius: 999px;
  transition: width 0.6s ease;
}

.sale-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; margin-top: 24px; }
.card {
  background: #0b0f15;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card h3 { margin: 0; font-size: 18px; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(52, 211, 153, 0.12); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.3); }
.tag-warn { background: rgba(240, 185, 11, 0.12); color: var(--accent); border-color: rgba(240, 185, 11, 0.3); }
.tag-bad { background: rgba(248, 113, 113, 0.12); color: var(--red); border-color: rgba(248, 113, 113, 0.3); }

.price { font-size: 28px; font-weight: 800; margin: 10px 0 14px; }
.price .muted { font-size: 14px; font-weight: 500; }
.facts { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.facts b { color: var(--text); }
.hint { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; word-break: break-word; }

.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; }
.field span { color: var(--muted); font-size: 14px; }
.field input {
  width: 110px;
  background: #070a0f;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
}

.panel-dividend { margin-top: 18px; }
.dividend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }

.section { margin-top: 70px; }
.section-title { font-size: 28px; margin-bottom: 22px; letter-spacing: -0.01em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature-num { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; }
.feature h3 { margin: 8px 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 110px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(240, 185, 11, 0.12);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}
.steps b { font-size: 15px; }
.steps span { color: var(--muted); font-size: 14px; }

.contract-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 22px; }
.contract-row { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contract-row:last-child { border-bottom: 0; }
.contract-row span { color: var(--muted); font-size: 14px; }
.contract-row code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 13px; color: var(--accent-2); word-break: break-all; text-align: right; }

.footer { border-top: 1px solid var(--line); padding: 30px 5vw; text-align: center; color: var(--muted); font-size: 13px; }
.footer p { margin: 4px 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #151b24;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  max-width: 90vw;
  z-index: 50;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.toast.ok { border-color: rgba(52, 211, 153, 0.4); color: var(--green); }
.toast.bad { border-color: rgba(248, 113, 113, 0.4); color: var(--red); }

@media (max-width: 900px) {
  .stats, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .sale-grid, .dividend-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}

@media (max-width: 560px) {
  .stats, .feature-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .panel { padding: 20px; }
  .steps li { grid-template-columns: 34px 1fr; }
  .steps li b { display: block; }
  .steps li span { grid-column: 2; }
}

.auto-payout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 16px;
}
.auto-payout strong { font-size: 15px; color: var(--green); }
.auto-payout .hint { margin-top: 4px; }
.dot {
  flex: 0 0 auto;
  width: 9px; height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
}
.fallback { margin-top: 14px; color: var(--muted); font-size: 13px; }
.fallback summary { cursor: pointer; }
.fallback .btn { margin-top: 10px; }

.section-lede { max-width: 780px; margin: -8px 0 18px; }
.trade-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.trade-table table { width: 100%; border-collapse: collapse; min-width: 700px; }
.trade-table th, .trade-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}
.trade-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trade-table tr:last-child td { border-bottom: 0; }
.trade-table td:first-child { font-weight: 700; white-space: nowrap; }
.trade-notes { margin: 18px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.trade-notes li { margin: 8px 0; }
.trade-notes b { color: var(--text); }

.agent-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #070a0f;
  font-size: 13px;
  color: var(--muted);
}
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 9px; }
