:root {
  --bg: #07080d;
  --bg-2: #0c0e16;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f4ff;
  --muted: #9aa3bd;
  --brand: #7c5cff;
  --brand-2: #4cc9ff;
  --green: #38d39f;
  --yellow: #ffc857;
  --red: #ff5c7a;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 15% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(76, 201, 255, 0.12), transparent 55%),
              var(--bg);
  color: var(--text);
  font-family: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); background: rgba(7, 8, 13, 0.72); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; font-size: 15px; color: #fff; }
.nav-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 600; transition: .18s ease; }
.btn-primary { background: linear-gradient(135deg, var(--brand), #5f7bff); color: #fff; box-shadow: 0 8px 30px rgba(124, 92, 255, 0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(124, 92, 255, 0.45); }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-danger { background: rgba(255, 92, 122, .14); color: var(--red); border-color: rgba(255, 92, 122, .3); }

/* hero */
.hero { padding: 84px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 12.5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.05; margin: 20px 0 16px; letter-spacing: -1px; }
.grad { background: linear-gradient(100deg, #a68bff 0%, #4cc9ff 60%, #7cffcb 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { color: var(--muted); font-size: 17px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.meta-row { display: flex; gap: 18px; margin-top: 18px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.hero-visual { position: relative; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(124,92,255,.22), rgba(76,201,255,.08) 60%, transparent); padding: 18px; }
.hero-visual .glass { border-radius: 16px; background: #0b0d14; border: 1px solid var(--line); aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; position: relative; }
.hero-visual .glass::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 220px at 50% 30%, rgba(124,92,255,.35), transparent 70%); }
.hero-visual .badge { position: absolute; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(7,8,13,.7); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.hero-visual .b1 { top: 32px; left: 32px; }
.hero-visual .b2 { bottom: 32px; right: 32px; color: var(--green); }

/* sections */
section.block { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 8px; letter-spacing: -.5px; }
.section-head p { color: var(--muted); margin: 0; max-width: 560px; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 22px; transition: .18s ease; }
.card:hover { background: var(--panel-2); transform: translateY(-2px); }
.card h3 { margin: 12px 0 6px; font-size: 17px; }
.card p { color: var(--muted); margin: 0; font-size: 14px; }
.card .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(124,92,255,.35), rgba(76,201,255,.18)); border: 1px solid var(--line); font-size: 18px; }

.price-card { display: flex; flex-direction: column; gap: 10px; }
.price-card .amount { font-size: 34px; font-weight: 800; }
.price-card .amount span { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-card .credit { color: var(--brand-2); font-weight: 600; }
.price-card .hint { color: var(--muted); font-size: 12.5px; }
.price-card.featured { border-color: rgba(124,92,255,.55); box-shadow: 0 0 0 1px rgba(124,92,255,.25), 0 18px 50px rgba(124,92,255,.18); }

.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 10px; overflow: hidden; }
.faq-q { padding: 16px 18px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.faq-a { padding: 0 18px 16px; color: var(--muted); font-size: 14px; display: none; }
.faq-item.open .faq-a { display: block; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 46px; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* auth / forms */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(440px, 100%); border: 1px solid var(--line); background: rgba(12,14,22,.85); border-radius: 20px; padding: 30px; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.auth-card h2 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.tabs { display: flex; gap: 6px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 20px; }
.tabs button { flex: 1; background: transparent; border: 0; color: var(--muted); padding: 9px; border-radius: 8px; font-size: 13.5px; }
.tabs button.active { background: var(--panel-2); color: var(--text); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 11px 13px; font-size: 14px; outline: none; transition: .15s; }
.input:focus { border-color: rgba(124,92,255,.65); box-shadow: 0 0 0 3px rgba(124,92,255,.15); }
textarea.input { min-height: 120px; resize: vertical; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.msg { font-size: 13px; padding: 10px 12px; border-radius: 9px; margin-bottom: 14px; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(255,92,122,.1); border: 1px solid rgba(255,92,122,.3); color: #ff97ab; }
.msg.ok { background: rgba(56,211,159,.1); border: 1px solid rgba(56,211,159,.3); color: #7ff0c8; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.check input { margin-top: 3px; }

/* app layout */
.app-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 68px); }
.side { border-right: 1px solid var(--line); padding: 22px 14px; background: rgba(255,255,255,.015); }
.side .item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; cursor: pointer; margin-bottom: 4px; }
.side .item:hover { background: var(--panel); color: var(--text); }
.side .item.active { background: linear-gradient(90deg, rgba(124,92,255,.25), rgba(124,92,255,.06)); color: var(--text); border: 1px solid rgba(124,92,255,.3); }
.main { padding: 28px; }
.page { display: none; }
.page.active { display: block; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 18px; }
.stat .label { color: var(--muted); font-size: 12.5px; }
.stat .value { font-size: 28px; font-weight: 800; margin-top: 4px; }
.panel { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.panel h3 { margin: 0 0 4px; font-size: 17px; }
.panel .desc { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; background: rgba(255,255,255,.025); }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.pill.green { background: rgba(56,211,159,.12); color: var(--green); }
.pill.red { background: rgba(255,92,122,.12); color: var(--red); }
.pill.yellow { background: rgba(255,200,87,.12); color: var(--yellow); }
.pill.gray { background: rgba(255,255,255,.07); color: var(--muted); }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.code-box { font-family: ui-monospace, Consolas, monospace; background: rgba(0,0,0,.35); border: 1px dashed var(--line); border-radius: 10px; padding: 14px; word-break: break-all; }

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .grid-4, .stat-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .side { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .item { white-space: nowrap; }
}
