/* pricing.css — Subscription / pricing page */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg:          #040e1f;
  --surface:     #071628;
  --surface2:    #0d2040;
  --border:      rgba(255,255,255,.07);
  --border2:     rgba(255,255,255,.13);
  --text:        #e6edf3;
  --muted:       #768390;
  --secondary:   #adbac7;
  --accent:      #58a6ff;
  --accent-dark: #1f6feb;
  --success:     #3fb950;
  --danger:      #f85149;
  --warning:     #d29922;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --radius:      8px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── Nav ──────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(4,14,31,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-icon {
  width: 30px; height: 30px;
  background: var(--accent-dark);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.nav-logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  border: none;
}

.btn-ghost {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { background: var(--surface2); color: var(--text); }

.btn-primary {
  background: var(--accent-dark);
  color: #fff;
}
.btn-primary:hover { background: #388bfd; }

/* ── Page header ──────────────────────────────────────────────── */
.page-header {
  text-align: center;
  padding: 64px 2rem 48px;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f0f6ff;
  margin-bottom: 14px;
}

.page-header h1 em {
  font-style: normal;
  color: var(--accent);
}

.page-header p {
  font-size: 16px;
  color: var(--secondary);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

/* ── Billing toggle ───────────────────────────────────────────── */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 6px 16px;
}

.billing-label {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s;
  user-select: none;
}

.billing-label.active { color: var(--text); }
.billing-label.inactive { color: var(--muted); }

/* Custom toggle switch */
.switch-wrap {
  position: relative;
  width: 44px; height: 24px;
}

.switch-wrap input {
  opacity: 0; width: 0; height: 0; position: absolute;
}

.switch-track {
  position: absolute;
  inset: 0;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.switch-wrap input:checked + .switch-track {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.switch-track::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform .2s;
}

.switch-wrap input:checked + .switch-track::after {
  transform: translateX(20px);
}

.save-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(63,185,80,.15);
  color: var(--success);
  border: 1px solid rgba(63,185,80,.3);
  border-radius: 100px;
}

/* ── Plans grid ───────────────────────────────────────────────── */
.plans-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem 80px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: stretch;
}

/* ── Plan card ────────────────────────────────────────────────── */
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: border-color .2s, transform .2s;
}

.plan-card:hover { border-color: rgba(88,166,255,.35); }

.plan-card.featured {
  border-color: var(--accent-dark);
  border-width: 2px;
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(31,111,235,.18);
}

.plan-card.featured:hover { border-color: var(--accent); }

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  background: var(--accent-dark);
  color: #fff;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.plan-price {
  margin-bottom: 8px;
}

.plan-price-main {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.plan-price-amount {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.plan-price-period {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.plan-price-yearly {
  display: none;
}

.billing-annual .plan-price-monthly { display: none; }
.billing-annual .plan-price-yearly  { display: block; }

.plan-price-sub {
  font-size: 11px;
  color: var(--success);
  margin-top: 3px;
  min-height: 16px;
}

.plan-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
  min-height: 36px;
}

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

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  margin-bottom: 20px;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.45;
}

.plan-feature.no {
  color: var(--muted);
  opacity: .65;
}

.plan-feature-check { font-size: 11px; flex-shrink: 0; margin-top: 1px; }

/* ── CTA buttons ──────────────────────────────────────────────── */
.plan-cta {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .01em;
}

.plan-cta-ghost {
  background: var(--surface2);
  color: var(--secondary);
  border: 1px solid var(--border2);
}
.plan-cta-ghost:hover { background: var(--surface); color: var(--text); }

.plan-cta-accent {
  background: var(--accent-dark);
  color: #fff;
}
.plan-cta-accent:hover { background: #388bfd; }

.plan-cta-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1108;
}
.plan-cta-gold:hover { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

/* ── Login CTA below grid ─────────────────────────────────────── */
.plans-footer {
  text-align: center;
  padding: 0 2rem 32px;
  font-size: 13px;
  color: var(--muted);
}

.plans-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ── FAQ / guarantee section ──────────────────────────────────── */
.guarantee {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem 64px;
  text-align: center;
}

.guarantee h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.guarantee p {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.65;
}

/* ── Confirmation modal ───────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 32px 64px rgba(0,0,0,.5);
  text-align: center;
}

.modal-icon { font-size: 36px; margin-bottom: 14px; }
.modal h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.modal p { font-size: 14px; color: var(--secondary); line-height: 1.6; margin-bottom: 24px; }

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all .15s;
}

.modal-btn-cancel {
  background: var(--surface2);
  color: var(--secondary);
  border: 1px solid var(--border2);
}
.modal-btn-cancel:hover { color: var(--text); }

.modal-btn-confirm {
  background: var(--accent-dark);
  color: #fff;
}
.modal-btn-confirm:hover { background: #388bfd; }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 20px 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

footer a { color: var(--accent); text-decoration: none; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-card.featured { transform: none; }
}

@media (max-width: 600px) {
  .plans-grid { grid-template-columns: 1fr; }
}

/* ── Payment badges ──────────────────────────────────────────── */
.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  overflow: hidden;
  opacity: .85;
  transition: opacity .15s;
}
.pay-badge:hover { opacity: 1; }
