
  :root{
    --bg:#0b0c10;
    --card:#11131a;
    --muted:#9aa3b2;
    --text:#e9eef6;
    --line:#242837;
    --accent:#b42dff; /* accent */
    --accent2:#c85cff;
    --ok:#34d399;
    --warn:#fbbf24;
    --danger:#fb7185;
    --shadow: 0 20px 70px rgba(0,0,0,.55);
    --r:18px;
  }

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

  *{box-sizing:border-box}
  body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1000px 600px at 20% 10%, rgba(196, 22, 211, 0.24), transparent 60%),
    #16061e;
  color:var(--text);
  min-height:100svh;

  display:flex;
  justify-content:center;
  align-items:flex-start;

  padding-top:150px;
  padding-left:16px;
  padding-right:16px;
  padding-bottom:28px;
}

  .wrap{width:100%; max-width:560px;}
  .brand{
    display:flex; align-items:center; gap:10px;
    margin:0 0 14px 0;
    opacity:.95;
  }
  .logo{

  }
  .brand h1{font-size:16px; letter-spacing:.2px; margin:0;}
  .brand span{color:var(--muted); font-size:13px; margin-left:auto}

  .card{
    animation: cardEnter 0.45s ease-out both;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
    border:1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    overflow:hidden;
  }

  .top{
    padding:22px 22px 10px;
    border-bottom:1px solid rgba(255,255,255,.06);
  }
  .kicker{color:var(--muted); font-size:18px; margin:0 0 20px 0; text-align:center;}
  .title{font-size:22px; margin:0 0 8px; letter-spacing:-.2px}
  .sub{color:var(--muted); font-size:14px; margin:0 0 6px; line-height:1.45}

  .stepper{
    display:flex; gap:8px; align-items:center; margin-top:14px;
  }
  .pill{
    flex:1;
    height:6px;
    border-radius:999px;
    background: rgba(255,255,255,.08);
    overflow:hidden;
  }
  .pill > i{
    display:block; height:100%;
    background: linear-gradient(90deg,var(--accent),var(--accent2));
    width:0%;
  }

/* Sex-select micro-reward */
@keyframes selectPop {
  0%   { transform: translateY(0) scale(1); }
  35%  { transform: translateY(-2px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes glowSweep {
  0%   { box-shadow: 0 0 0 0 rgba(180,45,255,.00); }
  45%  { box-shadow: 0 0 0 6px rgba(180,45,255,.22); }
  100% { box-shadow: 0 0 0 0 rgba(180,45,255,.00); }
}

/* Triggered class */
.card.sex-selected{
  animation: selectPop 220ms ease-out;
}

.card.sex-selected .btn.primary{
  animation: glowSweep 360ms ease-out;
}

/* Optional: tiny accent on the select itself */
select.sex-flash{
  animation: glowSweep 360ms ease-out;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce){
  .card.sex-selected,
  .card.sex-selected .btn.primary,
  select.sex-flash{
    animation: none !important;
  }
}
/* Micro-confetti container */
.confetti {
  position: absolute;
  left: 50%;
  top: 345px;              /* around the select area; tweak if needed */
  transform: translateX(-50%);
  width: 1px;
  height: 1px;
  pointer-events: none;
  z-index: 10;
}

/* Individual particle */
.confetti i{
  position: absolute;
  left: 0;
  top: 0;

  width: 6px;
  height: 6px;
  opacity: 0;

  background: linear-gradient(135deg, var(--confetti-a, var(--accent)), var(--confetti-b, var(--accent2)));
  transform: translate(0,0) rotate(0deg);
  animation: confettiFly 780ms cubic-bezier(.16,.84,.44,1) forwards;

  /* richer look */
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 10px 22px rgba(180,45,255,.12);
  filter: saturate(1.08);
}

.confetti i.dot { border-radius: 999px; }
.confetti i.shard { border-radius: 2px; width: 2px; height: 10px; }
.confetti i.spark { border-radius: 999px; width: 2px; height: 2px; box-shadow: 0 0 10px rgba(180,45,255,.45); }

@keyframes confettiFly{
  0%{
    opacity: 0;
    transform: translate(0,0) rotate(0deg) scale(.8);
  }
  10%{ opacity: 1; }
  100%{
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1);
    filter: blur(.35px);
  }
}

/* Make sure the card can host absolute-positioned confetti */
.card{ position: relative; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .confetti { display:none !important; }
  .confetti i{ animation:none !important; }
}

/* Step pill fill animation */
.pill > i{
  width: 0%;
  transition: width 180ms ease-out;
  animation: pillFill 180ms ease-out forwards;
  animation-delay: var(--d, 0ms);
}


/* Active-step breath (slow + readable) */
@keyframes pillBreath{
  0%, 100%{
    filter: brightness(1);
    box-shadow:
      0 0 0 rgba(180,45,255,0),
      0 0 0 rgba(180,45,255,0);
    transform: scale(1);
    opacity: 1;
  }
  50%{
    filter: brightness(1.75);
    box-shadow:
      0 0 22px rgba(180,45,255,.42),
      0 0 44px rgba(180,45,255,.18);
    transform: scale(1.03);
    opacity: 1;
  }
}

/* Only the current step breathes */
.pill.active > i{
  animation:
    pillFill 190ms ease-out forwards,
    pillBreath 1800ms cubic-bezier(.45,0,.55,1) 320ms infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .pill.active > i{ animation: none !important; }
}


@keyframes pillFill{
  from { width: 0%; }
  to   { width: var(--w, 0%); }
}


  .body{padding:18px 22px 22px;}
  .grid{display:grid; grid-template-columns: 1fr; gap:14px;}
  @media (min-width: 520px){
    .grid.two{grid-template-columns: 1fr 1fr;}
  }

  label{
    display:block;
    font-size:13px;
    color:var(--muted);
    margin:10px 0 6px;
  }

  input, select, textarea{
    width:100%;
    background: rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    padding: 12px 12px;
    color: var(--text);
    outline:none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
  }

  textarea{min-height:140px; resize:vertical; line-height:1.5}

  input:focus, select:focus, textarea:focus{
    border-color: rgba(180,45,255,.55);
    box-shadow: 0 0 0 4px rgba(180,45,255,.18);
  }

  .hint{
    color: var(--muted);
    font-size:12px;
    margin-top:8px;
    line-height:1.35;
  }

  .row{
    display:flex; gap:12px; align-items:flex-start; margin-top:12px;
  }
  .check{
    display:flex; gap:10px; align-items:flex-start;
    color: var(--muted);
    font-size:13px;
    line-height:1.35;
    margin-top:12px;
  }
  .check input{width:18px; height:18px; margin-top:2px}

  .actions{
    display:flex;
    gap:10px;
    margin-top:18px;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
  }

  .btn{
    appearance:none;
    border:0;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    cursor:pointer;
    transition: transform .08s ease, filter .15s ease, opacity .15s ease;
  }
  .btn:active{transform: translateY(1px)}
  .btn.primary{
    background: linear-gradient(135deg,var(--accent),var(--accent2));
    color: #120507;
  }
  .btn.ghost{
    background: transparent;
    color: var(--text);
    border:1px solid rgba(255,255,255,.16);
  }
  .btn:disabled{opacity:.55; cursor:not-allowed}

  .link{
    color: var(--text);
    text-decoration:none;
    border-bottom: 1px solid rgba(255,255,255,.18);
    padding-bottom:1px;
  }
  .link:hover{border-bottom-color: rgba(180,45,255,.55)}

  .error{
    margin-top:12px;
    padding:10px 12px;
    border-radius: 12px;
    background: rgba(251,113,133,.10);
    border:1px solid rgba(251,113,133,.25);
    color: #ffd3dc;
    font-size:13px;
  }
  .success{
    margin-top:12px;
    padding:10px 12px;
    border-radius: 12px;
    background: rgba(52,211,153,.10);
    border:1px solid rgba(52,211,153,.25);
    color: #d4ffe9;
    font-size:13px;
  }

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


/* iOS: avoid weird text autosizing */
html { -webkit-text-size-adjust: 100%; }

@media (max-width: 480px){
  body{
    padding-top:96px;
    padding-left:12px;
    padding-right:12px;
    padding-bottom:16px;
  }

  .top{
    padding: 22px 20px 12px;
  }

  .body{
    padding: 18px 20px 22px;
  }

  /* ⬆️ Larger, more luxurious inputs */
  input, select, textarea{
    padding: 16px 16px;
    font-size: 19px !important;
    line-height: 1.3;
    border-radius: 16px;
  }

  /* Buttons should match input heft */
  .btn{
    padding: 16px 18px;
    font-size: 19px !important;
    border-radius: 16px;
  }

  /* Headline stays strong but not oversized */
  .title{ font-size: 25px; }
  .kicker{ font-size: 16px; }
}
.body{
    padding: 18px 20px 22px;
  }

  /* ⬆️ Larger, more luxurious inputs */
  input, select, textarea{
    padding: 16px 16px;        /* was 14px */
    font-size: 19px !important;           /* key iOS comfort size */
    line-height: 1.3;
    border-radius: 16px;
  }

  /* Buttons should match input heft */
  .btn{
    padding: 16px 18px;
    font-size: 19px !important;
    border-radius: 16px;
  }

  /* Headline stays strong but not oversized */
  .title{ font-size: 25px; }
  .kicker{ font-size: 16px; }
}

.confetti {
  top: 100px;
}
option {color: #636363 !important}
