/* Home module: landing, my page, calendar subscribe, money pages, admin stats.
   Tokens and components come from hurra.css; this file adds layout + micro-animations only.
   Logical properties everywhere (RTL), colours through the variables (dark mode). */

[hidden] { display: none !important; }
/* hurra.css lightens .chip-sun only for an explicit dark theme; the automatic one needs it too */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip-sun { color: var(--sun); } }
.flip { display: inline-block; }
[dir="rtl"] .flip, [dir="rtl"] .hh-cta-go { transform: scaleX(-1); }
/* nav_items has three entries: spread them over the whole phone tab bar */
@media (max-width: 860px) { .tabbar { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------------ hero */
.home-notice { padding-top: 1rem; }
.home-hero { padding-block: clamp(1.6rem, 6vw, 5.5rem) clamp(3rem, 8vw, 6.5rem); }
.home-hero .hero-grid { grid-template-columns: 1.08fr .92fr; }
@media (max-width: 900px) { .home-hero .hero-grid { grid-template-columns: 1fr; gap: 2.6rem; } }
.hh-world { max-width: 100%; animation: hh-rise .6s var(--ease) both; }
.hh-world b { font-variant-numeric: tabular-nums; color: var(--pink); }
.hh-title { font-size: clamp(2.7rem, 9.2vw, 4.7rem); line-height: 1.02; margin: 0; letter-spacing: -.035em; animation: hh-rise .7s var(--ease) .05s both; }
.hh-title .hl { background: linear-gradient(100deg, #FF3D7F 0%, #FF8A3D 35%, #FFC53D 55%, #FF6B9D 80%, #7B5CFF 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: hh-shimmer 7s ease-in-out infinite alternate; padding-block-end: .06em; }
.hh-sub { font: 800 clamp(1.22rem, 3.6vw, 1.75rem)/1.25 var(--font-display); color: var(--ink); letter-spacing: -.015em; margin: .7rem 0 .9rem;
  animation: hh-rise .7s var(--ease) .12s both; }
.hh-lead { animation: hh-rise .7s var(--ease) .18s both; }
.hh-ctas { display: grid; gap: .8rem; margin-top: 1.6rem; animation: hh-rise .7s var(--ease) .25s both; }
@media (min-width: 560px) and (max-width: 900px), (min-width: 1100px) { .hh-ctas { grid-template-columns: 1fr 1fr; } }
.hh-cta { position: relative; display: flex; align-items: center; gap: .85rem; min-height: 78px; padding: .95rem 1.05rem; border-radius: 24px; color: #fff;
  text-decoration: none; background: var(--grad-party); box-shadow: var(--sh-pink); overflow: hidden; isolation: isolate;
  transition: transform .25s var(--spring), box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.hh-cta-surprise { background: var(--grad-night); box-shadow: 0 10px 30px rgba(123, 92, 255, .34); }
.hh-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 66%);
  transform: translateX(-120%); animation: hh-sweep 5.5s ease-in-out infinite 1.5s; }
.hh-cta-surprise::after { animation-delay: 3.2s; }
.hh-cta:hover { color: #fff; transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 16px 40px rgba(255, 61, 127, .42); }
.hh-cta-surprise:hover { box-shadow: 0 16px 40px rgba(123, 92, 255, .45); }
.hh-cta:active { transform: scale(.98); }
.hh-cta-ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; flex: none; font-size: 1.65rem; background: rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); transition: transform .35s var(--spring); }
.hh-cta:hover .hh-cta-ico { transform: rotate(-10deg) scale(1.08); }
.hh-cta-txt { display: grid; gap: .15rem; min-width: 0; }
.hh-cta-txt b { font: 800 1.12rem/1.15 var(--font-display); letter-spacing: -.01em; }
.hh-cta-txt small { font-size: .84rem; opacity: .92; font-weight: 600; }
.hh-cta-go { margin-inline-start: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.2);
  font-weight: 800; transition: translate .25s var(--spring); }
.hh-cta:hover .hh-cta-go { translate: 4px 0; }
[dir="rtl"] .hh-cta:hover .hh-cta-go { translate: -4px 0; }
.hh-proof { list-style: none; padding: 0; animation: hh-rise .7s var(--ease) .32s both; }
.hh-welcome { margin-top: 1.1rem; text-decoration: none; }

/* ------------------------------------------------------------------ phone demo */
.hh-phone { position: relative; justify-self: center; animation: hh-phone-in .9s var(--spring) .2s both; }
.hh-phone .mock { width: min(340px, 80vw); }
@media (max-width: 900px) { .hh-phone .mock { width: min(310px, 78vw); } }
.mock-screen { font-size: 15px; }
.demo-chip { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 6; padding: .2rem .55rem; border-radius: var(--r-pill); background: rgba(30, 20, 51, .78);
  color: #fff; font: 800 .62rem/1.4 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 2.5rem .95rem 2.4rem; opacity: 0; transform: translateY(16px) scale(.97);
  transition: opacity .45s var(--ease), transform .6s var(--spring); pointer-events: none; }
.scene.on { opacity: 1; transform: none; }
.demo-dots { position: absolute; bottom: 12px; inset-inline: 0; display: flex; justify-content: center; gap: 5px; z-index: 6; }
.demo-dots i { width: 6px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: width .35s var(--spring), background .35s; }
.demo-dots i.on { width: 18px; background: var(--pink); }
.tap { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: rgba(255, 61, 127, .22); border: 3px solid rgba(255, 61, 127, .6); }
.scene.on .tap { animation: hh-tap .9s var(--ease) 1.5s both; }

/* scene 1: a chat */
.chat-top { display: flex; align-items: center; gap: .55rem; padding: 0 .1rem .7rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.chat-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-night); color: #fff; font: 800 .8rem var(--font-display); }
.chat-body { flex: 1; position: relative; padding-top: 1.1rem; margin-inline: -.95rem; padding-inline: .95rem;
  background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 0) 0 0 / 14px 14px; }
.bubble { max-width: 90%; padding: .6rem .65rem; border-radius: 16px; border-end-start-radius: 4px; background: var(--surface); box-shadow: var(--sh-1); font-size: .82rem; line-height: 1.4; }
.scene.on .bubble { animation: hh-pop .55s var(--spring) .25s both; }
.lp { position: relative; display: flex; align-items: center; gap: .5rem; margin-top: .55rem; padding: .45rem; border-radius: 12px; background: var(--bg-2); }
.lp-thumb { width: 42px; height: 42px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--grad-party); color: #fff; font: 900 1.3rem var(--font-display); }
.lp-txt { display: grid; min-width: 0; }
.lp-txt b { font-size: .76rem; line-height: 1.25; }
.lp-txt small { font-size: .68rem; color: var(--muted); }
.scene.on .lp { animation: hh-press .5s var(--ease) 1.7s both; }

/* scene 2: a question */
.q-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font: 700 .72rem var(--font-ui); color: var(--muted); }
.q-bar { width: 64px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.q-bar i { display: block; height: 100%; width: 30%; background: var(--grad-party); border-radius: 3px; }
.scene.on .q-bar i { animation: hh-grow .9s var(--ease) both; }
.q-text { font: 800 1.12rem/1.25 var(--font-display); margin: .95rem 0 .85rem; letter-spacing: -.01em; }
.q-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.q-opts li { position: relative; display: flex; align-items: center; gap: .5rem; padding: .62rem .7rem; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface); font: 700 .82rem/1.2 var(--font-ui); }
.q-opts li em { margin-inline-start: auto; font-style: normal; font-weight: 900; color: #fff; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); font-size: .7rem; opacity: 0; transform: scale(.3); }
.scene.on .q-opts li { animation: hh-slide .45s var(--spring) both; }
.scene.on .q-opts li:nth-child(2) { animation-delay: .08s; }
.scene.on .q-opts li:nth-child(3) { animation-delay: .16s; }
.scene.on .q-opts li:nth-child(4) { animation-delay: .24s; }
.scene.on .q-opts li.pick { animation: hh-slide .45s var(--spring) both, hh-pick .45s var(--spring) 1.75s forwards; }
.scene.on .q-opts li.pick em { animation: hh-check .4s var(--spring) 1.9s forwards; }
.plus1 { position: absolute; top: 46%; inset-inline-end: 1.6rem; font: 900 1.25rem var(--font-display); color: var(--green); opacity: 0; }
.scene.on .plus1 { animation: hh-float-up 1.1s var(--ease) 2s both; }

/* scene 3: score + leaderboard */
.sc-res { align-items: center; text-align: center; }
.res-trophy { font-size: 2.2rem; line-height: 1; margin-top: .2rem; }
.scene.on .res-trophy { animation: hh-pop .6s var(--spring) .15s both; }
.res-score { font: 900 3.4rem/1 var(--font-display); letter-spacing: -.04em; background: var(--grad-party); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-top: .3rem; padding-block-end: .05em; }
.scene.on .res-score { animation: hh-pop .6s var(--spring) .3s both; }
.res-text { font-weight: 800; font-size: .86rem; color: var(--ink-2); margin: .35rem 0 .7rem; }
.res-board { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: .35rem; }
.res-board li { display: flex; align-items: center; gap: .55rem; padding: .45rem .65rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .8rem; }
.res-board li span { width: 22px; text-align: center; font-weight: 800; color: var(--muted); }
.res-board li b { flex: 1; text-align: start; }
.res-board li em { font-style: normal; font-weight: 800; }
.res-board li.me { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 10%, var(--surface)); transform: scale(1.03); }
.scene.on .res-board li { animation: hh-slide .45s var(--spring) both; }
.scene.on .res-board li:nth-child(1) { animation-delay: .5s; }
.scene.on .res-board li:nth-child(2) { animation-delay: .62s; }
.scene.on .res-board li:nth-child(3) { animation-delay: .74s; }
.res-cta { margin-top: auto; padding: .62rem 1.05rem; border-radius: var(--r-pill); background: var(--grad-party); color: #fff; font: 800 .82rem var(--font-ui); box-shadow: var(--sh-pink); }
.scene.on .res-cta { animation: hh-pop .5s var(--spring) 1s both, hh-beat 1.3s ease-in-out 1.6s infinite; }

/* scene 4: birthday reveal */
.sc-bday { align-items: center; text-align: center; background: radial-gradient(70% 42% at 50% 28%, rgba(255, 197, 61, .3), transparent 72%), var(--bg); }
.bd-cake { position: relative; width: 100%; height: 128px; margin-top: .4rem; }
.bd-cake .cake { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) scale(.56); transform-origin: 50% 100%; }
.scene.on .bd-cake .flame { animation: flicker .18s ease-in-out infinite alternate, blowout .5s ease 1.6s forwards; }
.scene.on .bd-cake .smoke { animation: smoke 1.6s ease-out 1.75s forwards; }
.bd-title { font: 900 1.2rem/1.15 var(--font-display); margin: .7rem 0 .2rem; background: var(--grad-party); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scene.on .bd-title { animation: hh-pop .55s var(--spring) 2s both; }
.bd-sub { font-size: .76rem; font-weight: 700; color: var(--ink-2); margin: 0 0 .7rem; }
.scene.on .bd-sub { animation: hh-rise .5s var(--ease) 2.2s both; }
.bd-notes { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.bd-notes .note { margin: 0; padding: .45rem .6rem; border-radius: 10px; font: 700 .7rem/1.3 var(--font-hand); --tilt: -4deg; box-shadow: 0 6px 14px rgba(30,20,51,.12); }
.bd-notes .note + .note { --tilt: 3deg; }
.scene.on .bd-notes .note { animation: hh-drop .55s var(--spring) 2.4s both; }
.scene.on .bd-notes .note + .note { animation-delay: 2.6s; }
.bd-confetti { position: absolute; left: 50%; top: 32%; width: 0; height: 0; }
.bd-confetti i { position: absolute; width: 7px; height: 11px; border-radius: 2px; opacity: 0; background: var(--pink); --a: calc(var(--i) * 25.7deg); }
.bd-confetti i:nth-child(4n+1) { background: var(--sun); } .bd-confetti i:nth-child(4n+2) { background: var(--mint); } .bd-confetti i:nth-child(4n+3) { background: var(--grape); }
.scene.on .bd-confetti i { animation: hh-burst 1.3s var(--ease) calc(1.9s + var(--i) * .02s) both; }

.float-tag.ft-score { top: 14%; inset-inline-start: -10%; }
.float-tag.ft-bday { bottom: 12%; inset-inline-end: -8%; animation-delay: -2.5s; }
@media (max-width: 420px) { .float-tag.ft-score { inset-inline-start: -4%; } .float-tag.ft-bday { inset-inline-end: -3%; } }

/* ------------------------------------------------------------------ two modes */
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 1.6rem; }
.sec-head .lead { margin-inline: auto; }
.mode-switch { display: flex; width: max-content; max-width: 100%; margin: 0 auto 1.3rem; padding: .3rem; gap: .3rem; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.mode-switch button { min-height: 46px; padding: .6rem 1.15rem; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2);
  font: 800 .98rem var(--font-ui); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.mode-switch button[aria-pressed="true"] { background: var(--grad-party); color: #fff; box-shadow: var(--sh-pink); }
.mode-switch button[data-mode-btn="surprise"][aria-pressed="true"] { background: var(--grad-night); box-shadow: 0 8px 24px rgba(123, 92, 255, .32); }
.modes { display: grid; gap: 1.25rem; }
.mode { position: relative; overflow: hidden; padding: clamp(1.3rem, 4vw, 2.2rem); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-2); animation: hh-rise .45s var(--ease) both; }
.mode::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 61, 127, .14), transparent); pointer-events: none; }
.mode-surprise::before { background: radial-gradient(closest-side, rgba(123, 92, 255, .16), transparent); }
.mode.is-off { display: none; }
@media (min-width: 900px) {
  .mode-switch { display: none; }
  .modes { grid-template-columns: 1fr 1fr; }
  .mode.is-off { display: block; }
}
.mode-head { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: center; }
.mode-head > div { display: contents; }
.mode-head h3 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.mode-head p { grid-column: 1 / -1; margin: .5rem 0 0; color: var(--ink-2); }
@media (min-width: 560px) { .mode-head { align-items: start; } .mode-head p { grid-column: 2; margin-top: 0; } }
.mode-ico { width: 58px; height: 58px; flex: none; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; background: var(--grad-party);
  box-shadow: var(--sh-pink); transform: rotate(-6deg); }
.mode-surprise .mode-ico { background: var(--grad-night); box-shadow: 0 10px 26px rgba(123, 92, 255, .32); transform: rotate(5deg); }
.mode-steps { list-style: none; padding: 0; margin: 1.3rem 0 1.4rem; grid-template-columns: 1fr; gap: .7rem; }
.mode-steps .step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: center; padding: .9rem;
  background: var(--surface-2); font-weight: 600; color: var(--ink-2); line-height: 1.45; }
.mode-steps .step::before { margin: 0; }
.mode-surprise .step { border-color: color-mix(in srgb, var(--grape) 35%, var(--line)); }
.mode-surprise .step::before { background: var(--grad-night); }
/* the emoji sits on the number badge like a sticker, so the text keeps the full width on phones */
.step-ico { position: absolute; inset-inline-start: 2.25rem; top: .3rem; font-size: 1.05rem; rotate: 12deg; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.mode-go { position: relative; }

/* ------------------------------------------------------------------ try it */
.try-grid { display: grid; gap: 1.8rem; align-items: center; }
@media (min-width: 900px) { .try-grid { grid-template-columns: .85fr 1.15fr; gap: 3rem; } }
.try-copy h2 { margin-top: .8rem; }
.tryq { position: relative; }
.tq-card { padding: clamp(1.25rem, 4vw, 2rem); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3);
  animation: hh-card .45s var(--spring) both; }
.tq-profile { display: flex; align-items: center; gap: .85rem; }
.tq-profile b { display: block; font: 800 1.15rem var(--font-display); }
.tq-profile small { color: var(--muted); font-weight: 600; }
.tq-av { width: 54px; height: 54px; font-size: 1.35rem; background: var(--grad-party); }
.tq-emojis { display: flex; justify-content: center; gap: .6em; font-size: clamp(2.6rem, 10vw, 3.6rem); line-height: 1; margin: 1.3rem 0 1.5rem; }
.tq-emojis span { display: inline-block; animation: hh-hop 2.4s var(--ease) infinite; }
.tq-emojis span:nth-child(2) { animation-delay: .25s; }
.tq-emojis span:nth-child(3) { animation-delay: .5s; }
.tq-progress { display: flex; gap: 6px; }
.tq-progress i { flex: 1; height: 7px; border-radius: 4px; background: var(--line); }
.tq-progress i.done { background: var(--mint); }
.tq-progress i.now { background: var(--grad-party); }
.tq-count { margin: .9rem 0 .15rem; font-size: .82rem; font-weight: 700; color: var(--muted); }
.tq-question { font-size: clamp(1.3rem, 3.4vw, 1.65rem); margin: .2rem 0 1rem; }
.tq-opts { display: grid; gap: .6rem; }
@media (min-width: 560px) { .tq-opts { grid-template-columns: 1fr 1fr; } }
.tq-opt { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 58px; padding: .8rem .95rem; border-radius: 18px; border: 2px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: 700 1rem/1.25 var(--font-ui); text-align: start; cursor: pointer;
  transition: transform .18s var(--spring), border-color .2s, background .2s, opacity .3s; -webkit-tap-highlight-color: transparent; }
.tq-opt:hover { border-color: var(--pink-2); transform: translateY(-2px); }
.tq-opt:active { transform: scale(.98); }
.tq-letter { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); font: 800 .82rem var(--font-ui);
  transition: background .2s, color .2s; }
.tq-opts.answered .tq-opt { cursor: default; transform: none; }
.tq-opts.answered .tq-opt:not(.is-right):not(.is-wrong) { opacity: .45; }
.tq-opt.is-right { border-color: var(--green); background: color-mix(in srgb, var(--green) 13%, var(--surface)); animation: hh-pop .45s var(--spring); }
.tq-opt.is-right .tq-letter { background: var(--green); color: #fff; }
.tq-opt.is-wrong { border-color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--surface)); animation: hh-shake .42s ease; }
.tq-opt.is-wrong .tq-letter { background: var(--red); color: #fff; }
.tq-feedback { margin: .9rem 0 0; font-weight: 800; min-height: 1.6em; }
.tq-feedback.good { color: var(--green); }
.tq-feedback.bad { color: var(--red); }
.tq-result { text-align: center; }
.tq-big { font: 900 clamp(4.2rem, 15vw, 6.2rem)/1 var(--font-display); letter-spacing: -.05em; }
.tq-big b { background: var(--grad-party); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tq-big span { color: var(--muted); font-size: .45em; letter-spacing: 0; }
.tq-msg { font: 800 1.25rem/1.3 var(--font-display); margin: .6rem 0 .3rem; }
.tq-result .btn-block { margin-top: .6rem; }
.tq-result .btn-ghost { margin-top: .5rem; }

/* ------------------------------------------------------------------ trust, faq, final band */
.home-trust { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.trust-title { text-align: center; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.4rem; }
.trust-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.trust-item { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.15rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-1); transition: transform .25s var(--spring), box-shadow .25s; }
.trust-item:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.trust-ico { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; background: var(--bg-2); }
.trust-item h3 { font-size: 1.04rem; margin: .1rem 0 .25rem; }
.trust-item p { margin: 0; color: var(--ink-2); font-size: .93rem; line-height: 1.45; }
.home-faq h2 { margin-bottom: 1.4rem; }
.cta-band { isolation: isolate; }
/* hurra.css gives band buttons --c: var(--ink), which turns light in dark mode (white on white): keep it dark */
.cta-band .btn:not(.band-ghost) { --c: #1E1433; }
.cta-band .btn:not(.band-ghost):hover { --c: #1E1433; }
.band-p { font-size: 1.08rem; opacity: .95; max-width: 44ch; margin: 0 auto 1.4rem; }
.band-ctas { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.cta-band .band-ghost { --b: rgba(255, 255, 255, .14); --c: #fff; border-color: rgba(255, 255, 255, .6); box-shadow: none; }
.cta-band .band-ghost:hover { --c: #fff; background: rgba(255, 255, 255, .24); }
.band-soon { margin: 1.2rem 0 0; font-size: .92rem; opacity: .9; }
.band-confetti { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.band-confetti i { position: absolute; top: calc(8% + var(--i) * 9%); left: calc(4% + var(--i) * 10%); width: 10px; height: 16px; border-radius: 3px; background: rgba(255, 255, 255, .5);
  rotate: calc(var(--i) * 37deg); animation: bob calc(3.5s + var(--i) * .3s) ease-in-out infinite; }
.band-confetti i:nth-child(odd) { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
@media (max-width: 640px) { .band-ctas .btn { width: 100%; white-space: normal; } }

/* ------------------------------------------------------------------ my page */
.me-top { padding-block: clamp(1.4rem, 4vw, 2.6rem) .4rem; }
.me-hello { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem 1rem; }
.me-hello-txt { min-width: 0; }
.me-hello h1 { font-size: clamp(1.6rem, 5vw, 2.5rem); margin: 0; overflow-wrap: anywhere; }
.me-hello p { margin: .2rem 0 0; font-size: .95rem; line-height: 1.45; }
.me-avatar { width: 58px; height: 58px; font-size: 1.5rem; background: var(--grad-party); box-shadow: var(--sh-pink); transform: rotate(-6deg); }
.me-settings { align-self: start; }
.me-settings span { display: none; }
@media (min-width: 640px) { .me-settings span { display: inline; } }
.me-quick { display: flex; gap: .55rem; margin-top: 1.1rem; overflow-x: auto; padding: .1rem .1rem .4rem; scrollbar-width: none; }
.me-quick::-webkit-scrollbar { display: none; }
.me-quick a { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 46px; padding: .55rem 1rem; border-radius: var(--r-pill); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--ink); font-weight: 700; text-decoration: none; transition: transform .2s var(--spring), box-shadow .2s; }
.me-quick a:hover { transform: translateY(-2px); box-shadow: var(--sh-2); color: var(--ink); }
.me-flash { margin-top: 1rem; animation: hh-rise .4s var(--ease) both; }
.me-grid { display: grid; gap: 1.1rem; padding-block: 1.2rem 3rem; align-items: start; }
@media (min-width: 960px) { .me-grid { grid-template-columns: 1fr 1fr; } }
.me-sec { animation: hh-rise .5s var(--ease) both; scroll-margin-top: 80px; container-type: inline-size; }
.me-sec:nth-child(2) { animation-delay: .06s; } .me-sec:nth-child(3) { animation-delay: .12s; } .me-sec:nth-child(4) { animation-delay: .18s; }
.me-sec-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.me-sec-head h2 { font-size: 1.32rem; margin: 0; }
.me-sec-head .btn span { display: none; }
@media (min-width: 520px) { .me-sec-head .btn span { display: inline; } }
.obj-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.obj { display: grid; grid-template-columns: auto 1fr; gap: .55rem .8rem; align-items: center; padding: .8rem; border-radius: var(--r); background: var(--surface-2);
  border: 1px solid var(--line); transition: border-color .2s; }
.obj:hover { border-color: color-mix(in srgb, var(--pink) 30%, var(--line)); }
.obj-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; background: var(--grad-party); }
.obj-ico-bday { background: var(--grad-night); }
.obj-main { display: grid; min-width: 0; }
.obj-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obj-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; }
/* rows follow the width of their card (half the page on desktop), not the viewport */
@container (min-width: 600px) { .obj { grid-template-columns: auto 1fr auto; } .obj-actions { grid-column: auto; } }
.empty-state { text-align: center; padding: 1rem .4rem .4rem; }
.empty-state p { color: var(--ink-2); max-width: 38ch; margin: .6rem auto 1rem; }
.empty-ico { display: inline-block; font-size: 2.7rem; animation: bob 3.5s ease-in-out infinite; }

.people-list { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .5rem; }
.people-list .person { display: grid; grid-template-columns: auto 1fr auto; gap: .45rem .8rem; align-items: center; margin: 0; padding: .7rem .8rem; }
.person-av { width: 42px; height: 42px; font-size: 1rem; background: hsl(var(--h, 330) 72% 58%); }
.person-main { display: grid; min-width: 0; }
.person-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-date { font-size: .86rem; color: var(--muted); }
.people-list .when { margin: 0; }
.person.soon .when { color: var(--orange); }
.person.today { background: linear-gradient(90deg, color-mix(in srgb, var(--pink) 10%, var(--surface)), var(--surface)); }
.person-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: .3rem; }
.person-actions form { margin: 0; }
.person-actions .btn-icon { width: 42px; height: 42px; flex: none; }
.person-plan { flex: 1 1 auto; max-width: 280px; min-height: 42px; margin-inline-end: auto; }
@container (min-width: 640px) {
  .people-list .person { grid-template-columns: auto 1fr auto auto; }
  .person-actions { grid-column: auto; }
  .person-plan { flex: none; }
}
.me-people .me-sec-head .chip { white-space: nowrap; flex: none; }
.person-del.is-confirm { width: auto; padding-inline: .8rem; border-radius: var(--r-pill); background: var(--red); color: #fff; font-size: .82rem; }
.person.is-new { animation: hh-new 1.4s var(--ease) both; }
.person.is-gone { animation: hh-gone .4s var(--ease) forwards; }
.empty-line { margin: .8rem 0 0; color: var(--muted); }
.person-form { margin-top: 1.1rem; padding: 1.1rem; border-radius: var(--r-lg); background: var(--bg-2); border: 1.5px dashed color-mix(in srgb, var(--pink) 32%, var(--line));
  scroll-margin-top: 90px; }
.person-form h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.person-form.is-prefilled { border-style: solid; border-color: var(--pink); animation: hh-glow 1.8s ease-out .3s 2; }
.person-fields { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.person-fields .field + .field { margin-top: 0; }
.person-fields .pf-name { grid-column: 1 / -1; }
@container (min-width: 520px) { .person-fields { grid-template-columns: 2fr .8fr 1.4fr; } .person-fields .pf-name { grid-column: auto; } }
.person-submit { margin-top: 1rem; width: 100%; }
@container (min-width: 520px) { .person-submit { width: auto; } }
.person-form .hint { margin: .7rem 0 0; }
.sheet-actions { margin-top: 1.1rem; }

.cal-btns { display: grid; gap: .55rem; margin: 1rem 0 .8rem; }
@container (min-width: 600px) { .cal-btns:not(.cal-btns-big) { grid-template-columns: repeat(3, 1fr); } }
.cal-btn { display: flex; align-items: center; gap: .6rem; min-height: 54px; padding: .75rem .95rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); font: 800 .95rem/1.2 var(--font-ui); text-decoration: none; box-shadow: var(--sh-1); transition: transform .2s var(--spring), box-shadow .2s, border-color .2s; }
.cal-btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--sh-2); border-color: color-mix(in srgb, var(--pink) 35%, var(--line)); }
.cal-mark { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; color: #fff; font: 900 .9rem var(--font-ui); }
.cm-google { background: #4285F4; } .cm-apple { background: #1E1433; } .cm-outlook { background: #0A64D6; }
:root[data-theme="dark"] .cm-apple { background: #4A3D63; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cm-apple { background: #4A3D63; } }
.cal-copy input { min-width: 0; }
.cal-qr { display: none; }
@media (min-width: 760px) and (hover: hover) {
  .cal-qr { display: flex; align-items: center; gap: 1rem; margin: 1rem 0 .4rem; padding: .9rem; border-radius: var(--r); background: var(--bg-2); }
}
.cal-qr p { margin: 0; }
.qr-box { width: 128px; flex: none; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--sh-1); }
.qr-box svg { width: 100%; height: auto; }
.me-cal .hint { margin: .9rem 0 .4rem; }

/* calendar subscribe page (QR target) */
.sub-panel { text-align: center; }
.sub-ico { font-size: 3.4rem; line-height: 1; animation: bob 3s ease-in-out infinite; }
.sub-panel h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-top: .6rem; }
.sub-panel .lead { margin-inline: auto; }
.cal-btns-big .cal-btn { justify-content: center; min-height: 60px; font-size: 1.05rem; }
.sub-other { margin: 1.4rem 0 .6rem; font-weight: 700; }
.sub-panel .hint { margin-top: 1rem; }

/* ------------------------------------------------------------------ money pages */
.money-hero { padding-block: clamp(2.4rem, 7vw, 5rem) clamp(1.2rem, 4vw, 2.4rem); }
.money-hero h1 { margin-top: .9rem; }
.money-lead { margin: 0 auto 1.4rem; }
.money-hero .btn { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.money-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); align-items: start; }
.money-card h2 { font-size: 1.35rem; margin: .7rem 0 .5rem; }
.money-card > .chip { margin-bottom: .2rem; }
.money-free h2 { margin-top: 0; }
.money-song { border-color: color-mix(in srgb, var(--pink) 35%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--pink) 7%, var(--surface)), var(--surface) 60%); }
.song-form { margin-top: 1rem; }
.song-form label { display: block; margin-bottom: .45rem; }
.song-form .copy-row { flex-wrap: wrap; }
.song-form .copy-row input { flex: 1 1 180px; font-family: var(--font-ui); font-size: 1rem; }
.song-form .copy-row .btn { flex: 1 0 auto; }
.tick-list { list-style: none; padding: 0; margin: 1rem 0 1.3rem; display: grid; gap: .6rem; }
.tick-list li { position: relative; padding-inline-start: 2rem; line-height: 1.45; }
.tick-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: .05rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-size: .75rem; font-weight: 900; }
.tick-list.soon li::before { content: "✦"; background: var(--grape); }
.rule-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .9rem; }
.rule-list li { display: flex; gap: .8rem; align-items: flex-start; line-height: 1.5; }
.rule-list li > span { font-size: 1.35rem; line-height: 1.1; flex: none; }
.money-rules h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

/* ------------------------------------------------------------------ admin stats */
.stats-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.stats-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.stats-range { gap: .4rem; }
.stats-range .chip { text-decoration: none; }
.kpis { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 1.4rem 0; }
.kpi { display: grid; gap: .2rem; padding: 1rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.kpi span { font-size: .78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi b { font: 900 1.9rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi b.good { color: var(--green); } .kpi b.bad { color: var(--red); }
.kpi small { font-size: .74rem; color: var(--muted); }
.stats-h { font-size: 1.3rem; margin: 2rem 0 .8rem; }
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.stats-table { border-collapse: collapse; width: 100%; font-size: .86rem; font-variant-numeric: tabular-nums; }
.stats-table th, .stats-table td { padding: .5rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: end; }
.stats-table th[scope="row"], .stats-table thead th:first-child { text-align: start; }
.stats-table thead th { font-size: .78rem; color: var(--ink-2); background: var(--surface-2); }
.stats-table code { font-size: .72rem; }
.stats-table td.zero { color: var(--muted); opacity: .55; }
.stats-table tr.sum { background: var(--bg-2); font-weight: 800; }
.ref-list { list-style: none; padding: 0; margin: 0; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.ref-list li { display: flex; justify-content: space-between; padding: .55rem .9rem; border-bottom: 1px solid var(--line); }
.ref-list li:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ keyframes */
@keyframes hh-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes hh-phone-in { from { opacity: 0; transform: translateY(30px) rotate(-4deg) scale(.94); } }
@keyframes hh-shimmer { to { background-position: 100% 0; } }
@keyframes hh-sweep { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
@keyframes hh-pop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes hh-slide { from { opacity: 0; transform: translateY(10px); } }
@keyframes hh-tap { 0% { opacity: 0; transform: scale(1.5); } 35% { opacity: 1; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.1); } }
@keyframes hh-press { 40% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes hh-grow { from { width: 20%; } }
@keyframes hh-pick { to { border-color: var(--green); background: color-mix(in srgb, var(--green) 14%, var(--surface)); transform: scale(1.03); } }
@keyframes hh-check { to { opacity: 1; transform: scale(1); } }
@keyframes hh-float-up { 0% { opacity: 0; transform: translateY(10px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-36px); } }
@keyframes hh-beat { 50% { transform: scale(1.06); } }
@keyframes hh-drop { from { opacity: 0; transform: translateY(-18px) rotate(calc(var(--tilt) * -2)); } }
@keyframes hh-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.6); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-120px) rotate(200deg) scale(1); } }
@keyframes hh-card { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes hh-hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px) rotate(-6deg); } }
@keyframes hh-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes hh-new { 0% { opacity: 0; transform: translateY(-8px) scale(.97); background: color-mix(in srgb, var(--sun) 40%, var(--surface)); }
  30% { opacity: 1; transform: none; } 100% { background: var(--surface); } }
@keyframes hh-gone { to { opacity: 0; transform: translateX(30px) scale(.96); } }
@keyframes hh-glow { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 127, .45); } 100% { box-shadow: 0 0 0 14px rgba(255, 61, 127, 0); } }
