/* Lovmia onboarding replica — hand-written CSS from captured layout specs. */

:root {
  --bg-app: #09090c;
  --text-primary: #f0f0f0;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-ghost: rgba(255, 255, 255, 0.25);
  --accent: #ff4d6d;
  --accent-to: #ff8fa3;
  --funnel-max-w: 28rem;
  --grad: linear-gradient(to bottom right, #ff4d6d, #ff8fa3);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

main { min-height: 100svh; background: var(--bg-app); }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
img { display: block; }
a { color: inherit; }

.grad-text {
  background: linear-gradient(90deg, #ff4d6d, #ff8fa3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mb-5 { margin-bottom: 20px; }
.mt-auto { margin-top: auto; padding-top: 8px; }

/* ---------- topbar ---------- */

.topbar {
  pointer-events: none;
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 30;
  padding: max(env(safe-area-inset-top), 1rem) 1rem 0;
}

.topbar-inner {
  margin: 0 auto;
  display: flex;
  width: 100%;
  max-width: var(--funnel-max-w);
  align-items: center;
  gap: 16px;
}

.topbar-inner:not(.topbar-nav) { justify-content: flex-end; }
.topbar-nav { justify-content: space-between; }

.topbar-logo .topbar-inner { justify-content: flex-start; }
.topbar-logo-img { height: 40px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }

.lang-btn, .round-btn {
  pointer-events: auto;
  display: flex;
  height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color .15s ease;
}
.lang-btn { gap: 6px; padding: 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.lang-btn:hover, .round-btn:hover { background: rgba(255,255,255,.1); }
.round-spacer { width: 40px; height: 40px; flex: none; }

.progressbar { display: flex; flex: 1; gap: 4px; align-items: center; }
.pseg { flex: 1; height: 4px; border-radius: 9999px; background: rgba(255,255,255,.15); transition: background-color .3s ease; }
.pseg.on { background: var(--accent); }

/* ---------- funnel column ---------- */

.funnel {
  margin: 0 auto;
  display: flex;
  min-height: 100svh;
  width: 100%;
  max-width: var(--funnel-max-w);
  flex-direction: column;
  overflow-x: hidden;
  padding: max(env(safe-area-inset-top), 1.5rem) 24px 40px;
  background: var(--bg-app);
}

.funnel-pad-topbar { padding-top: calc(max(env(safe-area-inset-top), 1rem) + 4rem); }

.logo-row { display: flex; justify-content: center; }
.logo-row img { width: 84px; height: auto; max-width: 100%; }
.logo-120 { width: 120px !important; }

/* ---------- step 1: welcome ---------- */

.hero { margin-top: 20px; width: 100%; line-height: 0; }
.hero img {
  width: 100%; height: auto;
  max-height: min(46vh, 26rem);
  object-fit: contain; object-position: bottom;
}

.bottom { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 24px; }
.bottom h1 { margin: 0; text-align: center; font-size: 18px; line-height: 1.25; font-weight: 700; }

.choices { display: flex; flex-direction: column; gap: 12px; }

.choice {
  position: relative;
  display: flex;
  min-height: 76px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  padding: 14px 90px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform .15s ease;
}
.choice:active { transform: scale(.985); }
.choice-icon { position: absolute; top: 50%; display: flex; height: 64px; width: 64px; transform: translateY(-50%); align-items: center; justify-content: center; }
.choice-icon.left { left: 14px; }
.choice-icon.right { right: 14px; }
.choice-icon img { width: 64px; height: 64px; }
.choice-label { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.choice-sub { color: var(--text-secondary); font-size: 13px; line-height: 1.25; }
.choice-main { color: #fff; font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: .04em; }

.legal {
  margin: 24px auto 0;
  max-width: 330px;
  color: var(--text-ghost);
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
}
.legal a { color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: #fff; }

/* ---------- headings ---------- */

.pill-h1 { margin: 0 0 20px; text-align: center; font-size: 18px; line-height: 1.35; font-weight: 700; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--grad);
  padding: .22em .55em;
  vertical-align: .08em;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}
.pill-sm { font-size: .78em; margin: 0 .18em; }

.h-center { margin: 20px 0 0; text-align: center; font-size: 20px; line-height: 1.35; font-weight: 800; }
.sub-center { margin: 8px auto 20px; max-width: 24rem; text-align: center; color: var(--text-secondary); font-size: 16px; line-height: 1.6; font-weight: 500; }
.h1-plain { margin: 0 0 20px; text-align: center; font-size: 18px; line-height: 1.35; font-weight: 700; }
.h1-sliders { margin: 0 0 28px; text-align: center; font-size: 20px; line-height: 1.3; font-weight: 700; }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  display: flex;
  height: 56px;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  background: var(--grad);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 18px 48px -12px rgba(255,77,109,.55);
  transition: transform .2s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.cta:active { transform: scale(.98); }
.cta:disabled { opacity: .4; cursor: not-allowed; }

.btn-ghost {
  display: flex;
  height: 56px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255,255,255,.06);
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  transition: transform .15s ease;
}
.btn-ghost:active { transform: scale(.98); }

/* shimmer sweep overlay */
.shimmer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.shimmer::after {
  content: '';
  position: absolute;
  top: -20%; bottom: -20%;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: sweep 2.8s ease-in-out infinite;
}
@keyframes sweep { 0% { left: -60%; } 60%, 100% { left: 130%; } }

/* ---------- option lists ---------- */

.opt-list { display: flex; flex-direction: column; gap: 12px; }

.sprite-card {
  position: relative;
  display: flex;
  height: 92px;
  width: 100%;
  align-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  padding: 16px 20px;
  text-align: left;
  transition: transform .15s ease;
}
.sprite-card:active { transform: scale(.992); }
.sprite-card[aria-pressed="true"] { background: var(--grad); }
.sprite-label { flex: 1; padding-right: min(12.5rem, 46vw); color: #fff; font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: .02em; }
.sprite-wrap {
  pointer-events: none;
  position: absolute;
  top: -16px; bottom: -16px; right: -20px;
  display: flex;
  width: min(12.5rem, 46vw);
  align-items: center;
  justify-content: flex-end;
}
.sprite-wrap img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: right; }

.opt-row {
  display: flex;
  height: 60px;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  padding: 0 20px;
  transition: transform .15s ease;
}
.opt-row:active { transform: scale(.992); }
.opt-row[aria-pressed="true"] { background: var(--grad); }
.opt-emoji { font-size: 22px; line-height: 1; }
.opt-label { color: #fff; font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: .02em; }

/* ---------- tile grid ---------- */

.tile-grid {
  margin: 0 auto;
  display: grid;
  width: 100%;
  max-width: 482px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  position: relative;
  aspect-ratio: 235 / 270;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid transparent;
  background: rgba(255,255,255,.1);
  transition: transform .15s ease;
}
.tile:active { transform: scale(.992); }
.tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255,77,109,.4); }
.tile img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: center; }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.8)); }
.tile-label {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  padding: 0 12px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: .01em;
}

/* ---------- by_choice collage ---------- */

.collage {
  position: relative;
  margin: 0 auto;
  aspect-ratio: 1;
  width: 100%;
  max-width: 360px;
  background: url("assets/bg-circles.png") center / 360px 360px no-repeat;
}
.collage img {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 9999px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  object-fit: cover;
}
.collage .c1 { width: 43.3%; z-index: 10; transform: translate(-50%, -50%); }
.collage .c2 { width: 27.1%; z-index: 0; transform: translate(calc(-50% + 60%), calc(-50% + 60%)); }
.collage .c3 { width: 24.9%; z-index: 0; transform: translate(calc(-50% + 50%), calc(-50% - 180%)); }
.collage .c4 { width: 18.4%; z-index: 0; transform: translate(calc(-50% - 235%), calc(-50% + 20%)); }
@media (min-width: 420px) {
  .collage .c1 { width: 55.5%; }
  .collage .c2 { width: 34.7%; }
  .collage .c3 { width: 31.9%; }
  .collage .c4 { width: 23.6%; }
}

/* ---------- about_look ---------- */

.look-card {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 300px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
}
.look-card img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: top; }
.look-text { margin-top: 20px; text-align: center; }
.look-text h1 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; }
.look-text p { margin: 8px auto 0; max-width: 24rem; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* ---------- sliders ---------- */

.sliders { display: flex; flex: 1; flex-direction: column; gap: 32px; }
.slider-row { display: flex; flex-direction: column; gap: 10px; }
.slider-labels { display: flex; justify-content: space-between; color: var(--text-secondary); font-size: 14px; font-weight: 600; }
.slider-track { position: relative; height: 6px; border-radius: 9999px; background: rgba(255,255,255,.1); }
.slider-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9999px; background: linear-gradient(90deg, #ff4d6d, #ff8fa3); }
.slider-thumb {
  position: absolute;
  top: 50%;
  height: 20px; width: 20px;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.slider-track input[type="range"] {
  position: absolute;
  top: -10px; left: 0;
  height: calc(100% + 20px);
  width: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

/* ---------- modals ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.photo-modal {
  width: 280px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(to bottom, #0c0916, #0c0916 50%, #1a0810);
  padding: 24px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.6);
  text-align: center;
}
.photo-modal img { margin: 0 auto 20px; width: 190px; }
.photo-modal-title { margin: 0 0 20px; font-size: 24px; line-height: 1.25; font-weight: 400; }
.photo-modal-btns { display: flex; flex-direction: column; gap: 10px; }

/* language picker */
.lang-overlay { z-index: 60; }
.lang-card {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: #141419;
  padding: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
}
.lang-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.lang-close {
  display: flex; height: 32px; width: 32px;
  align-items: center; justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.06);
  font-size: 20px; line-height: 1; color: rgba(255,255,255,.8);
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 60vh;
  overflow-y: auto;
}
.lang-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  padding: 10px 12px;
  text-align: left;
  transition: background-color .15s ease;
}
.lang-opt:hover { background: rgba(255,255,255,.1); }
.lang-opt.cur { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255,77,109,.35); }
.lang-name { font-size: 14px; font-weight: 600; }
.lang-code { font-size: 11px; color: var(--text-ghost); letter-spacing: .06em; }

/* ---------- security ---------- */

.sec-top { margin: 0 0 40px; padding: 0 16px; text-align: center; font-size: 20px; line-height: 1.35; font-weight: 600; }
.sec-stage { position: relative; display: flex; flex: 1; min-height: 260px; flex-direction: column; }
.sec-anim { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 240px; height: 240px; pointer-events: none; }
.sec-shield {
  position: absolute;
  left: 50%; top: 50%;
  width: 110px; height: 128px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 35%, rgba(128,62,255,.35), transparent 65%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" opacity="0.85"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/></svg>') center / contain no-repeat;
  filter: drop-shadow(0 0 18px rgba(128,62,255,.55));
  animation: shield-pulse 3.2s ease-in-out infinite;
}
@keyframes shield-pulse { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.spark {
  position: absolute;
  border-radius: 9999px;
  background: #803eff;
  box-shadow: 0 0 10px 2px rgba(128,62,255,.7);
  animation: float 4.5s ease-in-out infinite;
}
.spark.s1 { width: 6px; height: 6px; left: 12%; top: 30%; animation-delay: 0s; }
.spark.s2 { width: 4px; height: 4px; left: 80%; top: 22%; animation-delay: .7s; background: #fff; box-shadow: 0 0 8px 2px rgba(255,255,255,.6); }
.spark.s3 { width: 5px; height: 5px; left: 22%; top: 70%; animation-delay: 1.4s; }
.spark.s4 { width: 4px; height: 4px; left: 70%; top: 78%; animation-delay: 2.1s; background: #ff8fa3; box-shadow: 0 0 8px 2px rgba(255,143,163,.6); }
.spark.s5 { width: 3px; height: 3px; left: 48%; top: 10%; animation-delay: 2.8s; background: #fff; box-shadow: 0 0 8px 2px rgba(255,255,255,.5); }
.spark.s6 { width: 5px; height: 5px; left: 90%; top: 52%; animation-delay: 3.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(-16px); opacity: 1; }
}
.sec-mid { position: relative; z-index: 10; margin: 26px 0 0; padding: 0 16px; text-align: center; font-size: 20px; line-height: 1.35; font-weight: 600; }
.sec-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  margin: 0 auto;
  max-width: 330px;
  padding: 0 8px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: .04em;
}
.sec-bottom a { color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- name / email fields ---------- */

.name-q { margin: 0 0 24px; padding: 0 16px; text-align: center; font-size: 20px; line-height: 1.35; font-weight: 600; }
.name-q.dimmed { pointer-events: none; opacity: .4; filter: blur(6px); user-select: none; }
.name-body { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 16px; padding-bottom: 16px; margin: 0 auto; width: 100%; max-width: 24rem; }
.name-hello { margin: 40px 0 0; text-align: center; font-size: 20px; line-height: 1.35; font-weight: 600; }

.field { position: relative; width: 100%; }
.field input {
  height: 60px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  padding: 0 56px 0 16px;
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: background-color .15s ease;
}
.field input::placeholder { color: rgba(255,255,255,.38); }
.field input:focus { background: rgba(255,255,255,.08); }
.send-btn {
  position: absolute;
  top: 50%; right: 10px;
  display: flex;
  height: 40px; width: 40px;
  align-items: center; justify-content: center;
  transform: translateY(-50%);
  border-radius: 9999px;
  background: var(--grad);
  color: #fff;
  transition: opacity .15s ease;
}
.send-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- preparing_feed ---------- */

.prep-title { margin: 0; text-align: center; font-size: 24px; line-height: 1.2; font-weight: 600; }
.prep-sub { margin: 4px 0 28px; text-align: center; color: var(--text-secondary); font-size: 14px; line-height: 1.35; }
.prep-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.prep-row { display: flex; flex-direction: column; gap: 7px; }
.prep-row-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; line-height: 20px; letter-spacing: .25px; }
.prep-row-labels span:first-child { color: rgba(255,255,255,.75); }
.prep-row-labels span:last-child { color: #fff; }
.prep-track { position: relative; height: 8px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.12); }
.prep-fill { height: 100%; width: 0; border-radius: 8px; background: var(--grad); transition: width .1s linear; }

.prep-social { display: flex; flex-direction: column; gap: 14px; }
.prep-trust { margin: 0; text-align: center; font-size: 24px; line-height: 1.2; font-weight: 600; }
.review-card {
  position: relative;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.07);
  padding: 14px;
}
.review-head { display: flex; align-items: center; gap: 8px; }
.review-flag { font-size: 18px; }
.review-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.9); }
.review-date { font-size: 11px; color: rgba(255,255,255,.35); }
.review-stars { font-size: 13px; letter-spacing: 1px; color: #fbbf24; }
.review-text { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.7); }
.prep-spacer { margin-top: auto; min-height: 56px; padding-top: 16px; }

/* ---------- email step ---------- */

.email-h2 { margin: 0; padding: 0 8px; text-align: center; font-size: 18px; line-height: 1.35; font-weight: 700; }
.ava-wall { margin: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ava-row { display: flex; justify-content: center; gap: 4px; }
.ava-tile { height: 48px; width: 48px; overflow: hidden; border-radius: 12px; }
.ava-tile img { height: 100%; width: 100%; object-fit: cover; }

.email-form { margin: auto auto 24px; display: flex; width: 100%; max-width: 24rem; flex-direction: column; gap: 12px; }
.email-form h3 { margin: 0; text-align: center; font-size: 18px; line-height: 1.35; font-weight: 600; }
.email-invalid { margin: 0; text-align: center; font-size: 12px; color: #ff8fa3; }

.privacy-note {
  margin: 0 auto 8px;
  display: flex;
  width: 100%;
  max-width: 24rem;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.04);
  padding: 14px;
}
.privacy-note svg { flex: none; color: rgba(255,255,255,.8); }
.privacy-note p { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.4; }

/* ---------- paywall ---------- */

.pw { position: relative; width: 100%; }
.pw-hero { position: relative; width: 100%; line-height: 0; }
.pw-hero img { width: 100%; aspect-ratio: 540 / 778; object-fit: cover; }
.pw-hero-blur {
  position: absolute; inset: 0;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 25%, #000 70%);
  mask-image: linear-gradient(to bottom, transparent 25%, #000 70%);
}
.pw-hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to bottom, transparent, var(--bg-app)); }

.pw-content {
  position: relative;
  z-index: 10;
  margin-top: -65%;
  padding: calc(max(env(safe-area-inset-top), 0px) + 2.75rem) 16px 48px;
}
.pw-h1 { margin: 0 0 20px; text-align: center; font-size: 26px; line-height: 1.25; font-weight: 700; }

.feat-table { border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.feat-head {
  padding: 12px 16px;
  text-align: center;
  font-weight: 800;
  letter-spacing: .08em;
  background: linear-gradient(90deg, #ff4d6d, #ff8fa3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.feat-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.05); }
.feat-row:last-child { border-bottom: 0; }
.feat-ico { width: 24px; text-align: center; font-size: 17px; }
.feat-label { flex: 1; font-size: 14px; color: rgba(255,255,255,.85); }
.feat-check {
  display: flex; height: 26px; width: 26px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,77,109,.15);
  color: var(--accent);
}
.feat-check svg { width: 14px; height: 14px; }

.plans { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.plan {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  padding: 20px 16px 16px;
  cursor: pointer;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.plan.sel {
  border-color: rgba(255,77,109,.75);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(255,77,109,.35), 0 14px 36px -18px rgba(255,77,109,.55);
}
.plan-badge {
  position: absolute;
  top: -11px; left: 16px;
  border-radius: 9999px;
  background: var(--grad);
  padding: 2px 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.plan-main { display: flex; align-items: center; gap: 12px; }
.radio {
  flex: none;
  height: 20px; width: 20px;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
}
.radio.on { border-color: var(--accent); }
.radio.on::after { content: ''; height: 10px; width: 10px; border-radius: 9999px; background: var(--grad); }
.plan-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 5px; }
.plan-name { font-size: 15px; font-weight: 700; }
.plan-chip {
  border-radius: 9999px;
  background: rgba(52,211,153,.15);
  color: #34d399;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}
.plan-shimmer-pill {
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255,255,255,.08);
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #ff8fa3;
}
.plan-shimmer-pill::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent);
  transform: skewX(-20deg);
  animation: sweep 2.8s ease-in-out infinite;
}
.plan-price { text-align: right; }
.plan-price s { display: block; color: var(--text-ghost); font-size: 13px; }
.plan-price strong { display: block; font-size: 20px; font-weight: 800; }
.plan-daily { min-width: 64px; text-align: right; }
.plan-daily s { display: block; color: var(--text-ghost); font-size: 11px; }
.plan-daily span { display: block; font-size: 13px; font-weight: 700; }
.plan-daily em { display: block; font-style: normal; color: var(--text-secondary); font-size: 10px; }

.pw-cta { margin-top: 4px; font-weight: 700; }
.pw-note { margin: 12px 0 0; text-align: center; color: var(--text-secondary); font-size: 11px; line-height: 1.5; }

.pw-sec-title { margin: 32px 0 14px; text-align: center; font-size: 20px; line-height: 1.3; font-weight: 700; }

.pw-reviews { display: flex; flex-direction: column; gap: 12px; }
.pw-review { border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); padding: 16px; }
.pw-review > img { height: 40px; width: 40px; border-radius: 9999px; object-fit: cover; float: left; margin-right: 12px; }
.pw-review-head { display: flex; flex-direction: column; gap: 2px; }
.pw-review-name { font-size: 13px; font-weight: 700; }
.pw-review-stars { display: flex; gap: 2px; line-height: 0; }
.pw-review p { clear: both; margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }

.how-cards { display: flex; flex-direction: column; gap: 12px; }
.how-card { position: relative; height: 290px; border-radius: 16px; overflow-hidden; }
.how-card img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.how-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), transparent 55%); }
.how-card-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.how-card-text > span { font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.65); }
.how-card-text strong { font-size: 18px; }
.how-card-text p { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.7); }

.gift-row { margin: 0 0 4px; text-align: center; color: var(--text-secondary); font-size: 14px; }

.checkout { margin-top: 24px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); padding: 16px; }
.checkout-label { display: block; margin-bottom: 6px; color: var(--text-secondary); font-size: 12px; font-weight: 600; }
.checkout input {
  height: 48px; width: 100%;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  padding: 0 16px;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.checkout-stub {
  margin-top: 12px;
  display: flex;
  height: 180px;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: 12px;
  color: var(--text-ghost);
  font-size: 12px;
  text-align: center;
  padding: 0 12px;
}
.checkout .cta { margin-top: 12px; }

.guarantee {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  padding: 16px;
}
.guarantee-ico { flex: none; color: var(--accent); margin-top: 2px; }
.guarantee strong { font-size: 14px; }
.guarantee p { margin: 4px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }

.trust-row { margin-top: 16px; display: flex; justify-content: center; gap: 24px; color: var(--text-secondary); font-size: 12px; }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row svg { width: 14px; height: 14px; }

.pay-icons { margin-top: 20px; display: flex; justify-content: center; gap: 12px; }
.pay-icons img { height: 20px; width: auto; opacity: .8; }

/* ---------- post_purchase ---------- */

.pp-loading {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-app);
}
.pp-ambient {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,77,109,.18) 0%, transparent 38%),
    radial-gradient(circle at 18% 84%, rgba(255,143,163,.12) 0%, transparent 36%),
    radial-gradient(circle at 84% 76%, rgba(255,77,109,.1) 0%, transparent 36%);
}
.pp-center { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; }
.pp-spinner { position: relative; height: 112px; width: 112px; }
.pp-ring { position: absolute; inset: 0; border-radius: 9999px; border: 3px solid rgba(255,255,255,.06); }
.pp-sweep {
  position: absolute; inset: 0;
  border-radius: 9999px;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-right-color: rgba(255,77,109,.6);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pp-heart {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  animation: heart-pulse 1.6s ease-in-out infinite;
}
@keyframes heart-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.pp-text { margin: 36px 0 0; text-align: center; font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -.01em; }
.pp-dots { margin-top: 20px; display: flex; gap: 8px; }
.pp-dots span { height: 6px; width: 6px; border-radius: 9999px; background: rgba(255,255,255,.15); transition: background-color .3s ease; }
.pp-dots span.on { background: var(--accent); }

/* upsell modal */
.upsell-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background:
    radial-gradient(circle at 50% 46%, rgba(255,77,109,.16) 0%, rgba(201,58,90,.08) 20%, transparent 46%),
    rgba(5,5,7,.78);
}
.upsell {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 28px;
  border: 1px solid rgba(255,77,109,.1);
  padding: 20px 16px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% -8%, rgba(255,77,109,.18), transparent 38%),
    radial-gradient(circle at 100% 24%, rgba(255,143,163,.1), transparent 36%),
    linear-gradient(#1a0a10 0%, #14080d 55%, #0b0307 100%);
  box-shadow:
    0 24px 64px rgba(0,0,0,.72),
    0 0 20px rgba(255,77,109,.1),
    inset 0 0 0 1px rgba(255,255,255,.04);
}
.upsell-close {
  position: absolute;
  top: 12px; right: 12px;
  display: flex; height: 32px; width: 32px;
  align-items: center; justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.8);
  font-size: 22px;
  line-height: 1;
}
.upsell-pill {
  display: inline-flex;
  min-height: 34px;
  max-width: 78%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.04);
  background: rgba(255,255,255,.05);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.82);
}
.upsell-gift {
  margin: 14px auto 0;
  display: flex;
  height: 72px; width: 72px;
  align-items: center; justify-content: center;
  border-radius: 20px;
  background: linear-gradient(160deg, #ff8fa3 0%, #ff4d6d 55%, #c93a5a 100%);
  box-shadow:
    0 14px 30px rgba(201,58,90,.3),
    0 0 18px rgba(255,77,109,.32),
    0 0 34px rgba(255,143,163,.2),
    inset 0 0 0 1px rgba(255,255,255,.14);
}
.upsell-gift img { width: 46px; height: 46px; }
.upsell h2 { margin: 20px auto 0; max-width: 360px; color: var(--accent); font-size: 26px; line-height: 28px; letter-spacing: -.045em; font-weight: 900; }
.upsell h3 { margin: 8px auto 0; max-width: 360px; font-size: 22px; line-height: 24px; letter-spacing: -.035em; font-weight: 900; }
.upsell-sub { margin: 8px auto 0; max-width: 320px; font-size: 14px; line-height: 18px; font-weight: 600; color: rgba(255,255,255,.55); }

.ticket {
  margin: 16px auto 0;
  max-width: 360px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  overflow: hidden;
}
.ticket-top { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; }
.ticket-check { display: flex; color: var(--accent); }
.ticket-check svg { width: 16px; height: 16px; }
.ticket-code { color: var(--accent); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .01em; }
.ticket-applied { font-size: 12px; line-height: 15px; color: rgba(255,255,255,.6); }
.ticket-div-h { border-top: 1px dashed rgba(255,255,255,.16); }
.ticket-bottom { display: flex; align-items: stretch; }
.ticket-left { flex: 1; padding: 14px; text-align: left; }
.ticket-off { color: var(--accent); font-size: 26px; line-height: 30px; font-weight: 800; text-shadow: 0 0 18px rgba(255,77,109,.4); }
.ticket-for { margin-top: 2px; font-size: 12px; line-height: 16px; color: rgba(255,255,255,.5); }
.ticket-div-v { border-left: 1px dashed rgba(255,255,255,.16); }
.ticket-right { display: flex; align-items: center; gap: 4px; padding: 14px 16px; }
.cd-unit { display: flex; min-width: 46px; flex-direction: column; align-items: center; }
.cd-unit span { font-size: 26px; line-height: 28px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cd-unit em { margin-top: 4px; font-style: normal; font-size: 10px; line-height: 12px; color: rgba(255,255,255,.45); }
.cd-colon { margin-top: -8px; font-size: 22px; line-height: 24px; font-weight: 800; color: rgba(255,255,255,.55); }

.upsell-cta {
  position: relative;
  margin-top: 16px;
  display: flex;
  min-height: 50px;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  padding: 12px 18px;
  background: linear-gradient(90deg, #ff8fa3 0%, #ff4d6d 55%, #c93a5a 100%);
  box-shadow: 0 14px 34px rgba(255,77,109,.34), inset 0 1px 0 rgba(255,255,255,.24);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.upsell-fine { margin: 12px auto 0; max-width: 360px; font-size: 11px; line-height: 15px; font-weight: 500; color: rgba(255,255,255,.45); }
.upsell-fine a { color: rgba(255,255,255,.55); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- create_account ---------- */

.ca-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ca-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 12px; }
.ca-card {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 860px;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: #131318;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
}
.ca-media { position: relative; display: none; width: 380px; flex: none; overflow: hidden; }
.ca-media img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: center; }
.ca-media-grad { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(to top, rgba(0,0,0,.6), transparent 45%); padding: 32px; }
.ca-media-grad span { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
@media (min-width: 768px) {
  .ca-media { display: block; min-height: 560px; }
}
.ca-form-side { position: relative; display: flex; flex: 1; min-width: 0; flex-direction: column; overflow-y: auto; padding: 20px; }
@media (min-width: 640px) { .ca-form-side { padding: 32px; } }
.ca-form-side h2 { margin: 0 0 8px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.ca-sub { margin: 0 0 24px; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.google-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 14px;
  background: #fff;
  padding: 12px 16px;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: opacity .15s ease, transform .15s ease;
}
.google-btn:hover { opacity: .9; }
.google-btn:active { transform: scale(.97); }
.ca-divider { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; color: var(--text-secondary); font-size: 14px; }
.ca-divider .line { flex: 1; height: 1px; background: rgba(255,255,255,.1); }
#ca-form { display: flex; flex-direction: column; gap: 14px; }
.ca-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  padding: 12px 16px;
  transition: border-color .15s ease;
}
.ca-field:focus-within { border-color: rgba(255,255,255,.25); }
.ca-field > svg { flex: none; color: rgba(255,255,255,.35); }
.ca-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.ca-field input::placeholder { color: rgba(255,255,255,.35); }
.ca-eye { display: flex; flex: none; color: rgba(255,255,255,.35); transition: color .15s ease; }
.ca-eye:hover { color: rgba(255,255,255,.55); }
.ca-hint { margin: 0; color: var(--text-secondary); font-size: 14px; }
.ca-hint.err { color: #ff8fa3; }
.ca-submit {
  margin-top: 16px;
  display: inline-flex;
  height: 48px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: background-color .15s ease, transform .15s ease;
}
.ca-submit:hover { background: rgba(255,77,109,.9); }
.ca-submit:active { transform: scale(.97); }

/* ---------- success ---------- */

.success { align-items: center; justify-content: center; padding: 24px 20px; }
.success-inner { width: 100%; text-align: center; color: #fff; }
.success-emoji { margin-bottom: 24px; font-size: 64px; line-height: 1; }
.success h1 { margin: 0; font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: -.03em; }
.success-sub { margin: 16px auto 0; max-width: 280px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.55); }
.success-email {
  margin-top: 12px;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(255,77,109,.24);
  background: rgba(255,77,109,.08);
  padding: 10px 16px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
}
.success-email span { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.success-cta { margin-top: 36px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.success-hint { margin: 16px auto 0; display: flex; max-width: 300px; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,.45); }
.success-hint svg { flex: none; color: var(--accent); }
.success-hint p { margin: 0; font-size: 12px; line-height: 1.4; }
.premium-card { margin-top: 32px; border-radius: 24px; background: rgba(255,77,109,.06); padding: 20px; }
.premium-card h2 { margin: 0; text-align: center; font-size: 15px; line-height: 1; font-weight: 600; }
.premium-card ul { margin: 20px auto 0; padding: 0; list-style: none; display: inline-flex; flex-direction: column; gap: 12px; text-align: left; }
.premium-card li { display: flex; align-items: center; gap: 14px; font-size: 14px; line-height: 1.25; color: rgba(255,255,255,.85); }
.premium-card li span { width: 24px; flex: none; text-align: center; font-size: 18px; line-height: 1; }

/* ---------- legal pages ---------- */

.legal-page .legal-wrap { margin: 0 auto; width: 100%; max-width: 42rem; padding: 40px 16px; }
@media (min-width: 640px) { .legal-page .legal-wrap { padding: 40px 32px; } }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255,255,255,.55);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}
.legal-back:hover { color: rgba(255,255,255,.85); }
.legal-content { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.7; }
.legal-content h1 { margin: 0 0 16px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: rgba(255,255,255,.9); }
.legal-content h2 { margin: 32px 0 12px; font-size: 18px; font-weight: 600; color: rgba(255,255,255,.85); }
.legal-content h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.8); }
.legal-content p { margin: 0 0 16px; }
.legal-content ul, .legal-content ol { margin: 0 0 16px; padding-left: 20px; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 4px; }
.legal-content a { color: #ff4d6d; text-decoration: underline; text-underline-offset: 2px; }
.legal-content strong { color: rgba(255,255,255,.85); font-weight: 600; }
.legal-content hr { margin: 32px 0; border: 0; border-top: 1px solid rgba(255,255,255,.08); }
.legal-content blockquote { margin: 0 0 16px; padding: 8px 16px; border-left: 3px solid rgba(255,77,109,.5); color: rgba(255,255,255,.55); }

/* ---------- RTL ---------- */

[dir="rtl"] .sprite-label { padding-right: 0; padding-left: min(12.5rem, 46vw); text-align: right; }
[dir="rtl"] .sprite-wrap { right: auto; left: -20px; justify-content: flex-start; }
[dir="rtl"] .sprite-wrap img { object-position: left; }
[dir="rtl"] .field input { padding: 0 16px 0 56px; }
[dir="rtl"] .send-btn { right: auto; left: 10px; }
[dir="rtl"] .ticket-left { text-align: right; }
[dir="rtl"] .lang-opt { text-align: right; align-items: flex-end; }
