:root {
  --bg: #080810;
  --surface: #10101A;
  --card: #161622;
  --border: #252538;
  --accent: #7C6FFF;
  --razorpay: #2563EB;
  --success: #34D399;
  --text-primary: #F0F0F8;
  --text-secondary: #8888A8;
  --text-muted: #50506A;
  --pro-gradient: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --transition: 200ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Sora', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
}

.font-mono { font-family: 'JetBrains Mono', monospace; }
.hidden { display: none !important; }

.checkout-container, .success-container {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.logo-icon { width: 32px; height: 32px; color: var(--accent); }
.logo-text { font-size: 24px; font-weight: 700; display: flex; align-items: flex-start; gap: 6px; }
.logo-pro { font-size: 12px; background: var(--pro-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; padding-top: 4px; }

.tagline {
  text-align: center; color: var(--text-secondary); font-size: 14px; margin-bottom: 24px;
}

.email-input-wrapper {
  margin-bottom: 24px;
}
.email-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.email-input:focus {
  border-color: var(--accent);
}

.feature-list {
  background: var(--surface);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
  display: grid;
  gap: 12px;
}

.feature-item {
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-primary);
}
.feature-item svg { width: 16px; height: 16px; color: #FBBF24; flex-shrink: 0; }

.price-display {
  text-align: center; font-size: 40px; font-weight: 700; margin-bottom: 4px;
}
.price-subtext {
  text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 32px;
}

.payment-options {
  display: flex; gap: 16px; margin-bottom: 24px;
}

.payment-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  opacity: 0.7;
}

.payment-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  opacity: 1;
}

.card-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.card-subtitle { font-size: 11px; color: var(--text-secondary); margin-bottom: 16px; }

.btn {
  width: 100%; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; color: white; transition: var(--transition); font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.btn-razorpay { background: var(--razorpay); }
.btn-razorpay:hover { background: #3B82F6; }
.btn-lemonsqueezy { background: var(--accent); }
.btn-lemonsqueezy:hover { background: #8B7FFF; }
.btn.loading { opacity: 0.7; cursor: wait; }

.methods-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px;
}
.methods-row span {
  font-size: 10px; color: var(--text-muted); background: var(--card); padding: 2px 6px; border-radius: 4px;
}

.trust-line {
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; color: var(--text-muted); text-align: center;
}
.trust-line svg { width: 14px; height: 14px; }

/* Success View */
.success-container { text-align: center; }
.success-icon { width: 64px; height: 64px; color: var(--success); margin: 0 auto 20px; }
.check { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw 0.5s ease 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.success-title { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.success-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.5; }

.key-box-wrapper {
  display: flex; gap: 8px; margin-bottom: 32px;
}
.key-box {
  flex: 1; background: var(--surface); border: 1px dashed var(--success); padding: 16px; border-radius: 8px; font-size: 18px; color: var(--success); letter-spacing: 1px; user-select: all;
}
.btn-copy {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-primary); padding: 0 20px; border-radius: 8px; cursor: pointer; font-weight: 600; font-family: inherit; transition: var(--transition);
}
.btn-copy:hover { background: var(--border); }
.btn-copy.copied { background: var(--success); color: var(--bg); border-color: var(--success); }

.instructions {
  background: var(--surface); padding: 24px; border-radius: 8px; text-align: left;
}
.inst-title { font-weight: 600; margin-bottom: 12px; font-size: 14px; }
.instructions ol { margin-left: 20px; font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.instructions b { color: var(--text-primary); }

@media (max-width: 600px) {
  .payment-options { flex-direction: column; }
}
