*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080810;
  --surface: #0e0e1c;
  --card: #12121f;
  --border: rgba(255,255,255,0.07);
  --primary: #6366f1;
  --primary-dim: rgba(99,102,241,0.15);
  --primary-glow: rgba(99,102,241,0.35);
  --elite: #f59e0b;
  --elite-dim: rgba(245,158,11,0.15);
  --elite-glow: rgba(245,158,11,0.35);
  --green: #22c55e;
  --cyan: #22d3ee;
  --red: #ef4444;
  --text: #f1f5f9;
  --muted: #64748b;
  --subtle: #1e1e30;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.in { opacity: 1 !important; transform: none !important; transition: none; } }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 68px;
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em;
}

.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex; align-items: center; gap: 12px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; white-space: nowrap;
}

.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 0 24px var(--primary-glow);
}
.btn-primary:hover {
  background: #818cf8;
  box-shadow: 0 0 32px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-elite {
  background: var(--elite); color: #000;
  box-shadow: 0 0 24px var(--elite-glow);
}
.btn-elite:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-dim);
}

.btn-ghost {
  background: transparent; color: var(--muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }

/* ── HERO ── */
.hero {
  padding: 160px 5vw 100px;
  text-align: center;
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: var(--primary-dim); border: 1px solid rgba(99,102,241,0.3);
  font-size: 0.8rem; font-weight: 600; color: #a5b4fc;
  margin-bottom: 28px; letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 .accent { color: var(--primary); }

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted); max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 64px;
}

/* ── STATS BAR ── */
.stats-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  max-width: 860px; margin: 0 auto;
  overflow: hidden;
}

.stat-item {
  flex: 1; min-width: 180px;
  padding: 24px 20px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: 2rem; font-weight: 800;
  color: var(--primary); letter-spacing: -0.02em;
  display: block;
}

.stat-label {
  font-size: 0.8rem; color: var(--muted);
  font-weight: 500; margin-top: 4px;
}

/* ── SECTIONS ── */
section { padding: 100px 5vw; }

.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted); font-size: 1.1rem;
  max-width: 560px;
}

.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.4rem;
}

.feature-card h3 {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted); font-size: 0.9rem; line-height: 1.7;
}

/* ── HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px; position: relative;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
}

.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff; font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px var(--primary-glow);
}

.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 0.9rem; }

/* ── PRICING ── */
.pricing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 48px;
}

.pricing-toggle button {
  padding: 8px 20px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border);
  background: transparent; color: var(--muted);
  transition: all 0.2s;
}
.pricing-toggle button.active {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
}

.save-badge {
  background: var(--green); color: #000;
  font-size: 0.7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px; max-width: 800px; margin: 0 auto;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px; position: relative;
  transition: transform 0.2s;
}
.pricing-card:hover { transform: translateY(-3px); }

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px var(--primary-dim);
}

.pricing-card.elite {
  border-color: var(--elite);
  box-shadow: 0 0 40px var(--elite-dim);
}

.plan-badge {
  display: inline-block;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 20px;
}
.plan-badge.pro { background: var(--primary-dim); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }
.plan-badge.elite { background: var(--elite-dim); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }

.pricing-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }

.price {
  display: flex; align-items: flex-end; gap: 6px;
  margin: 20px 0;
}
.price-amount {
  font-size: 3rem; font-weight: 900;
  letter-spacing: -0.03em; line-height: 1;
}
.price-period { color: var(--muted); font-size: 0.9rem; padding-bottom: 6px; }
.price-orig { color: var(--muted); text-decoration: line-through; font-size: 0.9rem; }

.pricing-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 24px 0;
}

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--muted);
}
.feature-list li .check { color: var(--green); font-size: 0.85rem; margin-top: 2px; }
.feature-list li strong { color: var(--text); }

/* ── TIER COMPARE ── */
.tier-compare {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; margin-top: 40px;
}

.tier-compare table { width: 100%; border-collapse: collapse; }
.tier-compare th, .tier-compare td {
  padding: 14px 24px; text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.tier-compare th { color: var(--muted); font-weight: 600; background: var(--surface); }
.tier-compare td:first-child { color: var(--text); }
.tier-compare td { color: var(--muted); }
.tier-compare tr:last-child td { border-bottom: none; }
.yes { color: var(--green) !important; font-weight: 600; }
.no { color: var(--muted) !important; }
.pro-col { color: #a5b4fc !important; font-weight: 600; }
.elite-col { color: #fcd34d !important; font-weight: 600; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%; background: none; border: none;
  padding: 20px 24px; text-align: left;
  color: var(--text); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-arrow { transition: transform 0.3s; font-size: 0.8rem; color: var(--muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  padding: 0 24px;
  color: var(--muted); font-size: 0.9rem; line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(245,158,11,0.08));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius);
  padding: 64px; text-align: center;
  max-width: 860px; margin: 0 auto;
}
.cta-banner h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta-banner p { color: var(--muted); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 5vw;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}

.footer-brand { max-width: 280px; }
.footer-brand .logo { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.footer-brand .logo span { color: var(--primary); }
.footer-brand p { color: var(--muted); font-size: 0.85rem; line-height: 1.7; }

.footer-links h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--muted); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 5vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--muted); font-size: 0.8rem; }
.footer-bottom a { color: var(--muted); font-size: 0.8rem; }
.footer-bottom a:hover { color: var(--text); }

/* ── ADMIN ── */
.admin-login {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
}

.admin-login-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 48px;
  width: 100%; max-width: 400px;
}
.admin-login-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.admin-login-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.9rem; outline: none; transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--primary); }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0; flex-shrink: 0;
}
.admin-sidebar .logo { padding: 0 20px 24px; font-size: 1rem; font-weight: 800; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.admin-sidebar .logo span { color: var(--primary); }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; font-size: 0.875rem; font-weight: 500;
  color: var(--muted); transition: all 0.2s;
}
.admin-nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.admin-nav a.active { color: var(--primary); background: var(--primary-dim); }

.admin-content { flex: 1; padding: 40px; overflow-y: auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.admin-header h1 { font-size: 1.5rem; font-weight: 800; }

.stats-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; }
.stat-card .value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.keys-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.keys-table th { background: var(--surface); padding: 12px 16px; text-align: left; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.keys-table td { padding: 14px 16px; font-size: 0.875rem; border-top: 1px solid var(--border); }
.keys-table tr:hover td { background: rgba(255,255,255,0.02); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge-active { background: rgba(34,197,94,0.15); color: var(--green); }
.badge-activated { background: var(--primary-dim); color: #a5b4fc; }
.badge-revoked { background: rgba(239,68,68,0.15); color: var(--red); }

.key-mono { font-family: 'Courier New', monospace; font-size: 0.82rem; letter-spacing: 0.04em; }

.copy-btn { background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 4px; transition: color 0.2s; }
.copy-btn:hover { color: var(--text); }

.notification {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 20px;
  font-size: 0.875rem; font-weight: 500;
  transform: translateY(80px); opacity: 0;
  transition: all 0.3s; z-index: 999;
  display: flex; align-items: center; gap: 10px;
}
.notification.show { transform: translateY(0); opacity: 1; }
.notification.success { border-color: var(--green); }
.notification.error { border-color: var(--red); }

/* ── SUPPORT PAGE ── */
.discord-card {
  background: linear-gradient(135deg, rgba(88,101,242,0.2), rgba(88,101,242,0.05));
  border: 1px solid rgba(88,101,242,0.4);
  border-radius: var(--radius); padding: 48px;
  text-align: center; max-width: 560px;
}
.discord-card .discord-icon { font-size: 3rem; margin-bottom: 20px; }
.discord-card h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.discord-card p { color: var(--muted); margin-bottom: 28px; }

.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.help-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 24px;
  cursor: pointer; transition: border-color 0.2s;
}
.help-card:hover { border-color: var(--primary); }
.help-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.help-card p { color: var(--muted); font-size: 0.85rem; }
.help-card .icon { font-size: 1.4rem; margin-bottom: 14px; }

/* ── TOS ── */
.tos-content { max-width: 760px; margin: 0 auto; }
.tos-content h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 12px; color: var(--text); }
.tos-content p { color: var(--muted); font-size: 0.92rem; line-height: 1.85; margin-bottom: 14px; }
.tos-content ul { color: var(--muted); font-size: 0.92rem; line-height: 1.85; padding-left: 20px; margin-bottom: 14px; }
.tos-content ul li { margin-bottom: 6px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 120px 5vw 80px; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  section { padding: 64px 5vw; }
  .cta-banner { padding: 40px 24px; }
  footer { flex-direction: column; }
  .admin-sidebar { display: none; }
  .admin-content { padding: 20px; }
}
