:root {
  --bg: #0f1226;
  --bg-soft: #171a35;
  --card: #1e2247;
  --primary: #6c5ce7;
  --primary-2: #a55eea;
  --accent: #00d2ff;
  --text: #eef0ff;
  --muted: #9aa0c7;
  --ok: #2ecc71;
  --warn: #ffb020;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, #2a2f66 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.logo .dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.nav-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px; font-weight: 600; cursor: pointer;
  border: none; transition: transform .12s ease, opacity .2s; font-size: 14px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--text); }
.btn-outline { border: 1px solid rgba(255,255,255,.25); color: var(--text); background: transparent; }
.btn-block { width: 100%; text-align: center; padding: 14px; font-size: 15px; }

/* hero */
.hero { text-align: center; padding: 90px 0 55px; }
.hero h1 {
  font-size: 58px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(108,92,231,.35);
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 20px; max-width: 680px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; }

/* sections */
.section { padding: 60px 0; }
.section h2 { font-size: 30px; text-align: center; margin-bottom: 8px; }
.section .sub { text-align: center; color: var(--muted); margin-bottom: 36px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card .ic { font-size: 26px; margin-bottom: 10px; }

/* pricing */
.pkg { position: relative; display: flex; flex-direction: column; gap: 6px; }
.pkg.popular { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(108,92,231,.4); }
.badge { position: absolute; top: -10px; right: 16px; background: var(--primary); color:#fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.pkg .name { font-size: 18px; font-weight: 700; }
.pkg .price { font-size: 30px; font-weight: 800; }
.pkg .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.pkg .credits { color: var(--accent); font-weight: 600; }
.pkg ul { list-style: none; margin: 8px 0 14px; color: var(--muted); font-size: 14px; }
.pkg ul li { padding: 3px 0; }

/* steps */
.steps { counter-reset: s; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num { counter-increment: s; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: rgba(108,92,231,.2); color: var(--primary-2); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.step .num::before { content: counter(s); }
.step h4 { font-size: 16px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14px; }

footer { border-top: 1px solid rgba(255,255,255,.08); padding: 30px 0; color: var(--muted); font-size: 13px; text-align: center; }

/* auth */
.auth-wrap { max-width: 400px; margin: 80px auto; }
.auth-card { background: var(--card); border-radius: var(--radius); padding: 30px; border: 1px solid rgba(255,255,255,.06); }
.tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tabs button { flex: 1; background: transparent; border: none; color: var(--muted); padding: 10px; cursor: pointer; font-size: 15px; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--text); border-color: var(--primary); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: #141732; color: var(--text); font-size: 15px; }
.field input:focus { outline: none; border-color: var(--primary); }
.hint { color: var(--muted); font-size: 13px; margin-top: 12px; text-align: center; }
.err { color: #ff6b6b; font-size: 13px; min-height: 18px; margin-bottom: 8px; }

/* dashboard */
.dash-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.credits-box { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-radius: var(--radius); padding: 22px; color: #fff; margin-bottom: 26px; }
.credits-box .big { font-size: 38px; font-weight: 800; }
.row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.panel { background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid rgba(255,255,255,.06); }
.panel h3 { margin-bottom: 14px; font-size: 17px; }
.order { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.tag { font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.tag.paid { background: rgba(46,204,113,.15); color: var(--ok); }
.tag.pending { background: rgba(255,176,32,.15); color: var(--warn); }
.tag.failed { background: rgba(255,107,107,.15); color: #ff6b6b; }
.empty { color: var(--muted); font-size: 14px; padding: 20px 0; text-align: center; }
.video-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.video-item video { width: 90px; border-radius: 8px; }
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .hero { padding: 60px 0 40px; }
}
