:root {
  --purple-primary: #16a34a;
  --purple-bright: #22c55e;
  --purple-glow: #4ade80;
  --purple-dim: #14532d;
  --bg: #050a05;
  --bg-card: #0a0f0a;
  --bg-card2: #0a0f0a;
  --border: rgba(255,255,255,0.08);
  --border-purple: rgba(34,197,94,0.3);
  --text: #ffffff;
  --text-secondary: rgba(255,255,255,0.55);
  --text-muted: rgba(255,255,255,0.35);
  --green: #22c55e;
  --red: #ef4444;
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

html { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== AMBIENT BG ===== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}
.orb-1 { width:600px; height:600px; background:#16a34a; top:-200px; left:-100px; }
.orb-2 { width:400px; height:400px; background:#22c55e; bottom:0; right:-100px; }
.orb-3 { width:300px; height:300px; background:#14532d; top:50%; left:50%; transform:translate(-50%,-50%); }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.8);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}
.logo-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--purple-dim);
  display: flex; align-items: center; justify-content: center;
}
.logo-img { width: 100%; height: 100%; object-fit: cover; }
.logo-text {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.logo-text span { color: var(--purple-glow); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-bright));
  color: #fff;
  box-shadow: 0 4px 20px rgba(22,163,74,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(22,163,74,0.45); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ===== MOBILE MENU ===== */
.mobile-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; }
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,15,0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: #fff; text-decoration: none; font-size: 20px; font-weight: 600; }
.mobile-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #fff; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 160px 24px 60px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,0.12);
  border: 1px solid var(--border-purple);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--purple-glow);
  font-weight: 500;
  margin-bottom: 28px;
}
.dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.5} }

h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.gradient { background: linear-gradient(135deg, var(--purple-glow), #86efac); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { color: var(--text-secondary); font-size: 17px; line-height: 1.6; margin-bottom: 32px; }
.hero-price { margin-bottom: 32px; }
.hero-price .amount { font-size: 36px; font-weight: 800; color: #fff; }
.hero-price .period { color: var(--text-muted); font-size: 15px; margin-left: 8px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== PHONE ===== */
.phone-section { position: relative; z-index: 1; display: flex; justify-content: center; padding: 40px 24px; }
.phone-mockup { width: 280px; filter: drop-shadow(0 40px 80px rgba(22,163,74,0.4)); }
.phone-mockup img { width: 100%; border-radius: 40px; }

/* ===== SECTIONS ===== */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-glow);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 48px;
}

/* ===== FEATURES ===== */
.features { position:relative; z-index:1; padding: 80px 24px; max-width: 1100px; margin: 0 auto; text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; text-align: left; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--border-purple); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px;
  background: rgba(34,197,94,0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-glow);
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== HOW IT WORKS ===== */
.how-it-works { position:relative; z-index:1; padding: 80px 24px; max-width: 700px; margin: 0 auto; text-align: center; }
.steps { display: flex; flex-direction: column; gap: 24px; text-align: left; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-bright));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.step-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== PRICING ===== */
.pricing { position:relative; z-index:1; padding: 80px 24px; max-width: 1100px; margin: 0 auto; text-align: center; }
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: border-color .2s, transform .2s;
}
.pricing-card:hover { border-color: var(--border-purple); transform: translateY(-2px); }
.tag {
  display: inline-block;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.price { font-size: 48px; font-weight: 800; letter-spacing: -2px; }
.price-sub { color: var(--text-muted); font-size: 14px; }
.pricing-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.pricing-features li svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--purple-glow); }

/* ===== DISCLAIMER ===== */
.disclaimer { position:relative; z-index:1; padding: 0 24px 60px; max-width: 700px; margin: 0 auto; }
.disclaimer-box {
  background: rgba(255,200,50,0.05);
  border: 1px solid rgba(255,200,50,0.15);
  border-radius: 14px;
  padding: 20px 24px;
}
.disclaimer-box p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== FOOTER ===== */
footer { position:relative; z-index:1; border-top: 1px solid var(--border); padding: 32px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: #fff; }
.footer-links svg { width: 16px; height: 16px; }

/* ===== LOGIN PAGE ===== */
.login-page { position:relative; z-index:1; display:flex; align-items:center; justify-content:center; min-height:100vh; padding:24px; }
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.login-card .logo { margin-bottom: 16px; }
.login-card h2 { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.login-card .subtitle { color: var(--text-secondary); font-size: 14px; text-align: center; margin-bottom: 16px; line-height: 1.5; }
.form-group { width: 100%; margin-bottom: 8px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.form-group input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1em;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus { border-color: var(--purple-bright); }
.form-group input::placeholder { color: rgba(255,255,255,0.2); letter-spacing: 0.05em; }
.login-card .btn { width: 100%; justify-content: center; padding: 14px; font-size: 15px; margin-top: 4px; }
.login-error { color: var(--red); font-size: 13px; text-align: center; display: none; }
.login-error.show { display: block; }
.login-success { color: var(--green); font-size: 13px; text-align: center; display: none; }
.login-success.show { display: block; }
.login-back { font-size: 13px; color: var(--text-muted); text-decoration: none; margin-top: 8px; }
.login-back:hover { color: #fff; }

/* ===== BUY PAGE ===== */
.buy-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 40px; }
.buy-card { cursor: pointer; transition: all .2s; position: relative; }
.buy-card.selected { border-color: var(--purple-bright) !important; box-shadow: 0 0 30px rgba(34,197,94,0.25); }
.buy-card.selected::after {
  content: '✓';
  position: absolute;
  top: 16px; right: 16px;
  width: 24px; height: 24px;
  background: var(--purple-bright);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

.chain-select { margin-bottom: 32px; }
.chain-select h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; color: var(--text-secondary); }
.chain-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chain-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.chain-pill:hover { border-color: var(--border-purple); color: #fff; }
.chain-pill.selected { border-color: var(--purple-bright); color: #fff; background: rgba(34,197,94,0.12); }

.buy-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: 14px;
}
.buy-summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.buy-summary-row:last-child { margin-bottom: 0; font-weight: 700; font-size: 16px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.buy-summary-row span:last-child { color: var(--purple-glow); }

.discount-section { margin-bottom: 24px; }
.discount-row { display: flex; gap: 10px; }
.discount-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  text-transform: uppercase;
}
.discount-input:focus { border-color: var(--purple-bright); }
.discount-apply {
  padding: 12px 20px;
  background: rgba(34,197,94,0.15);
  border: 1px solid var(--border-purple);
  border-radius: 12px;
  color: var(--purple-glow);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.discount-apply:hover { background: rgba(34,197,94,0.25); }
.discount-msg { font-size: 13px; margin-top: 8px; }
.discount-msg.ok { color: var(--green); }
.discount-msg.err { color: var(--red); }

/* ===== CHECKOUT PAGE ===== */
.checkout-wrap { position:relative; z-index:1; display:flex; align-items:center; justify-content:center; min-height:100vh; padding:40px 24px; }
.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%; max-width: 460px;
  overflow: hidden;
}
.co-header { padding: 28px 28px 20px; border-bottom: 1px solid var(--border); }
.co-order-id { font-size: 11px; color: var(--text-muted); font-family: monospace; margin-bottom: 12px; }
.co-pkg-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.co-pkg-name { font-size: 18px; font-weight: 700; }
.co-pkg-price { font-size: 22px; font-weight: 800; color: var(--purple-glow); }
.co-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.co-status.pending { color: #f59e0b; }
.co-status.paid { color: var(--green); }
.co-status .dot { animation: pulse 1.5s infinite; }

.co-body { padding: 28px; }
.co-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.co-amount {
  font-size: 28px; font-weight: 800; font-family: monospace;
  color: #fff; cursor: pointer; margin-bottom: 6px;
  transition: color .2s;
}
.co-amount:hover { color: var(--purple-glow); }
.co-chain { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

.co-qr {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  width: fit-content;
  cursor: pointer;
  transition: transform .2s;
}
.co-qr:hover { transform: scale(1.02); }
.co-qr canvas, .co-qr img { display: block !important; border-radius: 4px; }
.co-qr-hint { text-align: center; font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }

.co-addr {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 8px;
  text-align: center;
}
.co-addr:hover { border-color: var(--purple-bright); background: rgba(34,197,94,0.08); }

.co-toast {
  text-align: center;
  font-size: 12px;
  color: var(--green);
  height: 16px;
  margin-bottom: 16px;
  transition: opacity .3s;
  opacity: 0;
}
.co-toast.show { opacity: 1; }

.co-timer {
  text-align: center;
  font-size: 13px;
  color: #f59e0b;
  font-weight: 600;
  margin-bottom: 8px;
}

.co-key-box {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin-top: 16px;
}
.co-key-box .co-key-label { font-size: 12px; color: var(--green); font-weight: 600; margin-bottom: 10px; letter-spacing: 0.05em; text-transform: uppercase; }
.co-key-value {
  font-family: monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
  cursor: pointer;
}
.co-key-value:hover { color: var(--purple-glow); }
.co-key-hint { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

.co-footer { padding: 16px 28px; border-top: 1px solid var(--border); text-align: center; }
.co-footer a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.co-footer a:hover { color: var(--purple-glow); }

/* ===== PAGE SYSTEM ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero { padding: 120px 20px 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .buy-packages { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
