:root {
  --bg: #0f1216;
  --panel: #171c23;
  --panel-2: #1f2630;
  --line: #2a323d;
  --text: #e7ecf2;
  --muted: #93a1b2;
  --accent: #ffb000;
  --accent-2: #4f8cff;
  --good: #2ecc71;
  --insane: #ff5a36;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { font-size: 19px; font-weight: 700; color: var(--text); }
.topbar nav { display: flex; align-items: center; gap: 16px; }
.who { color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }

main { max-width: 1100px; margin: 0 auto; padding: 24px 20px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; }

.btn {
  display: inline-block; background: var(--accent); color: #1a1205; font-weight: 600;
  border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer; font-size: 15px;
}
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger, button.danger { color: var(--insane); }

.flash {
  background: #3a2a12; border: 1px solid #6b4e1f; color: #ffd591;
  padding: 10px 14px; border-radius: 8px; margin-bottom: 16px;
}

/* Auth + form cards */
.auth-card, .form-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; max-width: 460px; margin: 40px auto;
}
.form-card { max-width: 620px; }
h1 { margin: 0 0 6px; font-size: 24px; }
.sub { color: var(--muted); margin: 0 0 20px; }
label { display: block; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); }
input[type=text], input[type=email], input[type=password], input[type=number], input:not([type]), select {
  width: 100%; margin-top: 5px; padding: 10px 12px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 15px;
}
select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%2393a1b2' d='M6 8L1 3h10z'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
select:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 14px; }
.row label { flex: 1; }
.actions { display: flex; gap: 10px; margin-top: 8px; }
.alt { color: var(--muted); margin-top: 16px; font-size: 14px; }

/* Dashboard */
.dash { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.sidebar { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.side-head h2 { font-size: 15px; margin: 0; }
.search-list { list-style: none; margin: 0; padding: 0; }
.search-list li { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--panel-2); }
.search-list li.active { border-color: var(--accent); }
.search-list li.paused { opacity: .55; }
.s-name { font-weight: 600; }
.s-crit { color: var(--muted); font-size: 12px; margin: 4px 0 8px; }
.s-actions { display: flex; gap: 12px; font-size: 12px; }
.s-actions form { display: inline; margin: 0; }
.s-actions button { background: none; border: 0; color: var(--accent-2); cursor: pointer; padding: 0; font-size: 12px; }
.tag { background: var(--line); color: var(--muted); font-size: 10px; padding: 1px 6px; border-radius: 6px; }
.empty { color: var(--muted); }

/* Deal cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; color: var(--text); position: relative; display: block;
}
.card:hover { border-color: var(--accent-2); text-decoration: none; transform: translateY(-2px); transition: .12s; }
.badge { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.badge.good { background: rgba(46,204,113,.15); color: var(--good); }
.badge.insane { background: rgba(255,90,54,.18); color: var(--insane); }
.price { font-size: 22px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.ttl { font-weight: 600; }
.meta { color: var(--muted); font-size: 12px; margin-top: 6px; }
.welcome { text-align: center; padding: 60px 20px; }
.welcome p { color: var(--muted); max-width: 440px; margin: 8px auto 22px; }

@media (max-width: 760px) { .dash { grid-template-columns: 1fr; } .row { flex-direction: column; } }

/* ── Landing page ─────────────────────────────────────────────────────────── */
.btn.big { padding: 14px 26px; font-size: 17px; border-radius: 10px; }

.hero {
  text-align: center;
  padding: 56px 20px 60px;
  background: radial-gradient(1200px 400px at 50% -10%, rgba(255,176,0,.16), transparent 60%),
              linear-gradient(180deg, var(--panel), var(--bg));
  border: 1px solid var(--line); border-radius: 18px; margin-bottom: 40px;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.pill {
  display: inline-block; background: rgba(79,140,255,.12); color: #9cc0ff;
  border: 1px solid rgba(79,140,255,.3); padding: 6px 14px; border-radius: 999px;
  font-size: 13px; margin-bottom: 22px;
}
.hero-title { font-size: 46px; line-height: 1.08; letter-spacing: -1px; margin: 0 0 18px; }
.hero-sub { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: 13px; margin-top: 16px; }

.sec-title { text-align: center; font-size: 28px; margin: 0 0 6px; }
.sec-sub { text-align: center; color: var(--muted); margin: 0 0 26px; }
section.how, section.live, section.who { margin: 0 0 52px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #1a1205;
  font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { color: var(--muted); margin: 0; font-size: 14px; }

.card.static { cursor: default; }
.card.static:hover { transform: none; border-color: var(--line); }
.live-cta { text-align: center; margin-top: 26px; }

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.aud { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-align: center; }
.aud-emoji { font-size: 32px; }
.aud h3 { margin: 10px 0 8px; font-size: 18px; }
.aud p { color: var(--muted); margin: 0; font-size: 14px; }

.final-cta {
  text-align: center; padding: 50px 20px; margin-bottom: 30px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 18px;
}
.final-cta h2 { font-size: 26px; margin: 0 0 22px; }

@media (max-width: 760px) {
  .hero-title { font-size: 34px; }
  .steps, .audience { grid-template-columns: 1fr; }
}
