:root {
  --bg: #07111f;
  --card: #0d1b30;
  --card-2: #0a1628;
  --text: #f4f7fb;
  --muted: #aab7cf;
  --line: rgba(255,255,255,0.1);
  --blue: #17b5ff;
  --green: #95ff00;
  --purple: #c83cff;
  --yellow: #ffd400;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(23,181,255,.18), transparent 30%),
    radial-gradient(circle at top right, rgba(200,60,255,.12), transparent 25%),
    linear-gradient(180deg, #06101c, #081525 40%, #08111d);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); background: rgba(7,17,31,.75); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 62px; }
.brand span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
nav a { color: var(--muted); }
nav a:hover { color: #fff; }
.hero { padding: 72px 0 34px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: center; }
.eyebrow { color: var(--blue); font-weight: 800; letter-spacing: .08em; font-size: 13px; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.05; }
h1 { font-size: clamp(36px, 5vw, 64px); max-width: 780px; }
h2 { font-size: clamp(28px, 4vw, 42px); }
.lead { color: var(--muted); font-size: 18px; max-width: 760px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.badges span { border: 1px solid rgba(23,181,255,.35); color: #fff; padding: 10px 14px; border-radius: 999px; background: rgba(23,181,255,.08); }
.hero-actions, .editor-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  border: 1px solid transparent; border-radius: 12px; padding: 13px 18px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.btn-primary { background: linear-gradient(90deg, var(--blue), #4ad8ff); color: #04111e; }
.btn-outline { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.03); color: #fff; }
.full { width: 100%; }
.hero-card, .about-box, .plan-card, .login-box, .editor-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.hero-card { padding: 24px; }
.hero-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.section { padding: 38px 0; }
.section.alt { background: rgba(255,255,255,.02); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { margin-bottom: 24px; }
.section-title p:last-child { color: var(--muted); }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan-card { padding: 22px; position: relative; overflow: hidden; }
.plan-card h3 { font-size: 28px; }
.plan-card .speed { font-size: 34px; font-weight: 900; margin-bottom: 10px; }
.plan-desc { color: var(--muted); min-height: 70px; }
.plan-card ul { padding-left: 18px; color: #dce7f7; min-height: 156px; }
.plan-card li { margin: 8px 0; }
.price { font-size: 34px; font-weight: 900; margin: 18px 0; }
.tag { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 800; color: #08111d; background: var(--yellow); padding: 8px 10px; border-radius: 999px; }
.featured { transform: translateY(-4px); }
.accent-green { border-color: rgba(149,255,0,.45); box-shadow: 0 0 0 1px rgba(149,255,0,.1), 0 20px 50px rgba(0,0,0,.25); }
.accent-blue { border-color: rgba(23,181,255,.45); }
.accent-purple { border-color: rgba(200,60,255,.45); }
.about-box { display: grid; grid-template-columns: .5fr 1fr; gap: 20px; padding: 24px; align-items: center; }
.footer { padding: 24px 0 38px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); gap: 16px; align-items: center; }
.footer-logo { width: 110px; }
.footer strong { display: block; margin-bottom: 6px; }
.footer p { margin: 0; color: var(--muted); }
.admin-body, .admin-panel-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-box { width: min(460px, 100%); padding: 28px; }
.login-box img { width: 120px; margin: 0 auto 10px; }
.login-box h1, .login-box p, .login-box small { text-align: center; }
.login-box p, .login-box small { color: var(--muted); }
.login-box form { display: grid; gap: 10px; }
.login-box input, #jsonEditor {
  width: 100%; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: #fff; padding: 12px 14px; font-size: 15px;
}
.alert { background: rgba(255,80,80,.14); color: #ffd2d2; padding: 12px; border: 1px solid rgba(255,80,80,.35); border-radius: 12px; margin-bottom: 14px; }
.admin-header { width: min(1180px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px auto; }
.editor-wrap { width: min(1180px, calc(100% - 32px)); padding: 22px; }
#jsonEditor { min-height: 70vh; font-family: monospace; resize: vertical; }
#saveStatus { align-self: center; color: var(--muted); }
#saveStatus.success { color: #96ff8b; }
#saveStatus.error { color: #ff8d8d; }
code { background: rgba(255,255,255,.06); padding: 4px 7px; border-radius: 8px; }
@media (max-width: 980px) {
  .hero-grid, .about-box, .footer-grid, .plans-grid { grid-template-columns: 1fr; }
  .featured { transform: none; }
  nav { justify-content: flex-end; }
}
@media (max-width: 640px) {
  .nav { flex-direction: column; align-items: flex-start; }
  nav { width: 100%; }
  nav a { font-size: 14px; }
  .hero { padding-top: 42px; }
  .price { font-size: 30px; }
}
