:root {
  --bg: #0a0b0e;
  --bg-2: #0f1115;
  --surface: #111318;
  --surface-2: #181b22;
  --surface-3: #1f232c;
  --border: #252a33;
  --border-2: #323946;
  --text: #f5f7fa;
  --muted: #8a94a6;
  --green: #00d084;
  --blue: #00a8e8;
  --purple: #8b5cf6;
  --red: #ef4444;
  --yellow: #f59e0b;
  --gradient: linear-gradient(135deg, var(--green), var(--blue));
  --gradient-2: linear-gradient(135deg, var(--purple), var(--blue));
  --radius: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,11,14,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { font-size: 26px; font-weight: 900; letter-spacing: -1px; }
.logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 13px;
  background: var(--gradient); color: #000;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  font-weight: 700; font-size: 14px; transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--gradient); color: #000; box-shadow: 0 8px 24px rgba(0,208,132,0.25); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-danger { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

.hero {
  position: relative; padding: 160px 0 100px;
  background: radial-gradient(ellipse at 70% 20%, rgba(0,208,132,0.12), transparent 50%),
              radial-gradient(ellipse at 30% 80%, rgba(0,168,232,0.10), transparent 45%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .6;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.08; margin: 0 0 20px; max-width: 750px; }
.hero h1 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stat { text-align: center; }
.stat-value { font-size: 34px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 4px; }

.section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: 36px; margin: 0 0 10px; }
.section-head p { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 auto; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.card-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 18px; }
.card h3 { font-size: 20px; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.price { font-size: 28px; font-weight: 800; }
.price small { color: var(--muted); font-size: 14px; font-weight: 500; }
.features { list-style: none; padding: 0; margin: 0 0 20px; }
.features li { color: var(--muted); font-size: 13px; padding: 5px 0; padding-left: 22px; position: relative; }
.features li::before { content: ''; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.panel-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.panel-preview ul { list-style: none; padding: 0; }
.panel-preview li { padding: 10px 0; color: var(--muted); }
.panel-preview li strong { color: var(--text); }
.panel-img { background: var(--surface-2); border-radius: var(--radius-sm); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; color: var(--muted); border: 1px dashed var(--border-2); }

.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item h4 { margin: 0 0 8px; font-size: 16px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 14px; }

.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer p { color: var(--muted); font-size: 14px; }
.footer h4 { font-size: 14px; margin: 0 0 14px; }
.footer a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.footer a:hover { color: var(--text); }
.footer-bottom { text-align: center; color: var(--muted); font-size: 13px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); }

/* Auth pages */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 480px; }
.auth-left {
  background: var(--surface);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 50px; position: relative; overflow: hidden;
}
.auth-left::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(0,208,132,0.12), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(0,168,232,0.10), transparent 40%);
}
.auth-left > * { position: relative; z-index: 2; }
.auth-left h2 { font-size: 34px; margin: 30px 0 16px; max-width: 420px; }
.auth-left p { color: var(--muted); max-width: 420px; }
.auth-features { list-style: none !important; padding: 0; margin: 30px 0 0; }
.auth-features li { padding: 10px 0; color: var(--muted); list-style: none !important; }
.auth-features li::before { content: ''; color: var(--green); font-weight: 700; }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg); }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { font-size: 28px; margin: 0 0 8px; }
.auth-box .sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--green); }
.form-group input::placeholder { color: #5c6575; }
.form-options { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 20px; }
.form-options a { color: var(--green); }
.error { color: var(--red); font-size: 13px; margin-top: 6px; }
.success { color: var(--green); font-size: 13px; margin-top: 6px; }
.divider { text-align: center; color: var(--muted); font-size: 12px; margin: 24px 0; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.divider::before { left: 0; } .divider::after { right: 0; }

/* Dashboard */
.dashboard { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-top: 96px; min-height: 100vh; }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 24px; position: sticky; top: 72px; height: calc(100vh - 72px);
}
.sidebar .logo { margin-bottom: 30px; }
.sidebar a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.sidebar a:hover, .sidebar a.active { background: var(--surface-2); color: var(--text); }
.main { padding: 24px 24px 24px 0; }
.main h2 { font-size: 24px; margin: 0 0 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.badge-pending { background: rgba(245,158,11,0.12); color: var(--yellow); }
.badge-paid { background: rgba(0,168,232,0.12); color: var(--blue); }
.badge-active { background: rgba(0,208,132,0.12); color: var(--green); }
.badge-cancelled { background: rgba(239,68,68,0.12); color: var(--red); }
.badge-suspended { background: rgba(139,92,246,0.12); color: var(--purple); }
.hidden { display: none !important; }
#toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 14px 18px; border-radius: 10px; z-index: 2000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { padding: 32px 24px; display: block; }
  .auth-left h2 { font-size: 26px; }
  .auth-right { padding: 32px 24px; }
  .auth-box { max-width: 100%; }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 24px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 28px 0; }
  .stat-value { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panel-preview { grid-template-columns: 1fr; padding: 28px; }
  .hero { padding: 120px 0 70px; }
  .section { padding: 60px 0; }
}

.svg-icon{display:inline-block;width:1.2em;height:1.2em;vertical-align:middle;stroke:currentColor;flex-shrink:0;}
.svg-icon.sm{width:16px;height:16px;}
.features li::before{content:'';display:inline-block;width:16px;height:16px;margin-right:8px;background:#22c55e;clip-path:polygon(0 50%,35% 85%,100% 15%);}
.auth-features li::before{content:'';display:inline-block;width:16px;height:16px;margin-right:8px;background:#00d084;clip-path:polygon(0 50%,35% 85%,100% 15%);}
