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

:root {
  --bg: #0f1117;
  --bg-surface: #181b23;
  --bg-card: #1e2130;
  --bg-card-hover: #252840;
  --border: rgba(255,255,255,.07);
  --border-focus: rgba(200,165,80,.45);
  --text: #e8e6e1;
  --text-muted: #8b8a87;
  --primary: #c8a550;
  --primary-soft: rgba(200,165,80,.12);
  --primary-glow: rgba(200,165,80,.25);
  --success: #4caf82;
  --danger: #e05858;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(.25,.8,.25,1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  padding: 16px 40px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(15,17,23,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--primary); color: #0f1117;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.brand-title { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-label { font-size: .85rem; color: var(--text-muted); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px; font-size: .9rem;
  font-weight: 600; cursor: pointer; text-decoration: none;
  border: none; transition: all var(--transition);
}
.btn-primary { background: var(--primary); color: #0f1117; }
.btn-primary:hover { background: #dbb960; transform: translateY(-1px); box-shadow: 0 4px 16px var(--primary-glow); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 32px; font-size: 1rem; width: 100%; border-radius: 10px; }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; font-size: .85rem; font-family: inherit; text-decoration: underline; }

/* ── MAIN LAYOUT ── */
.main-wrapper {
  max-width: 1100px; margin: 0 auto;
  padding: 100px 24px 60px;
}

/* ── STEPS ── */
.step { display: none; }
.step.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.step-header { text-align: center; margin-bottom: 48px; }
.step-badge {
  display: inline-block; margin-bottom: 12px;
  padding: 4px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.step-header h1 { font-size: 2.2rem; margin-bottom: 12px; }
.step-header h1 span { background: linear-gradient(135deg, var(--primary), #fff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.step-header p { color: var(--text-muted); font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* ── PLANS GRID ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.plan-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  display: flex; flex-direction: column;
}
.plan-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(200,165,80,.15); }
.plan-card.selected { border-color: var(--primary); background: var(--bg-card-hover); box-shadow: 0 0 0 3px var(--primary-soft); }
.plan-card.popular { border-color: var(--primary); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #0f1117;
  padding: 3px 14px; border-radius: 999px; font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.plan-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.plan-price span { font-size: .85rem; font-weight: 400; color: var(--text-muted); }
.plan-desc { font-size: .78rem; color: var(--text-muted); margin: 10px 0 16px; flex: 1; }
.plan-limits { margin-bottom: 16px; }
.plan-limit-item { font-size: .75rem; color: var(--text-muted); padding: 2px 0; }
.plan-limit-item strong { color: var(--text); }
.plan-features-list { list-style: none; margin-bottom: 20px; flex: 1; }
.plan-features-list li { font-size: .78rem; color: var(--text-muted); padding: 3px 0; display: flex; gap: 6px; align-items: flex-start; }
.plan-features-list li.on { color: var(--text); }
.plan-features-list li .icon { color: var(--primary); flex-shrink: 0; }
.plan-features-list li.off .icon { color: var(--text-muted); opacity: .4; }
.plan-select-btn {
  width: 100%; padding: 10px; border-radius: 8px;
  font-weight: 600; font-size: .88rem; cursor: pointer;
  transition: all var(--transition); border: none; font-family: inherit;
  background: var(--primary-soft); color: var(--primary);
}
.plan-card.selected .plan-select-btn,
.plan-card:hover .plan-select-btn {
  background: var(--primary); color: #0f1117;
}
.plan-card.custom .plan-select-btn { background: var(--bg-card-hover); color: var(--text); border: 1px solid var(--border); }
.plans-footer { text-align: center; font-size: .85rem; color: var(--text-muted); }
.plans-footer a { color: var(--primary); }

/* ── INTERVAL SELECTOR ── */
.interval-selector {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 28px; flex-wrap: wrap;
}
.interval-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 20px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); background: var(--bg-card);
  color: var(--text); cursor: pointer; transition: var(--transition);
  font-family: inherit; min-width: 100px;
}
.interval-btn:hover { border-color: var(--primary); }
.interval-btn.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.interval-label { font-size: .9rem; font-weight: 600; }
.interval-badge { font-size: .7rem; font-weight: 700; color: var(--success); margin-top: 2px; }
.interval-btn.active .interval-badge { color: var(--primary); }
.plan-monthly-eq { font-size: .72rem; color: var(--text-muted); margin: 4px 0 0; }

/* ── SELECTED PLAN BAR ── */
.selected-plan-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--primary-soft); border: 1px solid var(--border-focus);
  border-radius: 10px; padding: 14px 20px; margin-bottom: 28px;
}
.selected-plan-name { font-weight: 700; color: var(--primary); }
.selected-plan-price { font-size: .88rem; color: var(--text-muted); margin-left: 10px; }

/* ── REGISTER FORM ── */
.register-form { max-width: 660px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field {
  display: flex; flex-direction: column; gap: 6px;
  font-size: .78rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.form-field.full-width { grid-column: 1 / -1; }
.form-field input,
.form-field select {
  padding: 11px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text); font-size: .95rem; font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}
.form-field input:focus,
.form-field select:focus { border-color: var(--primary); }
.form-field input::placeholder { color: var(--text-muted); opacity: .6; }
.form-field select option { background: var(--bg-card); }
.password-wrap { position: relative; }
.password-wrap input { width: 100%; padding-right: 44px; }
.pwd-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem; padding: 0;
  color: var(--text-muted);
}
.checkbox-field {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .85rem; color: var(--text-muted); margin: 16px 0;
}
.checkbox-field input { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
.checkbox-field a { color: var(--primary); }
.form-error {
  background: rgba(224,88,88,.1); border: 1px solid var(--danger);
  color: var(--danger); padding: 12px 16px; border-radius: 8px;
  font-size: .88rem; margin-bottom: 16px;
}
.form-error.hidden { display: none; }
.secure-badge {
  text-align: center; font-size: .78rem; color: var(--text-muted);
  margin-top: 14px;
}
.secure-badge strong { color: var(--text); }

/* ── SPINNER ── */
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.2);
  border-top-color: #0f1117; border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block;
}
.spinner.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SUCCESS ── */
.success-card {
  text-align: center; max-width: 480px; margin: 60px auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 48px 32px;
}
.success-icon { font-size: 4rem; margin-bottom: 20px; }
.success-card h2 { font-size: 1.6rem; margin-bottom: 12px; }
.success-card p { color: var(--text-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .navbar { padding: 14px 20px; }
  .step-header h1 { font-size: 1.6rem; }
  .form-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .main-wrapper { padding: 80px 16px 40px; }
}
@media (max-width: 480px) {
  .plans-grid { grid-template-columns: 1fr; }
}
