:root {
  --purple: #6d28d9;
  --purple-dark: #4c1d95;
  --purple-light: #7c3aed;
  --bg-grad-top: #3b0a73;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(76, 29, 149, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-grad-top) 0%, #6f4bd0 22%, #c9b6ef 55%, #f3ede1 100%);
  background-attachment: fixed;
}

a { color: var(--purple); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 0 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: .3px;
}
.logo .mark {
  width: 30px; height: 30px;
  border: 2px solid #fff; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px;
}
.logo small { display: block; font-weight: 500; font-size: 11px; opacity: .85; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px 60px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 26px;
  align-items: start;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 30px;
}

h1 { font-size: 22px; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 22px; font-size: 14px; }

.section-label {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}
.hr { height: 1px; background: var(--line); margin: 24px 0; border: 0; }

/* segmented option buttons */
.options { display: flex; gap: 14px; flex-wrap: wrap; }
.opt {
  flex: 1 1 auto;
  min-width: 90px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: all .15s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.opt:hover { border-color: #c4b5fd; }
.opt.active { border-color: var(--purple-light); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.opt .badge {
  background: var(--purple-light);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
}
.sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

/* addons */
.addons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.addon {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all .15s ease;
}
.addon:hover { border-color: #c4b5fd; }
.addon.active { border-color: var(--purple-light); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.addon .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.addon .title { font-weight: 700; font-size: 14px; }
.addon .pct { color: var(--purple-light); font-weight: 700; font-size: 13px; }
.addon p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 8px 0 0; }
.addon .check {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line);
  display: grid; place-items: center; color: #fff; font-size: 12px; flex: none;
}
.addon.active .check { background: var(--purple-light); border-color: var(--purple-light); }

.notice {
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857;
  border-radius: 10px; padding: 14px 16px; font-size: 13px; margin-top: 22px;
}

/* ---- right summary ---- */
.summary { position: sticky; top: 18px; }
.geo {
  background: #efe9fb; border-radius: 12px; padding: 10px 14px;
  font-size: 12px; color: #4c1d95; margin-bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.geo .ip { opacity: .7; }

h2 { font-size: 18px; margin: 0 0 18px; }

label.fld { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
label.fld .req { color: #dc2626; }

.input {
  width: 100%; padding: 11px 12px; font-size: 14px;
  border: 1.5px solid var(--line); border-radius: 10px; outline: none;
  font-family: inherit; color: var(--ink); background: #fff;
}
.input:focus { border-color: var(--purple-light); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.email-row { display: flex; gap: 10px; }
.email-row .input { flex: 1; }
.email-ok { border-color: #34d399 !important; }
.email-verified { position: relative; }
.email-verified .tick {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: #10b981; color: #fff;
  display: grid; place-items: center; font-size: 12px;
}

.btn {
  border: 0; border-radius: 10px; cursor: pointer;
  font-weight: 700; font-size: 14px; font-family: inherit;
  padding: 11px 18px; transition: filter .15s ease;
}
.btn-purple { background: var(--purple-light); color: #fff; }
.btn-purple:hover { filter: brightness(1.06); }
.btn-ghost { background: #f3f4f6; color: var(--ink); }
.btn-block { width: 100%; padding: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.collapse-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700; margin: 18px 0 12px; cursor: pointer;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 14px; }

.promo-row { display: flex; gap: 8px; margin-top: 6px; }
.promo-row .input { flex: 1; }

.line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: 8px 0; }
.line .lbl b { color: var(--ink); font-weight: 700; }
.line .lbl span { font-weight: 400; }
.total-row { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; }
.total-row .t { font-size: 16px; font-weight: 800; }
.total-row .v { font-size: 22px; font-weight: 800; }
.discount { color: #059669; }

.pay {
  border: 1.5px solid var(--purple-light); background: #f5f1fe;
  border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  margin: 8px 0 18px;
}
.pay .radio { width: 18px; height: 18px; border-radius: 50%; border: 5px solid var(--purple-light); }
.pay .name { font-weight: 700; flex: 1; }
.pay .ico { width: 26px; height: 26px; border-radius: 50%; background: #f59e0b; display: grid; place-items: center; color: #fff; font-size: 13px; }

.consent { display: flex; gap: 9px; font-size: 12px; color: var(--muted); margin: 12px 0; align-items: flex-start; }
.consent input { margin-top: 2px; }

.secure { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }

.hidden { display: none !important; }
.err { color: #dc2626; font-size: 12px; margin-top: 6px; }

/* success */
.success {
  text-align: center; padding: 10px 0;
}
.success .big { width: 64px; height: 64px; border-radius: 50%; background: #10b981; color: #fff; display: grid; place-items: center; font-size: 30px; margin: 0 auto 14px; }
.success h2 { margin-bottom: 6px; }
.pay-box { background: #f9fafb; border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: left; margin-top: 16px; font-size: 13px; }
.pay-box .addr { font-family: monospace; word-break: break-all; background: #fff; border: 1px dashed var(--line); padding: 10px; border-radius: 8px; margin-top: 6px; }
.paid-msg { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 12px; padding: 16px 18px; margin-top: 16px; font-size: 14px; line-height: 1.55; }
.paid-msg .paid-ico { width: 26px; height: 26px; border-radius: 50%; background: #10b981; color: #fff; display: grid; place-items: center; font-size: 14px; flex: none; }

@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; }
  .summary { position: static; }
  .sizes { grid-template-columns: repeat(3, 1fr); }
  .addons { grid-template-columns: 1fr; }
}
