/* ── BASE ── */

body {
  overflow-x: hidden;
  width: 100%;
}

.page {
  overflow-x: hidden;
  width: 100%;
}

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

:root {
  --r: #E8454A;
  --rg: linear-gradient(135deg, #E8454A 0%, #FF8A6E 100%);
  --rl: rgba(232, 69, 74, .07);
  --rbrd: #E8454A;
  --txt: #1A1A2E;
  --txt2: #4A4A6A;
  --sub: #9090AA;
  --brd: #EEEEF5;
  --card: #F8F8FC;
  --bg: #FFFFFF;
  --sh1: 0 2px 12px rgba(100, 100, 150, .07);
  --sh2: 0 8px 32px rgba(100, 100, 150, .13);
  --sh3: 0 20px 60px rgba(100, 100, 150, .15);
  --r16: 16px;
  --r20: 20px;
  --px: 1px;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(160deg, #FFF9F9 0%, #FFF2F0 50%, #FFF8FF 100%);
  min-height: 100vh;
  color: var(--txt2);
}

img {
  display: block;
  max-width: 100%
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none
}

/* ── LAYOUT ── */
.page {
  display: flex;
  justify-content: center;
  min-height: 100vh
}

.app {
  background: var(--bg);
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh3);
}

/* ── TOP BAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 16px;
  display: none;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--brd);
}

.topbar.vis {
  display: flex
}

.bkbtn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--txt2);
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--card);
  transition: background .2s, transform .15s;
}

.bkbtn:hover {
  background: var(--brd);
  transform: translateX(-2px)
}

/* Progress bar replaces segbar */
.prog-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.prog-track {
  width: 100%;
  height: 5px;
  background: var(--brd);
  border-radius: 99px;
  overflow: hidden
}

.prog-fill {
  height: 100%;
  background: var(--rg);
  border-radius: 99px;
  width: 0%;
  transition: width .5s cubic-bezier(.4, 0, .2, 1)
}

.prog-label {
  font-size: 11px;
  color: var(--sub);
  font-weight: 600;
  text-align: right;
  letter-spacing: .3px
}

.segbar {
  display: none
}

.seg,
.seg.done,
.seg.cur {
  display: none
}

/* ── SCREENS ── */
.scr {
  display: none;
  flex-direction: column;
  flex: 1
}

.scr.on {
  display: flex;
  animation: sIn .35s cubic-bezier(.4, 0, .2, 1) both
}

@keyframes sIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.98)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

.scr-body {
  flex: 1;
  padding: 24px 20px 120px;
  overflow-y: auto
}

/* ── HEADINGS ── */
.qtitle {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--txt);
  line-height: 1.3;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -.4px;
}

.qsub {
  font-size: 15px;
  color: var(--sub);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.65;
  font-weight: 400;
}

/* ── PHOTO CARDS ── */
.pgrid {
  display: grid;
  gap: 14px
}

.pgrid.c2 {
  grid-template-columns: 1fr 1fr
}

.pcard {
  border-radius: var(--r20);
  overflow: hidden;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.4, 0, .2, 1), box-shadow .22s, border-color .2s;
  background: var(--card);
  position: relative;
  box-shadow: var(--sh1);
}

.pcard:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--sh2)
}

.pcard:active {
  transform: scale(.97)
}

.pcard.sel {
  border-color: var(--r);
  box-shadow: 0 0 0 4px rgba(232, 69, 74, .12), var(--sh2)
}

.pcard img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .4s ease;
}

.pcard:hover img {
  transform: scale(1.05)
}

.pcard-lbl {
  padding: 12px 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
  text-align: center;
  background: var(--bg);
}

.pcard.sel .pcard-lbl {
  color: var(--r)
}

.pcard .albl {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--rg);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 8px;
  text-align: center;
  letter-spacing: .3px;
}

.pcard.sel .albl {
  opacity: .85
}

/* ── LIST OPTIONS ── */
.lopts {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.lopt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--brd);
  border-radius: var(--r16);
  background: var(--bg);
  transition: border-color .2s, background .2s, transform .18s, box-shadow .2s;
  text-align: left;
  width: 100%;
  box-shadow: var(--sh1);
}

@media (hover: hover) {
  .lopt:hover {
    border-color: var(--r);
    background: var(--rl);
    transform: translateX(4px);
    box-shadow: var(--sh2)
  }
}

.lopt:active {
  transform: translateX(2px) scale(.99)
}

.lopt.sel {
  border-color: var(--r);
  background: var(--rl);
  box-shadow: 0 0 0 3px rgba(232, 69, 74, .1), var(--sh1)
}

.lopt-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--sh1)
}

.lopt-ico {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFF0F0, #FFE0DD);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--r);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05);
}

.lopt-tx {
  flex: 1
}

.lopt-ttl {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 3px;
  letter-spacing: -.1px
}

.lopt-dsc {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.5
}

.lopt.sel .lopt-ttl {
  color: var(--r)
}

/* ── CHECKBOX ── */
.chkw {
  position: relative;
  cursor: pointer
}

.chkw .lopt {
  padding-right: 54px
}

.chkbox {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 2px solid var(--brd);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: transparent;
  transition: all .22s;
  background: #fff;
  pointer-events: none;
}

.chkw.sel .chkbox {
  background: var(--rg);
  border-color: var(--r);
  color: #fff;
  transform: translateY(-50%) scale(1.1)
}

/* ── ICON GRID ── */
.igrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.icard {
  border: 2px solid var(--brd);
  border-radius: var(--r20);
  padding: 24px 14px;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
  background: var(--bg);
  box-shadow: var(--sh1);
}

@media (hover: hover) {
  .icard:hover {
    border-color: var(--r);
    background: var(--rl);
    transform: translateY(-4px);
    box-shadow: var(--sh2)
  }
}

.icard:active {
  transform: scale(.96)
}

.icard.sel {
  border-color: var(--r);
  background: var(--rl);
  box-shadow: 0 0 0 4px rgba(232, 69, 74, .1), var(--sh2)
}

.icard-ico {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
  color: var(--r)
}

.icard-ttl {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 5px;
  letter-spacing: -.1px
}

.icard-dsc {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.5
}

.icard.sel .icard-ttl {
  color: var(--r)
}

.icard-img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 12px;
}

/* ── NUMBER INPUT ── */
.numsec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: 20px
}

.utog {
  display: flex;
  background: var(--card);
  border-radius: 14px;
  padding: 4px;
  gap: 3px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .06)
}

.ubtn {
  padding: 9px 26px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sub);
  transition: all .25s
}

.ubtn.on {
  background: #fff;
  color: var(--txt);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1)
}

.nrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%
}

.nstep {
  width: 56px;
  height: 64px;
  border: 2px solid var(--brd);
  border-radius: var(--r16);
  font-size: 28px;
  color: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s, transform .15s;
  flex-shrink: 0;
  background: var(--bg);
  box-shadow: var(--sh1);
}

.nstep:hover {
  border-color: var(--r);
  background: var(--rl);
  transform: scale(1.06)
}

.nstep:active {
  transform: scale(.92)
}

.ninp {
  flex: 1;
  height: 64px;
  border: 2px solid var(--brd);
  border-radius: var(--r16);
  font-size: 32px;
  font-weight: 700;
  color: var(--txt);
  text-align: center;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--card);
  -moz-appearance: textfield;
  appearance: textfield;
  letter-spacing: -1px;
}

.ninp:focus {
  border-color: var(--r);
  box-shadow: 0 0 0 4px rgba(232, 69, 74, .1)
}

.ninp::-webkit-inner-spin-button,
.ninp::-webkit-outer-spin-button {
  -webkit-appearance: none
}

.nunit {
  font-size: 17px;
  font-weight: 700;
  color: var(--sub);
  width: 36px;
  text-align: center
}

/* ── INPUT WRAP (Email/Other) ── */
.input-wrap {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.main-input {
  width: 100%;
  height: 64px;
  border: 2px solid var(--brd);
  border-radius: var(--r16);
  font-size: 18px;
  font-weight: 600;
  color: var(--txt);
  padding: 0 24px;
  outline: none;
  transition: all .2s;
  background: var(--bg);
  box-sizing: border-box;
  box-shadow: var(--sh1);
  text-align: center;
}

.main-input:focus {
  border-color: var(--r);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(232, 69, 74, .1), var(--sh2);
}

/* ── SPLIT LAYOUT ── */
.split-scr {
  position: relative;
  width: 100%;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.split-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  z-index: 0;
}

.split-content {
  position: relative;
  z-index: 1;
  padding: 110px 24px 120px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 60%, rgba(255, 255, 255, 0) 100%);
}

.split-scr .lopts {
  width: 100%;
  max-width: 280px;
}

.split-scr .lopt {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
}

.split-scr .lopt.sel {
  background: #FFE8ED;
  border-color: var(--r);
}

.split-scr .qtitle {
  margin-bottom: 24px;
  max-width: 280px;
  font-size: 26px;
}

/* ── BMI SCREEN ── */
.bmi-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

.bmi-track-wrap {
  position: relative;
  margin: 30px 16px 40px;
  height: 40px;
}

.bmi-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--sub);
  margin-bottom: 8px;
  padding: 0;
}

.bmi-labels span {
  flex: 1;
  text-align: center;
}

.bmi-track {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #60A5FA 0%, #10B981 30%, #F59E0B 60%, #EF4444 80%, #991B1B 100%);
  position: relative;
}

.bmi-track::before {
  content: '';
  position: absolute;
  left: 16.6%;
  width: 1px;
  height: 16px;
  top: -4px;
  background: #fff;
  opacity: 0.5;
}

.bmi-track::after {
  content: '';
  position: absolute;
  left: 40%;
  width: 1px;
  height: 16px;
  top: -4px;
  background: #fff;
  opacity: 0.5;
}

.bmi-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  left: 0%;
  z-index: 2;
}

.bmi-bubble {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.bmi-bubble::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0;
  border-style: solid;
  border-color: #222 transparent transparent;
}

.bmi-box {
  margin: 0 16px 24px;
  padding: 16px;
  border-radius: 14px;
  background: #FFE8ED;
  border: 1px solid #FBCED6;
  display: flex;
  gap: 12px;
}

.bmi-box.good {
  background: #E8FFF0;
  border-color: #A7F3D0;
}

.bmi-box-ico {
  font-size: 20px;
  color: var(--r);
}

.bmi-box.good .bmi-box-ico {
  color: #10B981;
}

.bmi-box-ttl {
  font-weight: 700;
  font-size: 14px;
  color: var(--r);
  margin-bottom: 4px;
}

.bmi-box.good .bmi-box-ttl {
  color: #10B981;
}

.bmi-box-txt {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.4;
}

.bmi-summary-wrap {
  position: relative;
  padding: 0 16px;
  margin-top: 10px;
}

.bmi-summary-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 60%;
  position: relative;
  z-index: 2;
}

.bmi-sitem {
  display: flex;
  gap: 12px;
  align-items: center;
}

.bmi-sitem-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--txt);
}

.bmi-sitem-lbl {
  font-size: 11px;
  color: var(--sub);
  margin-bottom: 2px;
}

.bmi-sitem-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt);
}

.bmi-model-wrap {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.bmi-model {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media(max-width:600px) {
  .split-content {
    align-items: center;
    text-align: center;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 70%, rgba(255, 255, 255, 0) 100%);
    padding: 110px 24px 140px;
    justify-content: flex-start;
  }

  .split-scr .lopts {
    max-width: 100%;
    margin: 0 auto;
  }

  .split-scr .qtitle {
    margin: 0 auto 24px;
  }
}

/* ── CARD GRID (Variety) ── */
.cgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ccard {
  border: 2px solid var(--brd);
  border-radius: 16px;
  padding: 16px 12px;
  cursor: pointer;
  text-align: left;
  transition: all .2s;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  box-shadow: var(--sh1);
}

.ccard-ico {
  font-size: 28px;
  color: var(--r);
}

.ccard-tx {
  font-weight: 700;
  font-size: 14px;
  color: var(--txt);
  line-height: 1.2;
}

@media (hover: hover) {
  .ccard:hover {
    border-color: var(--r);
    background: #FFE8ED;
    transform: translateY(-3px);
    box-shadow: var(--sh2);
  }
}

.ccard.sel {
  border-color: var(--r);
  background: #FFE8ED;
  transform: translateY(-3px);
  box-shadow: var(--sh2);
}

/* ── WYGET (Final Screen) ── */

/* ── WELCOME ── */
#scrW {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px 24px 120px
}

#scrW.on {
  display: flex
}

.w-logo {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--r);
  margin-bottom: 20px;
  background: var(--rl);
  border-radius: 99px;
  padding: 6px 18px;
  display: inline-block;
}

.w-stat {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 6px;
  letter-spacing: -1.5px
}

.w-stat em {
  color: var(--r);
  font-style: normal
}

.w-stat-sub {
  font-size: 16px;
  color: var(--sub);
  margin-bottom: 32px;
  line-height: 1.5
}

.w-img-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto
}

.w-circle {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 69, 74, .12) 0%, rgba(255, 138, 110, .06) 70%, transparent 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  z-index: 0;
}

.w-img {
  width: 100%;
  position: relative;
  z-index: 1;
  object-fit: cover;
  border-radius: 24px;
  height: 320px;
  box-shadow: var(--sh2)
}

/* ── LOADING ── */
#scrL {
  display: none;
  flex-direction: column;
  padding: 48px 24px 110px
}

#scrL.on {
  display: flex
}

.ld-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--txt);
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -.4px
}

.ld-title span {
  color: var(--r)
}

.ld-sub {
  font-size: 14px;
  color: var(--sub);
  margin-bottom: 36px;
  line-height: 1.6
}

.ld-steps {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.ld-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r16);
  background: var(--card);
  box-shadow: var(--sh1);
  transition: background .3s;
}

.ld-ico {
  font-size: 22px;
  width: 32px;
  flex-shrink: 0
}

.ld-info {
  flex: 1
}

.ld-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 6px;
  font-weight: 500
}

.ld-pct {
  font-weight: 700;
  color: var(--r)
}

.ld-track {
  width: 100%;
  height: 6px;
  background: var(--brd);
  border-radius: 99px;
  overflow: hidden
}

.ld-fill {
  height: 100%;
  background: var(--rg);
  border-radius: 99px;
  width: 0%;
  transition: width .4s ease
}

.ld-chk {
  font-size: 18px;
  width: 24px;
  text-align: right;
  flex-shrink: 0
}

/* ── FINISH ── */
#scrF {
  display: none;
  flex-direction: column;
  padding-bottom: 0;
  padding-top: 30px;
}

#scrF.on {
  display: flex
}

/* ════ OFFER BAR ════ */
#offerBar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1.5px solid #EEEEF5;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
  padding: 10px 16px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

#offerBar.vis {
  display: flex;
}

#offerBar .ob-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

#offerBar .ob-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #9090AA;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}

#offerBar .ob-val {
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #E8454A;
  letter-spacing: -1.5px;
  line-height: 1;
}

#offerBar .ob-btn {
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #E8454A 0%, #FF8A6E 100%);
  border: none;
  border-radius: 14px;
  padding: 0 22px;
  height: 48px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: .3px;
  box-shadow: 0 4px 16px rgba(232, 69, 74, .4);
  transition: opacity .2s, transform .15s;
}

#offerBar .ob-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}

#offerBar .ob-btn:active {
  transform: scale(.97);
}

.fin-body {
  padding: 0 18px
}

/* Before / After section */
.ba-wrap {
  padding: 0;
  margin-bottom: 4px;
}

.ba-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 16px 16px 0;
  border: 2px solid var(--brd);
  border-radius: 14px;
  overflow: hidden;
}

.ba-tab {
  padding: 12px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--sub);
  background: #fff;
  transition: all .2s;
}

.ba-tab.act {
  background: var(--rg);
  color: #fff;
}

.ba-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 10px 16px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sh1);
}

.ba-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.ba-stats {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 0;
  margin: 0 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--brd);
}

.ba-stat-col {
  display: flex;
  flex-direction: column;
  padding: 0 12px;
}

.ba-stat-col-r {
  align-items: flex-start;
}

.ba-divider {
  background: var(--brd);
  width: 1px;
}

.ba-stat-lbl {
  font-size: 11px;
  color: var(--sub);
  font-weight: 500;
  line-height: 1.4;
}

.ba-stat-val {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--txt);
  margin-top: 1px;
}

.ba-stat-val.red {
  color: var(--r);
}

.ba-dots {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.ba-dot {
  width: 28px;
  height: 5px;
  border-radius: 99px;
  background: var(--brd);
  transition: background .2s;
}

.ba-dot.active {
  background: #ccc;
}

.ba-dot.active.red {
  background: var(--r);
}

.ba-note {
  font-size: 11px;
  color: var(--sub);
  text-align: center;
  padding: 10px 0 14px;
  font-style: italic;
}

/* Before/After */
.ba-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--brd);
  border-radius: 16px;
  overflow: hidden;
  margin: 16px 0 10px
}

.ba-tab {
  padding: 12px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--sub);
  background: #fff;
  transition: all .2s
}

.ba-tab.act {
  background: var(--rg);
  color: #fff
}

.ba-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px
}

.ba-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top
}

.ba-note {
  font-size: 11px;
  color: var(--sub);
  text-align: center;
  margin-bottom: 24px;
  font-style: italic
}

/* Section headings */
.sec-ttl {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--txt);
  margin: 24px 0 14px;
  text-align: center;
  letter-spacing: -.3px;
}

/* Benefits */
.bens {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.ben {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(100, 100, 150, .07);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.ben:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(100, 100, 150, .13);
  border-color: var(--r);
}

.ben-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.ben-tx {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ben-ttl {
  font-weight: 800;
  font-size: 15px;
  color: var(--txt);
  margin-bottom: 4px;
  line-height: 1.2;
}

.ben-dsc {
  font-size: 13px;
  color: var(--sub);
  font-weight: 500;
}

/* Plan box premium */
.plan-box {
  background: var(--bg);
  border-radius: var(--r20);
  padding: 22px 18px 24px;
  margin-bottom: 14px;
  box-shadow: var(--sh2);
  border: 1.5px solid rgba(232, 69, 74, .1);
}

.plan-box-ttl {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.3;
  letter-spacing: -.3px;
}

.plan-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px
}

.plan-meta-card {
  background: var(--card);
  border-radius: var(--r16);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-meta-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFF0F0, #FFE0DD);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: var(--r);
}

.plan-meta-lbl {
  font-size: 10px;
  color: var(--sub);
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-bottom: 2px
}

.plan-meta-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -.1px
}

.plan-timer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 14px 0;
  border-top: 1px solid var(--brd);
  border-bottom: 1px solid var(--brd);
  margin-bottom: 14px;
}

.plan-lbl {
  font-size: 10px;
  color: var(--sub);
  margin-bottom: 3px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase
}

.plan-timer {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--r);
  letter-spacing: -2px;
  line-height: 1
}

.plan-price {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--r);
  text-align: right;
  letter-spacing: -1.5px;
  line-height: 1
}

.plan-price-sub {
  font-size: 11px;
  color: var(--sub);
  text-align: right;
  font-weight: 500
}

.plan-cta {
  font-family: 'Inter', sans-serif;
  width: 100%;
  height: 58px;
  border-radius: var(--r16);
  background: var(--rg);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(232, 69, 74, .35);
  transition: opacity .2s, transform .15s;
  display: block;
}

.plan-cta:hover {
  opacity: .92;
  transform: translateY(-2px)
}

.plan-cta:active {
  transform: scale(.98)
}

/* Payment methods */
.pay-section {
  background: var(--bg);
  border-radius: var(--r20);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--sh1);
  border: 1.5px solid var(--brd)
}

.pay-ttl {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 14px;
  letter-spacing: -.2px
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 2px solid var(--brd);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .2s
}

.pay-option.sel {
  border-color: var(--r);
  background: var(--rl)
}

.pay-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--brd);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s
}

.pay-radio.sel {
  border-color: var(--r);
  background: var(--r)
}

.pay-radio.sel::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff
}

.pay-logo {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--txt)
}

.pay-logo img {
  height: 22px
}

.gpay-btn {
  width: 100%;
  height: 52px;
  background: #000;
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 12px;
  cursor: pointer;
  transition: opacity .2s;
}

.gpay-btn:hover {
  opacity: .85
}

.pay-note {
  font-size: 11px;
  color: var(--sub);
  text-align: center;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px
}

/* Reviews */
.reviews {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px
}

.reviews-slider {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  gap: 0;
  padding-bottom: 0;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  height: min(70vw, 420px);
}

.reviews-slider:active {
  cursor: grabbing;
}

.reviews-slider::-webkit-scrollbar {
  display: none;
}

.review-slide {
  scroll-snap-align: center;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  border-radius: var(--r20);
  overflow: hidden;
  box-shadow: var(--sh2);
  background: #000;
  position: relative;
}

.review-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.85;
}

.review-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 16px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
}

.review-text-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #fff;
}

.review-text-body {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.9;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--brd);
  margin-bottom: 24px
}

.faq-item {
  border-bottom: 1px solid var(--brd)
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
  cursor: pointer;
  gap: 12px;
}

.faq-arr {
  font-size: 16px;
  color: var(--sub);
  flex-shrink: 0;
  transition: transform .25s
}

.faq-item.open .faq-arr {
  transform: rotate(180deg)
}

.faq-ans {
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s
}

.faq-item.open .faq-ans {
  max-height: 220px;
  padding-bottom: 16px
}

/* Guarantee */
.guarantee {
  text-align: center;
  padding: 28px 18px;
  border-top: 1px solid var(--brd);
  border-bottom: 1px solid var(--brd);
  margin-bottom: 24px
}

.guarantee-ico {
  font-size: 44px;
  margin-bottom: 14px;
  display: block;
  color: var(--r)
}

.guarantee-ttl {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 10px;
  letter-spacing: -.3px
}

.guarantee-txt {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto
}

/* Footer */
.footer {
  padding: 22px 18px;
  text-align: center;
  border-top: 1px solid var(--brd)
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px
}

.footer-links a {
  font-size: 12px;
  color: var(--sub);
  text-decoration: none;
  border-bottom: 1px solid var(--brd);
  padding-bottom: 1px;
  transition: color .2s
}

.footer-links a:hover {
  color: var(--r)
}

.footer-copy {
  font-size: 11px;
  color: #bbb
}

/* ── BOTTOM BUTTON ── */
.botbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  padding: 10px 16px 24px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--brd);
  z-index: 20;
}

.mainbtn {
  font-family: 'Inter', sans-serif;
  width: 100%;
  height: 58px;
  border-radius: var(--r16);
  background: var(--rg);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(232, 69, 74, .32);
  transition: opacity .2s, transform .2s;
}

.mainbtn:hover {
  opacity: .92;
  transform: translateY(-2px)
}

.mainbtn:active {
  transform: scale(.98)
}

.mainbtn:disabled {
  opacity: .3;
  cursor: not-allowed;
  box-shadow: none;
  transform: none
}

.buy-note {
  font-size: 11px;
  color: var(--sub);
  text-align: center;
  margin-top: 8px;
  display: none
}

/* ── RESPONSIVE ── */
@media(max-width:600px) {
  .botbar {
    left: 0;
    right: 0;
    max-width: none
  }

  #offerBar {
    left: 0;
    right: 0;
    max-width: none
  }
}

@media(min-width:481px) {
  .botbar {
    left: 50%;
    transform: translateX(-50%)
  }

  #offerBar {
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px
  }
}

@media(min-width:768px) {
  body {
    background: linear-gradient(160deg, #FFF9F9 0%, #FFF2F0 50%, #FFF8FF 100%)
  }

  .page {
    padding: 30px 20px;
    align-items: flex-start
  }

  .app {
    max-width: 560px;
    border-radius: 24px;
    box-shadow: var(--sh3);
    min-height: auto;
  }

  .botbar {
    max-width: 560px;
    border-radius: 0 0 24px 24px
  }

  #offerBar {
    max-width: 560px
  }

  .qtitle {
    font-size: 28px
  }
}

@media(min-width:1100px) {
  .page {
    padding: 40px
  }

  .app {
    max-width: 600px
  }

  .botbar {
    max-width: 600px
  }

  #offerBar {
    max-width: 600px
  }
}

/* -- SUCCESS SCREEN -- */
.success-icon {
  width: 90px;
  height: 90px;
  background: #EBFDF5;
  color: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  margin: 0 auto 24px;
  animation: successPop 0.6s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

@keyframes successPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-ttl {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--txt);
  margin-bottom: 12px;
}

.success-sub {
  font-size: 16px;
  color: var(--sub);
  margin-bottom: 32px;
}

.success-card {
  background: #fff;
  border: 1px solid var(--brd);
  border-radius: 20px;
  padding: 24px;
  text-align: left;
  box-shadow: var(--sh1);
}

.success-card-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.success-card-row:last-child {
  margin-bottom: 0;
}

.success-card-row i {
  font-size: 24px;
  width: 24px;
  text-align: center;
  color: var(--r);
  margin-top: 2px;
}

.success-card-row strong {
  display: block;
  font-size: 15px;
  color: var(--txt);
  margin-bottom: 4px;
}

.success-card-row span {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.5;
  display: block;
}

.success-note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--sub);
  line-height: 1.6;
}


/* -- TEST SPINNER -- */
.test-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #E8454A;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Force screens to behave correctly with .on class */
.scr { display: none !important; }
.scr.on { display: block !important; }
#scrTestLoading.on, #scrSuccess.on { display: flex !important; }

