:root {
  --bg: #080a0f;
  --surface: #0f1117;
  --surface2: #141824;
  --border: rgba(255, 255, 255, 0.08);
  --gold: #c9a96e;
  --gold-dim: rgba(201, 169, 110, 0.15);
  --gold-glow: rgba(201, 169, 110, 0.25);
  --text: #f0f0f0;
  --sub: rgba(255, 255, 255, 0.5);
  --muted: rgba(255, 255, 255, 0.25);
  --green: #5aad7e;
  --red: #d95a5a;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--gold);
  top: -200px;
  right: -100px;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: #4a6fa5;
  bottom: -100px;
  left: -100px;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
.nav-logo span {
  color: var(--gold);
}
.nav-back {
  color: var(--sub);
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}
.nav-back:hover {
  color: var(--text);
}
main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}
.container {
  width: 100%;
  max-width: 900px;
}
.page-header {
  text-align: center;
  margin-bottom: 48px;
}
.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-dim);
  border: 1px solid rgba(201, 169, 110, 0.3);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.page-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 48px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.1;
}
.page-title span {
  color: var(--gold);
}
.page-sub {
  color: var(--sub);
  font-size: 16px;
}
.plans {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}
.plan-card {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.plan-card:hover {
  border-color: rgba(201, 169, 110, 0.3);
  transform: translateY(-4px);
}
.plan-card.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.08), rgba(201, 169, 110, 0.02));
  box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.3), 0 12px 40px rgba(201, 169, 110, 0.1);
}
.plan-card.selected::before {
  content: "✓";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 16px;
}
.plan-badge.monthly { background: rgba(90, 173, 126, 0.15); color: var(--green); }
.plan-badge.yearly { background: var(--gold-dim); color: var(--gold); }
.plan-badge.popular::after { content: " — Hemat 36%"; }
.plan-price { font-size: 42px; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 4px; }
.plan-price span { font-size: 16px; font-weight: 400; color: var(--sub); }
.plan-total { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.plan-total.highlight { color: var(--gold); }
.plan-features { display: flex; flex-direction: column; gap: 10px; }
.plan-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.plan-feature .check { color: var(--green); font-size: 12px; font-weight: 700; }
.payment-section { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px; }
.section-title { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.qris-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; padding: 32px; margin-bottom: 28px; }
.qris-img { width: 220px; height: 220px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 8px; }
.qris-img img { width: 100%; height: 100%; object-fit: contain; }
.qris-amount { font-family: "Cormorant Garamond", serif; font-size: 32px; font-weight: 600; color: var(--gold); }
.qris-note { font-size: 13px; color: var(--sub); text-align: center; max-width: 320px; line-height: 1.6; }
.qris-steps { display: flex; gap: 12px; width: 100%; max-width: 480px; }
.qris-step { flex: 1; background: rgba(201, 169, 110, 0.06); border: 1px solid rgba(201, 169, 110, 0.12); border-radius: 10px; padding: 12px; text-align: center; }
.qris-step .num { font-size: 20px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.qris-step .label { font-size: 11px; color: var(--sub); line-height: 1.4; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 500; color: var(--sub); }
input, select, textarea { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--text); font-family: "Outfit", sans-serif; font-size: 14px; outline: none; transition: 0.2s; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: rgba(201, 169, 110, 0.5); box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.08); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important; -webkit-text-fill-color: var(--text) !important; transition: background-color 9999s ease-in-out 0s; }
textarea { resize: none; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: 13px; display: none; margin-bottom: 16px; }
.alert.warning { background: rgba(201, 169, 110, 0.1); border: 1px solid rgba(201, 169, 110, 0.2); color: var(--gold); }
.alert.info { background: rgba(90, 173, 126, 0.1); border: 1px solid rgba(90, 173, 126, 0.2); color: var(--green); }
.btn-submit { width: 100%; padding: 16px; background: linear-gradient(135deg, #c9a96e, #b39151); color: #000; font-family: "Outfit", sans-serif; font-size: 16px; font-weight: 700; border: none; border-radius: 30px; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 6px 20px rgba(201, 169, 110, 0.3); }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201, 169, 110, 0.4); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }
.summary-box { background: var(--gold-dim); border: 1px solid rgba(201, 169, 110, 0.2); border-radius: 14px; padding: 20px; margin-bottom: 28px; display: flex; justify-content: space-between; align-items: center; }
.summary-left { font-size: 14px; color: var(--sub); }
.summary-left strong { display: block; color: #fff; font-size: 16px; margin-top: 2px; }
.summary-right { text-align: right; }
.summary-price { font-size: 28px; font-weight: 700; color: var(--gold); }
.summary-period { font-size: 12px; color: var(--muted); }
#success-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(12px); align-items: center; justify-content: center; }
#success-overlay.open { display: flex; }
.success-box { background: linear-gradient(135deg, #0f1117, #141824); border: 1px solid rgba(201, 169, 110, 0.3); border-radius: 28px; max-width: 480px; width: 90%; padding: 48px 36px; text-align: center; animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes scaleIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-icon { font-size: 56px; margin-bottom: 20px; }
.success-title { font-family: "Cormorant Garamond", serif; font-size: 32px; font-weight: 400; color: #fff; margin-bottom: 12px; }
.success-sub { font-size: 15px; color: var(--sub); line-height: 1.7; margin-bottom: 28px; }
.btn-ok { display: inline-block; padding: 14px 40px; background: linear-gradient(135deg, #c9a96e, #b39151); color: #000; font-weight: 700; border-radius: 30px; text-decoration: none; font-size: 15px; cursor: pointer; border: none; font-family: "Outfit", sans-serif; transition: 0.3s; }
.btn-ok:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201, 169, 110, 0.4); }
@media (max-width: 700px) {
  nav { padding: 16px 20px; }
  main { padding: 40px 16px; }
  .page-title { font-size: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .qris-steps { flex-direction: column; }
  .summary-box { flex-direction: column; align-items: flex-start; gap: 12px; }
  .summary-right { text-align: left; }
  .payment-section { padding: 24px; }
  .qris-wrap { padding: 24px; }
  .qris-img { width: 180px; height: 180px; }
  .qris-amount { font-size: 28px; }
}
@media (max-width: 480px) {
  nav { padding: 12px 16px; }
  main { padding: 30px 12px; }
  .page-title { font-size: 26px; }
  .page-sub { font-size: 14px; }
  .plan-card { padding: 20px; }
  .plan-price { font-size: 36px; }
  .plan-price span { font-size: 14px; }
  .plan-feature { font-size: 13px; }
  .qris-img { width: 160px; height: 160px; }
  .qris-amount { font-size: 24px; }
  .qris-note { font-size: 12px; }
  .qris-step { padding: 10px; }
  .qris-step .num { font-size: 18px; }
  .qris-step .label { font-size: 10px; }
  .btn-submit { font-size: 14px; padding: 14px; }
  .success-box { padding: 32px 24px; }
  .success-title { font-size: 26px; }
  .success-sub { font-size: 14px; }
}
