:root {
  --primary: #03ffca;
  --primary-light: #b8fff0;
  --primary-dark: #00d4a8;
  --white: #ffffff;
  --bg-light-1: #eaf1ff;
  --bg-light-2: #d3e5fe;
  --text-main: #011d37;
  --text-muted: #5c7a9f;
  --secondary: #011d37;
  --secondary-light: #022d56;
  --card-bg: rgba(255, 255, 255, 0.85);
  --radius-xl: 28px;
  --radius-lg: 16px;
  --shadow-premium: 0 20px 60px -15px rgba(1, 29, 55, 0.1), 0 8px 24px -8px rgba(1, 29, 55, 0.06);
  --shadow-hover: 0 30px 80px -20px rgba(1, 29, 55, 0.15), 0 12px 32px -8px rgba(1, 29, 55, 0.08);
  --font-family: 'Ubuntu', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-light-1);
  min-height: 100vh;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 40px;
  overflow-x: hidden;
}

.bg-mesh {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
  background-color: var(--bg-light-1);
  background-image:
    radial-gradient(at 0% 0%, var(--bg-light-2) 0, transparent 50%),
    radial-gradient(at 100% 0%, var(--primary-light) 0, transparent 50%),
    radial-gradient(at 100% 100%, var(--bg-light-2) 0, transparent 50%),
    radial-gradient(at 0% 100%, var(--primary-light) 0, transparent 50%);
  filter: blur(40px);
}

.particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; overflow: hidden;
}
.particles span {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); opacity: 0.2;
  animation: float-particle 15s infinite ease-in-out;
}
.particles span:nth-child(1) { top: 10%; left: 15%; animation-duration: 18s; }
.particles span:nth-child(2) { top: 30%; left: 75%; animation-delay: -3s; animation-duration: 22s; width: 8px; height: 8px; }
.particles span:nth-child(3) { top: 60%; left: 40%; animation-delay: -6s; animation-duration: 16s; }
.particles span:nth-child(4) { top: 80%; left: 85%; animation-delay: -9s; animation-duration: 20s; width: 4px; height: 4px; }
.particles span:nth-child(5) { top: 50%; left: 10%; animation-delay: -12s; animation-duration: 24s; width: 10px; height: 10px; opacity: 0.1; }

@keyframes float-particle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.2); }
  50% { transform: translate(-20px, 20px) scale(0.8); }
  75% { transform: translate(40px, 30px) scale(1.1); }
}

/* Header */
.header { text-align: center; margin-bottom: 56px; }

.presale-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--primary); padding: 10px 24px; border-radius: 30px;
  font-weight: 700; font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 24px;
  animation: badge-pulse 2.5s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(1, 29, 55, 0.25);
}
.badge-icon { width: 16px; height: 16px; }
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(1, 29, 55, 0.25); }
  50% { box-shadow: 0 4px 30px rgba(3, 255, 202, 0.3); }
}

.header h1 { font-size: 3.2rem; font-weight: 700; margin-bottom: 12px; line-height: 1.15; }
.header-sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; }

/* Toggle */
.toggle-container { display: flex; align-items: center; justify-content: center; gap: 16px; }
.toggle-label {
  font-weight: 600; font-size: 0.9rem; color: var(--text-muted);
  transition: color 0.3s, opacity 0.3s;
  display: flex; align-items: center; gap: 6px;
  cursor: default; user-select: none; opacity: 0.55;
}
.toggle-label.active { color: var(--secondary); opacity: 1; }
.toggle-icon { width: 15px; height: 15px; }

.toggle-switch {
  position: relative; width: 64px; height: 34px;
  background: var(--white); border: 1.5px solid #e2e8f0;
  border-radius: 20px; cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
  transition: border-color 0.3s;
}
.toggle-switch:hover { border-color: var(--primary-dark); }

.toggle-thumb {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(3, 255, 202, 0.35);
}
.toggle-switch.active .toggle-thumb { transform: translateX(30px); }

/* Pricing Grid */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 32px; width: 100%; max-width: 920px;
}

/* Cards */
.pricing-card {
  position: relative; background: var(--card-bg);
  backdrop-filter: blur(16px); border-radius: var(--radius-xl);
  padding: 48px 36px 40px; border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-premium);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.card-ribbon {
  position: absolute; top: -1px; right: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--secondary); padding: 8px 18px 10px;
  border-radius: 0 0 14px 14px; font-size: 0.72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 4px 12px rgba(3, 255, 202, 0.3);
}
.card-ribbon svg { width: 13px; height: 13px; }

.card-annual {
  border-color: rgba(3, 255, 202, 0.3);
  background: linear-gradient(180deg, rgba(3, 255, 202, 0.06) 0%, var(--card-bg) 40%);
}

.card-header { margin-bottom: 28px; }
.card-plan-name { display: block; font-size: 1.35rem; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.card-plan-tag { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; transition: opacity 0.3s; }

/* Price */
.card-price { margin-bottom: 32px; line-height: 1; }
.price-currency { font-size: 1.6rem; vertical-align: super; font-weight: 600; color: var(--secondary); }
.price-amount { font-size: 3.6rem; font-weight: 800; color: var(--secondary); letter-spacing: -0.02em; transition: opacity 0.25s ease-in-out; }
.price-amount sup { font-size: 1.5rem; font-weight: 700; vertical-align: super; }
.price-period { display: block; color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; font-weight: 500; }
.price-main-row { display: flex; align-items: baseline; }

.savings-callout {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(3, 255, 202, 0.12); color: #008f6e;
  padding: 5px 12px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 700; margin-top: 10px;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.35s, transform 0.35s;
}
.savings-callout.visible { opacity: 1; transform: translateY(0); }
.savings-callout svg { width: 13px; height: 13px; }

/* Features */
.feature-list { list-style: none; flex-grow: 1; margin-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; line-height: 1.5; }
.feature-list li em { color: var(--text-muted); font-style: normal; font-size: 0.84rem; }
.feature-icon { flex-shrink: 0; margin-top: 2px; }
.feature-icon.check { width: 18px; height: 18px; color: #00bf9a; }

/* Buttons */
.btn-select {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px 24px; border-radius: 14px; border: none;
  font-family: var(--font-family); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-arrow { width: 18px; height: 18px; transition: transform 0.3s; }
.btn-select:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--secondary); box-shadow: 0 4px 16px rgba(3, 255, 202, 0.3);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(3, 255, 202, 0.45); transform: translateY(-2px); }

.btn-secondary { background: var(--white); color: var(--secondary); border: 1.5px solid #e2e8f0; }
.btn-secondary:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(3, 255, 202, 0.15); transform: translateY(-2px); }

/* Footer */
.pricing-footer { margin-top: 48px; text-align: center; color: var(--text-muted); font-size: 0.92rem; }
.pricing-footer a { color: var(--secondary); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--primary); }
.pricing-footer a:hover { color: var(--primary-dark); }

/* ─── Checkout Page Styles ─── */
.checkout-body { padding: 40px 20px; max-width: 1200px; margin: 0 auto; width: 100%; }
.checkout-header { width: 100%; max-width: 1000px; margin: 0 auto 30px; display: flex; flex-direction: column; gap: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-weight: 600; text-decoration: none; font-size: 0.95rem; transition: color 0.2s; align-self: flex-start; }
.back-link:hover { color: var(--primary-dark); }
.back-link i { width: 18px; height: 18px; }
.checkout-title { font-size: 2.5rem; font-weight: 700; color: var(--text-main); }

.checkout-layout { display: grid; grid-template-columns: 380px 1fr; gap: 40px; width: 100%; max-width: 1000px; margin: 0 auto; align-items: start; }

/* Checkout Summary */
.checkout-summary { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 40px; }
.summary-title { font-size: 1.4rem; color: var(--secondary); font-weight: 700; }
.summary-card { background: var(--card-bg); backdrop-filter: blur(16px); border-radius: var(--radius-lg); padding: 32px 28px; border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: var(--shadow-premium); }

.summary-plan-header { margin-bottom: 16px; }
.plan-info { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.plan-name { font-size: 1.25rem; font-weight: 700; color: var(--secondary); }
.plan-tier { font-size: 0.8rem; font-weight: 600; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.05em; }

.plan-price-display { display: flex; align-items: baseline; gap: 2px; }
.plan-price-display .currency { font-size: 1.2rem; font-weight: 600; color: var(--secondary); position: relative; top: -10px; }
.plan-price-display .amount { font-size: 2.8rem; font-weight: 800; color: var(--secondary); letter-spacing: -0.02em; }
.plan-price-display .period { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); margin-left: 4px; }

.summary-divider { height: 1px; background: #e2e8f0; margin: 24px 0; border: none; }
.features-title { font-size: 0.95rem; color: var(--text-main); font-weight: 700; margin-bottom: 16px; }

.launch-notice { background: rgba(2, 45, 86, 0.04); border: 1px solid rgba(2, 45, 86, 0.08); border-radius: 12px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.notice-icon-wrapper { background: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); flex-shrink: 0; }
.notice-icon-wrapper i { color: var(--primary-dark); width: 20px; height: 20px; }
.notice-text { font-size: 0.9rem; color: var(--text-main); line-height: 1.5; }

/* Checkout Form */
.checkout-form-container { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-premium); border: 1px solid #e2e8f0; }
.checkout-form { display: flex; flex-direction: column; gap: 32px; }

.form-section { display: flex; flex-direction: column; gap: 16px; }
.form-section-title { font-size: 1.2rem; font-weight: 700; color: var(--secondary); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; border-bottom: 2px solid #f1f5f9; padding-bottom: 12px; }
.form-section-title i { width: 18px; height: 18px; color: var(--primary-dark); }

.form-row { display: flex; gap: 16px; width: 100%; }
.form-group { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

.form-group input { padding: 12px 16px; border-radius: 10px; border: 1.5px solid #e2e8f0; font-family: var(--font-family); font-size: 0.95rem; color: var(--text-main); transition: all 0.2s; outline: none; background: #f8fafc; }
.form-group input:focus { border-color: var(--primary-dark); background: var(--white); box-shadow: 0 0 0 3px rgba(3, 255, 202, 0.15); }
.form-group input::placeholder { color: #cbd5e1; }

.stripe-notice { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: #64748b; margin-bottom: -4px; }
.stripe-notice i { width: 14px; height: 14px; color: #6366f1; } /* Stripe purple-ish */

.card-element-container { border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 20px; background: #f8fafc; display: flex; flex-direction: column; gap: 16px; transition: border-color 0.2s; }
.card-element-container:focus-within { border-color: var(--primary-dark); background: var(--white); }
.card-element-container .form-group input { border: 1px solid #cbd5e1; background: white; }

.input-with-icon { position: relative; }
.input-with-icon input { width: 100%; padding-left: 44px; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; width: 18px; height: 18px; }

.authorization-note { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; font-style: italic; background: rgba(0,0,0,0.02); padding: 12px; border-radius: 8px; border-left: 3px solid var(--primary); }

.btn-submit { margin-top: 10px; padding: 18px 24px; font-size: 1.05rem; }
.btn-spinner { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
  body { padding: 40px 16px 32px; }
  .header h1 { font-size: 2.2rem; }
  .pricing-grid { grid-template-columns: 1fr; gap: 24px; max-width: 480px; }
  .pricing-card { padding: 40px 28px 36px; }
  .price-amount { font-size: 3rem; }
  .toggle-container { gap: 12px; }
  .toggle-label { font-size: 0.82rem; }

  .checkout-layout { grid-template-columns: 1fr; gap: 32px; }
  .checkout-summary { position: static; }
  .form-row { flex-direction: column; gap: 16px; }
  .checkout-form-container { padding: 24px; }
}
@media (max-width: 420px) {
  .header h1 { font-size: 1.8rem; }
  .presale-badge { font-size: 0.75rem; padding: 8px 18px; }
  .pricing-card { padding: 36px 22px 32px; }
}
