/* =========================
   PRO FIX (NO DESIGN CHANGE)
   - Stable scrollbar space to prevent horizontal jump
   - Stable shell centered; only inner view swaps
   - Modal scroll-lock without layout shift
========================= */
html{ scrollbar-gutter: stable; }
body{ overflow-y: scroll; overflow-x:hidden; }

/* ===== Original Design (kept) ===== */
:root{
  --bg1:#0a2444;
  --bg2:#1b5aa7;
  --card:rgba(255,255,255,.92);
  --text:#0f172a;
  --muted:#64748b;
  --line:rgba(15,23,42,.14);
  --primary:#2f6fd6;
  --ok:#2f9e44;
  --warn:#d64545;
  --shadow:0 18px 60px rgba(0,0,0,.22);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 60% 30%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
}
.bg{position:fixed; inset:0; background: radial-gradient(900px 500px at 25% 85%, rgba(0,0,0,.18), transparent 60%); pointer-events:none;}

/* Centering is done by a fixed shell wrapper (prevents drift) */
.wrap{min-height:100vh; display:flex; justify-content:center; padding:44px 16px 26px;}
.shell{width:min(980px, 100%); display:flex; flex-direction:column; gap:18px;}

/* Header */
.hero{width:100%; color:#fff; text-align:center;}
.brandRow{display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:12px;}
.brandIcon{width:46px;height:46px; display:grid;place-items:center; border:2px solid rgba(255,255,255,.55); border-radius:14px; font-weight:900;}
.brandText{line-height:1.1}
.brandName{font-weight:900; letter-spacing:.6px}
.brandTag{opacity:.78; font-size:12px}
.hero h1{margin:6px 0 8px; font-size:34px}
.sub{margin:0; opacity:.86; line-height:1.45}
@media (max-width:900px){ .hero h1{font-size:28px} }

/* Card shell */
.card{
  width:100%;
  background:var(--card);
  border:1px solid rgba(255,255,255,.55);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(10px);
}

/* Progress */
.progress{display:flex; align-items:center; padding:14px 16px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.65); gap:10px;}
.step{display:flex; align-items:center; gap:10px; opacity:.55; user-select:none;}
.step.active{opacity:1}
.dot{width:28px;height:28px; display:grid;place-items:center; border-radius:999px; background:rgba(47,111,214,.14); border:1px solid rgba(47,111,214,.22); font-weight:900;}
.step.active .dot{background:rgba(47,111,214,.22); border-color:rgba(47,111,214,.35);}
.label{font-weight:800; font-size:13px}
.line{height:2px; flex:1; background:rgba(15,23,42,.12); border-radius:999px;}

/* Content */
.panel{padding:20px 20px 18px}
h2{margin:0 0 6px; font-size:20px}
.muted{margin:0 0 14px; color:var(--muted); line-height:1.45}

/* Step 1 (Choose) */
.choiceGrid{display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px;}
@media (max-width:900px){ .choiceGrid{grid-template-columns:1fr} }
.choice{
  text-align:left; padding:14px 14px; border-radius:16px; border:1px solid var(--line);
  background:rgba(255,255,255,.85); cursor:pointer;
  transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease, background .08s ease;
  position:relative; min-height:118px;
}
.choice:hover{ transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.10); border-color: rgba(47,111,214,.35); }
.choice.selected{ border-color: rgba(47,111,214,.55); box-shadow: 0 12px 26px rgba(47,111,214,.10); background: rgba(47,111,214,.06); }
.choiceTitle{font-weight:950; font-size:16px}
.choiceDesc{margin-top:6px; color:rgba(15,23,42,.75); line-height:1.35}
.choiceMeta{margin-top:10px; font-size:12px; color:rgba(15,23,42,.60)}
.chip{
  position:absolute; top:12px; right:12px; font-size:11px; font-weight:950; padding:6px 10px; border-radius:999px;
  border:1px solid rgba(47,111,214,.20); background:rgba(47,111,214,.10); color:rgba(15,23,42,.78); display:none;
}
.choice[data-flow="new"] .chip{display:inline-flex}
.note{margin-top:14px; border:1px solid rgba(47,111,214,.22); background:rgba(47,111,214,.08); border-radius:16px; padding:12px 12px;}
.noteTitle{font-weight:950; margin-bottom:4px}
.noteText{color:rgba(15,23,42,.75); line-height:1.4}
.tip{margin-top:12px; color:rgba(15,23,42,.62); font-size:13px; line-height:1.4;}

.navRow{display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:16px; flex-wrap:wrap;}
.btn{height:46px; border-radius:14px; border:0; font-weight:950; cursor:pointer; padding:0 16px; min-width:170px;}
.btn.primary{background:linear-gradient(180deg, #3d7ff0, #2f6fd6); color:#fff}
.btn.ghost{background:rgba(15,23,42,.06); color:rgba(15,23,42,.84); border:1px solid rgba(15,23,42,.10);}
.btn:disabled{opacity:.55; cursor:not-allowed}
.selectionPreview{color:rgba(15,23,42,.70); font-size:13px; line-height:1.35; display:flex; gap:10px; align-items:center; flex-wrap:wrap;}
.badge{font-size:12px; font-weight:950; padding:7px 10px; border-radius:999px; border:1px solid rgba(15,23,42,.12); background:rgba(255,255,255,.75);}

/* Step 2 blocks (Details) */
.block{margin-top:14px; border:1px solid var(--line); background:rgba(255,255,255,.78); border-radius:16px; padding:14px 14px;}
.blockHead{display:flex; align-items:flex-end; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:10px;}
.blockTitle{font-weight:950}
.blockSub{margin-top:4px; color:rgba(15,23,42,.62); font-size:13px; line-height:1.35}
label{display:block; font-weight:900; font-size:12px; color:rgba(15,23,42,.70); margin-bottom:8px;}
select{
  width:100%; height:48px; border-radius:14px; border:1px solid rgba(15,23,42,.14);
  background:#fff; padding:10px 12px; font-weight:900; outline:none;
}
select:focus{border-color:rgba(47,111,214,.55); box-shadow:0 0 0 4px rgba(47,111,214,.12)}
.miniRow{display:flex; align-items:center; gap:10px; margin-top:10px; flex-wrap:wrap;}
.miniLink{
  border:0; background:transparent; padding:0; cursor:pointer; font-weight:950;
  color: rgba(47,111,214,.95); text-decoration: underline; text-underline-offset: 3px;
}
.miniLink:disabled{opacity:.55; cursor:not-allowed}
.miniNote{font-size:12px; color: rgba(15,23,42,.62);}

.addons{display:grid; grid-template-columns: 1fr; gap:10px;}
.addonRow{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 12px; border-radius:14px; border:1px solid rgba(15,23,42,.10); background:rgba(255,255,255,.86);
}
.addonMeta{min-width:0}
.addonTitle{font-weight:950}
.addonDesc{margin-top:4px; font-size:12px; color:rgba(15,23,42,.62); line-height:1.35}

.toggle{
  position:relative; width:54px; height:32px; border-radius:999px;
  border:1px solid rgba(15,23,42,.14); background:rgba(15,23,42,.08);
  cursor:pointer; flex:0 0 auto; transition: background .12s ease, border-color .12s ease;
}
.toggle::after{
  content:""; position:absolute; top:50%; left:4px; transform:translateY(-50%);
  width:24px;height:24px;border-radius:999px; background:#fff; border:1px solid rgba(15,23,42,.12);
  transition:left .12s ease; box-shadow: 0 6px 12px rgba(0,0,0,.10);
}
.toggle.on{background:rgba(47,158,68,.18); border-color:rgba(47,158,68,.30);}
.toggle.on::after{left:26px}
.toggle.disabled{opacity:.55; cursor:not-allowed;}

.adultGate{
  margin-top:10px; display:flex; align-items:flex-start; gap:10px;
  padding:12px 12px; border-radius:14px; border:1px dashed rgba(15,23,42,.18); background:rgba(255,255,255,.70);
}
.adultGate input{margin-top:2px}
.adultGateText{font-size:13px; color:rgba(15,23,42,.74); line-height:1.35}
.adultGateText strong{font-weight:950}

/* Step 3 (Confirm) */
.grid{display:grid; grid-template-columns: 1.1fr .9fr; gap:14px; margin-top:14px;}
@media (max-width:900px){ .grid{grid-template-columns:1fr} }
.summaryRows{margin-top:12px; display:grid; gap:10px;}
.row{
  display:flex; justify-content:space-between; gap:12px; align-items:center;
  padding:10px 10px; border-radius:14px; border:1px solid rgba(15,23,42,.10); background:rgba(255,255,255,.86);
}
.row span{font-weight:900; color:rgba(15,23,42,.70)}
.row strong{font-weight:950}
.miniNoteBox{
  margin-top:12px; border:1px solid rgba(15,23,42,.12); border-radius:14px; background:rgba(255,255,255,.70);
  padding:12px 12px; color:rgba(15,23,42,.72); line-height:1.45; font-size:13px;
}
input[type="email"]{
  width:100%; height:48px; border-radius:14px; border:1px solid rgba(15,23,42,.14); background:#fff;
  padding:10px 12px; font-weight:900; outline:none;
}
input[type="email"]:focus{border-color:rgba(47,111,214,.55); box-shadow:0 0 0 4px rgba(47,111,214,.12);}
.helper{margin-top:10px; color:rgba(15,23,42,.62); font-size:13px; line-height:1.35;}
.info{margin-top:12px; border:1px solid rgba(47,111,214,.22); background:rgba(47,111,214,.08); border-radius:16px; padding:12px 12px;}
.infoTitle{font-weight:950; margin-bottom:4px}
.infoText{color:rgba(15,23,42,.75); line-height:1.4}
.error{margin-top:10px; color:var(--warn); font-weight:900; font-size:13px; display:none;}

/* Footer */
footer{width:100%; display:flex; justify-content:center; gap:10px; align-items:center; color:rgba(255,255,255,.86); padding:6px 0 18px;}
.footLink{color:#fff; text-decoration:underline; text-underline-offset:3px}
.footSmall{opacity:.75; font-size:12px}

/* Modal (design preserved; backdrop-filter removed to prevent compositor jump) */
.modal[hidden]{display:none}
.modal{position:fixed; inset:0; z-index:50;}
.modalOverlay{position:absolute; inset:0; background:rgba(0,0,0,.55);} /* removed backdrop-filter for stability */
.modalCard{
  position:relative; width:min(860px, calc(100% - 24px)); margin: 24px auto;
  border-radius: 18px; background: rgba(255,255,255,.96);
  box-shadow: 0 18px 80px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.55);
  overflow:hidden;
}
.modalHead{display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:16px 16px; border-bottom:1px solid var(--line); background: rgba(255,255,255,.75);}
.modalTitle{font-weight: 1000; font-size: 16px;}
.modalSub{margin-top:4px; color: rgba(15,23,42,.65); font-size: 13px; line-height:1.35;}
.modalClose{width:40px;height:40px;border-radius:12px; border:1px solid rgba(15,23,42,.12); background: rgba(255,255,255,.85); cursor:pointer; font-weight: 900;}
.modalBody{padding:14px 16px 16px; max-height: calc(100vh - 190px); overflow:auto;}
.modalSection{margin-top:12px}
.sectionTitle{font-weight:900; margin-bottom:8px}
.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip2{padding:8px 10px; border-radius:999px; border:1px solid rgba(15,23,42,.12); background: rgba(255,255,255,.85); font-weight:800; font-size:12px;}
.list{margin:0; padding-left:18px; color: rgba(15,23,42,.80); line-height:1.5;}
.noteBox{border:1px solid rgba(15,23,42,.12); border-radius:14px; background: rgba(255,255,255,.75); padding:12px 12px; color: rgba(15,23,42,.70); line-height:1.45; font-size: 13px;}
.modalFoot{padding:14px 16px 16px; border-top:1px solid var(--line); background: rgba(255,255,255,.75); display:flex; justify-content:flex-end;}


/* New Account duration grid */
.durationGrid{grid-template-columns:repeat(4,1fr)}
@media (max-width:900px){.durationGrid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.durationGrid{grid-template-columns:1fr}}


/* Renewal verified panel (non-invasive) */
.verifiedPanel{
  margin: 14px 0 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16,185,129,.22), rgba(16,185,129,.12));
  border: 1px solid rgba(16,185,129,.25);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.verifiedIcon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(16,185,129,.22);
  border: 1px solid rgba(16,185,129,.35);
  color: rgba(15,23,42,.88);
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}
.verifiedTitle{
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 4px;

  color: #0f172a;
}
.verifiedLine{
  color: rgba(15,23,42,.82);
  font-size: 14px;
  line-height: 1.35;
}
.priceBox{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.priceBox.light{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
}
.priceBox.light .priceRow{
  color: rgba(15,23,42,.78);
}
.priceBox.light .priceRow strong{
  color: #0f172a;
}
.priceBox.light .priceRow.total{
  border-top: 1px solid rgba(15,23,42,.10);
  color: #0f172a;
}
.priceBox.light .currencySelect{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: none;
}
.priceRow{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  color: rgba(255,255,255,.86);
}
.priceRow.total{
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.95);
  font-size: 16px;
}
.currencyWrap{
  display:flex;
  gap:10px;
  align-items:center;
}
.currencySelect{
  min-width: 120px;
}
.formRow.two{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px){
  .formRow.two{ grid-template-columns: 1fr; }
}
.grid.twoCols{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}
@media (max-width: 900px){
  .grid.twoCols{ grid-template-columns: 1fr; }
}


/* ===== Renewal icon inputs (matches mock) ===== */
.iconForm { margin-top: 6px; }
.iconLabel { font-weight: 600; color: #0f172a; display:block; margin: 0 0 8px; }
.iconField {
  display:flex;
  align-items:center;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.85);
  overflow:hidden;
}
.iconBox{
  width:52px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(15,23,42,.65);
  background: rgba(15,23,42,.04);
  border-right: 1px solid rgba(15,23,42,.10);
  flex: 0 0 52px;
}
.iconField input{
  border: 0 !important;
  outline: none;
  background: transparent;
  height:52px;
  padding: 0 14px;
  width:100%;
  font-size: 16px;
}
.iconField input:focus{
  box-shadow: none;
}
.priceRight{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Package explorer (More options) */
.pkgList{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.pkgRow{
  width:100%;
  text-align:left;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.92);
  color:#0f172a;
  font-weight:700;
  cursor:pointer;
}
.pkgRow:hover{ filter:brightness(0.98); }
.pkgEmpty{ padding:12px 6px; color: rgba(15,23,42,.65); }
