/* Hẹn Nha · web3 night theme. Fonts: Baloo 2 (display) + Nunito (body), self-hosted. */
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --bg: #07060f;
  --bg-2: #0e0b1f;
  --text: #f5f1ff;
  --muted: #a49cc0;
  --stroke: rgba(255, 255, 255, .10);
  --stroke-2: rgba(255, 255, 255, .18);
  --glass: rgba(255, 255, 255, .045);
  --pink: #ff4f8b;
  --violet: #a855f7;
  --cyan: #22d3ee;
  --gold: #ffd166;
  --mint: #5eead4;
  --error: #ff8a9a;
  --ink: #12061c;
  --grad: linear-gradient(110deg, #ff4f8b 0%, #a855f7 50%, #22d3ee 100%);
  --grad-btn: linear-gradient(110deg, #ff4f8b, #a855f7 55%, #ff4f8b);
  --radius: 18px;
  --display: "Baloo 2", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --z-bg: 0;
  --z-glow: 1;
  --z-content: 2;
  --z-popover: 30;
  --z-header: 50;
  --z-runaway: 60;
  --z-fx: 80;
  --z-toast: 90;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { background: var(--bg); color-scheme: dark; scroll-padding-top: 90px; }
body { min-height: 100vh; min-height: 100dvh; font: 16px/1.55 var(--body); color: var(--text); overflow-x: hidden; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--cyan); }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: rgba(255, 79, 139, .4); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.paused, .paused *, .paused::before, .paused::after, .paused *::before, .paused *::after { animation-play-state: paused !important; }

/* ============================ background ============================ */
.bg { position: fixed; inset: 0; z-index: var(--z-bg); overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 120%, #3a0f3e 0%, var(--bg-2) 45%, var(--bg) 80%); }
/* soft edge comes from the radial gradient itself; a 90px blur on these full-viewport layers was the costliest paint on the page */
.aurora { position: absolute; border-radius: 50%; opacity: .55; mix-blend-mode: screen; animation: aurora 18s ease-in-out infinite alternate; }
.a1 { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: radial-gradient(circle, rgba(168, 85, 247, .9), rgba(168, 85, 247, .25) 40%, transparent 70%); }
.a2 { width: 46vw; height: 46vw; right: -12vw; top: 12vh; background: radial-gradient(circle, rgba(255, 79, 139, .9), rgba(255, 79, 139, .25) 40%, transparent 70%); animation-delay: -6s; }
.a3 { width: 60vw; height: 40vw; left: 20vw; bottom: -22vw; background: radial-gradient(circle, rgba(34, 211, 238, .9), rgba(34, 211, 238, .25) 40%, transparent 70%); opacity: .35; animation-delay: -11s; }
@keyframes aurora { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vw, 4vh) scale(1.15); } 100% { transform: translate(-4vw, -3vh) scale(.95); } }
.floor { position: absolute; left: -50%; right: -50%; bottom: -10vh; height: 55vh; overflow: hidden; transform: perspective(500px) rotateX(70deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%); opacity: .5; }
.floor::before { content: ""; position: absolute; inset: -60px 0 0;
  background-image: linear-gradient(rgba(168, 85, 247, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 85, 247, .35) 1px, transparent 1px);
  background-size: 60px 60px; animation: floor 4s linear infinite; }
@keyframes floor { to { transform: translateY(60px); } }
.grain { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.sky { position: absolute; inset: 0; }
.star { position: absolute; border-radius: 50%; background: #fff; animation: twinkle ease-in-out infinite; }
.star.big { box-shadow: 0 0 8px rgba(255, 255, 255, .9); }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
.drift { position: absolute; bottom: -20px; animation: rise linear forwards; text-shadow: 0 0 8px currentColor; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(var(--dx, 30px), -110vh); opacity: 0; } }
.shooting { position: absolute; width: 160px; height: 2px; border-radius: 99px; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); filter: drop-shadow(0 0 6px #fff); animation: shoot 1.3s ease-out forwards; }
@keyframes shoot { 0% { transform: rotate(-35deg) translateX(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: rotate(-35deg) translateX(-760px); opacity: 0; } }
.cursor-glow { position: fixed; left: 0; top: 0; z-index: var(--z-glow); width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(168, 85, 247, .18), rgba(255, 79, 139, .08) 40%, transparent 70%); opacity: 0; transition: opacity .4s; mix-blend-mode: screen; }
.cursor-glow.on { opacity: 1; }

/* ============================ shared bits ============================ */
.glass { position: relative; border-radius: 28px; border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08); }
.glow-border::before { content: ""; position: absolute; inset: -1px; z-index: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--a), transparent 0 55%, var(--pink) 70%, var(--violet) 80%, var(--cyan) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 5s linear infinite; }
@keyframes spin { to { --a: 360deg; } }
.glow-border > * { position: relative; z-index: 1; }
.grad-text { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s ease-in-out infinite alternate; }
@keyframes shimmer { to { background-position: 100% 0; } }
.eyebrow { display: inline-block; font: 700 .74rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.sub { color: var(--muted); font-size: .98rem; margin: 6px 0 22px; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px; font-size: .92rem; }
.link:hover { color: var(--text); }
.badge { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; line-height: 1;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .95), rgba(255, 214, 231, .75)); box-shadow: 0 6px 18px rgba(0, 0, 0, .3), inset 0 1px 0 #fff; }
.big-emoji { font-size: 56px; line-height: 1; margin-bottom: 10px; }
.center { text-align: center; }
.row-gap { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.lottie { position: absolute; pointer-events: none; }
.lt-fill { inset: 0; opacity: .55; }
.split .w { display: inline-block; white-space: nowrap; }
.split .ch, .ask-title .ch { display: inline-block; }
.ask-title .w { display: inline-block; white-space: nowrap; }

/* ============================ buttons ============================ */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 800 1rem/1 var(--display); color: #fff; background: var(--grad-btn); background-size: 200% 100%;
  box-shadow: 0 12px 30px -10px rgba(255, 79, 139, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: background-position .2s ease-out, box-shadow .2s ease-out, opacity .2s; }
.btn::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; z-index: -1; transform: translateX(-150%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transition: transform .6s ease-out; }
.btn:hover { background-position: 100% 0; box-shadow: 0 16px 40px -10px rgba(168, 85, 247, .8), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn:hover::after { transform: translateX(325%) skewX(-20deg); }
.btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.btn:disabled::after { display: none; }
.btn-ghost { background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke-2); box-shadow: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); box-shadow: 0 0 0 4px rgba(168, 85, 247, .15); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ============================ topbar ============================ */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) max(20px, calc((100% - 1160px) / 2), env(safe-area-inset-right)) 14px max(20px, calc((100% - 1160px) / 2), env(safe-area-inset-left));
  transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.topbar.scrolled { background: rgba(7, 6, 15, .65); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-color: var(--stroke); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 800 1.4rem/1 var(--display); }
.brand-orb { width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(from var(--a), var(--pink), var(--violet), var(--cyan), var(--pink));
  box-shadow: 0 0 20px rgba(168, 85, 247, .7); animation: spin 4s linear infinite; position: relative; }
.brand-orb::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg); }
.top-nav { display: flex; align-items: center; gap: 10px; }
.pill-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 700; font-size: .92rem;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke-2); }
.pill-link b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; font-size: .75rem; font-variant-numeric: tabular-nums; background: var(--grad); color: #fff; }
/* language toggle: 34px pills, the ::after pads each hit area to 44px */
.lang-sw { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke-2); }
.lang-sw button { position: relative; min-width: 44px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 800 .78rem/1 var(--mono); letter-spacing: .08em; color: var(--muted); transition: color .2s, background-color .2s; }
.lang-sw button::after { content: ""; position: absolute; inset: -5px -1px; }
.lang-sw button:hover { color: var(--text); }
.lang-sw button[aria-pressed="true"] { background: var(--grad-btn); color: #fff; }
.brand, .pill-link { white-space: nowrap; }
body[data-route="n"] .top-nav > :not(.lang-sw) { display: none; }
body.in-frame .topbar, body.in-frame .cursor-glow { display: none; }

#app { position: relative; z-index: var(--z-content); padding: calc(96px + env(safe-area-inset-top)) 0 calc(60px + env(safe-area-inset-bottom)); }
body.in-frame #app { padding-top: 20px; }

/* ============================ home: hero ============================ */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: calc(100vh - 140px); min-height: calc(100dvh - 140px); }
.chip-live { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; font: 700 .72rem/1 var(--mono); letter-spacing: .14em; color: #e9e3ff;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke-2); }
.chip-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(94, 234, 212, .7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); } }
.hero-title { font-size: clamp(2.6rem, 6.2vw, 4.8rem); line-height: 1.02; margin: 22px 0 18px; }
.grad-line { display: block; padding-bottom: .1em; background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s ease-in-out infinite alternate; }
.lead { color: #cfc8e6; font-size: 1.12rem; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 34px; }

.hero-stage { position: relative; height: 560px; display: grid; place-items: center; perspective: 1200px; }
.stage-card { width: 340px; height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; overflow: hidden; }
.stage-eyebrow { font: 700 .74rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.stage-hint { font-size: .85rem; color: var(--muted); }
.stage-card .love { --w: 210px; }
.orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .16); animation: orbit 26s linear infinite; }
.o1 { width: 470px; height: 470px; margin: -235px 0 0 -235px; }
.o2 { width: 560px; height: 560px; margin: -280px 0 0 -280px; }
.o2 .orbit-ring { animation-duration: 38s; animation-direction: reverse; }
.orbit-ring i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.o1 .p1 { transform: rotate(-30deg) translateX(235px) rotate(30deg); }
.o1 .p2 { transform: rotate(150deg) translateX(235px) rotate(-150deg); }
.o2 .p1 { transform: rotate(20deg) translateX(280px) rotate(-20deg); }
.o2 .p2 { transform: rotate(140deg) translateX(280px) rotate(-140deg); }
.o2 .p3 { transform: rotate(260deg) translateX(280px) rotate(-260deg); }
.orbit-ring span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 24px;
  background: rgba(30, 22, 58, .85); border: 1px solid var(--stroke-2);
  box-shadow: 0 0 24px rgba(168, 85, 247, .35); animation: orbit 26s linear infinite reverse; }
.o2 .orbit-ring span { animation-duration: 38s; animation-direction: normal; }
@keyframes orbit { to { transform: rotate(360deg); } }
.float-badge { position: absolute; z-index: 3; }
.float-badge span { display: inline-block; padding: 10px 16px; border-radius: 16px; font: 800 .92rem/1 var(--display); white-space: nowrap;
  background: rgba(14, 11, 31, .88); border: 1px solid var(--stroke-2);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); animation: bob 4s ease-in-out infinite; }
.fb1 { left: 2%; top: 18%; } .fb1 span { color: var(--mint); }
.fb2 { right: 0; top: 34%; } .fb2 span { color: var(--pink); animation-delay: -1.3s; }
.fb3 { left: 10%; bottom: 10%; } .fb3 span { color: var(--gold); animation-delay: -2.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }

/* ============================ marquee ============================ */
.marquee { position: relative; z-index: var(--z-content); padding: 22px 0; display: grid; gap: 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-row { overflow: hidden; }
.mq-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.mq-row.rev .mq-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; font-weight: 700; white-space: nowrap;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke); }
.mq-chip i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); font-size: 18px; }

/* ============================ sections ============================ */
.section { position: relative; padding: 90px 0 10px; }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 36px; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.sec-head p { color: var(--muted); margin-top: 12px; }

.demo { width: 100%; max-width: 560px; aspect-ratio: 16 / 9; min-height: 290px; margin: 0 auto; overflow: hidden; }
.demo-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; }
.demo .q { font-size: clamp(1.4rem, 3.4vw, 1.9rem); max-width: 400px; margin-bottom: 22px; }
.btns { display: flex; gap: 16px; align-items: center; justify-content: center; }
.demo .q, .demo .btns, .card-chip { position: relative; }
.card-chip { margin-bottom: 14px; }
.card-deco { position: absolute; inset: 0; pointer-events: none; }
.card-frame { position: absolute; inset: 14px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .09);
  background: radial-gradient(circle at 10% 0%, rgba(255, 184, 204, .07), transparent 60%), radial-gradient(circle at 92% 100%, rgba(212, 193, 245, .07), transparent 60%); }
.card-chip { color: #ffc9d8; letter-spacing: .16em; }
.chip-fl { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.fl-defs { position: absolute; }
.fl-corner { position: absolute; width: 120px; height: 120px; }
.fl-corner.c1 { left: 12px; top: 12px; }
.fl-corner.c4 { right: 12px; bottom: 12px; transform: rotate(180deg); }
.fl-svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 0 0; animation: leaf-sway 9s ease-in-out infinite alternate; }
.fl-corner.c4 .fl-svg { animation-delay: -4s; }
@keyframes leaf-sway { from { transform: rotate(-1deg); } to { transform: rotate(1.2deg); } }
#dNo.floating { position: absolute; left: 0; top: 0; z-index: 3; margin: 0; background: rgba(14, 11, 31, .85); touch-action: none; }
.runaway { color: var(--gold); font-weight: 800; margin-top: 14px; }
.demo .runaway { position: absolute; top: 22px; left: 0; right: 0; margin: 0; }
.stamp { font: 800 2.6rem/1 var(--display); color: var(--gold); border: 3px solid var(--gold); border-radius: 18px; padding: 8px 22px; margin-bottom: 16px; box-shadow: 0 0 30px rgba(255, 209, 102, .35), inset 0 0 20px rgba(255, 209, 102, .2); }
.demo-stage p { color: var(--muted); max-width: 340px; margin-bottom: 16px; }

/* hero card: one playable invite (envelope, question, done) */
.demo-host { display: grid; place-items: center; }
.demo-host .demo { aspect-ratio: auto; max-width: 420px; height: 440px; }
.demo-host .love { --w: 210px; }
.demo-tag { position: absolute; top: 16px; left: 20px; z-index: 2; font: 700 .7rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.q-hearts { inset: 0; opacity: .5; }
.demo .q-wrap { position: relative; margin-bottom: 22px; }
.demo .q-wrap .q { margin-bottom: 10px; }
.demo .q-wrap p { margin: 0 auto; font-size: .92rem; }
.done-hands { position: relative; width: 190px; height: 130px; margin: -8px auto -6px; }
.done-line { font-size: .95rem; }
.demo-confetti { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.demo-confetti i { position: absolute; left: 0; top: 0; width: 8px; height: 12px; border-radius: 2px; background: var(--pink); }
.demo-confetti i:nth-child(4n+2) { background: var(--violet); }
.demo-confetti i:nth-child(4n+3) { background: var(--cyan); }
.demo-confetti i:nth-child(4n) { background: var(--gold); }

/* journey map: four stops, the letter flies along the line */
.journey { position: relative; padding: 90px 0 10px; text-align: center; }
.jmap-wrap { position: relative; max-width: 860px; margin: 8px auto 0; padding-top: 6px; }
.jline { position: absolute; left: 12.5%; right: 12.5%; top: 36px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.jline-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--grad); transform-origin: left center; box-shadow: 0 0 14px rgba(255, 79, 139, .6); }
.jflyer { position: absolute; left: 12.5%; top: 38px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; margin: -18px 0 0 -18px; font-size: 26px; opacity: 0; pointer-events: none; }
.jmap { position: relative; z-index: 1; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.jmap li { display: grid; justify-items: center; align-content: start; gap: 12px; }
.jmap b { font: 800 1.05rem/1.2 var(--display); overflow-wrap: anywhere; }
.jdot { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 28px; line-height: 1;
  background: rgba(30, 22, 58, .92); border: 1px solid var(--stroke-2); box-shadow: 0 0 28px rgba(168, 85, 247, .35); }
.jmap .end .jdot { border-color: rgba(255, 209, 102, .5); box-shadow: 0 0 28px rgba(255, 209, 102, .3); }
.jpin { position: absolute; right: -8px; top: -14px; font-style: normal; font-size: 20px; }

/* ticket printer: the ticket slides out of a slot */
.printer { position: relative; width: 100%; max-width: 400px; margin: 0 auto; padding-top: 10px; }
.tk-slot { position: absolute; left: -4%; right: -4%; top: 4px; z-index: 3; height: 14px; border-radius: 999px; border: 1px solid var(--stroke-2);
  background: linear-gradient(180deg, #0b0818, #1d1440); box-shadow: 0 6px 24px -6px rgba(168, 85, 247, .6), inset 0 -2px 0 rgba(255, 255, 255, .08); }
.tk-feed { clip-path: inset(0 -60px -90px -60px); }
.tk-line { color: var(--muted); max-width: 46ch; }

.seg { position: relative; display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke); }
#how .seg { display: grid; width: max-content; margin: 0 auto 30px; }
.seg-ind { position: absolute; left: 0; top: 5px; bottom: 5px; width: 0; border-radius: 999px; background: var(--grad-btn); box-shadow: 0 8px 24px -8px rgba(255, 79, 139, .8); }
.seg-tab { position: relative; z-index: 1; min-height: 40px; padding: 0 20px; border: 0; background: none; border-radius: 999px; cursor: pointer; font: 800 .95rem/1 var(--display); color: var(--muted); transition: color .2s; }
.seg-tab[aria-pressed="true"] { color: #fff; }
.steps { display: grid; gap: 16px; perspective: 1000px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.step-card { padding: 22px; border-radius: 24px; transition: border-color .3s, box-shadow .3s; }
.step-card:hover { border-color: rgba(168, 85, 247, .5); box-shadow: 0 30px 80px -24px rgba(168, 85, 247, .45), inset 0 1px 0 rgba(255, 255, 255, .1); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step-n { font: 800 2.4rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .35); }
.step-card:hover .step-n { -webkit-text-stroke-color: var(--pink); }
.step-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: .94rem; }

.ticket-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.ticket-copy h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 26px; }
.ticks { list-style: none; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .03); border: 1px solid var(--stroke); }
.ticks b { display: block; font-family: var(--display); font-size: 1.08rem; }
.ticks span:not(.badge) { color: var(--muted); font-size: .92rem; }
.ticket-host { perspective: 1000px; }

.cta-band { display: grid; grid-template-columns: 180px 1fr auto; gap: 24px; align-items: center; padding: 30px 36px; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { color: var(--muted); }
.cta-lottie { position: relative; width: 180px; height: 140px; }
.footer { position: relative; z-index: var(--z-content); text-align: center; color: var(--muted); font-size: .88rem; padding: 50px 0 10px; }
.footer nav { display: flex; justify-content: center; gap: 22px; margin-bottom: 8px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ============================ ticket ============================ */
.ticket { position: relative; isolation: isolate; width: 100%; max-width: 370px; margin: 0 auto; padding: 22px 22px 16px; border-radius: 26px; text-align: left; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 60px -20px rgba(168, 85, 247, .6), inset 0 1px 0 rgba(255, 255, 255, .2); }
.ticket .holo { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(255, 255, 255, .35), transparent 38%),
    linear-gradient(115deg, transparent 20%, rgba(255, 79, 139, .35) 35%, rgba(168, 85, 247, .35) 45%, rgba(34, 211, 238, .35) 55%, transparent 70%);
  background-size: 100% 100%, 260% 260%; animation: holo 6s ease-in-out infinite alternate; }
@keyframes holo { from { background-position: 0 0, 0% 50%; } to { background-position: 0 0, 100% 50%; } }
.t-head { display: flex; justify-content: space-between; font: 700 .7rem/1 var(--mono); letter-spacing: .2em; color: var(--cyan); padding-bottom: 12px; border-bottom: 1px dashed rgba(255, 255, 255, .22); }
.t-names { font: 800 1.5rem/1.15 var(--display); padding: 12px 0 4px; overflow-wrap: anywhere; }
.t-names .amp { color: var(--gold); }
.t-row { display: flex; gap: 12px; align-items: center; padding: 7px 0; }
.t-row + .t-row { border-top: 1px dashed rgba(255, 255, 255, .14); }
.t-row .badge { width: 34px; height: 34px; font-size: 17px; }
.t-row small { display: block; font: 700 .62rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.t-row strong { font-size: .92rem; }
.t-perf { position: relative; height: 0; border-top: 1px dashed rgba(255, 255, 255, .3); margin: 12px -22px 0; }
.t-perf::before, .t-perf::after { content: ""; position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid rgba(255, 255, 255, .2); }
.t-perf::before { left: -12px; } .t-perf::after { right: -12px; }
.t-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; }
.t-bar { width: 120px; height: 30px; opacity: .75; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 9px, #fff 9px 12px, transparent 12px 14px); }
.t-code { font: 700 .7rem/1 var(--mono); letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ============================ create ============================ */
.stepper { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); margin: 6px auto 30px; max-width: 760px; }
.st-bar { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 17px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.st-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(168, 85, 247, .8); }
.st-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; cursor: default; }
.st-node:not(:disabled) { cursor: pointer; }
.st-dot { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 800 .95rem/1 var(--display); color: var(--muted);
  background: #15112b; border: 1px solid var(--stroke-2); transition: background .3s, color .3s, border-color .3s; }
.st-label { font-size: .78rem; font-weight: 700; color: var(--muted); }
.st-node.done .st-dot { background: var(--grad-btn); color: #fff; border-color: transparent; }
.st-node.current .st-dot { color: #fff; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 79, 139, .2); }
.st-node.current .st-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--pink); animation: ring 1.6s ease-out infinite; }
.st-node.current .st-label, .st-node.done .st-label { color: var(--text); }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.create-grid { display: grid; grid-template-columns: minmax(0, 680px); justify-content: center; }
.panel { padding: 34px 32px 28px; }
.panel h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.cstep { display: none; }
.cstep.active { display: block; }
.section-label { font: 700 .7rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }

.field { margin-bottom: 18px; }
.field > label { display: flex; align-items: center; gap: 8px; font: 700 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tag { font: 600 .68rem/1 var(--body); letter-spacing: 0; text-transform: none; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--stroke-2); }
.input-wrap { position: relative; }
.input-wrap input, .input { width: 100%; font-size: 16px; padding: 14px 60px 14px 16px; border-radius: 14px; outline: none; resize: none;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke-2); transition: border-color .2s, box-shadow .2s, background .2s; }
textarea.input { padding: 14px 16px 30px; line-height: 1.5; min-height: 100px; }
.input-wrap input::placeholder, .input::placeholder { color: rgba(164, 156, 192, .6); }
.input-wrap input:focus, .input:focus { border-color: var(--violet); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(168, 85, 247, .2), 0 0 30px -6px rgba(168, 85, 247, .6); }
.field.invalid input, .field.invalid .input { border-color: var(--error); box-shadow: 0 0 0 4px rgba(255, 138, 154, .15); }
.count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 600 .75rem/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); pointer-events: none; }
.count.bottom { top: auto; bottom: 12px; transform: none; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.hint.error { color: var(--error); }
.nav { display: flex; gap: 12px; margin-top: 22px; }
.nav .btn { flex: 1; padding-inline: 12px; }

.choices { display: grid; gap: 10px; margin-bottom: 18px; }
.choice { width: 100%; display: flex; align-items: flex-start; gap: 12px; text-align: left; cursor: pointer; padding: 14px 16px; border-radius: var(--radius); font-size: .97rem; line-height: 1.45;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); transition: border-color .2s, background .2s, transform .2s; }
.choice:hover { border-color: rgba(168, 85, 247, .55); transform: translateX(3px); }
.choice.selected { border-color: var(--pink); background: linear-gradient(110deg, rgba(255, 79, 139, .16), rgba(168, 85, 247, .1)); box-shadow: 0 0 30px -12px rgba(255, 79, 139, .7); }
.choice .dot { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--stroke-2); display: grid; place-items: center; }
.choice.selected .dot { border-color: var(--pink); }
.choice.selected .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.c-title { font-weight: 800; font-family: var(--display); font-size: 1.04rem; }
.c-sub { display: block; color: var(--muted); font-size: .85rem; }
.c-body { flex: 1; }
.c-price { font: 800 1.05rem/1.4 var(--display); white-space: nowrap; }
.pill { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 99px; font: 700 .68rem/1.5 var(--body); vertical-align: middle; background: rgba(255, 209, 102, .16); color: var(--gold); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.seg2 .choice { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 10px; }
.seg2 .choice:hover { transform: translateY(-3px); }
.seg2 .ico { font-size: 30px; }
.info, .proposal { padding: 14px 16px; border-radius: var(--radius); font-size: .94rem; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .3); margin: 12px 0; }

.cal { padding: 14px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head strong { font-family: var(--display); font-size: 1.05rem; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke-2); }
.cal-nav:hover:not(:disabled) { border-color: var(--violet); }
.cal-nav:disabled { opacity: .25; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font: 700 .7rem/1 var(--mono); color: var(--muted); text-align: center; padding: 8px 0; }
.cal-day { position: relative; height: clamp(38px, 9vw, 50px); border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer; font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s; }
.cal-day:hover:not(:disabled) { border-color: rgba(168, 85, 247, .6); background: rgba(168, 85, 247, .1); }
.cal-day.today { border-color: var(--stroke-2); }
.cal-day.selected { background: var(--grad-btn); color: #fff; box-shadow: 0 6px 20px -6px rgba(255, 79, 139, .8); }
.cal-day:disabled { opacity: .22; cursor: not-allowed; }
.cal-day.has-event::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.cal-day.has-event.conflict::after { background: var(--error); box-shadow: 0 0 6px var(--error); width: 7px; height: 7px; margin-left: -3.5px; }
.chip { min-height: 40px; padding: 0 6px; border-radius: 12px; cursor: pointer; font: 700 .9rem/1 var(--mono); background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); transition: border-color .2s, background .2s, transform .15s; }
.chip:hover:not(:disabled) { border-color: rgba(168, 85, 247, .6); transform: translateY(-1px); }
.chip.selected { background: var(--grad-btn); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -6px rgba(255, 79, 139, .8); }
.chip:disabled { opacity: .22; cursor: not-allowed; }
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dd { position: relative; }
.dd.open { z-index: var(--z-popover); }
.dd-btn { width: 100%; min-height: 48px; padding: 0 40px 0 16px; border-radius: 14px; cursor: pointer; text-align: left; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text);
  background: rgba(255, 255, 255, .05) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1.5l6 6 6-6' fill='none' stroke='%23a49cc0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 16px center;
  border: 1px solid var(--stroke-2); transition: border-color .2s, box-shadow .2s; }
.dd-btn.placeholder { color: var(--muted); font-weight: 400; }
.dd.open .dd-btn, .dd-btn:focus-visible { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(168, 85, 247, .2); }
.dd-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: 220px; overflow-y: auto; overscroll-behavior: contain; padding: 0;
  border-radius: 14px; border: 1px solid var(--stroke-2); background: #15102b; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); scrollbar-width: thin; }
.dd-item { display: block; width: 100%; height: 44px; padding: 0 16px; text-align: left; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text); cursor: pointer; background: none; border: 0; }
.dd-item:hover:not(:disabled) { background: rgba(168, 85, 247, .18); }
.dd-item.selected { background: var(--grad-btn); color: #fff; font-weight: 800; }
.dd-item:disabled { opacity: .3; cursor: not-allowed; }
.when-line { margin-top: 14px; min-height: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.when-line.ok { color: var(--mint); }

.seg-plans { display: grid; grid-template-columns: 1fr 1fr; margin: 4px 0 14px; }
.seg-plans .seg-tab { color: #fff; }
.seg-plans .seg-tab[aria-pressed="true"] { background: var(--grad-btn); box-shadow: 0 8px 24px -8px rgba(255, 79, 139, .8); }
.seg-plans .seg-tab span { font: 600 .78rem/1 var(--mono); }
.plan-scroll { max-height: 350px; overflow-y: auto; overscroll-behavior: contain; padding: 6px 6px 6px 0; scrollbar-width: thin; }
.group-title { display: flex; justify-content: space-between; align-items: baseline; font: 800 1.05rem/1 var(--display); margin: 14px 0 10px; }
.group-title span { font: 600 .78rem/1 var(--mono); color: var(--pink); }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.opt-grid.two { grid-template-columns: repeat(2, 1fr); margin-bottom: 14px; }
.option { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: var(--radius); cursor: pointer; font-weight: 700; font-size: .88rem; text-align: center;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.option:hover { transform: translateY(-3px); border-color: rgba(168, 85, 247, .55); }
.option.selected { border-color: var(--pink); background: linear-gradient(160deg, rgba(255, 79, 139, .16), rgba(168, 85, 247, .1)); box-shadow: 0 0 26px -10px rgba(255, 79, 139, .8); }
.option.selected .badge { background: radial-gradient(circle at 30% 30%, #fff4e6, var(--gold)); }
.option.selected::after { content: "✓"; position: absolute; top: 8px; right: 10px; font-weight: 800; color: var(--pink); }
.counter { font: 700 .82rem/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); margin-top: 12px; }

.preview-phone { position: relative; width: min(360px, 100%); height: min(680px, 72vh); height: min(680px, 72dvh); min-height: 520px; margin: 4px auto 6px; border-radius: 40px; padding: 10px; overflow: hidden;
  background: #0d0a1c; border: 1px solid var(--stroke-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 6px rgba(255, 255, 255, .03), 0 0 60px -10px rgba(168, 85, 247, .5); }
.preview-host { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: var(--bg); }
.preview-host iframe { width: 100%; height: 100%; border: 0; display: block; }
.preview-phone .phone-notch { display: none; }
.phone-notch { position: absolute; left: 50%; top: 14px; z-index: 3; width: 90px; height: 22px; margin-left: -45px; border-radius: 99px; background: #000; }

.checks { display: grid; gap: 12px; margin: 10px 0 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--pink); }

.launch { text-align: center; margin-bottom: 18px; }
.launch-emoji { display: block; width: max-content; font-size: 64px; line-height: 1; margin: 0 auto 8px; }
.linkbox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 16px; margin-bottom: 18px; background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke-2); }
.linkbox span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 .85rem/1.4 var(--mono); color: var(--cyan); }
.glass-inner { padding: 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); }
.fb { margin: 18px 0 4px; }
.fb p { font-weight: 800; margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row .chip { padding: 0 14px; font-family: var(--body); }
.thanks { color: var(--mint); font-weight: 800; text-align: center; }
.edit-list { display: grid; gap: 10px; }


/* ============================ receiver ============================ */
.recv { display: grid; place-items: center; min-height: calc(100vh - 160px); min-height: calc(100dvh - 160px); }
.recv-card { width: min(480px, 100%); padding: 34px 26px 26px; text-align: center; overflow: hidden; }
.recv-progress { position: absolute; left: 26px; right: 26px; top: 16px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.recv-progress i { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 10px rgba(168, 85, 247, .8); }
.rstep { display: none; }
.rstep.active { display: block; }
.rstep h2 { font-size: 1.9rem; }
.rstep .section-label { text-align: left; }
.recv-env { margin: 4px 0 30px; }

/* love letter (home hero + N1): white 3D envelope, neon botanicals bloom from behind, glass neon heart seal */
.love { --w: 260px; position: relative; display: grid; justify-items: center; padding-top: calc(var(--w) * .5); }
.bloom { position: absolute; left: 50%; top: calc(var(--w) * -.115); width: calc(var(--w) * 1.692); height: calc(var(--w) * 1.538); margin-left: calc(var(--w) * -.846);
  overflow: visible; pointer-events: none; filter: drop-shadow(0 0 4px rgba(94, 234, 212, .55)); }
.bloom .stem { fill: none; stroke: url(#bmStem); stroke-width: 2.2; stroke-linecap: round; }
.bloom .leaf { fill: url(#bmLeaf); stroke: rgba(214, 255, 244, .75); stroke-width: .6; }
.bloom .petal { stroke: rgba(255, 255, 255, .6); stroke-width: .5; }
.bloom .core { fill: #ffd166; }
.bloom .bud { fill: #fff; }

.wenv { position: relative; z-index: 1; width: var(--w); height: calc(var(--w) * .66); font-size: calc(var(--w) * .0615); }
.wenv::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -20%; height: 16%; z-index: -1; border-radius: 50%; filter: blur(8px);
  background: radial-gradient(closest-side, rgba(168, 85, 247, .6), rgba(34, 211, 238, .15) 70%, transparent); }
.wenv-back { position: absolute; inset: 0; z-index: 1; border-radius: .9em; background: linear-gradient(165deg, #f4f2fb, #d8d3e9);
  box-shadow: inset 0 1px 0 #fff, 0 .16em 0 #cdc7de, 0 .32em 0 #b8b0cf, 0 2.4em 3em -1em rgba(0, 0, 0, .8), 0 0 3.4em -.6em rgba(168, 85, 247, .6); }
.wenv-letter { position: absolute; left: 7%; right: 7%; top: 7%; height: 86%; z-index: 2; border-radius: .6em; padding-top: 1.1em; text-align: center;
  background: linear-gradient(170deg, #fff, #f5f1ff); color: #7c3aed; font: 800 1.3em/1 var(--display); box-shadow: 0 -.2em .8em rgba(40, 10, 80, .12), inset 0 0 0 1px rgba(168, 85, 247, .16); }
.wenv-front { position: absolute; inset: 0; z-index: 3; border-radius: .9em; clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(115deg, transparent 30%, rgba(255, 182, 220, .4) 44%, rgba(165, 243, 252, .4) 56%, transparent 70%) 0 0 / 260% 100% no-repeat, linear-gradient(175deg, #fff, #ebe7f5);
  animation: pearl 6s ease-in-out infinite alternate; }
.wenv-front::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - .5px), rgba(120, 90, 170, .2) 50%, transparent calc(50% + .5px)) 0 100% / 50% 72% no-repeat,
    linear-gradient(to top left, transparent calc(50% - .5px), rgba(120, 90, 170, .2) 50%, transparent calc(50% + .5px)) 100% 100% / 50% 72% no-repeat; }
@keyframes pearl { to { background-position: 100% 0, 0 0; } }
.wenv-to { position: absolute; left: 0; right: 0; bottom: 9%; padding: 0 1em; text-align: center; font: 800 1em/1.1 var(--display); color: #4c1d95; overflow-wrap: anywhere; }
.wenv-flap { position: absolute; left: 0; right: 0; top: 0; height: 57%; z-index: 5; transform-origin: 50% 0; filter: drop-shadow(0 .25em .3em rgba(60, 30, 110, .28)); }
.wenv-flap i { position: absolute; inset: 0; border-radius: .9em .9em 0 0; clip-path: polygon(0 0, 100% 0, 50% 100%); background: linear-gradient(180deg, #fff, #e3dcf3); }

.nheart { position: absolute; left: 50%; top: 57%; z-index: 6; width: 4.2em; height: 4em; margin: -2.1em 0 0 -2.1em; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.nheart::before { content: ""; position: absolute; inset: -50%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 79, 139, .65), rgba(168, 85, 247, .25) 55%, transparent); }
.nheart svg { position: relative; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 0 .2em #ff4f8b) drop-shadow(0 0 .7em rgba(168, 85, 247, .9)) drop-shadow(0 .35em .4em rgba(76, 29, 149, .4)); }
.nh-body { fill: url(#nhFill); stroke: url(#nhLine); stroke-width: 2.6; }
.nh-inner { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 1; }
.nh-gloss { fill: rgba(255, 255, 255, .85); }
.nheart.beating svg { animation: beat 1.25s ease-in-out infinite; }
.nheart.beating::before { animation: halo 1.25s ease-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.17); } 28% { transform: scale(1); } 42% { transform: scale(1.1); } 70% { transform: scale(1); } }
@keyframes halo { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(1.3); opacity: 0; } }
.love-hint { margin-top: 34px; font: 700 .72rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #ff9cc2; text-shadow: 0 0 10px rgba(255, 79, 139, .8); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }

/* the letter becomes this dark event dashboard */
.dash { position: relative; text-align: left; padding: 18px 16px 16px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, rgba(26, 17, 58, .94), rgba(9, 7, 22, .96)); border: 1px solid rgba(168, 85, 247, .45);
  box-shadow: 0 30px 70px -26px rgba(0, 0, 0, .9), 0 0 40px -12px rgba(168, 85, 247, .75), inset 0 1px 0 rgba(255, 255, 255, .12); }
.dash::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(168, 85, 247, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 85, 247, .14) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%); mask-image: linear-gradient(180deg, #000, transparent 55%); }
.dash > * { position: relative; }
.dash > .dash-skin { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(170deg, #fff, #f5f1ff); }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 700 .64rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.dash-tag { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan); text-shadow: 0 0 8px rgba(34, 211, 238, .8); }
.dash-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: ping 1.8s infinite; }
.dash-code { color: var(--muted); }
.dash-title { margin: 14px 0 8px; font-size: clamp(1.7rem, 7vw, 2.1rem); color: #ffe6f1; overflow-wrap: anywhere;
  text-shadow: 0 0 4px rgba(255, 255, 255, .55), 0 0 12px rgba(255, 79, 139, .9), 0 0 30px rgba(168, 85, 247, .8); }
.dash-title i { font-style: normal; color: #b9f6ff; text-shadow: 0 0 10px var(--cyan), 0 0 22px var(--cyan); }
.dash-msg { margin-bottom: 12px; padding-left: 10px; border-left: 2px solid var(--pink); color: #d8d0f0; font-size: .95rem; overflow-wrap: anywhere; }
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.stat.wide { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-color: rgba(255, 79, 139, .35); }
.stat small { display: block; margin-bottom: 6px; font: 700 .6rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stat.wide small { margin: 0; }
.stat b { font: 700 .94rem/1.1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: #c9f7ff; text-shadow: 0 0 10px rgba(34, 211, 238, .75); }
.stat.wide b { color: #ffd6e7; letter-spacing: .04em; text-shadow: 0 0 10px rgba(255, 79, 139, .85); }
.stat.when { border-color: rgba(34, 211, 238, .3); }
.stat.when b { color: #c9f7ff; text-shadow: 0 0 10px rgba(34, 211, 238, .75); }
.dash-label { display: flex; justify-content: space-between; margin: 12px 0 4px; font: 700 .64rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dash-label span { color: var(--pink); }
.dash-tl { list-style: none; max-height: 196px; overflow-y: auto; overscroll-behavior: contain; margin-bottom: 16px; scrollbar-width: thin; }
.dash-tl li { position: relative; display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 24px; }
.dash-tl li::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--pink), var(--violet)); opacity: .55; }
.dash-tl li:first-child::before { top: 50%; }
.dash-tl li:last-child::before { bottom: 50%; }
.dash-tl li:only-child::before { display: none; }
.dash-tl li::after { content: ""; position: absolute; left: 2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dash-tl .ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.dash-tl b { display: block; font-size: .95rem; }
.dash-tl small { display: block; font: 600 .6rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dash-tl .n { margin-left: auto; font: 700 .66rem/1 var(--mono); color: #c4a1ff; }
@media (max-width: 400px) { .love { --w: 220px; } }
.ask-emoji { display: block; width: max-content; font-size: 60px; line-height: 1; margin: 6px auto 12px; }
.ask-title { font-size: clamp(1.7rem, 6vw, 2.2rem); overflow-wrap: anywhere; }
.ask-buttons { display: flex; gap: 16px; align-items: center; justify-content: center; min-height: 120px; margin-top: 6px; }
.runaway-no { position: fixed !important; left: 0; top: 0; z-index: var(--z-runaway); margin: 0; background: rgba(14, 11, 31, .9) !important; touch-action: none; }
.end-lottie { position: relative; width: 200px; height: 150px; margin: -16px auto -10px; }
.rstep .ticket-host { margin: 6px 0 18px; }
.end-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.end-actions .btn { padding-inline: 8px; font-size: .92rem; }
.gone .big-emoji { display: inline-block; font-size: 72px; }
.gone .btn { margin-top: 6px; }

/* ============================ login ============================ */
.login .btn + .btn, .login .btn + .hint, .login .hint + .btn { margin-top: 12px; }
.login .hint { text-align: center; }
.login .hint.error { margin: 0 0 14px; }
.login .hint.need { margin: 0 0 14px; color: var(--text); font-weight: 700; }
.btn-google { background: #fff; color: #1f1f1f; box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .8), inset 0 -1px 0 rgba(0, 0, 0, .08); }
.btn-google:hover { background: #fff; box-shadow: 0 0 0 4px rgba(34, 211, 238, .25), 0 10px 28px -12px rgba(0, 0, 0, .8); }
.btn-google::after { display: none; }
.btn-google svg { flex: none; }

/* ============================ manage ============================ */
.manage { max-width: 760px; }
.q-head { text-align: center; margin-bottom: 22px; }
.q-head h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.q-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.q-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.inv { min-width: 0; padding: 18px; border-radius: 22px; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.inv-head h3 { font-size: 1.15rem; overflow-wrap: anywhere; }
.inv .pill { flex: none; margin: 0; background: rgba(94, 234, 212, .14); color: var(--mint); font-size: .76rem; }
.inv .pill.zero { background: rgba(255, 255, 255, .06); color: var(--muted); }
.linkrow { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 12px; border-radius: 14px; margin: 12px 0 8px; background: rgba(255, 255, 255, .05); }
.linkrow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 .82rem/1.4 var(--mono); color: var(--cyan); }
.meta { font-size: .82rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.more { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 12px 0 0; cursor: pointer; background: none; border: 0; border-top: 1px dashed var(--stroke-2); color: var(--pink); font: 800 .95rem/1 var(--display); }
.resp { padding: 12px 14px; border-radius: 16px; margin-top: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); }
.resp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.resp-tags { display: flex; gap: 6px; }
.tag-warn, .tag-red { font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; }
.tag-warn { background: var(--gold); color: var(--ink); }
.tag-red { background: var(--error); color: #2a0d0d; }
.resp .when { font-size: .88rem; margin: 4px 0 8px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chips-row i { font-style: normal; font-size: .8rem; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.dodge { font-size: .8rem; color: var(--muted); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.empty { text-align: center; padding: 40px 20px; }
.empty .big-emoji { display: block; }
.empty p { color: var(--muted); margin-top: 4px; }
.q-cal-card { padding: 16px; border-radius: 22px; margin-bottom: 10px; }
.q-cal-card .cal { background: none; border: 0; padding: 0; }
.day-title { font: 800 .95rem/1 var(--display); margin: 18px 0 8px; }
.appt { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; margin-bottom: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); }
.appt.conflict { border-color: var(--error); box-shadow: 0 0 20px -8px var(--error); }
.appt .time { min-width: 56px; font: 800 1.05rem/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--cyan); }
.appt .info { flex: 1; min-width: 0; }
.appt .info b { display: block; font-size: .95rem; }
.appt .info small { color: var(--muted); font-size: .8rem; }
.q-cta { margin-top: 22px; }

/* ============================ overlays ============================ */
.fx-layer { position: fixed; inset: 0; z-index: var(--z-fx); pointer-events: none; overflow: hidden; }
.burst-lottie { position: absolute; width: 440px; height: 440px; margin: -220px 0 0 -220px; }
.particle { position: absolute; font-size: 18px; line-height: 1; text-shadow: 0 0 10px currentColor; will-change: transform; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: var(--z-toast); max-width: calc(100vw - 24px); padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: .92rem; color: #fff;
  background: var(--grad-btn); box-shadow: 0 16px 40px -10px rgba(255, 79, 139, .7); transform: translate(-50%, 140px); transition: transform .35s cubic-bezier(.3, 1.6, .6, 1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.show { transform: translate(-50%, 0); }
/* native <dialog>: focus containment, Escape and focus restore come from the browser */
dialog { color: inherit; }
dialog::backdrop { background: rgba(4, 3, 12, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in .2s ease-out; transition: opacity .25s; }
dialog.closing::backdrop { opacity: 0; }
@keyframes fade-in { from { opacity: 0; } }
.sheet { position: fixed; inset: 0; margin: auto auto 0; width: min(520px, 100%); max-width: 100%; height: fit-content; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; text-align: center; }
.sheet[open] { display: grid; gap: 10px; }
.sheet h3 { font-size: 1.5rem; }
.sheet .sub { margin: 0 0 8px; }
.shot { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; background: transparent;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); }
.shot[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.shot::backdrop { background: rgba(4, 3, 12, .92); -webkit-backdrop-filter: none; backdrop-filter: none; }
.shot-img { width: auto; max-width: min(340px, 86vw); max-height: 72vh; max-height: 72dvh; aspect-ratio: 9 / 16; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px -10px rgba(168, 85, 247, .6); -webkit-touch-callout: default; }
.shot-hint { font-weight: 700; }
.shot-actions { display: flex; gap: 10px; }

/* ============================ responsive ============================ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 10px; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-stage { height: 480px; }
  .o1 { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .o2 { width: 450px; height: 450px; margin: -225px 0 0 -225px; }
  .o1 .p1 { transform: rotate(-30deg) translateX(190px) rotate(30deg); }
  .o1 .p2 { transform: rotate(150deg) translateX(190px) rotate(-150deg); }
  .o2 .p1 { transform: rotate(20deg) translateX(225px) rotate(-20deg); }
  .o2 .p2 { transform: rotate(140deg) translateX(225px) rotate(-140deg); }
  .o2 .p3 { transform: rotate(260deg) translateX(225px) rotate(-260deg); }
  .steps.four { grid-template-columns: repeat(2, 1fr); }
  .steps.three { grid-template-columns: repeat(2, 1fr); }
  .ticket-sec { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 28px); }
  .hide-sm { display: none; }
  .topbar { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  /* no room for both: show only the language you can switch to */
  .lang-sw button[aria-pressed="true"] { display: none; }
  #app { padding-top: calc(84px + env(safe-area-inset-top)); }
  .hero-stage { height: 420px; overflow: hidden; margin-inline: -14px; }
  .stage-card { width: 280px; height: 360px; }
  .stage-card .love { --w: 180px; }
  .float-badge span { font-size: .8rem; padding: 8px 12px; }
  .steps.four, .steps.three { grid-template-columns: 1fr; }
  .section, .journey { padding-top: 70px; }
  .demo { min-height: 300px; }
  .demo-host .demo { height: 420px; }
  .demo-host .love { --w: 190px; }
  .jdot { width: 48px; height: 48px; font-size: 22px; }
  .jline { top: 28px; }
  .jflyer { top: 30px; }
  .jmap b { font-size: .82rem; }
  .fl-corner { width: 84px; height: 84px; }
  .panel { padding: 26px 18px 20px; }
  .st-label { display: none; }
  .stepper { margin-bottom: 20px; }
  .opt-grid { grid-template-columns: repeat(2, 1fr); }
  .recv-card { padding: 30px 18px 20px; }
  .btn-lg { min-height: 52px; padding: 0 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .drift, .shooting, .cursor-glow { display: none; }
}
