:root {
  --bg0: #070b10;
  --bg1: #0c1219;
  --bg2: #121a24;
  --card: rgba(18, 26, 36, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eef6;
  --muted: #8b9bb0;
  --accent: #00e5a0;
  --accent2: #1ee6ff;
  --danger: #ff5c7a;
  --warn: #ffc857;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: radial-gradient(1200px 600px at 10% -10%, #143024 0%, transparent 50%),
              radial-gradient(900px 500px at 100% 0%, #0a2a3a 0%, transparent 45%),
              var(--bg0);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; }
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px 16px 92px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid; place-items: center;
  font-weight: 800; color: #04120c; font-size: 14px;
  box-shadow: 0 0 24px rgba(0, 229, 160, 0.35);
}
.brand h1 { font-size: 18px; font-weight: 700; letter-spacing: 0.2px; }
.brand span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.badge {
  font-size: 11px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  background: rgba(255,255,255,0.03);
}
.badge.on { color: var(--accent); border-color: rgba(0,229,160,0.35); background: rgba(0,229,160,0.08); }
.badge.off { color: var(--warn); border-color: rgba(255,200,87,0.3); }

.hero {
  background: linear-gradient(160deg, rgba(0,229,160,0.12), transparent 55%), var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.hero h2 { font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
.hero p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.btn {
  border: 0; cursor: pointer; border-radius: 14px;
  padding: 12px 16px; font-weight: 650; font-size: 14px;
  transition: transform .15s ease, opacity .15s ease;
  color: #04120c; background: var(--accent);
}
.btn:active { transform: scale(0.98); }
.btn.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn.block { width: 100%; }
.btn.secondary { background: #1a2433; color: var(--text); border: 1px solid var(--line); }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.stat .label { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.stat .val { font-size: 18px; font-weight: 700; }
.stat .val.up { color: var(--accent); }
.stat .val.down { color: var(--danger); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card .hd {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; gap: 8px;
}
.side-long { color: var(--accent); font-weight: 700; }
.side-short { color: var(--danger); font-weight: 700; }
.meta { color: var(--muted); font-size: 12px; }
.levels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.levels div {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 10px 8px;
}
.levels .k { font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.levels .v { font-size: 13px; font-weight: 650; }
.why { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 8px; }
.lock {
  text-align: center; padding: 28px 16px;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--muted);
}
.lock strong { color: var(--text); display: block; margin-bottom: 6px; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(7, 11, 16, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  max-width: 480px; margin: 0 auto;
}
.tab {
  background: none; border: 0; color: var(--muted);
  font-size: 11px; cursor: pointer; min-width: 64px;
}
.tab.active { color: var(--accent); }
.tab span { display: block; font-size: 16px; margin-bottom: 2px; }

.price {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 8px 0 12px;
}
.price .big { font-size: 28px; font-weight: 800; }
.price .per { color: var(--muted); font-size: 13px; }
.features { list-style: none; margin: 0 0 14px; }
.features li {
  font-size: 13px; color: var(--muted); padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.features li:before { content: "✓ "; color: var(--accent); font-weight: 700; }

.hidden { display: none !important; }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: #1a2433; border: 1px solid var(--line);
  color: var(--text); padding: 10px 14px; border-radius: 12px;
  font-size: 13px; opacity: 0; pointer-events: none;
  transition: opacity .25s ease; z-index: 20; max-width: 90%;
}
.toast.show { opacity: 1; }
.disclaimer {
  font-size: 11px; color: var(--muted); line-height: 1.45;
  margin-top: 12px; padding: 12px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
}
.input {
  width: 100%; border-radius: 12px; border: 1px solid var(--line);
  background: #0a1017; color: var(--text); padding: 12px 14px;
  font-size: 14px; margin: 8px 0 12px;
}
.section-title { font-size: 15px; font-weight: 700; margin: 6px 0 12px; }
