/* PureZawaaj — styles */
:root {
  /* Soft blue and rose: calm, modest, warm */
  --bg: #f3f5fa;
  --surface: #ffffff;
  --surface-2: #e9edf6;
  --ink: #1b2540;
  --muted: #5d6680;
  --line: #dde2ee;
  --lapis: #1e3a6b;
  --lapis-2: #2a4d88;
  --green: #2f5fa8;
  --green-2: #244c8a;
  --sage: #e4ecf9;
  --gold: #d47a9a;
  --gold-soft: #fbe7ef;
  --danger: #a3403a;
  --danger-soft: #f6e0dc;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(30, 58, 107, .06), 0 10px 30px rgba(30, 58, 107, .07);
  --serif: 'Marcellus', 'Trajan Pro', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --arabic: 'Amiri', 'Traditional Arabic', serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--green); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; color: var(--lapis); }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }
.medium { max-width: 760px; }
.app { flex: 1; padding: 28px 0 56px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }
.hidden { display: none !important; }

/* Top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--lapis); font-family: var(--serif); font-size: 1.4rem; font-weight: 400; letter-spacing: .02em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; position: relative; }
.nav a:hover, .nav a.active { background: var(--sage); color: var(--green); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #fff; font-size: .7rem; font-weight: 600; margin-left: 4px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* Buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem var(--sans); padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-2); }
.btn.gold { background: var(--gold); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: transparent; border-color: #e3bfb9; color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { padding: 7px 14px; font-size: .85rem; }
.btn.block { width: 100%; }

label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel], select, textarea {
  width: 100%; font: 1rem var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sage); border-color: var(--green); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.field { margin-bottom: 18px; }
.fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.fieldset legend { padding: 0; font-weight: 500; font-size: .92rem; margin-bottom: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
@media (max-width: 560px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; cursor: pointer; }
.choice input:checked + span { background: var(--green); color: #fff; border-color: var(--green); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card.flat { box-shadow: none; }
.notice { border-radius: 12px; padding: 14px 16px; background: var(--sage); color: var(--green); font-size: .93rem; }
.notice.gold { background: var(--gold-soft); color: #8a3a57; }
.notice.danger { background: var(--danger-soft); color: var(--danger); }
.error { color: var(--danger); font-size: .9rem; margin-top: 8px; }

/* Landing */
.hero { padding: 40px 0 24px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.eyebrow { font-size: .9rem; font-weight: 500; color: var(--gold); margin-bottom: 10px; }
.hero-art { background: var(--green); border-radius: 24px; padding: 32px; color: #f7f3ea; position: relative; overflow: hidden; }
.hero-art .ayah { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; }
.hero-art .ref { margin-top: 12px; color: var(--gold-soft); font-size: .85rem; }
.hero-art::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(201, 162, 74, .25); }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--gold-soft); color: #8a3a57; display: grid; place-items: center; font-weight: 600; margin-bottom: 12px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .promises { grid-template-columns: 1fr; } }

/* Wizard */
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin: 8px 0 24px; }
.progress > div { height: 100%; background: var(--gold); transition: width .3s; }

/* Matches */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.match { display: flex; flex-direction: column; }
.match .photo { aspect-ratio: 4/5; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; margin-bottom: 16px; color: var(--muted); text-align: center; padding: 16px; }
.match .photo.veiled { aspect-ratio: 16/10; }
.match .photo img { width: 100%; height: 100%; object-fit: cover; }
.match .photo .veil { font-family: var(--serif); font-size: 1rem; }
.match .photo .initial { width: 72px; height: 72px; border-radius: 50%; background: var(--sage); color: var(--green); display: grid; place-items: center; font-family: var(--serif); font-size: 2rem; margin: 0 auto 10px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 12px 0; font-size: .9rem; }
.facts dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; font-weight: 500; }
.bio { font-size: .95rem; white-space: pre-wrap; background: var(--surface-2); padding: 12px; border-radius: 10px; }
.match .actions { margin-top: auto; padding-top: 16px; display: flex; gap: 10px; }
.match .actions .btn { flex: 1; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.pill.green { background: var(--sage); color: var(--green); }
.pill.gold { background: var(--gold-soft); color: #8a3a57; }

/* Chat */
.chat { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
@media (max-width: 860px) { .chat { grid-template-columns: 1fr; } }
.chat-main { display: flex; flex-direction: column; height: min(72vh, 760px); padding: 0; overflow: hidden; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #fcfaf4; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.msg.mine { align-self: flex-end; background: var(--green); color: #fff; border-color: var(--green); }
.msg.admin { background: var(--gold-soft); border-color: #f3c6d6; }
.msg.wali { background: var(--sage); border-color: #c8d6ef; }
.msg .who { font-size: .75rem; font-weight: 600; opacity: .8; margin-bottom: 2px; }
.msg .when { font-size: .7rem; opacity: .65; margin-top: 4px; }
.msg .text { white-space: pre-wrap; word-wrap: break-word; }
.composer { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 10px; background: var(--surface); }
.composer textarea { min-height: 46px; height: 46px; }
.people li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.people { list-style: none; padding: 0; margin: 0 0 12px; }

/* Lists */
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li.unread { border-left: 3px solid var(--gold); padding-left: 12px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: 500 .95rem var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--green); border-color: var(--gold); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.thumbs img { aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; width: 100%; }

/* Misc */
.loading { display: grid; place-items: center; padding: 80px 0; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .92rem; opacity: 0; pointer-events: none; transition: all .25s; max-width: calc(100% - 32px); z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }
.dialog { border: 0; border-radius: var(--radius); padding: 24px; max-width: 420px; width: calc(100% - 32px); box-shadow: var(--shadow); background: var(--surface); color: var(--ink); }
.dialog::backdrop { background: rgba(31, 42, 36, .45); }
.footer { border-top: 1px solid var(--line); padding: 20px 0; font-size: .85rem; color: var(--muted); }
.footer-inner { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.brand-sm { font-family: var(--serif); color: var(--lapis); }
.copy-box { display: flex; gap: 8px; }

.code-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }

/* Camera */
.cam-dialog { max-width: 520px; }
.cam-box { position: relative; background: #111; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; display: grid; place-items: center; margin: 12px 0; }
.cam-box video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-box .spinner { position: absolute; border-color: #444; border-top-color: #fff; }

/* Guidance */
.lead { font-size: 1.08rem; }
.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list li { padding: 12px 0 12px 22px; border-top: 1px solid var(--line); position: relative; display: flex; flex-direction: column; gap: 4px; }
.guide-list li:first-child { border-top: 0; }
.guide-list li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.guide-list .src { font-size: .8rem; color: var(--muted); }
.guide-list .src a { color: var(--green-2); }
.copy-box input { font-size: .85rem; }

/* "Other" answer boxes */
.other-input { display: none; margin-top: 10px; }
.other-input.show { display: block; }
input[type=search] { width: 100%; font: 1rem var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }

/* Searchable picker */
.picker-search { margin-bottom: 10px; }
.picker { display: flex; flex-wrap: wrap; gap: 8px; max-height: 230px; overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* Before you begin slides */
.dots { display: flex; gap: 8px; justify-content: center; margin: 8px 0 18px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: all .2s; }
.dots span.done { background: var(--gold); opacity: .55; }
.dots span.on { background: var(--gold); width: 26px; border-radius: 5px; }
.slide { animation: slidein .25s ease; min-height: 320px; display: flex; flex-direction: column; }
.slide > .row:last-child { margin-top: auto !important; padding-top: 20px; }
@keyframes slidein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* Unfinished-profile reminder */
.reminder { background: var(--gold-soft); color: #8a3a57; font-size: .92rem; border-bottom: 1px solid #f3c6d6; }
.reminder .wrap { padding-top: 10px; padding-bottom: 10px; }

/* No-match tips */
.tips { list-style: none; padding: 0; margin: 0; }
.tips li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tips li:first-child { border-top: 0; }

/* Live verification */
.cam-guide { position: absolute; inset: 12% 28%; border: 3px dashed rgba(255, 255, 255, .55); border-radius: 50%; pointer-events: none; }
.verify-steps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.verify-steps span { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.verify-steps span.done { background: var(--sage); color: var(--green); font-weight: 600; }
.verify-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 10px; }
.verify-card .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.verify-card figure { margin: 0; }
.verify-card img { aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; width: 100%; }
.verify-card figcaption { font-size: .75rem; color: var(--muted); text-align: center; margin-top: 4px; }

/* Legal pages */
.legal h3 { margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }

/* Match card: how well they fit your preferences */
.differs { font-size: .85rem; background: var(--gold-soft); color: #8a3a57; border-radius: 10px; padding: 8px 12px; margin: 10px 0 4px; }
.differs.good { background: var(--sage); color: var(--green); }

/* =====================================================================
   Landing — "two becoming one pair"
   ===================================================================== */
.app:has(> .opening) { padding-top: 0; }
.opening {
  background-color: var(--lapis);
  background-image:
    radial-gradient(ellipse at 75% 40%, rgba(42, 77, 136, .9), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M22 50V34c0-7 5-10 10-16 5 6 10 9 10 16v16' fill='none' stroke='%23f1a7c0' stroke-opacity='.10' stroke-width='1'/%3E%3C/svg%3E");
  color: #eef1f8;
  padding: 72px 0 80px;
  margin-bottom: 64px;
}
.opening-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.opening h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 3.9rem); line-height: 1.08; max-width: 12ch; }
.opening .lead { color: #cfd9ec; font-size: 1.12rem; line-height: 1.65; max-width: 46ch; margin-top: 18px; }
.opening-note { margin-top: 26px; font-size: .9rem; color: #f1a7c0; }
.btn.on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.on-dark:hover { background: rgba(255, 255, 255, .08); }
.btn.gold { background: #f1a7c0; color: #1e3a6b; }
.btn.gold:hover { background: #f6bccf; }
.opening-art { margin: 0; text-align: center; }
.opening-art figcaption { max-width: 34ch; margin: 18px auto 0; font-size: .95rem; line-height: 1.6; color: #c3cfe6; }
.opening-art .ayah { font-family: var(--serif); font-size: 1.05rem; color: #eef1f8; }
.opening-art .ref { display: block; margin-top: 6px; font-size: .82rem; color: #f1a7c0; }
@media (max-width: 860px) {
  .opening { padding: 48px 0 56px; }
  .opening-grid { grid-template-columns: 1fr; gap: 32px; }
  .opening-art { order: -1; }
  .scene { max-width: 300px; }
}

/* (scene styles live in the Motion section at the end) */

/* How it works: one thread connecting the four steps */
.path-section { margin-bottom: 72px; }
.path { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.path::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--green)); opacity: .5; }
.path li { counter-increment: step; position: relative; }
.path li::before {
  content: ""; display: block; width: 30px; height: 30px; margin: 5px 0 23px 5px;
  background: var(--bg); border: 1.5px solid var(--gold); border-radius: 5px; transform: rotate(45deg);
}
.path li::after {
  content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px;
  display: grid; place-items: center; color: var(--lapis); font-family: var(--serif); font-size: 1.05rem;
}
.path li h3 { font-size: 1.2rem; margin-bottom: .35em; }
.path li p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 820px) {
  .path { grid-template-columns: 1fr; gap: 22px; padding-left: 58px; }
  .path::before { top: 10px; bottom: 10px; left: 19px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--gold), var(--green)); }
  .path li::before { position: absolute; left: -53px; top: 0; margin: 0; }
  .path li::after { left: -58px; top: -5px; }
}

/* What we hold to: three quiet columns, no cards */
.promise-section { margin-bottom: 80px; }
.promise-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.promise-row > div { padding: 24px 28px 8px 0; }
.promise-row > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.promise-row h3 { font-size: 1.25rem; }
.promise-row p { color: var(--muted); margin: 0; }
@media (max-width: 720px) {
  .promise-row { grid-template-columns: 1fr; }
  .promise-row > div, .promise-row > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
.closing { margin-top: 56px; padding: 40px 24px; text-align: center; border-radius: 28px; background: var(--lapis); color: #eef1f8; }
.closing p { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 18px; color: #fff; }
.closing .btn.primary { background: #f1a7c0; color: var(--lapis); }

/* Early-days note on the matches page */
.early-note { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 14px 16px; margin: 4px 0 22px; font-size: .93rem; color: var(--muted); }
.early-note svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 2px; }
.early-note p { margin: 0; }
.early-note strong { color: var(--ink); }

/* =====================================================================
   Motion — "two lights, one path"
   ===================================================================== */
:root { --ease-out: cubic-bezier(.2, .75, .2, 1); --ease-path: cubic-bezier(.45, 0, .3, 1); }
@keyframes pz-draw { to { stroke-dashoffset: 0; } }
@keyframes pz-fade { to { opacity: 1; } }
@keyframes pz-out { to { opacity: 0; } }
@keyframes pz-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pz-from-right { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes pz-from-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes pz-bloom { from { opacity: 0; transform: scale(.2) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes pz-spin { to { transform: rotate(360deg); } }
@keyframes pz-breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.22); opacity: 1; } }
@keyframes pz-twinkle { 0%, 100% { opacity: .1; transform: scale(.6); } 50% { opacity: .9; transform: scale(1); } }
@keyframes pz-flash { 0% { transform: scale(.4); opacity: 0; } 40% { transform: scale(1.6); opacity: 1; } 100% { transform: scale(1); opacity: .9; } }
@keyframes pz-pop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes pz-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Home scene */
.scene { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.scene .draw, .scene .trail { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.scene .arch { stroke: #f1a7c0; stroke-width: 2; animation: pz-draw 1.5s ease-in-out .1s forwards; }
.scene .arch-in { stroke: #f1a7c0; stroke-width: 1; stroke-opacity: .4; animation: pz-draw 1.5s ease-in-out .4s forwards; }
.scene .sill { stroke: #f1a7c0; stroke-width: 1.4; stroke-opacity: .6; animation: pz-draw .7s ease-out 1.1s forwards; }
.scene .arch-fill { fill: url(#pz-arch-fill); opacity: 0; animation: pz-fade 1.2s ease 1.4s forwards; }
.scene .trail { stroke: #f1a7c0; stroke-width: 1.6; stroke-opacity: .55; }
.scene .tl, .scene .tr { animation: pz-draw 2.6s var(--ease-path) .7s forwards; }
.scene .rise { stroke-opacity: .8; stroke-width: 2; animation: pz-draw 1.3s var(--ease-path) 3.5s forwards; }
.scene .glow { fill: url(#pz-glow); transform-box: fill-box; transform-origin: center; }
.scene .core { fill: #fff4f8; }
.scene .la, .scene .lb { opacity: 0; animation: pz-fade .4s ease .6s forwards, pz-out .35s ease 3.3s forwards; }
.scene .one { opacity: 0; animation: pz-fade .2s ease 3.25s forwards; }
.scene .one .glow { animation: pz-flash .9s var(--ease-out) 3.25s both, pz-breathe 4s ease-in-out 5.2s infinite; }
.scene .rosette { fill: rgba(241, 167, 192, .1); stroke: #f6c1d3; stroke-width: 1.6; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; opacity: 0; animation: pz-bloom 1s var(--ease-out) 4.6s forwards; }
.scene .rays { stroke: #f1a7c0; stroke-width: 1.1; stroke-linecap: round; transform-box: fill-box; transform-origin: center; opacity: 0; animation: pz-fade 1.4s ease 5s forwards, pz-spin 90s linear 5s infinite; }
.scene .words text { font-family: var(--arabic); font-size: 25px; fill: #fde8ef; }
.scene .words-en text { font-family: var(--sans); font-size: 10.5px; letter-spacing: .08em; fill: #f1a7c0; }
.scene .words text, .scene .words-en text { opacity: 0; animation: pz-fade 1s ease forwards; }
.scene .words .w1 { animation-delay: 5.3s; } .scene .words .w2 { animation-delay: 5.7s; }
.scene .words-en .w1 { animation-delay: 5.8s; } .scene .words-en .w2 { animation-delay: 6.1s; }
.scene .spark { fill: #f6c1d3; transform-box: fill-box; transform-origin: center; opacity: 0; animation: pz-twinkle 3.6s ease-in-out calc(1s + var(--d)) infinite; }
.opening-art figcaption { opacity: 0; animation: pz-rise 1s var(--ease-out) 6.2s forwards; }
.opening-copy > * { opacity: 0; animation: pz-rise .8s var(--ease-out) forwards; }
.opening-copy > :nth-child(1) { animation-delay: .15s; } .opening-copy > :nth-child(2) { animation-delay: .35s; }
.opening-copy > :nth-child(3) { animation-delay: .55s; } .opening-copy > :nth-child(4) { animation-delay: .8s; }
.opening { position: relative; overflow: hidden; }
.opening::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 72% 58%, rgba(241, 167, 192, .16), transparent 42%); opacity: 0; animation: pz-fade 2s ease 3.4s forwards; }
.scene.still *, .emblem.still * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }

/* Emblem (auth pages, celebrations) */
.emblem { width: 92px; height: auto; display: block; margin: 0 auto 10px; overflow: visible; }
.emblem.big { width: 200px; }
.emblem path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.emblem .e-arch { animation: pz-draw 1.1s ease-in-out forwards; }
.emblem .e-trail { stroke-opacity: .5; animation: pz-draw 1.4s var(--ease-path) .2s forwards; }
.emblem .e-star { fill: rgba(212, 122, 154, .12); stroke: var(--gold); stroke-width: 1.3; transform-box: fill-box; transform-origin: center; opacity: 0; animation: pz-bloom .8s var(--ease-out) 1.5s forwards; }
.emblem .e-light { opacity: 0; animation: pz-fade .3s ease .2s forwards; }
.emblem .glow { fill: rgba(241, 167, 192, .35); transform-box: fill-box; transform-origin: center; animation: pz-breathe 3.5s ease-in-out 1.8s infinite; }
.emblem .core { fill: var(--gold); }
.auth-card { position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: translateX(-100%); animation: pz-sweep 2.4s ease 1s forwards; }
@keyframes pz-sweep { to { transform: translateX(100%); } }

/* Page entrances */
.app.enter > * { animation: pz-rise .5s var(--ease-out) both; }
.app.enter > .opening { animation: none; }
.app.enter.fwd > *, .app.enter.back > * { animation: none; }
.app.enter.fwd .card { animation: pz-from-right .45s var(--ease-out) both; }
.app.enter.back .card { animation: pz-from-left .45s var(--ease-out) both; }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
[data-reveal].in { opacity: 1; transform: none; }
.stagger > * { animation: pz-rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + .1s); }

/* How it works: the thread draws itself as you scroll */
.path::before { transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .25s linear; opacity: .9; height: 2px; }
.path li::before { transition: transform .6s var(--ease-out), background .6s; transition-delay: calc(var(--i, 0) * 260ms + .3s); transform: rotate(45deg) scale(.4); }
.path.in li::before { transform: rotate(45deg); background: var(--gold-soft); }
.path li > * { opacity: 0; transform: translateY(10px); transition: opacity .7s, transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 260ms + .5s); }
.path.in li > * { opacity: 1; transform: none; }
@media (max-width: 820px) { .path::before { transform-origin: top; transform: scaleY(var(--p, 0)); width: 2px; } }
.closing { position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; width: 340px; height: 340px; left: 50%; top: 50%; margin: -170px 0 0 -170px; opacity: .14; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23f1a7c0' stroke-width='.8'%3E%3Ccircle cx='40' cy='50' r='26'/%3E%3Ccircle cx='60' cy='50' r='26'/%3E%3Ccircle cx='50' cy='50' r='46'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  animation: pz-spin 120s linear infinite; }
.closing > * { position: relative; }

/* Buttons: a soft sheen and a gentle press */
.btn { position: relative; overflow: hidden; transition: background .2s, transform .15s, box-shadow .25s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary::after, .btn.gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s ease; pointer-events: none; }
.btn.primary:hover::after, .btn.gold:hover::after { transform: translateX(120%); }
.btn.gold:hover, .btn.primary:hover { box-shadow: 0 6px 20px rgba(212, 122, 154, .25); }
.brand img { transition: transform 1.2s var(--ease-out); }
.brand:hover img { transform: rotate(90deg); }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease-out); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.btn::after { display: none; }
.badge:not(.hidden) { animation: pz-pop .5s var(--ease-out), pz-ring 2.4s ease-out 1s 3; }
@keyframes pz-ring { 0% { box-shadow: 0 0 0 0 rgba(212, 122, 154, .5); } 100% { box-shadow: 0 0 0 9px rgba(212, 122, 154, 0); } }

/* Loading: the star turns */
.spinner { border: 0 !important; border-radius: 0; animation: pz-spin 1.8s var(--ease-path) infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke-width='2.4'%3E%3Ccircle cx='15' cy='20' r='9' stroke='%23d47a9a'/%3E%3Ccircle cx='25' cy='20' r='9' stroke='%232f5fa8'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; }

/* Forms */
input, select, textarea { transition: border-color .2s, box-shadow .25s; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(212, 122, 154, .16); }
.choice span { transition: background .2s, color .2s, border-color .2s, transform .2s; }
.choice:hover span { border-color: var(--gold); }
.choice input:checked + span { animation: pz-pop .35s var(--ease-out); }
.error:not(:empty) { animation: pz-shake .35s ease; }
label.check { transition: background .3s; border-radius: 10px; }
label.check:has(input:checked) { background: var(--gold-soft); }
input[type=checkbox] { transition: transform .2s; }
input[type=checkbox]:checked { animation: pz-pop .3s var(--ease-out); }

/* Onboarding progress: your light travels toward the arch */
.pp { position: relative; height: 26px; margin: 10px 0 22px; }
.pp-track, .pp-fill { position: absolute; left: 0; top: 12px; height: 2px; border-radius: 2px; }
.pp-track { right: 26px; background: var(--line); }
.pp-fill { width: calc((100% - 26px) * var(--to) / 100); background: linear-gradient(90deg, var(--green), var(--gold)); animation: pp-grow 1.1s var(--ease-path) both; }
@keyframes pp-grow { from { width: calc((100% - 26px) * var(--from) / 100); } }
.pp-light { position: absolute; top: 13px; left: calc((100% - 26px) * var(--to) / 100); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff4f8; box-shadow: 0 0 0 3px rgba(241, 167, 192, .35), 0 0 16px 4px rgba(241, 167, 192, .55); animation: pp-move 1.1s var(--ease-path) both, pz-breathe 3s ease-in-out 1.2s infinite; }
@keyframes pp-move { from { left: calc((100% - 26px) * var(--from) / 100); } }
.pp-mark { position: absolute; top: 9px; width: 8px; height: 8px; margin-left: -4px; transform: rotate(45deg); background: var(--bg); border: 1.5px solid var(--line); transition: all .4s; }
.pp-mark.done { border-color: var(--gold); background: var(--gold-soft); }
.pp-arch { position: absolute; right: 0; top: -2px; width: 20px; height: 24px; }
.pp-arch path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }

/* Guidance slides */
.guide-list li { animation: pz-rise .5s var(--ease-out) both; }
.guide-list li:nth-child(1) { animation-delay: .15s; } .guide-list li:nth-child(2) { animation-delay: .27s; }
.guide-list li:nth-child(3) { animation-delay: .39s; } .guide-list li:nth-child(4) { animation-delay: .51s; }
#ack .field { animation: pz-rise .5s var(--ease-out) both; }
#ack .field:nth-of-type(1) { animation-delay: .1s; } #ack .field:nth-of-type(2) { animation-delay: .2s; } #ack .field:nth-of-type(3) { animation-delay: .3s; }
#ack .field:nth-of-type(4) { animation-delay: .4s; } #ack .field:nth-of-type(5) { animation-delay: .5s; }
.dots span { transition: all .45s var(--ease-out); }

/* Photo check: a gentle scan */
.scan { position: relative; width: 100%; height: 100%; }
.scan img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(.85); }
.scan-line { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgba(241, 167, 192, .45) 85%, rgba(255, 246, 223, .9)); animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { to { top: 100%; } }
.scan .c { position: absolute; width: 18px; height: 18px; border: 2px solid #f6c1d3; animation: pz-breathe 1.6s ease-in-out infinite; }
.scan .tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; } .scan .tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.scan .bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; } .scan .br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.scan-label { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #fff; font-size: .8rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.photo img.approved { animation: approved 1s var(--ease-out); }
@keyframes approved { 0% { filter: brightness(1.5); transform: scale(1.04); } 100% { filter: none; transform: none; } }
.photo { position: relative; }
.photo .ok-badge { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--green); display: grid; place-items: center; animation: pz-bloom .6s var(--ease-out); }
.photo .ok-badge svg { width: 16px; height: 16px; }
.photo .ok-badge path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: tick .4s ease .4s forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }

/* Matches */
.match-grid > .match { animation: pz-rise .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 140ms + .1s); }
.match .photo.veiled { background-color: var(--lapis); color: #cfd9ec; position: relative; overflow: hidden; }
.match .photo.veiled::before { content: ""; position: absolute; inset: -40px; opacity: .5; animation: lattice 28s linear infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z' fill='none' stroke='%23f1a7c0' stroke-opacity='.35' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='2' fill='%23f1a7c0' fill-opacity='.35'/%3E%3C/svg%3E"); }
@keyframes lattice { to { transform: translate(40px, 40px); } }
.match .photo.veiled > div { position: relative; }
.match .photo.veiled .initial { background: rgba(241, 167, 192, .18); color: #fde8ef; box-shadow: 0 0 0 1px rgba(241, 167, 192, .5); animation: pz-breathe 4s ease-in-out infinite; }
.match .photo.veiled .veil { color: #eef1f8; }
.match.leaving { transition: opacity .5s, transform .5s var(--ease-out); opacity: 0; transform: scale(.96) translateY(10px); }
.photo img.unveil { animation: unveil 2.2s var(--ease-out) both; }
@keyframes unveil { from { filter: blur(22px) brightness(1.2); transform: scale(1.08); } to { filter: none; transform: none; } }
.pill.gold { animation: pz-pop .5s var(--ease-out); }
.differs { animation: pz-fade .6s ease .4s both; opacity: 0; }
.early-note svg { animation: pz-spin 30s linear infinite; }
.searching { width: 150px; height: auto; display: block; margin: 0 auto 12px; overflow: visible; }
.searching .s-arch { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.searching .s-orbit { fill: none; stroke: var(--gold); stroke-opacity: .25; stroke-dasharray: 2 6; }
.searching .glow { fill: rgba(241, 167, 192, .3); transform-box: fill-box; transform-origin: center; animation: pz-breathe 3s ease-in-out infinite; }
.searching .core { fill: var(--gold); }

/* Chat */
.msg.new { animation: pz-from-left .35s var(--ease-out) both; }
.msg.mine.new { animation-name: pz-from-right; }
.messages > .msg:not(.new) { animation: pz-fade .4s ease both; opacity: 0; }
.list > li { animation: pz-rise .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.list > li.unread { position: relative; }
.list > li.unread::before { content: ""; position: absolute; left: -12px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pz-ring 2s ease-out infinite; }

/* Toasts, dialogs, banners */
.toast { transition: opacity .3s, transform .45s var(--ease-out); border-left: 3px solid var(--gold); }
.dialog[open] { animation: dlg .35s var(--ease-out); }
.dialog[open]::backdrop { animation: pz-fade .3s ease both; opacity: 0; }
@keyframes dlg { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.reminder { animation: banner .5s var(--ease-out) both; }
@keyframes banner { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Milestone moment */
.celebrate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #2a4d88, #1e3a6b 70%); color: #eef1f8; text-align: center; padding: 24px; opacity: 0; transition: opacity .45s ease; cursor: pointer; overflow: hidden; }
.celebrate.show { opacity: 1; }
.celebrate.hide { opacity: 0; }
.celebrate h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.3rem); margin-top: 8px; opacity: 0; animation: pz-rise .8s var(--ease-out) 1.4s forwards; }
.celebrate p { color: #cfd9ec; max-width: 40ch; margin: 0 auto; opacity: 0; animation: pz-rise .8s var(--ease-out) 1.8s forwards; }
.celebrate .emblem path { stroke: #f1a7c0; }
.celebrate .emblem .core { fill: #fff4f8; }
.celebrate .emblem .glow { fill: rgba(255, 233, 184, .45); }
.c-motes i { position: absolute; left: 50%; bottom: -10px; width: 6px; height: 6px; transform: rotate(45deg) scale(var(--s)); background: #f6c1d3; opacity: 0; animation: mote 3.2s ease-out var(--d) forwards; }
@keyframes mote { 0% { opacity: 0; translate: 0 0; } 20% { opacity: .9; } 100% { opacity: 0; translate: var(--x) -90vh; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal], .path li > * { opacity: 1; transform: none; }
  .scan-line, .c-motes { display: none; }
}

/* Blue and rose: the two lights, the rings, the petals */
.scene .arch { stroke: #f6c1d3; }
.scene .arch-in { stroke: #a9c8f5; }
.scene .tl { stroke: #9cc2f5; }
.scene .tr { stroke: #f4a9c3; }
.scene .rise { stroke: #f6d6e3; }
.scene .la .glow { fill: url(#pz-glow-a); } .scene .lb .glow { fill: url(#pz-glow-b); } .scene .one .glow { fill: url(#pz-glow); }
.scene .core { fill: #fff; }
.scene .halo { fill: url(#pz-glow); opacity: 0; transform-box: fill-box; transform-origin: center; animation: pz-fade 1.2s ease 4.7s forwards, pz-breathe 5s ease-in-out 6s infinite; }
.scene .ring { fill: none; stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.scene .ra { stroke: #f4a9c3; animation: pz-draw 1s var(--ease-path) 4.6s forwards; }
.scene .rb { stroke: #a9c8f5; animation: pz-draw 1s var(--ease-path) 4.95s forwards; }
.scene .one { animation: pz-fade .2s ease 3.25s forwards, pz-out 1s ease 5.2s forwards; }
.scene .petal.a { fill: #f4a9c3; } .scene .petal.b { fill: #a9c8f5; }
.scene .drift { opacity: 0; transform: translate(var(--x), -20px); animation: drift var(--t) linear calc(2s + var(--d)) infinite; }
@keyframes drift {
  0% { opacity: 0; transform: translate(var(--x), -20px) rotate(0deg); }
  12% { opacity: .55; }
  50% { transform: translate(calc(var(--x) + 26px), 210px) rotate(160deg); }
  88% { opacity: .45; }
  100% { opacity: 0; transform: translate(calc(var(--x) - 10px), 430px) rotate(320deg); }
}
.scene .words text { fill: #fde8ef; }
.scene .words-en .w1 { fill: #f4a9c3; } .scene .words-en .w2 { fill: #a9c8f5; }
.scene .spark { fill: #f6d6e3; }
.emblem .e-rings .ring { fill: none; stroke-width: 1.8; stroke-dasharray: 1; stroke-dashoffset: 1; }
.emblem .e-rings .ra { stroke: var(--gold); animation: pz-draw .8s ease 1.4s forwards; }
.emblem .e-rings .rb { stroke: var(--green); animation: pz-draw .8s ease 1.65s forwards; }
.emblem .e-light.a .glow { fill: rgba(47, 95, 168, .25); } .emblem .e-light.a .core { fill: var(--green); }
.emblem .e-light.b .glow { fill: rgba(212, 122, 154, .3); } .emblem .e-light.b .core { fill: var(--gold); }
.celebrate .emblem .e-rings .ra { stroke: #f4a9c3; } .celebrate .emblem .e-rings .rb { stroke: #a9c8f5; }
.celebrate .emblem .e-light.a .core { fill: #cfe0fb; } .celebrate .emblem .e-light.b .core { fill: #fde8ef; }
.c-motes i { width: 9px; height: 13px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.c-motes i.a { background: #f4a9c3; } .c-motes i.b { background: #a9c8f5; }
.searching .s-wait .glow { fill: rgba(212, 122, 154, .3); } .searching .s-wait .core { fill: var(--gold); }
.searching .s-seek .glow { fill: rgba(47, 95, 168, .22); } .searching .s-seek .core { fill: var(--green); }
.pp-fill { background: linear-gradient(90deg, var(--green), var(--gold)); }
.btn.gold { color: #1e3a6b; }
@media (prefers-reduced-motion: reduce) { .scene .drift { display: none; } }
.scene .rise { animation: pz-draw 1.3s var(--ease-path) 3.5s forwards, rise-dim 1.2s ease 5.4s forwards; }
@keyframes rise-dim { to { opacity: .25; } }

/* =====================================================================
   Level two: the journey, the banner, and the small delights
   ===================================================================== */
/* Line illustrations */
.art { width: 100%; max-width: 220px; height: auto; overflow: visible; }
.art .a-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: pz-draw 1.4s var(--ease-path) .15s forwards; }
.art .a-line.d1 { animation-delay: .5s; } .art .a-line.d2 { animation-delay: .85s; }
.art .faint { stroke-opacity: .45; }
.art .r { stroke: #f4a9c3; } .art .b { stroke: #a9c8f5; }
.art .a-fill.r { fill: #f4a9c3; } .art .a-fill.b { fill: #a9c8f5; }
.art .a-fill { opacity: 0; animation: pz-fade .6s ease 1.1s forwards; }
.art .pulse { transform-box: fill-box; transform-origin: center; animation: pz-fade .6s ease 1.1s forwards, pz-breathe 3s ease-in-out 1.8s infinite; }
.art .ripple { fill: none; stroke: #f4a9c3; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ripple 3s ease-out 1.2s infinite; opacity: 0; }
@keyframes ripple { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.8); opacity: 0; } }
.art .spinx { transform-box: fill-box; transform-origin: center; animation: pz-draw 1.4s var(--ease-path) .5s forwards, spinx 6s ease-in-out 2s infinite; }
.art .spinx.s2 { animation-delay: .5s, 3s; }
@keyframes spinx { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.15); } }
.art .crescent { animation: pz-fade .8s ease 1.3s forwards; }
.art .ringl { transform-box: fill-box; transform-origin: center; animation: pz-draw 1.2s var(--ease-path) .15s forwards, ring-in-l 1.4s var(--ease-out) .15s both; }
.art .ringr { transform-box: fill-box; transform-origin: center; animation: pz-draw 1.2s var(--ease-path) .35s forwards, ring-in-r 1.4s var(--ease-out) .35s both; }
@keyframes ring-in-l { from { transform: translateX(-26px); } } @keyframes ring-in-r { from { transform: translateX(26px); } }
.art .spark-dot { fill: #fff; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pz-flash .8s var(--ease-out) 1.5s forwards, pz-breathe 2.6s ease-in-out 2.4s infinite; }
.art .travel { opacity: 1; animation: none; }

/* Journey layout */
.journey { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; }
.j-side { position: sticky; top: 80px; background: radial-gradient(circle at 30% 0%, #2a4d88, #1e3a6b 70%); color: #dfe6f5; border-radius: 22px; padding: 26px 24px; overflow: hidden; isolation: isolate; }
.j-side::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M22 50V34c0-7 5-10 10-16 5 6 10 9 10 16v16' fill='none' stroke='%23f1a7c0' stroke-opacity='.08' stroke-width='1'/%3E%3C/svg%3E"); animation: drift-bg 40s linear infinite; }
@keyframes drift-bg { to { background-position: 64px -64px; } }
.j-art { display: grid; place-items: center; margin: -4px 0 6px; min-height: 130px; }
.j-art .art { max-width: 190px; }
.j-kicker { color: #f4a9c3; font-size: .85rem; font-weight: 600; letter-spacing: .02em; }
.j-title { color: #fff; font-size: 2rem; margin: 4px 0 6px; }
.j-blurb { color: #c3cfe6; font-size: .95rem; margin-bottom: 18px; }
.j-steps { list-style: none; padding: 0; margin: 0 0 18px; position: relative; }
.j-steps::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1.5px; background: rgba(169, 200, 245, .25); }
.j-steps li { position: relative; padding: 5px 0 5px 26px; font-size: .9rem; color: #9fb0d2; animation: pz-from-left .5s var(--ease-out) both; animation-delay: calc(var(--i) * 60ms + .2s); }
.j-steps li a, .j-steps li > span { color: inherit; text-decoration: none; display: block; }
.j-steps li a:hover { color: #fff; }
.j-dot { position: absolute; left: 0; top: 9px; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid rgba(169, 200, 245, .55); background: #1e3a6b; transition: all .4s var(--ease-out); }
.j-steps li.done { color: #dfe6f5; }
.j-steps li.done .j-dot { background: #a9c8f5; border-color: #a9c8f5; }
.j-steps li.done .j-dot::after { content: ""; position: absolute; left: 3.5px; top: 1.5px; width: 3px; height: 6px; border: solid #1e3a6b; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.j-steps li.now { color: #fff; font-weight: 600; }
.j-steps li.now .j-dot { background: #f4a9c3; border-color: #f4a9c3; box-shadow: 0 0 0 4px rgba(244, 169, 195, .25), 0 0 16px rgba(244, 169, 195, .7); animation: pz-ring 2.2s ease-out infinite; }
.j-preview { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 14px; backdrop-filter: blur(4px); }
.jp-label { font-size: .78rem; color: #9fb0d2; margin-bottom: 10px; }
.jp-card { display: flex; gap: 12px; align-items: center; }
.jp-avatar { position: relative; width: 48px; height: 48px; flex: none; display: grid; place-items: center; }
.jp-avatar svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.jp-track { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .14); stroke-width: 3; }
.jp-ring { fill: none; stroke: #f4a9c3; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; transition: stroke-dashoffset .6s var(--ease-out); }
.jp-avatar span { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.jp-who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.jp-who strong { color: #fff; font-weight: 500; font-family: var(--serif); font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jp-who span { font-size: .85rem; color: #c3cfe6; }
.jp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.jp-chips span { font-size: .76rem; padding: 4px 10px; border-radius: 999px; background: rgba(169, 200, 245, .14); color: #dfe6f5; border: 1px solid rgba(169, 200, 245, .25); }
.jp-chips span:nth-child(even) { background: rgba(244, 169, 195, .14); border-color: rgba(244, 169, 195, .3); }
.jp-chips span.new { animation: chip-in .5s var(--ease-out); }
@keyframes chip-in { from { opacity: 0; transform: scale(.6) translateY(6px); } }
.jp-chips em { font-size: .8rem; color: #9fb0d2; }
.jp-note { margin-top: 10px; font-size: .76rem; color: #9fb0d2; }
.j-main { min-width: 0; }
.j-top { margin-bottom: -4px; }
.j-card { padding: 30px; }
.j-card.leaving { transition: opacity .3s, transform .32s var(--ease-out); opacity: 0; transform: translateX(-30px); }
.j-intro { background: var(--sage); color: var(--lapis); border-radius: 12px; padding: 12px 14px; font-size: .93rem; }
.j-actions { margin-top: 14px; padding-top: 18px; border-top: 1px dashed var(--line); }
.j-next { display: flex; align-items: center; gap: 12px; }
.j-card .field { animation: pz-rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 55ms + .15s); }
.j-card .field > label, .j-card .field > legend { position: relative; padding-right: 26px; }
.j-card .field > label::after, .j-card .fieldset > legend::after { content: ""; position: absolute; right: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; transform: scale(0);
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.4L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; transition: transform .35s var(--ease-out); }
.j-card .field > label.check::after { display: none; }
.j-card .field.answered > label::after, .j-card .fieldset.answered > legend::after { transform: scale(1); }
.j-card .fieldset > legend { width: auto; }
.j-card .choice span { box-shadow: 0 1px 0 rgba(30, 58, 107, .04); }
.j-card .choice:hover span { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(30, 58, 107, .1); }
.j-card .choice input:checked + span { background: linear-gradient(135deg, var(--green), #4a78c2); border-color: transparent; box-shadow: 0 6px 16px rgba(47, 95, 168, .3); }
.j-card .choice input:checked + span::before { content: "✓ "; font-size: .8em; }
.j-card input:not([type=checkbox]):not([type=radio]), .j-card select, .j-card textarea { background: #fbfcff; }
.j-card input:focus, .j-card select:focus, .j-card textarea:focus { background: #fff; border-color: var(--green); }
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; gap: 18px; }
  .j-side { position: relative; top: 0; display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; padding: 18px; }
  .j-art { grid-row: span 3; min-height: 0; margin: 0; }
  .j-title { font-size: 1.5rem; }
  .j-blurb { margin-bottom: 0; font-size: .88rem; }
  .j-steps { display: none; }
  .j-preview { grid-column: 1 / -1; margin-top: 14px; }
  .j-card { padding: 20px; }
  .j-next .small { display: none; }
}

/* Before you begin: a clear banner */
.app:has(> .prep-band) { padding-top: 0; }
.prep-band { background: radial-gradient(circle at 80% 20%, #2a4d88, #1e3a6b 65%); color: #dfe6f5; padding: 40px 0 96px; position: relative; overflow: hidden; }
.prep-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M22 50V34c0-7 5-10 10-16 5 6 10 9 10 16v16' fill='none' stroke='%23f1a7c0' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E"); }
.prep-head { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; position: relative; z-index: 1; }
.prep-art .art { max-width: 170px; }
.prep-kicker { display: inline-block; font-size: .82rem; font-weight: 600; color: #1e3a6b; background: #f4a9c3; border-radius: 999px; padding: 4px 12px; animation: pz-pop .6s var(--ease-out); }
.prep-band h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 12px 0 8px; letter-spacing: .01em; animation: pz-rise .7s var(--ease-out) .1s both;
  background: linear-gradient(90deg, #fff 0%, #fde8ef 40%, #cfe0fb 60%, #fff 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: pz-rise .7s var(--ease-out) .1s both, shimmer 6s linear 1s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.prep-band p { color: #c3cfe6; max-width: 52ch; margin-bottom: 14px; animation: pz-rise .7s var(--ease-out) .25s both; }
.prep-band .dots { justify-content: flex-start; margin: 0; }
.prep-band .dots span { background: rgba(255, 255, 255, .25); }
.prep-band .dots span.done { background: #a9c8f5; opacity: 1; }
.prep-band .dots span.on { background: #f4a9c3; box-shadow: 0 0 12px rgba(244, 169, 195, .8); }
.prep-body { margin-top: -64px; position: relative; z-index: 2; }
.prep-body .card { padding: 32px; box-shadow: 0 20px 50px rgba(30, 58, 107, .16); }
.slide-num { position: absolute; right: 22px; top: 6px; font-family: var(--serif); font-size: 5.5rem; line-height: 1; color: var(--gold-soft); pointer-events: none; animation: pz-rise .8s var(--ease-out) .2s both; }
.prep-body .card { position: relative; overflow: hidden; }
.prep-body .card h2 { position: relative; font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
@media (max-width: 640px) {
  .prep-band { padding: 26px 0 84px; }
  .prep-head { grid-template-columns: 84px 1fr; gap: 14px; }
  .prep-band p { font-size: .92rem; }
  .prep-body .card { padding: 22px; }
  .slide-num { font-size: 4rem; }
}

/* Home: the path draws as you scroll, a light rides it, each step lights up */
.path-light { position: absolute; top: 20px; left: calc(20px + (100% - 40px) * var(--p, 0)); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(244, 169, 195, .35), 0 0 18px 6px rgba(244, 169, 195, .6); z-index: 1; transition: left .25s linear, top .25s linear; opacity: calc(var(--p, 0) * 6); }
.path li.lit::before { background: linear-gradient(135deg, var(--gold-soft), #e4ecf9); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(212, 122, 154, .12); }
.path li.lit h3 { color: var(--green); }
@media (max-width: 820px) { .path-light { left: 19px; top: calc(10px + (100% - 20px) * var(--p, 0)); } }

/* Pointer-follow glow in the hero */
.opening::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 50%), rgba(244, 169, 195, .10), transparent 60%); transition: background .2s; }
.opening .scene { transition: transform .6s var(--ease-out); }
.opening > .wrap { position: relative; z-index: 1; }

/* Top bar and reading progress */
.topbar { transition: box-shadow .3s, background .3s; }
.topbar.scrolled { box-shadow: 0 6px 24px rgba(30, 58, 107, .08); background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); }
.read-bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--green), var(--gold)); pointer-events: none; }

/* Button ripple */
.ripple-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255, 255, 255, .55); pointer-events: none; animation: ripple-out .7s ease-out forwards; }
.btn.ghost .ripple-dot { background: rgba(212, 122, 154, .3); }
@keyframes ripple-out { to { transform: scale(26); opacity: 0; } }

/* Match cards tilt toward your pointer */
.match-grid > .match { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease-out), box-shadow .3s; }
.match-grid > .match:hover { box-shadow: 0 18px 40px rgba(30, 58, 107, .14); }

@media (prefers-reduced-motion: reduce) {
  .art .a-line { stroke-dashoffset: 0; } .art .a-fill { opacity: 1; }
  .match-grid > .match { transform: none; }
  .prep-band h1 { color: #fff; background: none; }
}
.choice input { z-index: 1; }
@media (max-width: 900px) { .jp-label, .jp-chips, .jp-note { display: none; } .j-preview { padding: 10px 12px; } }

/* Home: invitation comes after the explanation */
.arrow-down { display: inline-block; width: 8px; height: 8px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }
.path-section { scroll-margin-top: 80px; }
.begin { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px; border-radius: 20px; background: linear-gradient(120deg, #fbe7ef, #e4ecf9); border: 1px solid var(--line); }
.begin h3 { margin: 0 0 4px; font-size: 1.4rem; }
.begin p { margin: 0; color: var(--muted); }
.closing .row .btn { min-width: 0; }

/* Phone verification */
.phone-row { display: grid; grid-template-columns: minmax(0, 150px) 1fr; gap: 8px; }
.sms-note { display: block; margin-top: 4px; color: var(--green); }
.sms-code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .12em; background: var(--gold-soft); padding: 2px 8px; border-radius: 6px; }
.msg.mine.admin, .msg.mine.wali { color: var(--ink); }
.sms-box { border: 1px dashed var(--line); border-radius: 14px; padding: 14px 16px 2px; margin: 6px 0 14px; background: linear-gradient(120deg, rgba(251, 231, 239, .45), rgba(228, 236, 249, .45)); }
.sms-note .gentle { display: block; margin-top: 4px; color: var(--muted); }

/* Support */
.support-band { margin-top: 44px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--gold); }
.support-band .sb-mark { flex: 0 0 auto; width: 64px; }
.support-band .sb-mark .emblem { width: 64px; height: auto; display: block; }
.support-band .sb-text { flex: 1 1 280px; }
.support-band h3 { margin: 0 0 4px; font-size: 1.25rem; }
.support-band p { margin: 0; color: var(--muted); }
.card.support { text-align: left; }
.support-art { width: 150px; margin: 0 auto 6px; }
.support-art .art { width: 100%; height: auto; }
.card.support h1 { text-align: center; }
.card.support .lead { text-align: center; max-width: 56ch; margin: 0 auto 22px; color: var(--muted); font-size: 1.05rem; }
.gift-uses { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.gift-uses li { padding: 12px 16px; border-radius: 12px; background: var(--sage); }
.gift-cta { text-align: center; padding: 22px 16px; border-radius: 16px; background: linear-gradient(120deg, #fbe7ef, #e4ecf9); margin-bottom: 18px; }
.gift-cta .btn { min-width: 200px; }
.gift-cta p { margin: 10px 0 0; }
.gift-cta .btn[disabled] { opacity: .65; cursor: default; }
.gift-note { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; margin-bottom: 18px; font-size: .92rem; color: var(--muted); }
.gift-note p { margin: 0; }
.card.support .thanks { text-align: center; font-family: var(--serif); font-size: 1.15rem; color: var(--lapis); margin: 0; }
@media (max-width: 560px) { .support-band { padding: 18px; } .support-band .btn { width: 100%; } }
.gift-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.gift-way { flex: 1 1 240px; background: rgba(255,255,255,.75); border-radius: 14px; padding: 18px 16px; }
.gift-way h3 { margin: 0 0 2px; font-size: 1.2rem; }
.gift-way p { margin: 0 0 12px; }
.gift-amounts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gift-amounts .btn { min-width: 0; flex: 1 1 0; padding-left: 8px; padding-right: 8px; }
.gift-cta .gift-secure, .gift-cta > p { flex-basis: 100%; }
.gift-way .gift-manage { margin: 12px 0 0; }

/* Later "Before you begin" slides: a slim bar instead of the big title */
.prep-band.compact { padding: 16px 0 64px; }
.prep-mini { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.prep-mini-title { font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.prep-mini .dots { margin-left: auto; }
.prep-band.compact + .prep-body { margin-top: -44px; }

/* Support email helpers */
.help-line { margin: 6px 0 0; color: var(--muted); }
.help-line a, .support-link { font-weight: 600; }
.stuck { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--sage); font-size: .92rem; }
.stuck p { margin: 0; }

/* My Profile: what can still be changed vs. locked answers */
.section-h { font-size: 1.25rem; margin: 26px 0 6px; }
.card.locked { background: #fafbfe; }
.card.locked .facts dd { color: var(--muted); }

/* Live face scan */
.live-scan .cam-box { aspect-ratio: 1; max-width: 340px; margin: 12px auto; border-radius: 50%; }
.ls-ring { position: absolute; inset: 6px; border-radius: 50%; border: 4px solid rgba(255,255,255,.35); transition: border-color .4s; pointer-events: none; }
.ls-ring.half { border-color: #a9c8f5; } .ls-ring.full { border-color: #7ed3a5; }
.ls-step { text-align: center; font-weight: 600; min-height: 1.5em; margin: 6px 0; }
.ls-steps { margin: 8px 0 10px; padding-left: 20px; font-size: .92rem; color: var(--muted); }
.ls-steps li.done { color: var(--green); } .ls-steps li.done::marker { content: "✓  "; }

/* Admin */
.admin .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 18px 0; }
.admin .stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.admin .stat strong { font-size: 1.6rem; font-family: var(--serif); color: var(--lapis); line-height: 1.1; }
.admin .stat span { font-size: .82rem; color: var(--muted); }
.admin .stat.alert { border-color: var(--gold); background: var(--gold-soft); }
.admin .stat:hover { border-color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .88rem; color: var(--ink); text-decoration: none; }
.chip span { color: var(--muted); font-size: .8rem; }
.chip.on { background: var(--lapis); border-color: var(--lapis); color: #fff; }
.chip.on span { color: #c9d5ec; }
.admin-search { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; max-width: 520px; }
.admin-search input { flex: 1; }

/* Errors: easy to spot */
.error:not(:empty) { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fdeeee; border: 1px solid #f1c4c4; border-left: 5px solid var(--danger); color: #8f1f1f; font-size: .95rem; font-weight: 600; line-height: 1.4; }
.error:not(:empty)::before { content: "!"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--danger); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; margin-top: 1px; }
.error:not(:empty) + .help-line { margin-top: 6px; }

/* Photo rules shown before choosing a photo */
.photo-rules { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #f4f7fc; border: 1px solid var(--line); font-size: .92rem; }
.photo-rules ul { margin: 6px 0 0; padding-left: 20px; }
.photo-rules li { margin: 2px 0; }

/* Password show / hide */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 72px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--lapis); font: inherit; font-size: .85rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.pw-toggle:hover { background: #eef2fa; }
.pw-toggle:focus-visible { outline: 2px solid var(--lapis); outline-offset: 1px; }

/* Monthly gift amounts */
.gift-amounts .btn .per { font-weight: 400; opacity: .8; font-size: .85em; margin-left: 1px; }

/* Matches on hold */
.held-list { display: grid; gap: 12px; margin-bottom: 20px; }
.card.held { border-left: 4px solid var(--gold); }
.card.held.leaving { opacity: 0; transition: opacity .4s; }

/* Phone notifications prompt */
.push-prompt { display: flex; gap: 16px; align-items: flex-start; background: var(--lapis); color: #eef2fb; border-radius: var(--radius); padding: 20px 22px; margin: 4px 0 22px; box-shadow: var(--shadow); }
.push-prompt h3 { color: #fff; margin: 0 0 6px; }
.push-prompt p { margin: 0 0 12px; color: #dbe3f4; }
.push-prompt strong { color: #fff; }
.push-prompt .push-tip { margin: 10px 0 0; color: #c3cee6; }
.push-prompt .btn.primary { background: #fff; color: var(--lapis); border-color: #fff; }
.push-prompt .btn.primary:hover { background: var(--gold-soft); }
.push-prompt .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.push-prompt .error:not(:empty) { margin-top: 12px; }
.push-bell { flex: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.push-bell svg { width: 26px; height: 26px; color: #f6c1d3; transform-origin: 50% 15%; animation: pz-ring 2.4s ease-in-out 1s 2; }
.push-body { flex: 1; min-width: 0; }
.push-actions { gap: 10px; }
.push-steps { margin: 4px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.push-steps li { padding-left: 4px; }
.push-prompt .push-steps li::marker { color: #f6c1d3; font-weight: 600; }
.ios-share { width: 1.15em; height: 1.15em; vertical-align: -0.2em; display: inline-block; }
.push-card .push-steps { font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.push-card .row.between { margin-bottom: 10px; }
@keyframes pz-ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) { .push-bell svg { animation: none; } }
@media (max-width: 560px) { .push-prompt { flex-direction: column; gap: 10px; padding: 18px 16px; } .push-actions .btn { flex: 1; } }
/* Social sign-in */
.social-auth { display: grid; gap: 10px; margin: 6px 0 4px; }
.social-btn { justify-content: center; }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: .85rem; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line, #dde3ee); }


/* =====================================================================
   Phone polish (2026-10-11): small screens, iPhone home-screen app
   ===================================================================== */
body { overflow-x: clip; }
.card, .notice, .bio, .legal, .list li, .facts dd, .msg .text { overflow-wrap: anywhere; }
.match-grid, .verify-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.copy-box input { font-size: 1rem; }
.footer { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.toast { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

/* How it works on phones and tablets: a vertical thread with each step on a soft card */
@media (max-width: 820px) {
  .path { padding-left: 52px; gap: 14px; }
  .path::before { left: 19px; right: auto; top: 30px; bottom: 64px; width: 2px; height: auto; opacity: .7; }
  .path-light { left: 20px; top: calc(30px + (100% - 94px) * var(--p, 0)); z-index: 0; }
  .path li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 16px 18px; box-shadow: 0 1px 2px rgba(30, 58, 107, .05); transition: border-color .6s, box-shadow .6s; }
  .path li::before { left: -47px; top: 15px; z-index: 2; }
  .path li::after { left: -52px; top: 10px; z-index: 3; }
  .path li.lit { border-color: #f3c6d6; box-shadow: 0 8px 22px rgba(212, 122, 154, .12); }
  .path li h3 { font-size: 1.15rem; }
}

@media (max-width: 640px) {
  .app { padding: 18px 0 40px; }
  .card { padding: 18px; }
  .j-card, .prep-body .card { padding: 18px; }

  .begin { padding: 20px 18px; margin-top: 32px; }
  .begin .row, .begin .row .btn { width: 100%; }
  .closing { padding: 32px 18px; border-radius: 22px; }

  /* Bigger, easier taps */
  .footer-inner { justify-content: center; text-align: center; gap: 2px 4px; }
  .footer a { display: inline-block; padding: 10px 8px; }
  .btn.sm { padding: 10px 16px; min-height: 40px; }
  .pw-toggle { padding: 10px 12px; }
  .check input { width: 22px; height: 22px; margin-top: 1px; flex: none; }
  .choice span { padding: 10px 15px; }
  .nav a { padding: 14px 12px; font-size: 1rem; }
  .nav { box-shadow: 0 14px 30px rgba(30, 58, 107, .12); }

  /* Tabs scroll sideways instead of wrapping into a jumble */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; padding: 12px 14px; }

  /* Lists with a button: stack neatly */
  .tips li { flex-wrap: wrap; }
  .tips li .btn { width: 100%; }
  .match .actions { flex-wrap: wrap; }
  .gift-amounts { display: grid; grid-template-columns: 1fr 1fr; }
  .gift-cta .btn { min-width: 0; }
  .dialog { padding: 20px; max-height: calc(100dvh - 32px); overflow-y: auto; }
  .early-note { padding: 12px 14px; gap: 10px; }
  .section-h { margin-top: 22px; }
}

/* Sign in with Google: easy to spot (2026-10-11) */
.social-btn { min-height: 52px; gap: 12px; background: #fff; color: #1f1f1f; border: 1.5px solid #c9d2e3; box-shadow: 0 2px 8px rgba(30, 58, 107, .08); font-size: 1rem; font-weight: 600; }
.social-btn:hover { background: #f8faff; border-color: #4285f4; box-shadow: 0 6px 16px rgba(66, 133, 244, .18); }
.social-btn .g-logo { width: 22px; height: 22px; flex: none; }
.social-btn[data-oauth="google"] { border-color: #4285f4; }

/* Photo step: serious warning against fake / childhood photos (2026-10-11) */
.photo-warning { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: #fdeeee; border: 1px solid #f1c4c4; border-left: 5px solid var(--danger); color: #6e1a1a; font-size: .93rem; line-height: 1.5; }
.photo-warning .pw-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--danger); color: #fff; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.photo-warning .pw-title { display: block; color: #8f1f1f; font-size: 1.02rem; margin-bottom: 4px; }
.photo-warning p { margin: 0 0 8px; }
.photo-warning .pw-ban { color: #8f1f1f; font-weight: 600; }
.photo-warning .pw-faith { margin: 0; padding-top: 8px; border-top: 1px dashed #efb9b9; color: #5b2a2a; }
.photo-warning .pw-faith span { color: #8a5a5a; font-size: .85em; }

/* Photo honesty pop-up (2026-10-11) */
.photo-oath { max-width: 460px; text-align: left; }
.photo-oath .po-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 1.5rem; font-weight: 700; display: grid; place-items: center; margin-bottom: 10px; box-shadow: 0 0 0 6px #fdeeee; }
.photo-oath h3 { color: #8f1f1f; margin-bottom: 8px; }
.photo-oath .po-list { margin: 6px 0 12px; padding-left: 20px; }
.photo-oath .po-list li { margin: 3px 0; }
.photo-oath .po-ban { background: #fdeeee; border: 1px solid #f1c4c4; border-left: 5px solid var(--danger); border-radius: 10px; padding: 10px 12px; color: #8f1f1f; font-weight: 600; }
.photo-oath .po-faith { color: var(--muted); font-size: .93rem; }
.photo-oath .po-faith span { font-size: .85em; }
.photo-oath .po-check { padding: 10px; border: 1px solid var(--line); margin: 6px 0 14px; }
.photo-oath .po-actions { gap: 10px; }
.btn.po-confirm { background: var(--danger); color: #fff; }
.btn.po-confirm:not([disabled]):hover { background: #8f2f2a; }
@media (max-width: 560px) { .photo-oath .po-actions .btn { flex: 1 1 100%; } }


/* Visual step-by-step guides with pictures of where to tap (2026-10-11) */
.vsteps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.vstep { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--surface-2); }
.push-prompt .vstep { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.vs-num { position: absolute; top: -7px; left: -7px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 700; font-size: .82rem; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.vs-art { flex: none; width: 54px; height: 72px; color: currentColor; opacity: .95; }
.vs-text { flex: 1; min-width: 0; line-height: 1.6; }
.vs-sub { font-size: .88em; opacity: .85; }
.vs-pulse { transform-box: fill-box; transform-origin: center; animation: vs-pulse 1.8s ease-out infinite; }
@keyframes vs-pulse { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.4); } }
.np-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 6px; margin: 1px 0; border-radius: 999px; background: #fff; color: var(--lapis); border: 1px solid var(--line); font-weight: 600; font-size: .88em; white-space: nowrap; vertical-align: middle; }
.np-chip > span:empty { display: none; }
.np-chip:has(> span:empty) { padding: 3px 6px; }
.np-chip .ic { width: 16px; height: 16px; flex: none; }
.np-chip .app-ic { border-radius: 4px; }
.nav-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.np-arrow { font-size: 1.2rem; line-height: 1; opacity: .7; }
.np-wrap p { margin: 6px 0; }
@media (prefers-reduced-motion: reduce) { .vs-pulse { animation: none; } }

/* Blocked-notifications help: "check again" button (2026-10-12) */
.np-recheck { margin-top: 12px; }
.np-recheck .btn { width: 100%; }
.push-prompt .np-recheck .btn.primary { background: #fff; color: var(--lapis); }
.np-msg:not(:empty) { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #fdeeee; color: #8f1f1f; font-weight: 600; }
.np-wrap .vsteps { margin-bottom: 4px; }

/* My Profile: "How others see you" (2026-10-12) */
.seeme { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line); }
.seeme strong { display: block; color: var(--lapis); }
.seeme .small { display: block; }
.self-preview { max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.self-preview .sp-head { margin-bottom: 6px; }
.self-preview .sp-card { box-shadow: none; padding: 16px; margin-top: 10px; }
.self-preview .sp-card .photo.veiled { aspect-ratio: 16/9; }


/* "How others see you" preview, v2: full-width bottom sheet on phones (2026-10-12) */
html.sp-open { overflow: hidden; }
.dialog.self-preview { padding: 0; max-width: 460px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow: hidden; }
.self-preview .sp-inner { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.self-preview .sp-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.self-preview .sp-head strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--lapis); }
.self-preview .sp-grab { display: none; }
.self-preview .sp-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
.self-preview .sp-note { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.self-preview .sp-card { box-shadow: none; padding: 14px; margin: 0 0 12px; animation: none; transform: none; }
.self-preview .sp-card .photo.veiled { aspect-ratio: auto; min-height: 150px; margin-bottom: 14px; }
.self-preview .sp-name { margin: 0 0 4px; font-size: 1.5rem; overflow-wrap: anywhere; }
.self-preview .sp-name span { color: var(--muted); }
.self-preview .facts { grid-template-columns: 1fr; gap: 0; margin: 8px 0 4px; font-size: .95rem; }
.self-preview .facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.self-preview .facts > div:last-child { border-bottom: 0; }
.self-preview .facts dt { flex: none; max-width: 45%; }
.self-preview .facts dd { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.self-preview .sp-bio-h { margin: 12px 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 560px) {
  .dialog.self-preview { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92dvh; }
  .self-preview .sp-inner { max-height: 92dvh; }
  .self-preview .sp-head { padding-top: 20px; }
  .self-preview .sp-grab { display: block; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line); }
  .dialog.self-preview[open] { animation: sp-up .32s var(--ease-out); }
}
@keyframes sp-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Tables (admin): never break words letter by letter; stacked cards on phones (2026-10-12) */
.table th, .table td { overflow-wrap: normal; word-break: normal; }
.table td strong, .table td a { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .table-wrap { overflow: visible; }
  table.table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; margin-bottom: 12px; background: #fff; box-shadow: 0 1px 2px rgba(30, 58, 107, .04); }
  .table td { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); text-align: right; }
  .table td:last-child { border-bottom: 0; }
  .table td::before { content: attr(data-label); flex: none; text-align: left; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 3px; }
  .table td[data-label=""]::before { display: none; }
  .table td[data-label=""] { justify-content: flex-end; }
  .table td:first-child { font-size: 1.02rem; }
  .table td .btn { min-height: 40px; }
  .admin .stats { grid-template-columns: 1fr 1fr; }
  .admin-search { max-width: none; }
}

/* Tables on phones, v2: cell content flows normally next to its label (2026-10-12) */
@media (max-width: 700px) {
  .table td { display: block; position: relative; text-align: right; padding: 9px 0 9px 36%; min-height: 40px; overflow-wrap: anywhere; }
  .table td::before { position: absolute; left: 0; top: 12px; width: 34%; }
  .table td[data-label=""] { padding-left: 0; }
  .table td .small { display: inline-block; }
}

/* Admin: the selected number box is clearly highlighted; "needs attention" boxes are calmer (2026-10-12) */
.admin .stat { position: relative; transition: background .2s, border-color .2s, box-shadow .2s, transform .15s; }
.admin .stat.alert { background: #fff; border-color: var(--line); }
.admin .stat.alert strong { color: var(--danger); }
.admin .stat.alert::after { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px #fdeeee; }
.admin .stat.on { background: var(--lapis); border-color: var(--lapis); box-shadow: 0 8px 20px rgba(30, 58, 107, .28); transform: translateY(-2px); }
.admin .stat.on strong, .admin .stat.on span { color: #fff; }
.admin .stat.on.alert strong { color: #ffd0dc; }
.admin .stat.on::before { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: var(--lapis); }

/* Admin: remove / ban dialog */
.remove-dlg { max-width: 480px; }
.remove-dlg h3 { color: #8f1f1f; }
.rm-opts { display: grid; gap: 10px; margin: 14px 0; }
.rm-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; }
.rm-opt input { margin-top: 4px; accent-color: var(--danger); }
.rm-opt:has(input:checked) { border-color: var(--danger); background: #fdf3f3; }
.rm-opt.ban strong { color: #8f1f1f; }

/* How it works on phones, v3: centred steps; the thread runs down the middle between the cards (2026-10-12) */
@media (max-width: 820px) {
  .path-section > h2 { text-align: center; }
  .path { padding-left: 0; gap: 40px; max-width: 460px; margin: 40px auto 0; }
  .path::before { left: 50%; margin-left: -1px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .path-light { left: 50%; top: calc(100% * var(--p, 0)); z-index: 0; }
  .path li { z-index: 1; text-align: center; padding: 34px 18px 20px; }
  .path li::before { left: 50%; top: -15px; margin: 0 0 0 -15px; }
  .path li::after { left: 50%; top: -20px; margin-left: -20px; }
  .path li h3 { margin-bottom: .3em; }
}

/* Date of birth: month / day / year pickers (2026-10-12) */
.dob-row { display: grid; grid-template-columns: 1.5fr .9fr 1.1fr; gap: 8px; }
.dob-row select { width: 100%; min-width: 0; font-size: 16px; }

/* Match cards: someone has shown interest in you (2026-10-12) */
.card.match.liked { border-color: #f3c6d6; box-shadow: 0 8px 24px rgba(212, 122, 154, .16); }
.pill.interest { background: #fbe7ef; color: #9c3d63; border: 1px solid #f3c6d6; }
.interest-note { background: #fbe7ef; color: #6e2a46; border-radius: 10px; padding: 10px 12px; margin: 10px 0 12px; font-size: .95rem; line-height: 1.45; }

/* Admin: flagged messages and alert keywords (2026-10-12) */
.flag-quote { margin: 6px 0 8px; padding: 10px 12px; background: #fdf3f3; border-left: 3px solid var(--danger, #c0392b); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.kw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kw { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; background: var(--surface, #fff); }
.kw button { border: 0; background: none; cursor: pointer; font-size: 1.05rem; line-height: 1; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); }
.kw button:hover { background: #fdf3f3; color: var(--danger, #c0392b); }
.kw-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.kw-add select, .kw-add input { flex: 1 1 160px; min-width: 0; font-size: 16px; }

/* Chat on phones (2026-10-12): fills the screen, bigger text, a typing box that grows, room for the iPhone home bar */
@media (max-width: 720px) {
  .chat-page > .row.between { flex-wrap: nowrap; gap: 10px; }
  .chat-page > .row.between h1 { font-size: 1.35rem !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .chat-page .chat { gap: 14px; margin-top: 8px !important; }
  .chat-main { height: calc(100vh - 130px); height: calc(100dvh - 130px); min-height: 380px; max-height: none; border-radius: 16px; padding: 0 !important; }
  .chat-head { padding: 9px 12px; font-size: .78rem; line-height: 1.4; }
  .messages { padding: 12px 10px; gap: 8px; }
  .msg { max-width: 86%; padding: 8px 12px; border-radius: 18px; }
  .msg:not(.mine) { border-bottom-left-radius: 6px; }
  .msg.mine { border-bottom-right-radius: 6px; }
  .msg .text { font-size: 1rem; line-height: 1.4; }
  .msg .who { font-size: .72rem; }
  .msg .when { font-size: .66rem; text-align: right; }
  .composer { padding: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); gap: 8px; align-items: flex-end; }
  .composer textarea { font-size: 16px; min-height: 44px; height: 44px; max-height: 140px; border-radius: 22px; padding: 11px 15px; resize: none; line-height: 1.35; scrollbar-width: none; }
  .composer textarea::-webkit-scrollbar { display: none; }
  .composer .btn { min-height: 44px; border-radius: 22px; padding: 0 18px; flex: none; }
}

/* Chat, refreshed design (2026-10-12): header bar, soft pattern, grouped bubbles, day dividers, admin notes */
.chat-page > .row.between { display: none; }
.chat-main { border-radius: 18px; padding: 0 !important; box-shadow: 0 10px 30px rgba(30, 58, 107, .10); border: 1px solid var(--line); }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(135deg, #1e3a6b 0%, #2f5fa8 100%); color: #fff; }
.ct-avatars { display: flex; flex: none; }
.ct-avatars .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1e3a6b; font-family: var(--serif); font-size: 1.15rem; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.ct-avatars .av + .av { margin-left: -12px; }
.ct-avatars .av.sister { background: #fbe7ef; color: #9c3d63; }
.ct-avatars .av.wali { background: #e4efe4; color: #3d6b45; }
.ct-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ct-info strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-info span { font-size: .76rem; opacity: .85; display: flex; align-items: center; gap: 5px; }
.ct-info span svg { flex: none; }
.ct-status { flex: none; font-size: .72rem; font-weight: 600; text-transform: capitalize; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.ct-status.on::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7ee2a8; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(126, 226, 168, .25); }
.chat-head:not(:has(.sms-note)) { display: none; }
.chat-head { background: #fbf8f0; padding: 8px 16px; font-size: .78rem; line-height: 1.45; border-bottom: 1px solid var(--line); }
.messages { background-color: #f6f3ea; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%231e3a6b' stroke-opacity='.05' stroke-width='1'%3E%3Cpath d='M36 16l5.5 14.5L56 36l-14.5 5.5L36 56l-5.5-14.5L16 36l14.5-5.5z'/%3E%3Crect x='25' y='25' width='22' height='22' transform='rotate(45 36 36)'/%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='72' cy='0' r='6'/%3E%3Ccircle cx='0' cy='72' r='6'/%3E%3Ccircle cx='72' cy='72' r='6'/%3E%3C/g%3E%3C/svg%3E"); background-size: 72px 72px; gap: 8px; }
.msg { border-radius: 18px; box-shadow: 0 1px 2px rgba(30, 58, 107, .08); max-width: min(78%, 540px); }
.msg:not(.mine) { border-bottom-left-radius: 6px; }
.msg.mine { background: linear-gradient(135deg, #2f5fa8, #1e3a6b); border-color: transparent; border-bottom-right-radius: 6px; }
.msg.cont { margin-top: -5px; }
.msg.cont:not(.mine) { border-top-left-radius: 6px; }
.msg.mine.cont { border-top-right-radius: 6px; }
.msg .when { text-align: right; font-size: .66rem; opacity: .6; margin-top: 3px; }
.msg .who { display: flex; align-items: center; gap: 5px; }
.msg .tag { display: inline-block; padding: 1px 6px; border-radius: 6px; background: #dfeadf; color: #3d6b45; font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.msg.admin, .msg.mine.admin { align-self: center; max-width: min(92%, 560px); text-align: center; background: #fff8fb; color: var(--ink); border: 1px solid #f3c6d6; border-radius: 14px; box-shadow: none; }
.msg.admin .who { justify-content: center; color: #9c3d63; text-transform: uppercase; letter-spacing: .06em; font-size: .64rem; }
.msg.admin .when { text-align: center; }
.day-sep { align-self: center; margin: 6px 0 2px; }
.day-sep span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.composer { background: #fff; align-items: flex-end; gap: 10px; }
.composer textarea { border-radius: 22px; background: #f3f5fa; border: 1px solid transparent; padding: 11px 16px; resize: none; line-height: 1.35; min-height: 46px; height: 46px; max-height: 140px; scrollbar-width: none; }
.composer textarea::-webkit-scrollbar { display: none; }
.composer textarea:focus { background: #fff; border-color: #2f5fa8; box-shadow: 0 0 0 3px rgba(47, 95, 168, .12); outline: none; }
.composer .send-btn { position: relative; flex: none; width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.composer .send-btn svg { margin: 1px 2px 0 0; }
.composer .send-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) {
  .chat-main { height: calc(100vh - 110px); height: calc(100dvh - 110px); border-radius: 16px; }
  .chat-top { padding: 10px 12px; gap: 10px; }
  .ct-avatars .av { width: 36px; height: 36px; font-size: 1.05rem; }
  .ct-info strong { font-size: 1.05rem; }
  .chat-head { padding: 7px 12px; font-size: .74rem; }
  .composer .send-btn { width: 44px; height: 44px; min-height: 44px; border-radius: 50%; padding: 0; }
}

/* Match photos: press and hold to view (2026-10-12) */
.photo > .pz-hold { display: block; width: 100%; height: 100%; }
.pz-hold { position: relative; overflow: hidden; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; border-radius: inherit; outline-offset: 3px; }
.pz-hold img { filter: blur(26px) saturate(.85); transform: scale(1.15); transition: filter .22s ease, transform .22s ease; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.pz-hold.show img { filter: none; transform: none; }
.pz-hold-hint { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 999px; background: rgba(15, 28, 54, .74); color: #fff; font-size: .78rem; font-weight: 600; line-height: 1.2; text-align: center; transition: opacity .2s; pointer-events: none; }
.pz-hold.show .pz-hold-hint { opacity: 0; }
dialog.pv-warn { width: min(440px, calc(100vw - 32px)); border: 0; border-radius: 18px; padding: 22px; box-shadow: 0 20px 50px rgba(15, 28, 54, .3); }
dialog.pv-warn::backdrop { background: rgba(15, 28, 54, .55); }
.pv-warn h3 { margin: 0 0 8px; }
.pv-warn ul { padding-left: 18px; margin: 8px 0; }
.pv-warn li { margin: 4px 0; }
.pv-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin-top: 12px; cursor: pointer; }
.pv-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.pv-actions { justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* Match photos: 5 views each (2026-10-12) */
.photo > .pz-used { width: 100%; height: 100%; display: grid; place-items: center; padding: 14px; text-align: center; background: linear-gradient(160deg, #eef2f9, #f7f3ea); color: var(--muted); font-size: .82rem; font-weight: 600; line-height: 1.35; }
.pz-used span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pz-hold-hint b { font-weight: 800; }

/* Admin: member details (2026-10-12) */
dialog.admin-member { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 28, 54, .35); overflow: auto; }
dialog.admin-member::backdrop { background: rgba(15, 28, 54, .55); }
.am-inner { padding: 22px 24px 26px; }
.am-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; position: sticky; top: -22px; background: #fff; padding: 10px 0; z-index: 2; border-bottom: 1px solid var(--line); margin: -10px 0 12px; }
.am-head h2 { margin: 0 0 4px; }
.am-inner h3 { margin: 22px 0 10px; font-size: 1.05rem; }
.am-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.am-photos figure { margin: 0; }
.am-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; background: #f3f5fa; }
.am-photos .selfie img { border: 2px solid #f3c6d6; }
.am-photos figcaption { font-size: .75rem; color: var(--muted); margin-top: 5px; line-height: 1.35; }
.am-facts { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.am-facts dt, .am-facts dd { margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.am-facts dt { color: var(--muted); background: #f8f9fc; font-weight: 600; }
.am-facts dd { overflow-wrap: anywhere; white-space: pre-wrap; }
.am-facts dt:nth-last-of-type(1), .am-facts dd:last-of-type { border-bottom: 0; }
@media (max-width: 600px) {
  dialog.admin-member { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .am-inner { padding: 16px 14px 24px; }
  .am-head { top: -16px; }
  .am-facts { grid-template-columns: 1fr; }
  .am-facts dt { border-bottom: 0; padding-bottom: 2px; }
  .am-facts dd { padding-top: 2px; }
}

/* Wali invite: share buttons (2026-10-12) */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row .btn { display: inline-flex; align-items: center; gap: 6px; }
.btn.share-wa { background: #25d366; color: #fff; border-color: #25d366; }
.btn.share-wa:hover { background: #1ebe5b; }

/* Wali joining page: simple, larger text (2026-10-12) */
.wali-page { font-size: 1.05rem; }
.wali-page .lead { font-size: 1.12rem; }
.wali-facts { padding-left: 20px; }
.wali-facts li, .wali-list li, .wali-dont li { margin: 9px 0; line-height: 1.5; }
.wali-role { background: #f8f6ef; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 20px 0; }
.wali-role h3 { margin-top: 0; }
.wali-role h4 { margin: 16px 0 4px; font-size: 1rem; }
.wali-role .ref { display: block; font-size: .82rem; color: var(--muted); font-style: italic; margin-top: 2px; }
.wali-list { padding-left: 22px; }
.wali-dont { padding-left: 22px; list-style: none; }
.wali-dont li { position: relative; }
.wali-dont li::before { content: "✕"; position: absolute; left: -20px; color: #c0392b; font-weight: 700; }
.wali-form h3 { margin-top: 8px; }
.wali-form .check span { font-size: 1rem; line-height: 1.45; }
.wali-page .btn.primary.block { font-size: 1.1rem; padding-top: 14px; padding-bottom: 14px; margin-top: 6px; }

/* First visit: opening animation full screen, then a nudge to scroll (2026-10-14) */
html.pz-intro-on, html.pz-intro-on body { overflow: hidden; }
.opening.pz-intro { position: fixed; inset: 0; z-index: 1000; margin: 0; padding: 24px 16px; display: grid; place-items: center; overflow: hidden; transition: opacity .8s ease, visibility .8s ease; }
.opening.pz-intro.out { opacity: 0; visibility: hidden; pointer-events: none; }
.pz-intro .pz-intro-art { width: 100%; display: flex; flex-direction: column; align-items: center; }
.pz-intro .scene { width: min(600px, 90vw, 64vh); width: min(600px, 90vw, 64svh); max-width: none; }
.pz-intro .pz-intro-art figcaption { max-width: 40ch; font-size: 1rem; }
html.pz-intro-on .opening-copy > * { animation: none; }

.opening { position: relative; min-height: calc(100vh - 62px); min-height: calc(100svh - 62px); display: flex; align-items: center; }
.opening > .wrap { width: 100%; }

.opening.pz-intro { background-image:
    radial-gradient(ellipse at 50% 45%, rgba(42, 77, 136, .9), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M22 50V34c0-7 5-10 10-16 5 6 10 9 10 16v16' fill='none' stroke='%23f1a7c0' stroke-opacity='.10' stroke-width='1'/%3E%3C/svg%3E"); }

/* Home: gentle "read on" guidance instead of a button (2026-10-14) */
.read-cue { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding-bottom: 14px; pointer-events: none; background: linear-gradient(to bottom, rgba(30, 58, 107, 0), rgba(30, 58, 107, .78) 55%, rgba(30, 58, 107, .94)); opacity: 0; animation: rc-in 1.2s ease .5s forwards; transition: opacity .5s ease; }
.read-cue .rc-text { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: #eef1f8; letter-spacing: .01em; text-shadow: 0 1px 10px rgba(15, 28, 54, .5); }
.read-cue .rc-line { position: relative; width: 1px; height: 38px; background: linear-gradient(to bottom, rgba(241, 167, 192, .55), rgba(169, 200, 245, .15)); overflow: visible; }
.read-cue .rc-line i { position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #fff4f8; box-shadow: 0 0 10px 3px rgba(241, 167, 192, .75); animation: rc-fall 2.2s cubic-bezier(.45, 0, .25, 1) 1.4s infinite; opacity: 0; }
.read-cue.gone { opacity: 0 !important; animation: none; }
html.pz-intro-on .read-cue { animation: none; opacity: 0; }
.read-thread { position: fixed; left: 0; right: 0; top: 62px; z-index: 19; height: 3px; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.read-thread.on { opacity: 1; }
.read-thread i { display: block; height: 100%; transform-origin: left center; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #a9c8f5, #f1a7c0); box-shadow: 0 0 8px rgba(241, 167, 192, .6); border-radius: 0 3px 3px 0; }
@keyframes rc-in { to { opacity: 1; } }
@keyframes rc-fall { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(38px); } }
@media (prefers-reduced-motion: reduce) { .read-cue { animation: none; opacity: 1; } .read-cue .rc-line i { animation: none; opacity: 1; top: 30px; } }

/* Read-on cue stays while reading; light style over the white sections (2026-10-14) */
.read-cue { transition: opacity .5s ease, height .4s ease; }
.read-cue.light { height: 100px; padding-bottom: 12px; background: linear-gradient(to bottom, rgba(243, 245, 250, 0), rgba(243, 245, 250, .86) 55%, rgba(243, 245, 250, .97)); }
.read-cue.light .rc-text { color: var(--ink); text-shadow: none; font-size: .98rem; }
.read-cue.light .rc-line { height: 30px; background: linear-gradient(to bottom, rgba(212, 122, 154, .55), rgba(47, 95, 168, .15)); }
.read-cue.light .rc-line i { background: #d47a9a; box-shadow: 0 0 8px 2px rgba(212, 122, 154, .45); }

/* Smoother hand-off from the intro to the page; quieter read-on cue over white (2026-10-14) */
.opening.pz-intro { background: transparent; isolation: isolate; }
.opening.pz-intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background-color: var(--lapis); background-image:
    radial-gradient(ellipse at 50% 45%, rgba(42, 77, 136, .9), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M22 50V34c0-7 5-10 10-16 5 6 10 9 10 16v16' fill='none' stroke='%23f1a7c0' stroke-opacity='.10' stroke-width='1'/%3E%3C/svg%3E"); transition: opacity 1.05s cubic-bezier(.4, 0, .2, 1) .2s; }
.opening.pz-intro.out { opacity: 1; visibility: visible; transition: none; }
.opening.pz-intro.out::before { opacity: 0; }
.pz-intro.out figcaption { opacity: 0; transition: opacity .45s ease; }
html.pz-intro-reveal .topbar { animation: pz-top-in .9s cubic-bezier(.2, .7, .2, 1) .55s both; }
@keyframes pz-top-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.read-cue.light { height: 88px; background: linear-gradient(to bottom, rgba(243, 245, 250, 0), rgba(243, 245, 250, .7) 60%, rgba(243, 245, 250, .86)); }
.read-cue.light .rc-text { color: var(--muted); font-size: .94rem; }
.read-cue.light .rc-line { height: 26px; opacity: .8; }
.read-cue.light .rc-line i { width: 6px; height: 6px; margin-left: -3px; box-shadow: 0 0 6px 1px rgba(212, 122, 154, .35); }

/* Intro: no caption, slower and softer hand-off; read-on cue still while reading (2026-10-14) */
html.pz-intro-on, html.pz-intro-reveal { scrollbar-gutter: stable; }
.opening.pz-intro::before { transition: opacity 1.5s cubic-bezier(.45, 0, .2, 1) .1s; }
html.pz-intro-reveal .topbar { animation: pz-top-in 1.1s cubic-bezier(.2, .7, .2, 1) .8s both; }
.read-cue.light { height: 64px; padding-bottom: 14px; }
.read-cue.light .rc-line { display: none; }
.read-cue.light .rc-text { opacity: .55; font-size: .9rem; }

/* Read-on cue returns in full after a 4-second pause (2026-10-14) */
.read-cue.light { height: 96px; padding-bottom: 12px; }
.read-cue.light .rc-line { display: block; height: 28px; }
.read-cue.light .rc-text { opacity: .8; font-size: .94rem; }

/* Read-on: appears a touch sooner, quieter once white shows (2026-10-14) */
.read-cue { animation-delay: .2s; }
.read-cue .rc-text { transition: color .4s ease, opacity .4s ease; }
.read-cue.light .rc-text { opacity: .6; }
.read-cue.light .rc-line { opacity: .65; }

/* Read-on: clearly visible when it returns after a 5-second pause (2026-10-14) */
.read-cue.light.back { background: linear-gradient(to bottom, rgba(243, 245, 250, 0), rgba(243, 245, 250, .9) 50%, rgba(243, 245, 250, .98)); }
.read-cue.light.back .rc-text { opacity: 1; color: var(--ink); font-size: 1rem; }
.read-cue.light.back .rc-line { opacity: 1; }
.read-cue.light.back .rc-line i { box-shadow: 0 0 9px 3px rgba(212, 122, 154, .55); }

/* Already married note (2026-10-14) */
.married-note { margin: -4px 0 18px; padding: 12px 14px; border-radius: 12px; background: #fdf1f5; border: 1px solid #f3cfdc; color: var(--ink); font-size: .92rem; line-height: 1.55; }
.married-note strong { color: #a84e72; }

/* Google's own sign-in button (2026-10-14) */
.gsi-btn { display: flex; justify-content: center; min-height: 44px; margin-bottom: 10px; }

/* Where you live: moved note (2026-10-14) */
.moved-note { margin: 10px 0 18px; padding: 12px 14px; border-radius: 12px; background: #eef4fd; border: 1px solid #cfdcf3; color: var(--ink); font-size: .94rem; line-height: 1.55; }
.moved-note strong { color: var(--lapis); }

/* Faint watermark on match photos while held (2026-10-14) */
.pz-wm { position: absolute; inset: -35%; display: flex; flex-direction: column; justify-content: space-around; align-items: center; transform: rotate(-24deg); pointer-events: none; user-select: none; opacity: 0; transition: opacity .2s ease; z-index: 2; }
.pz-wm span { white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .2); text-shadow: 0 0 1px rgba(0, 0, 0, .15); }
.pz-hold.show .pz-wm { opacity: 1; }

/* Moving forward + video calls (2026-10-15) */
.pf-card { margin-bottom: 16px; border-left: 4px solid #2f5fa8; }
.pf-card h3 { margin-top: 0; }
.pf-h { margin: 16px 0 6px; font-size: 1rem; }
.pf-good { color: #1f7a4d; font-weight: 600; }
.pf-times { display: grid; gap: 10px; margin: 8px 0; }
.pf-times label { display: grid; gap: 4px; }
.pf-times input[type=datetime-local] { width: 100%; }
.pf-times .check { display: flex; gap: 8px; align-items: center; }
.pf-list { margin: 8px 0 10px; padding-left: 18px; }
.pf-list li { margin: 4px 0; }
.pf-steps { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 8px; }
.pf-steps .check { display: flex; gap: 8px; align-items: flex-start; }
.pf-card .btn + .btn { margin-left: 8px; }

/* Move forward: locked until they've talked a while (2026-10-15) */
.pf-locked { opacity: .55; cursor: help; }
.pf-lock { display: inline-block; width: 10px; height: 8px; margin-right: 7px; border: 2px solid currentColor; border-radius: 2px; position: relative; top: 1px; }
.pf-lock::before { content: ''; position: absolute; left: 0; top: -7px; width: 6px; height: 6px; border: 2px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.pf-prog { margin-top: 8px; }

/* Photos stay hidden until held, even on the first reveal; quieter hint and watermark (2026-10-15) */
.pz-hold img.unveil { animation: none !important; }
.pz-hold-hint { left: 50%; right: auto; transform: translateX(-50%); bottom: 6px; padding: 4px 10px; font-size: .68rem; font-weight: 600; background: rgba(15, 28, 54, .5); gap: 4px; }
.pz-hold-hint svg { width: 12px; height: 12px; }
.pz-wm span { font-size: 10px; color: rgba(255, 255, 255, .13); text-shadow: none; }

/* Even quieter photo hint, watermark and note (2026-10-15) */
.pz-hold-hint { background: rgba(15, 28, 54, .28); color: rgba(255, 255, 255, .82); font-size: .62rem; font-weight: 500; padding: 3px 8px; bottom: 5px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pz-hold-hint svg { width: 10px; height: 10px; opacity: .8; }
.pz-wm span { font-size: 9px; color: rgba(255, 255, 255, .08); }

/* Hold label back to its normal, clear look (only the watermark stays faint) (2026-10-15) */
.pz-hold-hint { left: 8px; right: 8px; transform: none; bottom: 8px; padding: 8px 10px; gap: 6px; background: rgba(15, 28, 54, .74); color: #fff; font-size: .78rem; font-weight: 600; }
.pz-hold-hint svg { width: auto; height: auto; opacity: 1; }

/* Phone chat: steady height while scrolling (address bar no longer resizes it) + wali note (2026-10-15) */
@media (max-width: 720px) {
  .chat-main { height: calc(100vh - 130px); height: calc(100svh - 130px); }
  .messages { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}
.pf-wali { background: #fff7e6; border: 1px solid #f1d9a6; border-radius: 10px; padding: 8px 10px; }

/* Moving forward v2 (2026-10-15) */
.pf { background: #fff; border: 1px solid #e3e7ef; border-radius: 14px; box-shadow: 0 1px 2px rgba(15,28,54,.05), 0 6px 18px rgba(15,28,54,.06); margin-bottom: 14px; overflow: hidden; }
.pf-head { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; background: linear-gradient(135deg, #0f1c36, #1d3461); color: #fff; }
.pf-head:focus-visible { outline: 3px solid #b8913a; outline-offset: -3px; }
.pf-head-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pf-eyebrow { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #e2c98f; font-weight: 700; }
.pf-head-txt strong { font-size: .98rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-chev { flex: none; transition: transform .2s ease; opacity: .85; }
.pf.open .pf-chev { transform: rotate(180deg); }
.pf-body { display: none; padding: 16px; }
.pf.open .pf-body { display: block; }
.pf-track { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: none; }
.pf-track li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .74rem; color: #8a93a6; text-align: center; position: relative; }
.pf-track li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: #eef1f6; color: #8a93a6; position: relative; z-index: 1; }
.pf-track li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: #e3e7ef; }
.pf-track li.done span { background: #1f7a4d; color: #fff; }
.pf-track li.done:not(:last-child)::after { background: #1f7a4d; }
.pf-track li.now { color: #0f1c36; font-weight: 600; }
.pf-track li.now span { background: #0f1c36; color: #fff; box-shadow: 0 0 0 4px rgba(184,145,58,.25); }
.pf-sec { border-top: 1px solid #eef1f6; padding-top: 14px; margin-top: 14px; }
.pf-body > .pf-sec:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.pf-sec h4 { margin: 0 0 8px; font-size: .95rem; color: #0f1c36; }
.pf-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pf-count { font-size: .78rem; color: #5b6577; font-weight: 600; }
.pf-lead { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; color: #2a3346; }
.pf-note, .pf-muted { font-size: .78rem; color: #6b7487; margin: 4px 0 0; }
.pf-good { color: #1f7a4d; font-weight: 600; margin: 0 0 8px; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.pf-actions .btn + .btn { margin-left: 0; }
.pf-chip { font-size: .78rem; background: #eef1f6; color: #3b4559; border-radius: 999px; padding: 7px 12px; }
.pf-meters { display: grid; gap: 10px; }
.pf-meter-top { display: flex; justify-content: space-between; font-size: .8rem; color: #3b4559; margin-bottom: 4px; }
.pf-meter-bar { height: 6px; background: #eef1f6; border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.pf-meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, #b8913a, #d8b46a); border-radius: inherit; transition: width .3s ease; }
.pf-form { display: grid; gap: 8px; }
.pf-slot { display: grid; grid-template-columns: 28px 1fr 1fr; gap: 8px; align-items: center; }
.pf-slot-n { width: 26px; height: 26px; border-radius: 50%; background: #0f1c36; color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.pf-slot input, .pf-slot select { width: 100%; min-width: 0; min-height: 42px; font-size: 16px; }
.pf-choices { display: grid; gap: 8px; }
.pf-choice { display: flex; align-items: center; gap: 10px; border: 1.5px solid #e3e7ef; border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.pf-choice:has(input:checked) { border-color: #0f1c36; background: #f5f7fb; }
.pf-choice input { margin: 0; accent-color: #0f1c36; }
.pf-choice-day { font-weight: 600; color: #0f1c36; }
.pf-choice-time { margin-left: auto; color: #3b4559; font-size: .88rem; }
.pf-optlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pf-optlist li { display: flex; justify-content: space-between; gap: 8px; background: #f5f7fb; border-radius: 8px; padding: 10px 12px; font-size: .88rem; }
.pf-ticket { display: flex; gap: 14px; align-items: center; background: #f7f4ec; border: 1px solid #ecdfbf; border-radius: 12px; padding: 12px 14px; }
.pf-date { flex: none; width: 54px; border-radius: 10px; background: #fff; border: 1px solid #ecdfbf; text-align: center; overflow: hidden; }
.pf-date span { display: block; background: #b8913a; color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 0; }
.pf-date strong { display: block; font-size: 1.35rem; color: #0f1c36; padding: 4px 0 6px; }
.pf-ticket-info { display: grid; gap: 2px; font-size: .86rem; color: #2a3346; min-width: 0; }
.pf-ticket-info strong { color: #0f1c36; font-size: .95rem; }
.pf-guide { margin-top: 12px; font-size: .84rem; color: #3b4559; }
.pf-guide summary { cursor: pointer; font-weight: 600; color: #0f1c36; }
.pf-guide ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.pf-wali { margin: 14px 0 0; font-size: .82rem; background: #fbf6ea; border: 1px solid #ecdfbf; color: #5a4a22; border-radius: 10px; padding: 10px 12px; }
.pf-later { margin: 14px 0 0; font-size: .82rem; color: #6b7487; border-top: 1px dashed #e3e7ef; padding-top: 12px; }
.pf-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.pf-steps label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #e3e7ef; border-radius: 10px; padding: 11px 12px; cursor: pointer; transition: background .15s, border-color .15s; }
.pf-steps input { position: absolute; opacity: 0; pointer-events: none; }
.pf-steps input:focus-visible + .pf-step-n { outline: 3px solid #b8913a; outline-offset: 2px; }
.pf-step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #c7cedb; color: #5b6577; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.pf-step-t { display: grid; gap: 2px; font-size: .82rem; color: #5b6577; line-height: 1.45; }
.pf-step-t strong { font-size: .9rem; color: #0f1c36; }
.pf-step-t em { font-style: normal; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8a6a22; background: #f7efd9; border-radius: 999px; padding: 2px 7px; margin-left: 4px; vertical-align: 1px; }
.pf-steps li.done label { background: #f2f8f4; border-color: #cfe5d8; }
.pf-steps li.done .pf-step-n { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.pf-steps li.done .pf-step-t strong { color: #1f5f3e; }
.pf-married { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef1f6; }
.pf-married p { margin: 0 0 10px; font-size: .86rem; color: #2a3346; }
.pz-jump { position: absolute; right: 14px; bottom: 84px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 9px 14px; background: #0f1c36; color: #fff; font-size: .8rem; font-weight: 600; box-shadow: 0 6px 18px rgba(15,28,54,.25); cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.pz-jump.show { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 720px) {
  .pz-chatnav { display: flex; gap: 8px; margin: 8px 0 10px; position: sticky; top: 0; z-index: 6; background: var(--bg, #fbf8f1); padding: 6px 0; }
  .pz-chatnav button { flex: 1; border: 1px solid #e3e7ef; background: #fff; color: #0f1c36; border-radius: 999px; padding: 9px 12px; font-size: .82rem; font-weight: 600; cursor: pointer; }
  .chat-main, .chat-page aside { scroll-margin-top: 60px; }
  .pf { margin-bottom: 10px; border-radius: 12px; }
  .pf-head { padding: 12px 14px; }
  .pf-body { max-height: 62svh; overflow-y: auto; overscroll-behavior: contain; }
  .pf-track li { font-size: .7rem; }
}

/* Chat: view photo button + dialog (2026-10-15) */
.pz-chat-photo { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #ecdfbf; background: #fbf6ea; color: #5a4a22; border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap; margin-left: auto; }
.pz-chat-photo svg { width: 16px; height: 16px; }
.pz-chat-photo:hover { background: #f7efd9; }
.pz-photo-dlg { border: 0; border-radius: 16px; padding: 18px; width: min(340px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(15,28,54,.3); }
.pz-photo-dlg::backdrop { background: rgba(15,28,54,.55); }
.pz-photo-dlg h3 { margin: 0 0 12px; }
.pz-photo-dlg .match { margin: 0 auto; }
.pz-photo-dlg p { margin: 12px 0; }
.pz-photo-dlg form { text-align: right; }
@media (max-width: 720px) { .pz-chat-photo span { font-size: .74rem; } }

/* Chat: floating scroll-down button + invite wali (2026-10-15) */
.pz-jump { position: fixed; right: 18px; bottom: calc(22px + env(safe-area-inset-bottom)); left: auto; top: auto; z-index: 60; width: 48px; height: 48px; padding: 0; border-radius: 50%; justify-content: center; gap: 0; }
.pz-jump span { display: none; }
.pz-jump:hover { background: #1d3461; }
.pz-jump:focus-visible { outline: 3px solid #b8913a; outline-offset: 3px; }
.pz-invite-wali { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c9d6ec; background: #eef3fb; color: #1d3461; border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap; margin-left: auto; }
.pz-invite-wali + .pz-chat-photo, .pz-chat-photo + .pz-invite-wali { margin-left: 6px; }
.pz-invite-wali:hover { background: #e2eaf7; }
.pf-wali-btn { all: unset; cursor: pointer; font-weight: 700; color: #1d3461; text-decoration: underline; text-underline-offset: 2px; }
@keyframes pz-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(184,145,58,0); } 30% { box-shadow: 0 0 0 6px rgba(184,145,58,.45); } }
.pz-flash { animation: pz-flash 1.4s ease 2; border-radius: 14px; }
@media (max-width: 720px) {
  .pz-jump { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
}

/* Chat action row under the header (2026-10-15) */
.pz-chat-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 8px 14px; border-bottom: 1px solid var(--line, #ece6d8); background: var(--surface, #fff); }
.pz-chat-actions:empty { display: none; }
.pz-chat-actions .pz-invite-wali, .pz-chat-actions .pz-chat-photo { margin-left: 0; }

/* Phones: chat fits one screen (2026-10-15) */
@media (max-width: 720px) {
  .chat-main .chat-top, .chat-main .pz-chat-actions, .chat-main .composer { flex: none; }
  .chat-main .messages { min-height: 160px; }
  .pz-chatnav { z-index: 19; }
}

/* Scroll button steps + chat scrolling on phones (2026-10-15) */
.pz-jump svg { transition: transform .2s ease; }
.pz-jump.up svg { transform: rotate(180deg); }
.pf-tog { flex: none; font-size: .74rem; font-weight: 700; letter-spacing: .03em; color: #e2c98f; border: 1px solid rgba(226,201,143,.5); border-radius: 999px; padding: 3px 10px; }
@media (max-width: 720px) {
  .messages, .chat-main .messages, .pf-body { overscroll-behavior: auto; }
}

/* Phones: more room for messages (2026-10-15) */
@media (max-width: 720px) {
  .chat-page > .row.between { display: none; }
  .pz-note-out { border: 1px solid var(--line, #ece6d8); border-radius: 12px; background: var(--surface, #fff); margin: 10px 0 0; padding: 10px 14px; font-size: .8rem; line-height: 1.5; }
}

/* Phones: slim Messages / Conversation details buttons (2026-10-15) */
@media (max-width: 720px) {
  .pz-chatnav { margin: 4px 0 8px; padding: 4px 0; gap: 6px; }
  .pz-chatnav button { padding: 7px 10px; font-size: .78rem; }
}

/* Phones: Conversation details pill (2026-10-15) */
.pz-details-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dfe3ea; background: #f5f7fb; color: #0f1c36; border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pz-details-btn:hover { background: #eef1f6; }
.pz-chat-actions { padding: 6px 12px; }

/* Moving forward: Confirm / Send buttons stay in view while choosing (2026-10-15) */
.pf-choices .pf-actions, .pf-form .pf-actions { position: sticky; bottom: -16px; z-index: 2; background: #fff; margin: 12px -16px -16px; padding: 12px 16px 14px; border-top: 1px solid #eef1f6; box-shadow: 0 -10px 16px -14px rgba(15,28,54,.35); }
.pf-choices .pf-actions .btn, .pf-form .pf-actions .btn { flex: 1 1 auto; justify-content: center; }

/* Phones: smaller message text and header, a little more chat (2026-10-16) */
@media (max-width: 720px) {
  .chat-main .msg { padding: 7px 11px; }
  .chat-main .msg .text { font-size: .88rem; line-height: 1.4; }
  .chat-main .msg .who { font-size: .68rem; margin-bottom: 1px; }
  .chat-main .msg .when { font-size: .64rem; margin-top: 2px; }
  .chat-main .messages { gap: 7px; padding: 12px; }
  .chat-main .chat-top { padding-top: 8px; padding-bottom: 8px; }
  .chat-main .ct-info strong { font-size: .95rem; }
  .chat-main .ct-info span { font-size: .68rem; }
  .pz-note-out { font-size: .72rem; line-height: 1.45; padding: 8px 12px; }
}

/* Phones: the 3 suggested times side by side so they all show at once (2026-10-16) */
@media (max-width: 720px) {
  .pf-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pf-choices .pf-actions { grid-column: 1 / -1; }
  .pf-choice { flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 4px; text-align: center; position: relative; }
  .pf-choice input { position: absolute; opacity: 0; pointer-events: none; }
  .pf-choice-day { font-size: .8rem; line-height: 1.2; }
  .pf-choice-time { margin-left: 0; font-size: .78rem; }
  .pf-choice:has(input:checked) { border-color: #0f1c36; background: #0f1c36; }
  .pf-choice:has(input:checked) .pf-choice-day, .pf-choice:has(input:checked) .pf-choice-time { color: #fff; }
  .pf-choice:has(input:focus-visible) { outline: 3px solid #f1a7c0; outline-offset: 2px; }
}

/* Home hero: hold the current layout until the resize transition runs, then glide (2026-10-16) */
.opening.pz-wide { padding: 72px 0 80px; }
.opening.pz-wide .opening-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
.opening.pz-wide .opening-art { order: 0; }
.opening.pz-wide .scene { max-width: 420px; }
.opening.pz-narrow { padding: 48px 0 56px; }
.opening.pz-narrow .opening-grid { grid-template-columns: 1fr; gap: 32px; }
.opening.pz-narrow .opening-art { order: -1; }
.opening.pz-narrow .scene { max-width: 300px; }
.opening .scene { transition: transform .6s var(--ease-out), max-width .55s cubic-bezier(.2, .8, .2, 1); }
.opening .opening-copy { view-transition-name: pz-hero-copy; }
.opening .opening-art { view-transition-name: pz-hero-art; }
::view-transition-group(pz-hero-copy), ::view-transition-group(pz-hero-art) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(pz-hero-copy), ::view-transition-new(pz-hero-copy), ::view-transition-old(pz-hero-art), ::view-transition-new(pz-hero-art) { animation-duration: .6s; height: 100%; object-fit: contain; }
::view-transition-group(root) { animation-duration: .35s; }

/* Phones: the moving-forward steps (Getting to know · Video call · Next steps) stay pinned at the top of the panel (2026-10-16) */
@media (max-width: 720px) {
  .pf-body .pf-track { position: sticky; top: -16px; z-index: 3; background: #fff; margin: -16px -16px 12px; padding: 12px 16px 10px; border-bottom: 1px solid #eef1f6; box-shadow: 0 10px 14px -14px rgba(15,28,54,.35); }
}

/* Add to calendar choices (2026-10-16) */
.pz-cal-dlg { border: 0; border-radius: 16px; padding: 20px; width: min(340px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(15,28,54,.3); }
.pz-cal-dlg::backdrop { background: rgba(15,28,54,.55); }
.pz-cal-dlg h3 { margin: 0 0 4px; }
.pz-cal-list { display: grid; gap: 8px; margin: 14px 0; }
.pz-cal-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e3e7ef; border-radius: 10px; color: #0f1c36; font-weight: 600; text-decoration: none; }
.pz-cal-opt:hover { background: #f5f7fb; border-color: #c9d2e3; }
.pz-cal-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pz-cal-dot.g { background: #4285f4; } .pz-cal-dot.o { background: #0f6cbd; } .pz-cal-dot.a { background: #f1a7c0; }
.pz-cal-dlg form { text-align: right; }

/* "Before the call" always visible, as a tidy checklist (2026-10-16) */
.pf-guide { margin-top: 14px; background: #f7f9fc; border: 1px solid #e3e9f3; border-left: 3px solid #f1a7c0; border-radius: 12px; padding: 12px 14px; font-size: .84rem; color: #2a3346; }
.pf-guide-h { display: flex; align-items: center; gap: 7px; font-weight: 700; color: #0f1c36; font-size: .86rem; margin-bottom: 8px; }
.pf-guide-h svg { color: #e98fb0; flex: none; }
.pf-guide ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pf-guide li { position: relative; padding-left: 22px; line-height: 1.45; }
.pf-guide li::before { content: ""; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #1f7a4d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* Next steps: ticking a step never moves the page; istikhara learn link (2026-10-16) */
.pf-steps label { position: relative; }
.pf-steps input { top: 0; left: 0; width: 1px; height: 1px; }
.pf-learn { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 600; color: #1d3461; text-decoration: underline; text-decoration-color: #f1a7c0; text-underline-offset: 3px; }
.pf-learn:hover { color: #0f1c36; text-decoration-color: #e98fb0; }

/* Ask the chaperone + istikhara guide (2026-10-16) */
.pz-ask-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #f3c6d6; background: #fdf2f6; color: #8a2c52; border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pz-ask-btn:hover { background: #fbe6ee; }
.pz-ask-dlg, .pz-guide-dlg { border: 0; border-radius: 16px; box-shadow: 0 20px 60px rgba(15,28,54,.3); color: #1b2540; }
.pz-ask-dlg::backdrop, .pz-guide-dlg::backdrop { background: rgba(15,28,54,.55); }
.pz-ask-dlg { padding: 20px; width: min(440px, calc(100vw - 32px)); }
.pz-ask-dlg h3 { margin: 0 0 6px; }
.pz-ask-dlg textarea { width: 100%; margin: 12px 0; font-size: 16px; min-height: 110px; resize: vertical; }
.pz-ask-actions { display: flex; justify-content: flex-end; gap: 8px; }
.pz-guide-dlg { padding: 0; width: min(620px, calc(100vw - 24px)); max-height: min(86vh, 900px); flex-direction: column; }
.pz-guide-dlg[open] { display: flex; }
.pz-guide-body { overflow-y: auto; padding: 22px 22px 8px; font-size: .92rem; line-height: 1.6; }
.pz-guide-body h3 { margin: 0 0 6px; color: #0f1c36; }
.pz-guide-body h4 { margin: 20px 0 8px; color: #0f1c36; font-size: 1rem; padding-left: 10px; border-left: 3px solid #f1a7c0; }
.pz-guide-body ul, .pz-guide-body ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.pz-guide-body p { margin: 0 0 10px; }
.pz-src { font-size: .8rem; color: #5b6577; }
.pz-src a { color: #1d3461; font-weight: 600; text-decoration-color: #f1a7c0; text-underline-offset: 3px; }
.pz-ar { font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif; font-size: 1.3rem; line-height: 2.1; background: #f7f9fc; border: 1px solid #e3e9f3; border-radius: 12px; padding: 14px 16px; color: #0f1c36; }
.pz-tr { font-size: .85rem; color: #3b4559; }
.pz-en { background: #fdf6f9; border-left: 3px solid #f1a7c0; border-radius: 8px; padding: 10px 14px; font-size: .88rem; }
.pz-guide-foot { padding: 12px 22px 16px; border-top: 1px solid #eef1f6; text-align: right; background: #fff; border-radius: 0 0 16px 16px; }
button.pf-learn { all: unset; cursor: pointer; display: inline-block; margin-top: 5px; font-size: .78rem; font-weight: 700; color: #1d3461; text-decoration: underline; text-decoration-color: #f1a7c0; text-underline-offset: 3px; }
button.pf-learn:focus-visible { outline: 2px solid #f1a7c0; outline-offset: 2px; border-radius: 4px; }

/* Admin: Video calls tab (2026-10-16) */
.pz-call-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 10px; flex-wrap: wrap; }
.pz-call-row.live { border-color: #f1a7c0; box-shadow: 0 0 0 3px rgba(241,167,192,.25); }
.pz-call-date { flex: none; width: 56px; border-radius: 10px; border: 1px solid #ecdfbf; text-align: center; overflow: hidden; background: #fff; }
.pz-call-date span { display: block; background: #1e3a6b; color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 0; }
.pz-call-date strong { display: block; font-size: 1.35rem; color: #0f1c36; padding: 4px 0 6px; }
.pz-call-info { flex: 1 1 220px; display: grid; gap: 2px; min-width: 0; }
.pz-call-info strong { color: #0f1c36; }
.pz-call-act { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-live { color: #b0306a; }
.pz-soon { color: #8a6a22; }
.pz-count-pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #f1a7c0; color: #1e3a6b; font-size: .78rem; vertical-align: 2px; }
.pz-call-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.pz-call-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line, #ece6d8); border-radius: 10px; padding: 10px 14px; background: #fff; }
.pz-call-list li > div { display: grid; gap: 2px; min-width: 0; }
@media (max-width: 720px) { .pz-call-act { width: 100%; } .pz-call-act .btn { flex: 1 1 auto; justify-content: center; } }

/* After-call feedback (2026-10-16) */
.pf-fb { border: 1px solid #f3c6d6; background: linear-gradient(180deg, #fff7fa, #fff); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.pf-fb h4 { margin: 0 0 4px; color: #0f1c36; font-size: .95rem; }
.pf-fb p { margin: 6px 0 10px; font-size: .86rem; color: #2a3346; line-height: 1.5; }
.pf-stars { display: flex; gap: 6px; margin: 8px 0 10px; }
.pf-stars button { all: unset; cursor: pointer; font-size: 1.7rem; line-height: 1; color: #d9dde6; transition: color .15s, transform .15s; }
.pf-stars button:hover { transform: scale(1.12); }
.pf-stars button.on { color: #e98fb0; }
.pf-stars button:focus-visible { outline: 2px solid #f1a7c0; outline-offset: 3px; border-radius: 4px; }
.pf-fb textarea { width: 100%; font-size: 16px; min-height: 70px; resize: vertical; }
.pf-fb-act { display: flex; justify-content: flex-end; margin-top: 8px; }
.pf-fb-done strong { color: #1f5f3e; }

/* Agree before joining (no wali yet) (2026-10-16) */
.pz-agree-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; padding: 12px 14px; border: 1px solid #f3c6d6; background: #fff7fa; border-radius: 10px; font-size: .9rem; line-height: 1.45; cursor: pointer; }
.pz-agree-check input { margin-top: 3px; accent-color: #1e3a6b; width: 18px; height: 18px; flex: none; }

/* All moving-forward steps complete (2026-10-16) */
.pf-complete { display: grid; gap: 4px; background: #f2f8f4; border: 1px solid #cfe5d8; border-left: 3px solid #1f7a4d; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; font-size: .86rem; color: #2a3346; }
.pf-complete strong { color: #1f5f3e; }


/* How it works: more room between steps on phones, and each step glows as the light reaches it (2026-10-17) */
@keyframes pzStepHit { 0% { box-shadow: 0 0 0 0 rgba(244,169,195,0); } 30% { box-shadow: 0 0 0 10px rgba(244,169,195,.4), 0 0 28px 8px rgba(244,169,195,.6); } 100% { box-shadow: 0 0 0 6px rgba(212,122,154,.12); } }
@keyframes pzCardHit { 0% { box-shadow: 0 1px 2px rgba(30,58,107,.05); } 35% { box-shadow: 0 0 0 2px #f3c6d6, 0 12px 32px rgba(212,122,154,.35); } 100% { box-shadow: 0 8px 22px rgba(212,122,154,.12); } }
.path li.hit::before { animation: pzStepHit 1s ease-out; }
.path li.lit::after { font-weight: 600; }
@media (max-width: 820px) {
  .path { gap: 44px; }
  .path li.hit { animation: pzCardHit 1s ease-out; }
}
@media (prefers-reduced-motion: reduce) { .path li.hit, .path li.hit::before { animation: none; } }


/* Live alert banner + notification check (2026-10-17) */
.pz-live-banner { position: fixed; z-index: 1200; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -140%); width: min(520px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #1e3a6b; color: #fff; text-decoration: none; box-shadow: 0 14px 40px rgba(15,28,54,.35); transition: transform .35s cubic-bezier(.2,.9,.3,1.2); }
.pz-live-banner.in { transform: translate(-50%, 0); }
.pz-lb-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #f1a7c0; box-shadow: 0 0 0 4px rgba(241,167,192,.3); }
.pz-lb-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pz-lb-text strong { font-size: .98rem; }
.pz-lb-text span { font-size: .86rem; color: #d5def0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-lb-x { flex: none; background: transparent; border: 0; color: #d5def0; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 2px 6px; }
.pz-health-body { padding: 10px 12px; border-radius: 10px; background: #f3f5fa; line-height: 1.5; }
.pz-health-body.ok { background: #eaf6ee; color: #1c4d2c; }
.pz-health-body.bad { background: #fdf0f4; color: #7a2343; }
.pz-health-body b { margin-right: 4px; }
.pz-health-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .pz-live-banner { transition: none; } }

/* 2026-10-17: notifications self-repair card + private phone popup */
.pz-fix-push { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 1200; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: #fff; color: #1b2540; border: 1px solid #d9e0ee; border-left: 4px solid #1e3a6b; border-radius: 14px; box-shadow: 0 14px 40px rgba(15,28,54,.22); }
.pz-fix-push .pz-fp-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; }
.pz-fix-push .pz-fp-text span { color: #5a6582; font-size: 13px; }
.pz-fix-push .btn { flex: none; }
.pz-fix-push .pz-fp-x { flex: none; border: 0; background: none; font-size: 22px; line-height: 1; color: #5a6582; padding: 4px 6px; cursor: pointer; }
.pz-phone-dlg .field { margin-top: 12px; }
.pz-phone-dlg input[type=tel] { width: 100%; font-size: 16px; }

/* 2026-10-18: Square gifts - "Other amount" gets its own row under the monthly amounts */
.gift-amounts .btn.gift-other { flex: 1 0 100%; }

/* 2026-10-18: rough weight range under each body type choice */
.choice .bt-lbs { display: block; font-size: 12px; font-weight: 400; opacity: .75; margin-top: 2px; line-height: 1.2; }

/* 2026-10-18: masjid search suggestions */
.mq-wrap { position: relative; }
.mq-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #d9e0ee; border-radius: 12px; box-shadow: 0 14px 34px rgba(15,28,54,.16); max-height: 320px; overflow-y: auto; }
.mq-item { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: #1b2540; }
.mq-item span { font-size: 13px; color: #5a6582; }
.mq-item:hover, .mq-item.on { background: #eef2f9; }
.mq-typed { border-top: 1px solid #edf0f6; margin-top: 4px; }
.mq-by { font-size: 11px; color: #8a93a8; text-align: right; padding: 4px 8px 0; }

/* 2026-10-18: body type as cards - name, short description, weight range in a box */
.choices.bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice.bt-card { display: block; }
.choice.bt-card > span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; height: 100%; padding: 14px 14px 12px; border-radius: 14px; text-align: left; }
.bt-card .bt-name { font-weight: 600; font-size: .95rem; }
.bt-card .bt-desc { font-size: 12.5px; opacity: .75; line-height: 1.3; }
.choice .bt-lbs { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 8px; background: #eef2f9; color: #1e3a6b; font-size: 12.5px; font-weight: 600; opacity: 1; line-height: 1.3; }
.choice input:checked + span .bt-lbs { background: rgba(255,255,255,.2); color: #fff; }
.choice input:checked + span .bt-desc { opacity: .9; }
@media (max-width: 420px) { .choices.bt-grid { grid-template-columns: 1fr 1fr; } }

/* 2026-10-18: moving forward v4 - link-style button for the team-member request */
.pf-link { background: none; border: 0; padding: 0; color: var(--green, #2f5fa8); font: inherit; text-decoration: underline; cursor: pointer; }
.pf-escort-line { margin-top: 10px; }

/* 2026-10-18: full-length photo requests */
.pz-fp-new { background: #fff1f6 !important; border-color: #e7a9c0 !important; color: #8a2f55 !important; }
.pz-fp-wait { opacity: .7; cursor: default; }
.pz-fp-dlg .photo-rules { margin: 10px 0; }
.pz-fp-file { margin-top: 6px; cursor: pointer; }
.pz-fp-prev img { display: block; max-height: 220px; max-width: 100%; border-radius: 12px; margin: 10px 0 4px; }
.pz-fp-ok { margin-top: 10px; }
.pz-fp-acts { flex-wrap: wrap; }
.pz-fp-view .match .photo { aspect-ratio: 3/4; }
.pz-fp-view .match .photo img { object-fit: contain; }
.pz-fp-tip { margin-top: 6px; }

/* 2026-10-18: niqab privacy note + private photo placeholder in admin review */
.pz-niqab-note { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #f3f6fc; border: 1px solid #d9e2f2; border-left: 4px solid #1e3a6b; font-size: 13.5px; line-height: 1.45; color: #2a3346; }
.pz-niqab-note[hidden] { display: none; }
.pz-niqab-note strong { color: #1e3a6b; font-size: 14px; }
.pz-niqab-ph { aspect-ratio: 4/5; display: grid; place-content: center; text-align: center; gap: 4px; border-radius: 10px; background: #1e3a6b; color: #fff; font-weight: 600; font-size: 14px; padding: 10px; }
.pz-niqab-ph span { font-weight: 400; font-size: 12px; opacity: .8; }

/* 2026-10-18: wali checks - sister confirms her wali */
.pz-wali-confirm { margin: 0 0 12px; padding: 14px 16px; border-radius: 14px; background: #fff8ec; border: 1px solid #f1d9a6; border-left: 4px solid #c58a1b; }
.pz-wali-confirm > strong { display: block; color: #6b4a0e; font-size: 15px; margin-bottom: 4px; }
.pz-wali-confirm p { margin: 4px 0 8px; font-size: 14px; }
.pz-wali-confirm ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.pz-wali-confirm li { display: flex; gap: 10px; font-size: 14px; }
.pz-wali-confirm li span { min-width: 92px; color: #6b7487; }
.pz-wali-confirm .row { gap: 8px; flex-wrap: wrap; }
.pz-wali-wait { margin: 10px 0 0; }

/* Missing required answers (2026-10-18) */
.pz-missing { border-radius: 12px; box-shadow: 0 0 0 2px #c62828; background: rgba(198, 40, 40, .04); padding: 8px 10px; scroll-margin: 90px; }
.pz-missing > legend, .pz-missing > label { color: #b3261e; }
.pz-missing select, .pz-missing input[type=text], .pz-missing input:not([type]), .pz-missing textarea { border-color: #c62828; }

/* Why "Finish" can't continue yet, and the missing-answers list (2026-10-18) */
.pz-next-why { color: #b3261e; text-align: right; margin: 8px 0 0; }
.pz-next-why:empty { display: none; }
.pz-miss-list { margin: 10px 0 16px; padding-left: 20px; }
.pz-miss-list li { margin: 4px 0; }

/* Question ideas in the conversation + picture request progress (2026-10-18) */
.pz-qi-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 6px; }
.pz-qi-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line, #d9dee8); background: var(--card, #fff); color: inherit; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
.pz-qi-btn:hover { border-color: #1e3b6c; }
.pz-qi-hint { flex: 1; min-width: 160px; }
.pz-qi-dlg { max-width: 560px; width: calc(100% - 32px); }
.pz-qi-list { max-height: 60vh; overflow-y: auto; margin: 10px 0 14px; padding-right: 4px; }
.pz-qi-cat h4 { margin: 14px 0 6px; font-size: .95rem; }
.pz-qi-cat:first-child h4 { margin-top: 0; }
.pz-qi-q { display: block; width: 100%; text-align: left; border: 1px solid var(--line, #d9dee8); background: transparent; color: inherit; border-radius: 10px; padding: 9px 12px; margin: 0 0 6px; font: inherit; font-size: .92rem; cursor: pointer; }
.pz-qi-q:hover, .pz-qi-q:focus-visible { border-color: #1e3b6c; background: rgba(30, 59, 108, .06); }
.pz-fp-locked { opacity: .7; }
.pz-fp-progress { list-style: none; padding: 0; margin: 12px 0; }
.pz-fp-progress li { display: flex; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--line, #d9dee8); border-radius: 10px; margin-bottom: 6px; }

/* Pull to refresh (iPhone home-screen app) 2026-10-18 */
.pz-ptr { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) - 44px); z-index: 9999; transform: translate(-50%, 0); display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; color: #1e3b6c; box-shadow: 0 6px 20px rgba(15, 30, 60, .18); font-size: .88rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .15s; }
.pz-ptr.show { opacity: 1; }
.pz-ptr-icon { display: inline-flex; transition: transform .2s; }
.pz-ptr.ready .pz-ptr-icon { transform: rotate(180deg); }
.pz-ptr.loading .pz-ptr-icon { animation: pz-ptr-spin .8s linear infinite; }
@keyframes pz-ptr-spin { to { transform: rotate(360deg); } }
@media (prefers-color-scheme: dark) { .pz-ptr { background: #1b2433; color: #e8eefc; } }

/* Who joins the video call: two clear choices for the sister (2026-10-19) */
.pf-opts { display: grid; gap: 10px; margin: 10px 0 4px; }
.pf-opt { display: block; width: 100%; text-align: left; border: 1.5px solid var(--line, #d9dee8); background: var(--card, #fff); color: inherit; border-radius: 12px; padding: 12px 14px; font: inherit; cursor: pointer; }
button.pf-opt:hover, button.pf-opt:focus-visible { border-color: #1e3b6c; background: rgba(30, 59, 108, .05); }
.pf-opt strong { display: block; margin-bottom: 3px; }
.pf-opt span { display: block; font-size: .9rem; opacity: .8; }
.pf-opt-done { cursor: default; border-style: dashed; }
.pz-flash { animation: pz-flash 1.6s ease; }
@keyframes pz-flash { 0%, 100% { box-shadow: none; } 25%, 75% { box-shadow: 0 0 0 3px #e98fb0; } }

/* Chat: the messages area gives way first, so the reply box always fits (2026-10-19) */
.chat-main .messages { min-height: 60px; }
.chat-main .composer, .chat-main .pz-qi-row, .chat-main .chat-top, .chat-main .pz-chat-actions { flex-shrink: 0; }

/* Chat: who is speaking is clear at a glance (2026-10-19). Brother blue, sister pink, wali green, admin notes centred. */
.chat-main .msg:not(.cont) { margin-top: 6px; }
.chat-main .day-sep + .msg { margin-top: 0; }
.chat-main .msg.role-brother:not(.mine) { background: #eef4fd; border-color: #cddcf4; }
.chat-main .msg.role-brother:not(.mine) .who { color: #2f5fa8; opacity: 1; }
.chat-main .msg.role-sister:not(.mine) { background: #fdf0f5; border-color: #f2cddc; }
.chat-main .msg.role-sister:not(.mine) .who { color: #b8487a; opacity: 1; }
.chat-main .msg.role-wali:not(.mine) .who { color: #2e7d5b; opacity: 1; }
.chat-main .msg.role-brother.mine { background: linear-gradient(135deg, #2f5fa8, #1e3a6b); color: #fff; }
.chat-main .msg.role-sister.mine { background: linear-gradient(135deg, #c2557f, #9c3d63); color: #fff; border-color: transparent; }
.pz-observer .msg.role-sister:not(.admin) { align-self: flex-end; border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.pz-observer .msg.role-sister.cont:not(.admin) { border-top-left-radius: 18px; border-top-right-radius: 6px; }
.pz-observer .msg.role-sister:not(.admin) .who { justify-content: flex-end; }
.msg .tag.tag-brother { background: #dce7f8; color: #2f5fa8; }
.msg .tag.tag-sister { background: #f9dbe7; color: #b8487a; }

/* Admin: live chats (2026-10-19) */
.pz-live-chats td { vertical-align: top; }
.pz-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2e9e5b; margin-right: 6px; box-shadow: 0 0 0 3px rgba(46, 158, 91, .18); vertical-align: middle; }
.pill.pz-pill-red { background: #fde8e8; color: #b3261e; }

/* Admin reading a chat they haven't joined (2026-10-19) */
.pz-admin-join { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff8fb; flex-shrink: 0; }

/* Already-married brother warning on a sister's match cards (2026-10-19) */
.card.match.pz-married{border:2px solid #e0a040}
.pz-married-flag{display:flex;flex-direction:column;gap:3px;background:#fff4e2;border:1.5px solid #e9b25c;border-left:5px solid #c77700;border-radius:10px;padding:10px 12px;margin:10px 0;color:#5a3a00;font-size:14px;line-height:1.45;text-align:left}
.pz-married-flag strong{color:#8a4b00;font-size:15.5px;letter-spacing:.01em}
.pz-married-flag strong::before{content:"\26A0\FE0E";margin-right:6px}

/* Admin: all flags in one conversation (2026-10-19) */
.pz-flag-btn{border:0;cursor:pointer;font:inherit;font-size:12.5px;text-decoration:underline;text-underline-offset:2px}
.pz-flag-btn:hover{filter:brightness(.95)}
.pz-flags-dlg{max-width:620px;width:calc(100% - 24px)}
.pz-flags-dlg .pz-flags-list{max-height:60vh;overflow:auto;margin:10px 0;padding:0}
.pz-flags-dlg .pz-flags-list li{border:1px solid #e3e7f0;border-radius:10px;padding:10px 12px;margin-bottom:8px;list-style:none}
.pz-flags-dlg .pz-flags-list li.is-open{border-color:#e6a3a3;background:#fdf6f6}

/* Admin Live chats: every cell opens the conversation's details (2026-10-19) */
.pz-cell-btn{background:none;border:0;padding:2px 4px;margin:-2px -4px;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:6px;text-decoration:underline dotted;text-underline-offset:3px}
.pz-cell-btn:hover{background:#eef2fa}
.pz-info-dlg .pz-info-body{max-height:62vh;overflow:auto;margin:6px 0 10px}
.pz-info-sec{border:1px solid #e3e7f0;border-radius:10px;padding:10px 12px;margin-bottom:8px}
.pz-info-sec h4{margin:0 0 6px;font-size:14px}
.pz-info-sec.is-hit{border-color:#2f5fa8;box-shadow:0 0 0 2px rgba(47,95,168,.15)}
.pz-info-sec .facts{margin:0}

/* In-app browsers (Instagram, Facebook, TikTok…): ask to open in Safari/Chrome before sign-up or log-in (2026-10-19) */
html.pz-inapp-on, html.pz-inapp-on body{overflow:hidden}
.pz-inapp{position:fixed;inset:0;z-index:2147483000;background:rgba(18,28,52,.72);display:flex;align-items:center;justify-content:center;padding:16px}
.pz-inapp-card{background:#fff;color:#1b2540;border-radius:16px;max-width:420px;width:100%;padding:22px 20px;box-shadow:0 18px 50px rgba(0,0,0,.3);text-align:left}
.pz-inapp-card h2{margin:0 0 10px;font-size:21px;line-height:1.25;color:#1e3a6b}
.pz-inapp-card p{margin:0 0 12px;line-height:1.5}
.pz-inapp-card .pz-inapp-open{width:100%;margin:4px 0 12px}
.pz-inapp-steps{background:#f3f5fa;border-radius:10px;padding:10px 12px}

/* In-app browsers: no Google sign-in buttons or One Tap at all (2026-10-19) */
html.pz-inapp-app .g_id_signin, html.pz-inapp-app #credential_picker_container, html.pz-inapp-app #credential_picker_iframe, html.pz-inapp-app iframe[src*="accounts.google.com"]{display:none!important}

/* Video call calendar (2026-10-19) */
.pzc-dlg{max-width:760px;width:calc(100% - 20px)}
.pzc{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;margin-top:10px}
@media (max-width:640px){.pzc{grid-template-columns:1fr}}
.pzc-cal{background:#f6f8fc;border:1px solid #e3e7f0;border-radius:14px;padding:12px}
.pzc-month{font-family:Marcellus,serif;font-size:17px;color:#1e3a6b;margin:0 2px 8px}
.pzc-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.pzc-head span{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#7a8299;text-align:center;padding-bottom:2px}
.pzc-day{position:relative;aspect-ratio:1/1;min-height:38px;border-radius:10px;border:1.5px solid transparent;background:#fff;font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:0;cursor:pointer;transition:transform .12s, box-shadow .12s, border-color .12s}
.pzc-n{font-weight:600;font-size:14px;line-height:1}
.pzc-dot{font-size:10px;line-height:1;color:#fff;background:#2f8a5a;border-radius:99px;padding:2px 5px}
.pzc-full{font-size:9.5px;color:#9aa0b2;text-transform:uppercase;letter-spacing:.03em}
.pzc-day.is-open{border-color:#bfe0cd;color:#173a28}
.pzc-day.is-open:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(30,58,107,.12);border-color:#2f8a5a}
.pzc-day.is-sel{border-color:#2f5fa8;box-shadow:0 0 0 2px rgba(47,95,168,.22)}
.pzc-day.has-pick::after{content:"";position:absolute;top:5px;right:5px;width:7px;height:7px;border-radius:50%;background:#d4a22b}
.pzc-day.is-today .pzc-n{text-decoration:underline;text-underline-offset:3px}
.pzc-day.is-off,.pzc-day.is-full,.pzc-day.is-past{background:#eceef3;color:#b4b9c7;cursor:not-allowed;border-color:transparent}
.pzc-day.is-past{opacity:.45}
.pzc-day:disabled{pointer-events:none}
.pzc-legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px;font-size:12px;color:#5d6680}
.pzc-legend i{display:inline-block;width:11px;height:11px;border-radius:4px;margin-right:5px;vertical-align:-1px}
.lg-open{background:#fff;border:1.5px solid #2f8a5a}.lg-pick{background:#d4a22b}.lg-off{background:#dfe2ea}
.pzc-side{display:flex;flex-direction:column;gap:10px;min-width:0}
.pzc-dayhead{font-weight:700;color:#1e3a6b}
.pzc-times{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:7px;max-height:260px;overflow:auto}
.pzc-time{position:relative;text-align:left;border:1.5px solid #d5dbe8;background:#fff;border-radius:10px;padding:8px 10px;font:inherit;cursor:pointer;display:flex;flex-direction:column;gap:1px}
.pzc-time strong{font-size:15px;color:#1b2540}.pzc-time span{font-size:12px;color:#5d6680}.pzc-time em{font-size:11px;color:#8a90a3;font-style:normal}
.pzc-time:hover{border-color:#2f5fa8}
.pzc-time.is-on{border-color:#d4a22b;background:#fff8e6}
.pzc-time b{position:absolute;top:6px;right:8px;color:#b07d0c}
.pzc-time:disabled{opacity:.45;cursor:not-allowed}
.pzc-picked{border:1px dashed #d4a22b;border-radius:12px;padding:10px 12px;background:#fffdf6}
.pzc-picked-h{display:flex;justify-content:space-between;font-weight:700;font-size:13px;margin-bottom:6px;color:#7a5600}
.pzc-picked ol{margin:0;padding-left:18px}
.pzc-picked li{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13.5px;padding:3px 0}
.pzc-picked li button{border:0;background:none;font-size:18px;line-height:1;color:#9a6b00;cursor:pointer;padding:0 4px}
.pzc-hours{margin-top:8px}

/* Admin: how to start the Jitsi call (2026-10-19) */
.pf-host-tip{display:block;margin-top:6px;background:#fff6e0;border:1px solid #f0d79a;border-radius:8px;padding:6px 8px;font-size:12.5px;color:#5a4300}

/* Google Meet link box for the chaperone (2026-10-19) */
.pz-meet-box{margin:10px 0;padding:10px 12px;border:1px solid #cfe0f5;background:#f3f8ff;border-radius:10px}
.pz-meet-form{display:flex;gap:6px;margin-top:6px}
.pz-meet-form input{flex:1;min-width:0}

/* Admin: Google Meet connection (2026-10-20) */
.pz-google-box{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;margin:0 0 14px;border:1px solid #f0d79a;background:#fff8e6;border-radius:12px}
.pz-google-box.on{border-color:#bfe0cd;background:#f1faf4}
.pz-google-box div{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}

/* Mabrook celebration when both confirm they're getting married (2026-10-21) */
.pz-mabrook { border: 0; padding: 0; background: transparent; width: 100%; max-width: min(440px, calc(100vw - 32px)); overflow: visible; }
.pz-mabrook::backdrop { background: radial-gradient(circle at 50% 35%, rgba(30, 58, 107, .6), rgba(8, 15, 34, .86)); }
.pzm-sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.pzm-sky i { position: absolute; top: -30px; left: var(--x); width: 12px; height: 14px; border-radius: 12px 0 12px 0; background: linear-gradient(135deg, #f8d0de, #e98fb0); opacity: .85; animation: pzm-fall var(--t) linear var(--d) infinite; }
.pzm-sky b { position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%; background: #ffe9a8; box-shadow: 0 0 8px 2px rgba(255, 220, 140, .7); animation: pzm-twinkle 2.6s ease-in-out var(--d) infinite; }
@keyframes pzm-fall { 0% { transform: translate(0, -20px) rotate(0) scale(var(--s)); } 50% { transform: translate(34px, 52vh) rotate(190deg) scale(var(--s)); } 100% { transform: translate(-12px, 108vh) rotate(380deg) scale(var(--s)); } }
@keyframes pzm-twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.25); } }
.pzm-card { position: relative; background: linear-gradient(180deg, #fffaf1, #ffffff 45%); border-radius: 22px; padding: 24px 22px 22px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(201, 154, 60, .35); animation: pzm-rise .7s cubic-bezier(.2, .8, .2, 1) both; max-height: calc(100vh - 32px); overflow: auto; }
@keyframes pzm-rise { from { opacity: 0; transform: translateY(26px) scale(.95); } to { opacity: 1; transform: none; } }
.pzm-moon { width: 86px; height: 86px; margin: 0 auto 2px; display: block; filter: drop-shadow(0 0 14px rgba(212, 170, 80, .55)); }
.pzm-cres { fill: rgba(226, 184, 90, 0); stroke: #c99a3c; stroke-width: 2.5; stroke-dasharray: 260; stroke-dashoffset: 260; animation: pzm-draw 1.6s ease .3s forwards; }
.pzm-star { fill: #e2b85a; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pzm-pop .65s ease 1.6s forwards; }
@keyframes pzm-draw { 70% { fill: rgba(226, 184, 90, 0); } to { stroke-dashoffset: 0; fill: rgba(226, 184, 90, .9); } }
@keyframes pzm-pop { 0% { opacity: 0; transform: scale(.2) rotate(-50deg); } 70% { opacity: 1; transform: scale(1.3) rotate(8deg); } 100% { opacity: 1; transform: scale(1); } }
.pzm-eyebrow { margin: 0; letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; color: #b08530; font-weight: 700; }
.pz-mabrook h2 { margin: 2px 0 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 2.1rem; line-height: 1.15; background: linear-gradient(90deg, #1e3a6b 20%, #c99a3c 50%, #1e3a6b 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: pzm-shine 4s linear infinite; }
@keyframes pzm-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.pzm-lead { margin: 0 0 14px; color: #2a3346; font-size: .95rem; line-height: 1.55; }
.pzm-dua { border: 1px solid rgba(201, 154, 60, .4); background: linear-gradient(180deg, rgba(255, 243, 216, .75), rgba(255, 255, 255, .7)); border-radius: 14px; padding: 14px 14px 10px; margin: 0 0 14px; opacity: 0; animation: pzm-rise .6s ease .9s forwards; }
.pzm-ar { font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', 'Traditional Arabic', serif; font-size: 1.45rem; line-height: 1.9; color: #1e3a6b; margin: 0 0 4px; }
.pzm-tr { font-style: italic; color: #6b5a2e; font-size: .84rem; margin: 0 0 6px; line-height: 1.45; }
.pzm-en { color: #1b2540; font-size: .92rem; margin: 0 0 8px; line-height: 1.5; }
.pzm-src { color: #8a7a55; font-size: .72rem; margin: 0; line-height: 1.4; }
.pzm-next { text-align: left; background: #f3f5fa; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-size: .88rem; color: #2a3346; opacity: 0; animation: pzm-rise .6s ease 1.2s forwards; }
.pzm-next strong { color: #1e3a6b; }
.pzm-next p { margin: 4px 0 0; line-height: 1.5; }
.pz-mabrook .btn { min-width: 170px; }
@media (prefers-reduced-motion: reduce) {
  .pzm-sky i { display: none; }
  .pzm-sky b, .pz-mabrook h2, .pzm-card, .pzm-dua, .pzm-next { animation: none; opacity: 1; }
  .pzm-cres { animation: none; stroke-dashoffset: 0; fill: rgba(226, 184, 90, .9); }
  .pzm-star { animation: none; opacity: 1; }
}

/* Missing answers, one at a time (2026-10-23): a soft gold outline and a small note, not a wall of red */
.pz-missing { border-radius: 12px; box-shadow: 0 0 0 1.5px rgba(201, 154, 60, .75); background: rgba(201, 154, 60, .06); padding: 8px 10px; scroll-margin: 90px; }
.pz-missing > legend, .pz-missing > label { color: inherit; }
.pz-missing select, .pz-missing input[type=text], .pz-missing input:not([type]), .pz-missing textarea { border-color: #c99a3c; }
.pz-miss-hint { margin: 6px 0 0; font-size: .84rem; line-height: 1.4; color: #8a6418; }

/* Body type appears once a height is picked (2026-10-23) */
.pz-reveal { animation: pz-reveal-in .35s ease both; }
@keyframes pz-reveal-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pz-reveal { animation: none; } }

/* Final steps stand out after the video call (2026-10-24) */
.pf-final-intro { display: grid; gap: 4px; background: radial-gradient(circle at 85% 0%, #2a4d88, #1e3a6b 70%); color: #dfe6f5; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; font-size: .88rem; line-height: 1.5; }
.pf-final-intro strong { color: #fff; font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 1.08rem; }
.pf-steps li.next label { border-color: #c99a3c; background: #fffaf0; box-shadow: 0 0 0 3px rgba(201, 154, 60, .18); }
.pf-steps li.next .pf-step-n { border-color: #c99a3c; background: #c99a3c; color: #fff; }
.pf-steps li.next .pf-step-t > strong::after { content: 'Next'; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: #b08530; border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: 2px; }
.pf-marry { background: #fbf7ee; border: 1px solid #ecdfbf; border-radius: 12px; padding: 14px 16px !important; margin-top: 14px; }
.pf-marry h4 { color: #6b4f14 !important; }
.pf-again { opacity: .92; }
.pf-again h4 { font-size: .86rem !important; color: #5b6577 !important; font-weight: 600; }

/* 100 questions: categories open and close (2026-10-24) */
details.pz-qi-cat { border: 1px solid #e3e7ef; border-radius: 12px; padding: 0 12px; margin: 0 0 8px; background: #fff; }
details.pz-qi-cat > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; font-weight: 600; color: #0f1c36; }
details.pz-qi-cat > summary::-webkit-details-marker { display: none; }
details.pz-qi-cat > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid #5b6577; border-bottom: 2px solid #5b6577; transform: rotate(45deg); margin: -4px 4px 0 6px; transition: transform .2s; }
details.pz-qi-cat[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.pz-qi-cat > summary > span:first-child { flex: 1; }
.pz-qi-n { font-size: .74rem; font-weight: 700; color: #6b5a2e; background: #f7efd9; border-radius: 999px; padding: 2px 8px; }
details.pz-qi-cat[open] { padding-bottom: 10px; }

/* Social links in the footer (2026-10-24) */
.pz-social { display: flex; gap: 10px; align-items: center; }
.pz-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #1e3a6b; background: #fff; border: 1px solid #dfe4ee; transition: background .2s, color .2s, transform .2s; }
.pz-social a:hover, .pz-social a:focus-visible { background: #1e3a6b; color: #fff; transform: translateY(-1px); }
