/* Playverse -- one stylesheet for every page, phones first.

   Layout rules (his, for every app):
   - boxes never overlap, and a box GROWS to fit what is in it: no text is
     ever cut with "...", no box has a fixed height for text (min-height
     only); cards in a grid row share the tallest one's height;
   - words are never split letter by letter: overflow-wrap is break-word
     (only a single over-long word breaks), NEVER "anywhere";
   - right-to-left comes free: logical properties (inline-start/end) only.

   Colours are the Playverse logo's own, measured from it (brand/build_logo.py):
   cream #FEF4E8 behind purple #88709D, pink #E18FAE, orange #F2976B and
   yellow #F7DC97. Buttons use the purple a shade deeper (#7A6290) so white
   text on them stays readable; white text goes on purple only -- the pastels
   carry dark text. */

:root {
  --brand: #7A6290;
  --brand-d: #654F7B;
  --purple: #88709D;
  --pink: #E18FAE;
  --orange: #F2976B;
  --yellow: #F7DC97;
  --cream: #FEF4E8;
  --mint: #4FAE96;
  --sky: #5E93CF;

  --ink: #3B2F4C;
  --ink-2: #5A4D6B;
  --muted: #8C8197;
  --bg: #FEF4E8;
  --card: #FFFFFF;
  --line: #EFE3D5;
  --soft: #F3EDF7;

  --ok: #2E8F6E;
  --ok-soft: #E3F4EC;
  --warn: #A26C10;
  --warn-soft: #FEF3DA;
  --bad: #C64A45;
  --bad-soft: #FCE8E6;
  --info: #4A6FAA;
  --info-soft: #E8F0FA;

  --r-lg: 24px;
  --r: 18px;
  --r-sm: 14px;
  --shadow: 0 1px 0 rgba(59, 47, 76, .04), 0 10px 28px -18px rgba(59, 47, 76, .32);
  --tabbar-h: 66px;
  color-scheme: only light;
}

/* the colour families, used as class="c-pink" on bubbles, cards, slides:
   --c is the bubble (white icon on it), --c-soft a tint, --c-ink text on the tint */
.c-purple { --c: #88709D; --c-soft: #F1ECF6; --c-ink: #5E4A73; }
.c-pink   { --c: #D9799E; --c-soft: #FCEAF1; --c-ink: #A2476D; }
.c-orange { --c: #EE8655; --c-soft: #FDEDE3; --c-ink: #AD5329; }
.c-yellow { --c: #DDA43A; --c-soft: #FEF5DC; --c-ink: #86600F; }
.c-mint   { --c: #4FAE96; --c-soft: #E4F4EF; --c-ink: #2B7A66; }
.c-sky    { --c: #5E93CF; --c-soft: #E7F0FA; --c-ink: #31679F; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Baloo Bhaijaan 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { line-height: 1.6; }
img, svg { max-width: 100%; }
img { display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; font-weight: 800; }
p { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
      stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 200; background: #fff; padding: 8px 14px;
        border-radius: 10px; font-weight: 700; }
.skip:focus { top: 8px; }

/* --- page frame ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
.page { flex: 1 0 auto; padding-block: 18px 36px; }

.appbar { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96);
          border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.appbar-row { display: flex; align-items: center; gap: 8px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img.wordmark { height: 30px; width: auto; max-width: 100%; flex: 0 1 auto; min-width: 0; }
.brand .role-tag { flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-text b { font-size: 20px; font-weight: 800; padding-bottom: 2px; }
.brand-text small { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.spacer { flex: 1 1 auto; }
.inline-form { display: inline-flex; margin: 0; }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
            border-radius: 14px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover, .icon-btn.active { background: var(--soft); color: var(--brand); text-decoration: none; }
.icon-btn.small { width: 36px; height: 36px; border-radius: 10px; }
.icon-btn.light { color: #fff; }
.icon-btn.light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.dot-count { position: absolute; top: 5px; inset-inline-end: 4px; min-width: 18px; height: 18px; padding: 0 5px;
             border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800;
             display: grid; place-items: center; line-height: 1; border: 2px solid #fff; }
.me-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; }
.me-btn:hover { text-decoration: none; }
.me-btn.active .avatar { box-shadow: 0 0 0 3px var(--soft), 0 0 0 5px var(--brand); }
.lang-chip { flex: none; }

.topnav { background: #fff; border-bottom: 1px solid var(--line); }
.topnav-row { display: flex; flex-wrap: wrap; gap: 4px 6px; padding-block: 8px; }
.topnav a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 12px;
            color: var(--ink-2); font-weight: 700; font-size: 15px; white-space: nowrap; }
.topnav a:hover { background: var(--soft); color: var(--brand); text-decoration: none; }
.topnav a.active { background: var(--brand); color: #fff; }
.topnav .ic { width: 18px; height: 18px; }

.tabbar { display: none; }

.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 16px 0; margin-top: auto; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; color: var(--ink-2); }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.footer-brand img { width: 28px; height: 28px; }
.footer-item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); min-width: 0; }
.footer-item .ic { width: 16px; height: 16px; color: var(--brand); }

@media (max-width: 899px) {
  .hide-sm { display: none !important; }
  .topnav { display: none; }
  .tabbar { position: fixed; z-index: 70; inset-inline: 0; bottom: 0; display: grid; grid-auto-flow: column;
            grid-auto-columns: minmax(0, 1fr); background: #fff; border-top: 1px solid var(--line);
            padding: 6px 4px max(6px, env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -18px rgba(59, 47, 76, .4); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
              min-width: 0; min-height: 54px; padding-block: 4px; border-radius: 14px; color: var(--muted); font-size: 12px;
              font-weight: 700; }
  .tabbar a span { max-width: 100%; text-align: center; line-height: 1.15; padding-inline: 2px; }
  .tabbar a .ic { width: 23px; height: 23px; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a.active { color: var(--brand); background: var(--soft); }
  body.has-tabbar .site-footer { padding-bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); }
  .brand-text b { font-size: 18px; }
  .lang-chip span { display: none; }
  .lang-chip { width: 44px; padding: 0; justify-content: center; border: 0; background: transparent; }
}
@media (min-width: 900px) {
  .show-sm { display: none !important; }
}

/* --- type and helpers ------------------------------------------------------------- */
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px;
             margin-bottom: 16px; }
.page-head > div:first-child { min-width: 0; flex: 1 1 260px; }
.page-head h1 { font-size: 26px; }
.page-head p { color: var(--muted); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.sec-head:first-child { margin-top: 0; }
.sec-head h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; min-width: 0; }
.sec-head h2 .ic { color: var(--brand); }
.link-more { display: inline-flex; align-items: center; gap: 2px; flex: none; font-weight: 700; font-size: 15px; }
.link-more .ic { width: 18px; height: 18px; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.strong { font-weight: 800; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .02em; }
.mono:not(.copy-value) { white-space: nowrap; }      /* booking and voucher codes stay in one piece */
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 12px); min-width: 0; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 8px); min-width: 0; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 28px; }
.mb { margin-bottom: 16px; }
/* (these once cut text with "..."; he wants every word shown, so they only
   let a text wrap inside its box now -- the box grows) */
.clamp-1, .clamp-2, .clamp-3 { display: block; min-width: 0; overflow-wrap: break-word; }
/* reserve the lines, so a short text does not make a shorter card */
.lines-2 { min-height: calc(2 * 1.3em); line-height: 1.3; }
.lines-3 { min-height: calc(3 * 1.45em); line-height: 1.45; }

/* --- cards, grids, tiles ---------------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px;
        box-shadow: var(--shadow); min-width: 0; }
.card.tight { padding: 14px; }
.card.flat { box-shadow: none; }
.card.soft { background: var(--c-soft, var(--soft)); border-color: transparent; box-shadow: none; }
.card > h2, .card > h3 { margin-bottom: 10px; }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-width: 0; }
.card-title h2, .card-title h3 { font-size: 18px; min-width: 0; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 240px), 100%), 1fr)); }
.grid > * { min-width: 0; }
.grid.equal { grid-auto-rows: 1fr; }
.grid.equal > * { height: 100%; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 699px) {
  .grid.two.stack-sm, .grid.three.stack-sm { grid-template-columns: minmax(0, 1fr); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* stat tiles: a fixed height, the number never pushes the box */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 116px; padding: 14px 16px;
        background: #fff; border: 1px solid var(--line); border-radius: 20px; min-width: 0; color: var(--ink); }
a.tile:hover { text-decoration: none; border-color: var(--c, var(--brand)); }
.tile .tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.tile .bubble { width: 38px; height: 38px; border-radius: 12px; }
.tile .bubble .ic { width: 20px; height: 20px; }
.tile .num { font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile .lbl { font-size: 14px; color: var(--muted); font-weight: 700; line-height: 1.3; }

/* lists of things: every row is the same height, the text is cut, never wrapped */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row-item { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 10px 14px; background: #fff;
            border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); min-width: 0; }
a.row-item:hover { text-decoration: none; border-color: var(--brand); }
.row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-title { font-weight: 800; line-height: 1.3; }
.row-sub { font-size: 14px; color: var(--muted); line-height: 1.4; }
.row-side { flex: 0 1 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.row-side .ic.go { color: var(--muted); }
@media (max-width: 599px) {
  .row-item.wrap-sm { flex-wrap: wrap; }
  .row-item.wrap-sm .row-side { width: 100%; justify-content: flex-end; }
}
.panel-scroll { min-width: 0; }                 /* lists grow with the page; nothing scrolls inside a box */

.kv { display: grid; grid-template-columns: minmax(96px, 38%) minmax(0, 1fr); gap: 10px 14px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 700; font-size: 14px; }
.kv dd { margin: 0; font-weight: 700; min-width: 0; }

/* --- buttons and chips -------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; max-width: 100%;
       padding: 6px 18px; border: 0; border-radius: var(--r-sm); background: var(--brand); color: #fff; font-weight: 800;
       font-size: 16px; line-height: 1.2; cursor: pointer; text-decoration: none; text-align: center;
       transition: background .15s, transform .1s; }
.btn > span { min-width: 0; overflow-wrap: break-word; }
.btn:hover { background: var(--brand-d); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.alt { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.alt:hover { border-color: var(--brand); color: var(--brand); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--soft); }
.btn.danger { background: var(--bad); }
.btn.danger:hover { background: #B92F2F; }
.btn.ok { background: var(--ok); }
.btn.ok:hover { background: #0E7F57; }
.btn.warn { background: var(--yellow); color: #3A2600; }
.btn.light { background: #fff; color: var(--brand); }
.btn.light:hover { background: var(--soft); color: var(--brand-d); }
.btn.whatsapp { background: #1FA855; }
.btn.whatsapp:hover { background: #178A45; }
.btn.small { min-height: 38px; padding: 4px 13px; font-size: 14px; border-radius: 12px; gap: 6px; }
.btn.small .ic { width: 17px; height: 17px; }
.btn.big { min-height: 56px; font-size: 18px; border-radius: 18px; padding: 8px 24px; }
.btn.block { display: flex; width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.actions.end { justify-content: flex-end; }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border-radius: 999px;
        background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: 14px;
        line-height: 1.25; max-width: 100%; }
.chip > span { min-width: 0; overflow-wrap: break-word; }
.chip .ic { width: 16px; height: 16px; }
a.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }

.badge { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 2px 10px; border-radius: 999px;
         font-size: 13px; font-weight: 800; line-height: 1.2; background: var(--soft); color: var(--brand-d); flex: 0 1 auto;
         max-width: 100%; }
.badge .ic { width: 14px; height: 14px; }
.st-pending   { background: var(--warn-soft); color: var(--warn); }
.st-confirmed { background: var(--info-soft); color: var(--info); }
.st-in        { background: var(--ok-soft); color: var(--ok); }
.st-in::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
                 animation: pulse 1.6s ease-in-out infinite; }
.st-done      { background: #EFEBF1; color: #6B6075; }
.st-cancelled { background: var(--bad-soft); color: var(--bad); }
.pay-unpaid   { background: var(--bad-soft); color: var(--bad); }
.pay-claimed  { background: var(--warn-soft); color: var(--warn); }
.pay-paid     { background: var(--ok-soft); color: var(--ok); }
.kind-play  { background: #F1ECF6; color: #5E4A73; }
.kind-party { background: #FCEAF1; color: #A2476D; }
.kind-trip  { background: #FDEDE3; color: #AD5329; }
.kind-photo { background: #FEF5DC; color: #86600F; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.bubble { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px;
          background: var(--c, var(--brand)); color: #fff; }
.bubble .ic { width: 22px; height: 22px; }
.bubble.sm { width: 34px; height: 34px; border-radius: 11px; }
.bubble.sm .ic { width: 18px; height: 18px; }
.bubble.lg { width: 58px; height: 58px; border-radius: 18px; }
.bubble.lg .ic { width: 28px; height: 28px; }
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%;
          background: var(--c, var(--brand)); color: #fff; font-weight: 800; font-size: 18px; line-height: 1; }
.avatar.sm { width: 34px; height: 34px; font-size: 15px; }
.avatar.lg { width: 60px; height: 60px; font-size: 24px; }
.avatar.xl { width: 84px; height: 84px; font-size: 34px; }

/* --- forms ---------------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.label { font-weight: 800; font-size: 14px; color: var(--ink-2); }
.req { color: var(--orange); font-style: normal; }
.hint { color: var(--muted); font-size: 13px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"],
input[type="date"], input[type="time"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font: inherit; font-size: 16px; min-width: 0; appearance: none;
  -webkit-appearance: none;
}
input[type="date"], input[type="time"] { display: block; line-height: 44px; }
input[type="time"] { padding-inline: 8px 4px; font-size: 15px; font-variant-numeric: tabular-nums; }
input[type="time"]::-webkit-calendar-picker-indicator { margin-inline-start: 0; padding: 0; }
input[type="time"]::-webkit-datetime-edit { padding: 0; }
select { padding-inline-end: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237B7499' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; text-overflow: ellipsis; }
[dir="rtl"] select { background-position: left 12px center; }
textarea { height: 108px; padding: 10px 14px; resize: none; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 3px solid #E3D7EC; border-color: var(--brand); }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; accent-color: var(--brand); margin: 0; flex: none; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; min-width: 0; }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; top: 14px; inset-inline-start: 14px; color: var(--muted); pointer-events: none; }
.input-icon input { padding-inline-start: 44px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-inline-end: 52px; }
.pw-wrap .icon-btn { position: absolute; top: 2px; inset-inline-end: 2px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.switch input { appearance: none; -webkit-appearance: none; position: relative; width: 52px; height: 30px; flex: none;
                margin: 0; border-radius: 999px; background: #DDD3E3; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px;
                       border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: inset-inline-start .2s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { inset-inline-start: 25px; }

/* choice cards: a radio or checkbox wearing a card */
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 200px), 100%), 1fr));
           grid-auto-rows: 1fr; }
.choice { position: relative; display: flex; min-width: 0; cursor: pointer; margin: 0; }
.choice > input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.choice-body { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 74px; padding: 12px 14px;
               background: #fff; border: 2px solid var(--line); border-radius: var(--r); transition: border-color .15s, background .15s; }
.choice-body .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.choice-body .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line);
                     display: grid; place-items: center; color: transparent; }
.choice-body .tick .ic { width: 16px; height: 16px; stroke-width: 3; }
.choice:hover .choice-body { border-color: #D9CBE4; }
.choice > input:checked + .choice-body { border-color: var(--brand); background: #FAF6FC; }
.choice > input:checked + .choice-body .tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.choice > input:focus-visible + .choice-body { outline: 3px solid #E3D7EC; }
.choice > input:disabled + .choice-body { opacity: .45; }
.choice.col .choice-body { flex-direction: column; align-items: stretch; }
.choice.tight .choice-body { min-height: 52px; padding: 8px 12px; }
.choice-img { width: 100%; aspect-ratio: 6 / 5; object-fit: contain; border-radius: 12px; background: var(--bg); }

.stepper { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1.5px solid var(--line);
           border-radius: var(--r-sm); padding: 3px; }
.stepper input { width: 72px; height: 40px; border: 0; text-align: center; font-weight: 800; padding: 0 4px; }
.stepper input:focus { outline: none; }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--soft); color: var(--brand);
                  display: grid; place-items: center; cursor: pointer; }

/* --- messages ---------------------------------------------------------------------------------- */
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 12px; border-radius: 16px;
         font-weight: 700; background: var(--info-soft); color: var(--info); }
.flash .ic { margin-top: 2px; }
.flash.success { background: var(--ok-soft); color: var(--ok); }
.flash.error { background: var(--bad-soft); color: var(--bad); }
.flash.warning { background: var(--warn-soft); color: var(--warn); }
.toasts { position: fixed; z-index: 120; inset-inline: 12px; bottom: 18px; display: flex; flex-direction: column;
          align-items: center; gap: 8px; pointer-events: none; }
body.has-tabbar .toasts { bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); }
.toasts .flash { pointer-events: auto; width: 100%; max-width: 520px; margin: 0; box-shadow: 0 12px 30px -12px rgba(59, 47, 76, .45);
                 animation: rise .25s ease-out; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

.notice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r);
          background: var(--c-soft, var(--soft)); color: var(--c-ink, var(--brand-d)); font-weight: 700; min-width: 0; }
.notice .grow { flex: 1; min-width: 0; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 30px 18px;
         border: 2px dashed var(--line); border-radius: var(--r-lg); background: #fff; }
.empty-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--soft);
            color: var(--brand); margin-bottom: 4px; }
.empty-ic .ic { width: 30px; height: 30px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--muted); max-width: 420px; }
.empty .btn { margin-top: 8px; }

/* --- live status pill ------------------------------------------------------------------------- */
.live-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 14px; border-radius: 999px;
             background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: 14px; color: var(--ink); }
.live-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: #B9B3CC; flex: none; }
.live-pill.is-open .dot { background: var(--ok); animation: pulse 2s ease-in-out infinite; }
.live-pill.is-open { color: var(--ok); }
.live-pill.is-full { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.live-pill.is-full .dot { background: var(--bad); }
.live-pill.is-closed { color: var(--muted); }

/* --- the welcome page ------------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 18px; align-items: center;
        padding: 26px 22px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.hero::before { width: 230px; height: 230px; inset-inline-end: -70px; top: -80px; background: var(--yellow); opacity: .55; }
.hero::after { width: 170px; height: 170px; inset-inline-start: -60px; bottom: -90px; background: var(--pink); opacity: .35; }
.hero .confetti { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, var(--purple) 2px, transparent 2.5px),
                    radial-gradient(circle, var(--orange) 2.5px, transparent 3px);
  background-size: 54px 54px, 86px 86px; background-position: 6px 10px, 30px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.hero-logo { justify-self: center; width: min(250px, 66%); height: auto; aspect-ratio: 1; border-radius: 50%;
             box-shadow: 0 18px 40px -22px rgba(59, 47, 76, .45); }
.hero-body { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hero h1 { font-size: 32px; line-height: 1.15; color: var(--ink); }
.hero p { font-size: 18px; color: var(--ink-2); }
.hero .live-pill { align-self: flex-start; }
@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); padding: 40px 40px; }
  .hero-logo { order: 2; width: min(300px, 100%); }
  .hero h1 { font-size: 44px; }
}

/* the signed-out welcome page */
.home-offers { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 4px; padding: 6px 14px 6px 6px;
               border-radius: 999px; background: var(--c-soft, #FCEAF1); color: #A2476D; font-weight: 800; }
[dir="rtl"] .home-offers { padding: 6px 6px 6px 14px; }
.home-offers:hover { text-decoration: none; background: #F9DDE8; color: #A2476D; }
.home-steps { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.home-steps li { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.home-steps li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-steps .n { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--c);
                 color: #fff; font-weight: 800; }
.home-visit { display: flex; flex-direction: column; gap: 10px; }
.home-visit-line { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-2); }
.home-visit-line .ic { color: var(--brand); }

.how { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); grid-auto-rows: 1fr; }
.how-step { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--line);
            border-radius: var(--r); min-width: 0; }
.how-step .n { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
               background: var(--c, var(--brand)); color: #fff; font-weight: 800; }
.how-step h3 { font-size: 17px; }
.how-step p { color: var(--muted); font-size: 14px; }

/* --- carousel ---------------------------------------------------------------------------------- */
.carousel { position: relative; }
.slides { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
          scrollbar-width: none; border-radius: var(--r-lg); }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; min-height: 210px; scroll-snap-align: start; overflow: hidden; isolation: isolate;
         display: flex; align-items: flex-end; border-radius: var(--r-lg); color: var(--ink);
         background: linear-gradient(135deg, var(--c-soft) 0%, #fff 100%); border: 1px solid var(--line); }
.slide::before { content: ""; position: absolute; z-index: -1; width: 200px; height: 200px; border-radius: 50%;
                 inset-inline-end: -50px; top: -70px; background: var(--c); opacity: .3; }
.slide::after { content: ""; position: absolute; z-index: -1; width: 120px; height: 120px; border-radius: 50%;
                inset-inline-end: 100px; bottom: -70px; background: var(--c); opacity: .18; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.slide.has-img { color: #fff; border: 0; }
.slide.has-img::before { background: linear-gradient(to top, rgba(40, 30, 54, .82) 0%, rgba(40, 30, 54, .08) 78%);
                         inset: 0; width: auto; height: auto; border-radius: 0; opacity: 1; z-index: 0; }
.slide.has-img::after { display: none; }
.slide-body { position: relative; z-index: 1; width: 100%; padding: 20px 22px; display: flex; flex-direction: column;
              align-items: flex-start; gap: 6px; }
.slide h3 { font-size: 24px; max-width: 640px; color: var(--c-ink); }
.slide.has-img h3 { color: #fff; }
.slide p { max-width: 620px; color: var(--ink-2); }
.slide.has-img p { color: rgba(255, 255, 255, .92); }
.slide .btn { margin-top: 6px; }
@media (min-width: 700px) { .slide { min-height: 260px; } .slide h3 { font-size: 30px; } .slide-body { padding: 26px 30px; } }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #E3D7EC; cursor: pointer;
               transition: width .2s, background .2s; }
.dots button.on { width: 24px; background: var(--brand); }

/* --- service cards ------------------------------------------------------------------------------- */
.svc { display: flex; flex-direction: column; height: 100%; min-width: 0; overflow: hidden; background: #fff;
       border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.svc-top { position: relative; height: 104px; flex: none; display: flex; align-items: center; justify-content: space-between;
           gap: 10px; padding: 16px; background: var(--c-soft); overflow: hidden; }
.svc-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-top::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%;
                  inset-inline-end: -36px; top: -44px; background: var(--c); opacity: .14; }
.svc-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; min-width: 0; }
.svc-name { font-size: 18px; font-weight: 800; }
.svc-desc { color: var(--muted); font-size: 14px; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; }
.svc-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.price { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; flex: none; }
.price b { font-size: 20px; font-weight: 800; color: var(--ink); }
.price small { color: var(--muted); font-weight: 700; font-size: 13px; }

/* --- tabs ------------------------------------------------------------------------------------------- */
.tabs { display: flex; gap: 4px; padding: 4px; overflow-x: auto; scrollbar-width: none; background: #fff;
        border: 1px solid var(--line); border-radius: 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
                        border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font-weight: 800;
                        font-size: 15px; white-space: nowrap; cursor: pointer; }
.tabs a:hover, .tabs button:hover { background: var(--soft); text-decoration: none; }
.tabs .active, .tabs [aria-selected="true"] { background: var(--brand); color: #fff; }
.tabs .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
               background: rgba(59, 47, 76, .08); font-size: 12px; }
.tabs .active .count, .tabs [aria-selected="true"] .count { background: rgba(255, 255, 255, .25); }
.tab-panel[hidden] { display: none; }

/* --- tables (admin, computer screens) -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); overflow-wrap: break-word;
                   vertical-align: middle; }
.tbl th { font-size: 13px; color: var(--muted); font-weight: 800; background: #FFFBF6; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #FFFCF8; }

/* --- tickets: a booking pass, a voucher ------------------------------------------------------------- */
.ticket { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
          box-shadow: var(--shadow); min-width: 0; }
.ticket-top { padding: 18px; background: linear-gradient(135deg, var(--brand), #9479AA);
              color: #fff; display: flex; flex-direction: column; gap: 6px; }
.ticket-top .muted { color: rgba(255, 255, 255, .85); }
.ticket-cut { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 18px; }
.ticket-cut::before, .ticket-cut::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px;
                                           border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.ticket-cut::before { inset-inline-start: -30px; }
.ticket-cut::after { inset-inline-end: -30px; }
.ticket-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.code-big { direction: ltr; unicode-bidi: isolate; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: .18em;
            font-variant-numeric: tabular-nums; white-space: nowrap; }
.code-mid { direction: ltr; unicode-bidi: isolate; font-size: 24px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }

.copy-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.copy-box { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 4px 4px 14px; background: var(--bg);
            border: 1.5px dashed #DCCFE6; border-radius: var(--r-sm); }
[dir="rtl"] .copy-box { padding: 4px 14px 4px 4px; }
.copy-value { flex: 1; min-width: 0; overflow-wrap: break-word; font-weight: 800; line-height: 1.35; padding-block: 6px; }
.copy-box .icon-btn.done { color: var(--ok); }

/* --- points ----------------------------------------------------------------------------------------- */
.points-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 22px; color: #fff; isolation: isolate;
               background: linear-gradient(135deg, #7A6290 0%, #9479AA 100%); }
.points-hero::after { content: ""; position: absolute; z-index: -1; width: 200px; height: 200px; border-radius: 50%;
                      inset-inline-end: -50px; top: -80px; background: rgba(255, 255, 255, .18); }
.points-num { display: block; font-size: 52px; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress { position: relative; height: 12px; border-radius: 999px; background: rgba(59, 47, 76, .1); overflow: hidden; }
.points-hero .progress { background: rgba(255, 255, 255, .3); }
.progress > i { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p, 0%); border-radius: inherit;
                background: linear-gradient(90deg, var(--yellow), var(--orange)); animation: grow 1s ease-out; }
@keyframes grow { from { width: 0; } }
.points-hero .progress > i { background: var(--yellow); }

/* --- pictures ---------------------------------------------------------------------------------------- */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(150px, 46%), 1fr)); }
.gallery .shot { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--soft); }
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery .shot:hover img { transform: scale(1.04); }
.gallery .shot .tag { position: absolute; inset-inline-start: 8px; bottom: 8px; max-width: calc(100% - 16px); }

.viewer { position: fixed; inset: 0; z-index: 150; background: rgba(30, 22, 40, .95); display: flex; align-items: center;
          justify-content: center; padding: 64px 12px 24px; }
.viewer-bar { position: absolute; top: 0; inset-inline: 0; display: flex; align-items: center; gap: 8px;
              padding: max(10px, env(safe-area-inset-top)) 12px 10px; }
.viewer figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.viewer img { max-width: min(100%, 1100px); max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 10px; }
.viewer figcaption { color: #fff; font-weight: 700; text-align: center; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
              border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.viewer-nav.prev { inset-inline-start: 10px; }
.viewer-nav.next { inset-inline-end: 10px; }
body.viewing { overflow: hidden; }

/* --- dialogs ------------------------------------------------------------------------------------------ */
.modal, .sheet { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 18px;
                 background: rgba(40, 30, 54, .48); }
.modal-card, .sheet-card { width: min(440px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto; background: #fff;
                           border-radius: 26px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(20, 12, 50, .5);
                           animation: rise .2s ease-out; }
.modal-card { text-align: center; }
.modal-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--warn-soft);
            color: var(--warn); margin-bottom: 10px; }
.modal-ic .ic { width: 28px; height: 28px; }
.modal-card p { font-size: 17px; font-weight: 700; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.sheet-card h3 { font-size: 20px; margin-bottom: 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sheet-head h3 { margin: 0; min-width: 0; }
@media (max-width: 599px) {
  .sheet { place-items: end stretch; padding: 0; }
  .sheet-card { width: 100%; border-radius: 26px 26px 0 0; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}
body.modal-open { overflow: hidden; }

/* --- pager, misc --------------------------------------------------------------------------------------- */
.push-card { padding: 12px 14px; }
.push-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.push-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.push-card [data-push-msg] { margin: 8px 0 0; }
.push-card [data-push-msg]:empty { display: none; }
.push-prompt { border-inline-start: 4px solid var(--orange); margin-bottom: 14px; }
.switch input:disabled { opacity: .5; cursor: not-allowed; }

/* how to put the app on the phone (sign-in and sign-up pages) */
.install { padding: 0; margin-top: 14px; overflow: hidden; }
.install summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 800; color: var(--brand);
                   display: flex; align-items: center; gap: 10px; }
.install summary::-webkit-details-marker { display: none; }
.install summary .grow { flex: 1; min-width: 0; }
.install summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--orange); font-weight: 800; }
.install[open] summary::after { content: "\2212"; }
.install-cols { padding: 0 18px 18px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .install-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.install-cols h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; color: var(--ink); }
.install-cols ol { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 4px; }
.install-cols li { font-size: 15px; color: var(--ink-2); }
.install-cols li::marker { color: var(--orange); font-weight: 800; }
.install-note { padding: 0 18px 16px; margin: 0; }

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }
.auth-card { max-width: 460px; margin: 10px auto 0; }
.code-input { font-size: 28px; font-weight: 800; letter-spacing: .35em; text-align: center; height: 60px; font-variant-numeric: tabular-nums; }
.auth-card .brand-big { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; text-align: center; }
.auth-card .brand-big img { width: 72px; height: 72px; }
.more-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(150px, 46%), 1fr)); grid-auto-rows: 1fr; }
.more-grid a { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px;
               min-height: 104px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
               color: var(--ink); font-weight: 800; min-width: 0; }
.more-grid a:hover { border-color: var(--brand); text-decoration: none; }
.more-grid a span:last-child { width: 100%; overflow-wrap: break-word; line-height: 1.3; }
.note-list { display: flex; flex-direction: column; gap: 8px; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: #fff; border: 1px solid var(--line);
        border-radius: var(--r); color: var(--ink); min-width: 0; }
a.note:hover { text-decoration: none; border-color: var(--brand); }
.note.unread { border-color: #D9CBE4; background: #FCF9FD; }
.note .grow { flex: 1; min-width: 0; }
.note .grow p { font-weight: 700; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; }
.bar-chart .bar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
                  gap: 4px; height: 100%; }
.bar-chart .bar i { display: block; width: 100%; max-width: 34px; height: var(--h, 0%); min-height: 3px; border-radius: 8px 8px 3px 3px;
                    background: var(--brand); }
.bar-chart .bar small { font-size: 11px; color: var(--muted); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
