/* ============================================================
   Antonia™ — Satire-Dating-Gauntlet. Warm, verspielt, premium.
   ============================================================ */
:root {
  --pink: #ff4d6d;
  --pink-dark: #e0395a;
  --purple: #9b5de5;
  --gold: #ffb703;
  --ink: #2a1622;
  --ink2: #6b5460;
  --ink3: #a9939e;
  --card: #ffffff;
  --line: #f1dfe6;
  --ok: #1faa6b;
  --bad: #ff3b30;
  --shadow: 0 18px 50px rgba(196, 53, 88, 0.18);
  --radius: 26px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }   /* author display rules must not override the hidden attribute */
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  color: var(--ink);
  min-height: 100dvh;
  background: linear-gradient(160deg, #ffe3ec 0%, #fff5ef 38%, #f3e8ff 100%);
  background-attachment: fixed;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 16px;
  overflow-x: hidden;
}

/* floating hearts background */
.bg-hearts { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-hearts span {
  position: absolute; bottom: -40px; font-size: 22px; opacity: .5;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  to { transform: translateY(-115dvh) rotate(40deg); opacity: 0; }
}

/* phone column */
.phone {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: min(860px, 94dvh);
  display: flex; flex-direction: column;
}

/* top bar + progress */
.topbar {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center;
  gap: 10px; padding: 14px 16px 0;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; color: var(--ink); font-size: 22px; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.08); display: grid; place-items: center;
}
.icon-btn:disabled { opacity: .35; cursor: default; }
.brand-mini { font-weight: 800; font-size: 18px; letter-spacing: -.3px; }
.brand-mini span { color: var(--pink); font-size: 11px; vertical-align: super; }
.step-count { font-size: 12px; font-weight: 700; color: var(--ink3); }
.progress { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #f3dde5; overflow: hidden; margin-top: 12px; }
.progress-fill { height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--pink), var(--purple)); transition: width .45s cubic-bezier(.4,0,.2,1); }

/* stage / steps */
.stage { flex: 1; padding: 18px 20px 26px; overflow-y: auto; }
.step { animation: stepIn .4s cubic-bezier(.2,.7,.2,1); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } }

.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--pink); }
h1.title { font-size: 27px; line-height: 1.12; font-weight: 800; letter-spacing: -.6px; margin: 8px 0 6px; }
h2.title { font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -.4px; margin: 6px 0 6px; }
.lead { font-size: 15px; color: var(--ink2); line-height: 1.5; margin: 0 0 18px; }
.fineprint { font-size: 12px; color: var(--ink3); line-height: 1.5; }

/* hero */
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  background: #fff; color: var(--pink-dark); padding: 7px 13px; border-radius: 999px;
  box-shadow: 0 3px 12px rgba(196,53,88,.14); margin-bottom: 4px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31,170,107,.18); }
.avatar-wrap { display: flex; justify-content: center; margin: 14px 0 6px; }
.avatar {
  width: 168px; height: 168px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #fff 0 6px, transparent 7px),
    radial-gradient(circle at 68% 30%, #fff 0 6px, transparent 7px),
    linear-gradient(145deg, var(--pink), var(--purple));
  display: grid; place-items: flex-end center; font-size: 84px; line-height: 1;
  box-shadow: 0 14px 36px rgba(155,93,229,.35), inset 0 -10px 20px rgba(0,0,0,.06);
  position: relative; overflow: hidden;
}
.avatar::after { content: "👩"; font-size: 120px; position: absolute; bottom: -14px; }
.stat-row { display: flex; gap: 10px; margin: 18px 0; }
.stat { flex: 1; background: #fff; border-radius: 18px; padding: 12px 8px; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.stat b { display: block; font-size: 20px; font-weight: 800; }
.stat span { font-size: 11px; color: var(--ink3); font-weight: 600; }

/* buttons */
.btn {
  width: 100%; border: none; cursor: pointer; font-family: inherit;
  font-size: 17px; font-weight: 800; letter-spacing: -.2px;
  padding: 16px; border-radius: 18px; color: #fff;
  background: linear-gradient(120deg, var(--pink), var(--pink-dark));
  box-shadow: 0 10px 24px rgba(224,57,90,.34); transition: transform .12s, box-shadow .2s, filter .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.btn:hover { filter: brightness(1.03); }
.btn:active { transform: scale(.975); }
.btn:disabled { filter: grayscale(.5) brightness(.95); opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.btn.purple { background: linear-gradient(120deg, var(--purple), #6d28d9); box-shadow: 0 10px 24px rgba(109,40,217,.3); }
.btn.small { width: auto; font-size: 14px; padding: 11px 16px; border-radius: 14px; }
.btn-row { display: flex; gap: 10px; margin-top: 16px; }
.btn-row .btn { width: auto; flex: 1; }
.sticky-cta { position: sticky; bottom: 0; padding-top: 14px; margin-top: 8px; background: linear-gradient(to top, var(--card) 70%, transparent); }

/* checkbox cards */
.check-list { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 8px; }
.check {
  display: flex; align-items: center; gap: 13px; padding: 14px 15px; border-radius: 16px;
  background: #fff; border: 2px solid transparent; box-shadow: 0 3px 10px rgba(0,0,0,.04);
  cursor: pointer; transition: border-color .15s, background .15s, transform .1s; user-select: none;
}
.check:active { transform: scale(.99); }
.check.on { border-color: var(--pink); background: #fff0f3; }
.check .box {
  width: 26px; height: 26px; border-radius: 9px; border: 2px solid #e3cdd6; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 900; transition: .15s;
}
.check.on .box { background: var(--pink); border-color: var(--pink); }
.check .box::after { content: "✓"; opacity: 0; transform: scale(.4); transition: .15s; }
.check.on .box::after { opacity: 1; transform: scale(1); }
.check .lbl { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.check .lbl small { display: block; font-weight: 500; color: var(--ink3); font-size: 12px; margin-top: 2px; }

/* hobby chips */
.input-row { display: flex; gap: 8px; }
.text-in {
  flex: 1; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 14px 15px; border-radius: 14px; border: 2px solid var(--line); background: #fff; outline: none;
}
.text-in:focus { border-color: var(--pink); }
textarea.text-in { resize: none; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px;
  background: linear-gradient(120deg, #fff0f3, #f3e8ff); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; animation: stepIn .25s;
}
.chip button { border: none; background: rgba(0,0,0,.08); width: 18px; height: 18px; border-radius: 50%; cursor: pointer; color: var(--ink2); font-size: 12px; line-height: 1; }

/* file dropzones */
.drop {
  border: 2.5px dashed #e6c9d4; border-radius: 20px; background: #fff7fa;
  padding: 26px 18px; text-align: center; cursor: pointer; transition: .15s; position: relative;
}
.drop:hover, .drop.hot { border-color: var(--pink); background: #fff0f3; }
.drop .ico { font-size: 38px; }
.drop .big { font-size: 15px; font-weight: 800; margin-top: 6px; }
.drop .sub { font-size: 12.5px; color: var(--ink3); margin-top: 3px; }
.drop input[type=file] { display: none; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumb { width: 74px; height: 74px; border-radius: 14px; object-fit: cover; box-shadow: 0 3px 10px rgba(0,0,0,.12); background: #eee; position: relative; }
.thumb-wrap { position: relative; }
.thumb-wrap .x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--bad); color: #fff; border: 2px solid #fff; font-size: 12px; cursor: pointer; display: grid; place-items: center; }
.filecount { font-size: 13px; font-weight: 700; margin-top: 12px; }

/* scanner */
.scanner { margin-top: 16px; background: #1c1322; color: #fff; border-radius: 18px; padding: 16px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.7; box-shadow: var(--shadow); }
.scanner .ln { opacity: 0; animation: lnIn .01s forwards; }
@keyframes lnIn { to { opacity: 1; } }
.scanner .ok { color: #51e1a2; }
.scanner .warn { color: var(--gold); }
.scanbar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; margin: 8px 0; }
.scanbar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--purple)); animation: fillbar 2.2s ease forwards; }
@keyframes fillbar { to { width: 100%; } }

/* note / callout */
.note { background: #fff; border-left: 4px solid var(--gold); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.45; color: var(--ink2); margin: 14px 0; box-shadow: 0 3px 10px rgba(0,0,0,.04); }
.note.bad { border-left-color: var(--bad); }
.note b { color: var(--ink); }

/* paypal */
.pp-btn {
  width: 100%; border: none; cursor: pointer; border-radius: 999px; padding: 15px;
  background: #ffc439; color: #003087; font-weight: 800; font-size: 17px; font-style: italic;
  box-shadow: 0 8px 20px rgba(255,196,57,.4); display: flex; align-items: center; justify-content: center; gap: 2px;
}
.pp-btn:active { transform: scale(.98); }
.pp-btn .pal { color: #003087; } .pp-btn .pal2 { color: #009cde; }
.pp-row { display:flex; align-items:center; justify-content:space-between; background:#fff; border-radius:16px; padding:14px 16px; box-shadow:0 4px 14px rgba(0,0,0,.05); margin: 6px 0 16px; }
.pp-row .amt { font-size: 26px; font-weight: 800; }

/* chat */
.chat { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 6px; min-height: 220px; }
.bubble { max-width: 80%; padding: 11px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.4; animation: stepIn .3s; }
.bubble.them { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.bubble.me { align-self: flex-end; background: linear-gradient(120deg, var(--pink), var(--pink-dark)); color: #fff; border-bottom-right-radius: 5px; }
.bubble .who { font-size: 11px; font-weight: 800; color: var(--purple); margin-bottom: 3px; }
.typing { align-self: flex-start; background: #fff; padding: 13px 16px; border-radius: 18px; box-shadow: 0 3px 10px rgba(0,0,0,.06); display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink3); animation: blink 1.2s infinite both; }
.typing i:nth-child(2){ animation-delay:.2s } .typing i:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,80%,100%{opacity:.25} 40%{opacity:1} }
.chat-input { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.hint-pill { font-size: 11.5px; font-weight: 700; color: var(--purple); background: #f3e8ff; border-radius: 999px; padding: 5px 11px; display: inline-block; margin-bottom: 8px; }

/* verdict */
.verdict { text-align: center; }
.verdict .seal { font-size: 78px; animation: pop .5s cubic-bezier(.2,1.4,.3,1); }
@keyframes pop { from { transform: scale(0) rotate(-20deg); } }
.score-ring { width: 150px; height: 150px; margin: 6px auto 10px; border-radius: 50%;
  display: grid; place-items: center; font-size: 40px; font-weight: 900;
  background: conic-gradient(var(--pink) var(--deg,0deg), #f1dfe6 0); position: relative; }
.score-ring::before { content:""; position:absolute; inset:12px; background:#fff; border-radius:50%; }
.score-ring span { position: relative; }
.receipt { background:#fff; border-radius:16px; padding: 8px 6px; margin: 16px 0; box-shadow: 0 4px 14px rgba(0,0,0,.05); text-align: left; }
.receipt .li { display:flex; justify-content:space-between; gap:10px; padding:9px 12px; font-size:13.5px; border-bottom:1px dashed var(--line); }
.receipt .li:last-child { border-bottom:none; }
.receipt .li b { font-weight: 700; }
.receipt .pass { color: var(--ok); font-weight: 800; }
.receipt .fail { color: var(--bad); font-weight: 800; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(40,12,28,.5); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.modal { width: 100%; max-width: 360px; background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.35); animation: pop .35s cubic-bezier(.2,1.3,.3,1); text-align: center; }
.modal h3 { margin: 4px 0 8px; font-size: 20px; }
.modal p { font-size: 14px; color: var(--ink2); line-height: 1.5; margin: 0 0 18px; }

/* toast */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 60;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,.3); opacity: 0; transition: .3s; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.center { text-align: center; }
.mt { margin-top: 16px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: rot 1s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

@media (max-width: 380px) {
  body { padding: 0; }
  .phone { border-radius: 0; min-height: 100dvh; }
}
