/* ==========================================================================
   Movie Companion — "a lovely night in Hyderabad"
   Calm warm-neutral paper, soft indigo (a nod to La La Land's blue hour),
   midnight for the big-screen moments, and a muted marquee gold.
   ========================================================================== */
:root {
  --paper: #f6f5f2;
  --paper-2: #efede8;
  --surface: #ffffff;
  --surface-2: #faf9f7;
  --surface-3: #f1efea;
  --ink: #1d2332;
  --ink-2: #4a5265;
  --muted: #5f6676;
  --faint: #aab0bb;
  --line: #ebe8e2;
  --line-2: #dcd8cf;
  --accent: #3e5bc4;
  --accent-dark: #30499f;
  --accent-soft: #edf0fa;
  --accent-rgb: 62, 91, 196;
  --gold: #e7b75a;
  --gold-soft: #fbf4e3;
  --night: #161b2c;
  --night-2: #242c45;
  /* The Discover banner and quote strip: a night-sky card. */
  --hero-a: var(--night); --hero-b: #1b2238; --hero-c: var(--night-2);
  --hero-edge: transparent; --hero-glow: rgba(0, 0, 0, 0);
  --dusk-violet: #7467c4;
  --dusk-pink: #cf7a9e;
  --dusk-orange: #e7a874;
  --success: #237354;
  --warn: #8a5e0b;
  --danger: #b23a4e;
  --info: #3e5bc4;
  --blue: #3e5bc4;   --blue-soft: #edf0fa;
  --teal: #2a8079;   --teal-soft: #e5f2f0;
  --pink: #b1577f;   --pink-soft: #f8ecf2;
  --gold-t: #9b6a12; --gold-t-soft: #faf1db;
  /* One faint dot texture, used sparingly behind card headers. */
  --dots: radial-gradient(rgba(29, 35, 50, .055) 1px, transparent 1.3px);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(29, 35, 50, .05), 0 1px 3px rgba(29, 35, 50, .04);
  --shadow: 0 2px 4px rgba(29, 35, 50, .04), 0 12px 28px -10px rgba(29, 35, 50, .16);
  --shadow-lg: 0 24px 56px -16px rgba(29, 35, 50, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --title: "Manrope", var(--font);
  --topbar: 68px;
  --tabbar: 0px;
  --gutter: 24px;
  /* Semantic tints and pairs (dark values below). */
  --success-soft: #e3f6ee; --success-line: #c4ead9; --success-wash: #f1fbf6;
  --warn-soft: #fff3d6;    --warn-line: #f6e0a8;
  --danger-soft: #fde8eb;  --danger-line: #f6c9cf;
  --info-soft: #e6effc;    --info-line: #c9dbf6;
  --accent-line: #d5dcf2;  --pink-line: #ecd6e1; --gold-line: #e9d5a6;
  /* Filled buttons, and "ink" blocks such as the active chip or a toast. */
  --accent-fill: #3e5bc4;  --accent-fill-hover: #30499f; --danger-fill: #c4485b;
  --inverse: #1d2332;      --on-inverse: #ffffff;  --on-inverse-ok: #9fe0c3;
  --scrim: rgba(22, 27, 44, .42);
  color-scheme: light;
}

/* Dark theme: follows the device unless the person picked Light or Dark in
   Profile (data-theme on <html>, see js/theme.js). Only tokens change here;
   component rules stay theme-agnostic. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11141f;
    --paper-2: #151927;
    --surface: #1a1f2e;
    --surface-2: #1f2536;
    --surface-3: #262d40;
    --ink: #e8ebf3;
    --ink-2: #bcc3d3;
    --muted: #959db0;
    --faint: #687085;
    --line: #2a3145;
    --line-2: #363e55;
    --accent: #8ea2f0;
    --accent-dark: #b3c1f6;
    --accent-soft: #222b47;
    --accent-rgb: 142, 162, 240;
    --gold-soft: #2f2817;
    --night: #0c0f19;
    --night-2: #1b2137;
    --success: #57c79f;
    --warn: #e3b04f;
    --danger: #f0828f;
    --info: #8ea2f0;
    --blue: #8ea2f0;   --blue-soft: #222b47;
    --teal: #5cc2b6;   --teal-soft: #16302d;
    --pink: #e595b8;   --pink-soft: #35202b;
    --gold-t: #e5bd6a; --gold-t-soft: #302818;
    --success-soft: #15302a; --success-line: #22493d; --success-wash: #13261f;
    --warn-soft: #33290f;    --warn-line: #4d3d17;
    --danger-soft: #3a1c22;  --danger-line: #5a2a33;
    --info-soft: #1e2a46;    --info-line: #2d3d63;
    --accent-line: #33406a;  --pink-line: #4d2c3c; --gold-line: #4d3e1f;
    --accent-fill: #4f69d2;  --accent-fill-hover: #5d77dc; --danger-fill: #c44657;
    --inverse: #e8ebf3;      --on-inverse: #11141f;  --on-inverse-ok: #1f7a57;
  --scrim: rgba(3, 5, 10, .66);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 12px 28px -10px rgba(0, 0, 0, .55);
    --shadow-lg: 0 24px 56px -16px rgba(0, 0, 0, .7);

    /* On a dark page the night sky needs more colour and an edge to read as a card. */
    --hero-a: #1f2655; --hero-b: #2d2a66; --hero-c: #3d2459;
    --hero-edge: rgba(231, 183, 90, .32); --hero-glow: rgba(124, 108, 220, .28);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11141f;
  --paper-2: #151927;
  --surface: #1a1f2e;
  --surface-2: #1f2536;
  --surface-3: #262d40;
  --ink: #e8ebf3;
  --ink-2: #bcc3d3;
  --muted: #959db0;
  --faint: #687085;
  --line: #2a3145;
  --line-2: #363e55;
  --accent: #8ea2f0;
  --accent-dark: #b3c1f6;
  --accent-soft: #222b47;
  --accent-rgb: 142, 162, 240;
  --gold-soft: #2f2817;
  --night: #0c0f19;
  --night-2: #1b2137;
  --success: #57c79f;
  --warn: #e3b04f;
  --danger: #f0828f;
  --info: #8ea2f0;
  --blue: #8ea2f0;   --blue-soft: #222b47;
  --teal: #5cc2b6;   --teal-soft: #16302d;
  --pink: #e595b8;   --pink-soft: #35202b;
  --gold-t: #e5bd6a; --gold-t-soft: #302818;
  --success-soft: #15302a; --success-line: #22493d; --success-wash: #13261f;
  --warn-soft: #33290f;    --warn-line: #4d3d17;
  --danger-soft: #3a1c22;  --danger-line: #5a2a33;
  --info-soft: #1e2a46;    --info-line: #2d3d63;
  --accent-line: #33406a;  --pink-line: #4d2c3c; --gold-line: #4d3e1f;
  --accent-fill: #4f69d2;  --accent-fill-hover: #5d77dc; --danger-fill: #c44657;
  --inverse: #e8ebf3;      --on-inverse: #11141f;  --on-inverse-ok: #1f7a57;
  --scrim: rgba(3, 5, 10, .66);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 12px 28px -10px rgba(0, 0, 0, .55);
  --shadow-lg: 0 24px 56px -16px rgba(0, 0, 0, .7);

  /* On a dark page the night sky needs more colour and an edge to read as a card. */
  --hero-a: #1f2655; --hero-b: #2d2a66; --hero-c: #3d2459;
  --hero-edge: rgba(231, 183, 90, .32); --hero-glow: rgba(124, 108, 220, .28);
  color-scheme: dark;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper);
  font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background-image: radial-gradient(1200px 520px at 50% -260px, rgba(var(--accent-rgb), .11), transparent 70%),
    radial-gradient(700px 420px at 100% 0, rgba(231, 168, 116, .10), transparent 70%);
  background-repeat: no-repeat;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; font-variation-settings: "SOFT" 30, "WONK" 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(var(--accent-rgb), .18); color: var(--ink); }
.icon { flex: none; }
.muted { color: var(--muted); }
.grow { flex: 1; }
.stack { display: grid; gap: 12px; }
.fine { font-size: 12px; color: var(--muted); line-height: 1.5; text-align: center; }
.card .fine { text-align: left; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.mobile-only { display: none !important; }
.big-emoji { font-size: 26px; line-height: 1; }

.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; }
.boot .brand-mark { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .7; } }

/* Tone families (plan types) */
.tone-blue  { --tone: var(--blue);  --tone-soft: var(--blue-soft); }
.tone-teal   { --tone: var(--teal);   --tone-soft: var(--teal-soft); }
.tone-pink { --tone: var(--pink); --tone-soft: var(--pink-soft); }
.tone-gold   { --tone: var(--gold-t); --tone-soft: var(--gold-t-soft); }

/* ---------- Shell ---------- */
.shell { min-height: 100vh; padding-bottom: var(--tabbar); }
main { max-width: 1220px; margin: 0 auto; padding: 0 var(--gutter); }
.topbar {
  position: sticky; top: 0; z-index: 30; height: calc(var(--topbar) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; gap: 24px; padding: 0 max(var(--gutter), calc((100vw - 1220px) / 2 + var(--gutter)));
  background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--display); font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.brand-name b { color: var(--accent); font-weight: 650; font-style: italic; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(150deg, #4f6bd3, var(--accent-dark)); box-shadow: 0 1px 2px rgba(29, 35, 50, .12), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.brand-mark.lg { width: 60px; height: 60px; border-radius: 18px; }
.topnav { display: flex; gap: 2px; margin-right: auto; }
.topnav a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 14px; transition: color .15s, background .15s; }
.topnav a:hover { background: var(--surface-3); color: var(--ink); }
.topnav a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.city-select { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.city-select select { background: none; border: 0 !important; outline: 0; color: inherit; padding: 0 !important; width: auto !important; border-radius: 0; cursor: pointer; font-weight: 600; box-shadow: none !important; background-image: none !important; }
.city-select .icon { color: var(--accent); }
.me { border-radius: 50%; }
button.city-select { cursor: pointer; }
button.city-select:active { transform: scale(.97); }

/* Light / dark switch in the top bar: a track with a sliding sun / moon knob. */
.theme-toggle { position: relative; flex: none; width: 54px; height: 30px; border-radius: 999px; border: 1px solid var(--line-2);
  background: linear-gradient(90deg, #ffe7a3, #ffd3a1); transition: background .3s, border-color .3s; }
.theme-toggle.is-dark { background: linear-gradient(90deg, #1b2240, #3b2a6b); border-color: #3a4366; }
.theme-toggle-knob { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #e08a00; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease), background .3s, color .3s; }
.theme-toggle.is-dark .theme-toggle-knob { transform: translateX(24px); background: #11141f; color: #ffd76a; }

/* Install / alerts promotion under the top bar. */
.promo-bar { display: flex; align-items: center; gap: 12px; max-width: calc(1220px - var(--gutter) * 2); margin: 12px auto 0; padding: 10px 10px 10px 14px;
  border-radius: 16px; background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb), .25); animation: fade .3s ease; }
@media (min-width: 721px) { .promo-bar { margin-inline: max(var(--gutter), calc((100vw - 1220px) / 2 + var(--gutter))); } }
.promo-icon { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, #4f6bd3, var(--accent-dark)); }
.promo-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.promo-text strong { font-size: 14px; }
.promo-text small { font-size: 12.5px; color: var(--ink-2); }
.promo-close { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.promo-close:hover { background: var(--surface-3); color: var(--ink); }
.tabbar { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-weight: 650; font-size: 14px; line-height: 1; white-space: nowrap; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s, opacity .15s;
}
.btn:hover:not(:disabled) { border-color: var(--faint); background: var(--surface-2); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; }
.btn-primary { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; box-shadow: 0 1px 2px rgba(29, 35, 50, .12), 0 6px 16px -6px rgba(var(--accent-rgb), .55); }
.btn-primary:hover:not(:disabled) { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); }
.btn-primary:active:not(:disabled) { transform: scale(.98); box-shadow: 0 1px 2px rgba(29, 35, 50, .12); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); border-color: transparent; box-shadow: none; }
.btn-ghost-danger { background: transparent; border-color: rgba(196, 72, 91, .35); color: var(--danger); }
.btn-ghost-danger:hover:not(:disabled) { background: rgba(196, 72, 91, .06); border-color: var(--danger); }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13px; }
.btn-sm.btn-primary { box-shadow: 0 1px 2px rgba(29, 35, 50, .12); }
.btn-lg { height: 54px; font-size: 15px; padding: 0 26px; }
.sheet .btn-lg, .form .btn-lg { width: 100%; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.badge-dot { position: absolute; top: 2px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger-fill); color: #fff; font-size: 10px; font-weight: 700; line-height: 1; display: grid; place-items: center; border: 2px solid var(--paper); }
.link-ish { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--ink-2); }

/* ---------- Avatars, pills, chips ---------- */
.avatar {
  --s: 36px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: inline-grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * .44); color: #fff;
  background: linear-gradient(140deg, hsl(var(--h, 10) 68% 62%), hsl(calc(var(--h, 10) + 35) 62% 48%));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.avatar-ring { box-shadow: 0 0 0 2.5px var(--surface); }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar + .avatar { margin-left: -9px; }
.avatar-more { background: var(--surface-3); color: var(--ink-2); font-size: 11px; font-family: var(--font); }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-2); white-space: nowrap; text-transform: none; letter-spacing: 0; }
.pill-success { color: var(--success); background: var(--success-soft); border-color: var(--success-line); }
.pill-warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
.pill-danger { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-line); }
.pill-info { color: var(--info); background: var(--info-soft); border-color: var(--info-line); }
.pill-accent { color: var(--accent-dark); background: var(--accent-soft); border-color: var(--accent-line); }
.pill-muted { color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--faint); color: var(--ink); }
.chip.active { background: var(--inverse); color: var(--on-inverse); border-color: var(--inverse); }
.chip-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.chip-count { font-size: 11px; opacity: .7; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

.segmented { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--surface-3); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { flex: 1; height: 36px; padding: 0 16px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; transition: all .15s; }
.segmented button:hover { color: var(--ink); }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(29, 35, 50, .08), 0 0 0 1px var(--line); }
.segmented-sm button { height: 30px; padding: 0 13px; font-size: 13px; }
.sheet .segmented, .form .segmented { display: flex; width: 100%; }

.type-badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; line-height: 1; color: var(--tone); background: var(--tone-soft); white-space: nowrap; }

/* ---------- Skeleton / empty ---------- */
.skeleton { display: block; background: linear-gradient(90deg, var(--surface-3) 0%, var(--paper-2) 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.skeleton.right { margin-left: auto; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 56px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.empty h3 { font-size: 21px; }
.empty p { color: var(--muted); max-width: 440px; }
.empty .btn { margin-top: 8px; }
.empty-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.empty-error .empty-icon { color: var(--danger); background: #fbecee; }
.inline-empty { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.inline-empty > span:not(.status-icon) { display: grid; gap: 2px; }
.inline-empty > .icon { color: var(--muted); }
.status-icon { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 20px; line-height: 1; background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); }
.inline-empty small { color: var(--muted); font-size: 12.5px; }
.status-note { background: var(--accent-soft); border-color: var(--accent-line); }

/* ---------- Page scaffolding ---------- */
.page { padding: 28px 0 72px; animation: fade-up .35s ease backwards; }
/* The page footer brings its own spacing, so pages above it need less. */
main:has(+ .legal-foot) > .page { padding-bottom: 20px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
.page-head { padding: 22px 0 6px; max-width: 720px; }
.page-head h1 { font-size: clamp(30px, 4.2vw, 46px); margin: 10px 0 10px; }
.page-head p { color: var(--ink-2); font-size: 16px; }
.page-head.compact { padding: 0 0 12px; }
.page-head.compact h1 { font-size: 28px; margin: 0 0 4px; }
.page-head.compact p { font-size: 14px; color: var(--muted); }
.block { margin-top: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 18px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 6px; }
.section-head p { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 560px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center p { margin-inline: auto; }
.block .section-head + .plan-grid + .section-head { margin-top: 40px; }
.head-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); min-width: 240px; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12); }
.search input { background: none !important; border: 0 !important; outline: 0; width: 100%; padding: 0 !important; box-shadow: none !important; }

.toolbar { display: grid; gap: 10px; padding: 12px 0; }
.sticky-toolbar { position: sticky; top: var(--topbar); z-index: 20; margin: 24px calc(var(--gutter) * -1) 0; padding: 12px var(--gutter); background: linear-gradient(var(--paper) 78%, color-mix(in srgb, var(--paper) 0%, transparent)); }
/* The toolbar's own padding already separates it from what follows. */
.sticky-toolbar + .block { margin-top: 12px; }
.filters { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
/* The row scrolls as a whole; nothing inside it shrinks or clips its own text. */
.filters > * { flex: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-sep { width: 1px; height: 22px; background: var(--line-2); flex: none; margin: 0 4px; }

/* ---------- Date strip (ticket-style) ---------- */
.date-scope { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.date-sep { flex: none; align-self: center; width: 1.5px; height: 46px; margin: 0 2px; border-radius: 2px; background: var(--line-2); }
.date-scope .date-strip { flex: 1; min-width: 0; }
.date-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px 2px 6px; }
.date-strip::-webkit-scrollbar { display: none; }
.date-pill {
  --row: 30px; position: relative; flex: none; width: 64px; height: 78px; padding: 0; border-radius: 16px;
  display: grid; grid-template-rows: 15px var(--row) 15px; justify-items: center; align-content: center; row-gap: 1px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); transition: background .15s, border-color .15s, box-shadow .15s; cursor: pointer;
}
.date-pill small { display: block; font-size: 10.5px; line-height: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.date-pill strong { display: block; font-family: var(--display); font-size: 24px; line-height: var(--row); color: var(--ink); }
.date-icon { display: grid; place-items: center; height: var(--row); color: var(--accent); }
.date-pill.active .date-icon { color: #fff; }
.date-pill:hover { border-color: var(--faint); }
.date-pill.active { background: linear-gradient(150deg, #5d78e0, var(--accent-fill)); border-color: transparent; color: rgba(255, 255, 255, .82); box-shadow: 0 8px 18px -8px rgba(var(--accent-rgb), .7); }
.date-pill.active strong { color: #fff; }
.date-any { width: 78px; margin-top: 3px; letter-spacing: 0; }
.date-any small { letter-spacing: .04em; }
/* Calendar popover (bottom panel on phones) */
.cal-layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.cal { position: fixed; pointer-events: auto; width: 320px; max-width: calc(100vw - 24px); padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: cal-in .16s var(--ease); }
@keyframes cal-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head strong { font-family: var(--display); font-size: 17px; }
.cal-nav { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.cal-nav:hover:not(:disabled) { background: var(--surface-3); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-wd { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.cal-day { aspect-ratio: 1; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink); transition: background .12s; }
.cal-day:hover:not(:disabled) { background: var(--surface-3); }
.cal-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.cal-day.selected { background: var(--accent-fill); color: #fff; }
.cal-day:disabled { color: var(--faint); opacity: .45; cursor: default; }
.cal-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.cal-foot .link-ish { color: var(--accent-dark); }

/* Date of birth: three selects */
.dob { display: grid; grid-template-columns: .9fr 1.5fr 1.2fr; gap: 8px; }
.dob select { min-width: 0; padding-left: 12px; padding-right: 26px; background-position: right 8px center; }
.dob.invalid select { border-color: var(--danger); }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  padding: 56px 56px 48px; border-radius: 28px; overflow: hidden; isolation: isolate; color: #f3f4f8;
  background: radial-gradient(110% 60% at 50% 125%, rgba(231, 168, 116, .26), rgba(207, 122, 158, .16) 40%, transparent 72%),
              radial-gradient(560px 360px at 88% 0%, rgba(116, 103, 196, .32), transparent 65%),
              linear-gradient(165deg, var(--hero-a) 0%, var(--hero-b) 55%, var(--hero-c) 100%);
  box-shadow: var(--shadow), 0 0 0 1px var(--hero-edge), 0 18px 60px -20px var(--hero-glow);
}
/* a few quiet stars */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 44% 10%, #fff, transparent),
    radial-gradient(1px 1px at 72% 22%, #fff, transparent), radial-gradient(1px 1px at 88% 52%, #fff, transparent),
    radial-gradient(1px 1px at 8% 82%, #fff, transparent), radial-gradient(1px 1px at 30% 46%, #fff, transparent),
    radial-gradient(1px 1px at 94% 12%, #fff, transparent), radial-gradient(1px 1px at 62% 70%, #fff, transparent); }
.marquee-sign { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 12px; background: var(--gold); color: var(--night); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; position: relative;
  box-shadow: 0 0 0 4px var(--night), 0 0 0 6px var(--gold), 0 0 30px rgba(231, 183, 90, .5); }
.marquee-sign::before, .marquee-sign::after { content: ""; position: absolute; left: 6px; right: 6px; height: 4px; background: radial-gradient(circle, #fff7d6 1.5px, transparent 2px) 0 0/10px 4px repeat-x; animation: bulbs 1.2s steps(2) infinite; }
.marquee-sign::before { top: -10px; }
.marquee-sign::after { bottom: -10px; }
@keyframes bulbs { 50% { opacity: .45; } }
.hero h1 { font-size: clamp(40px, 5.2vw, 66px); font-weight: 650; margin: 30px 0 16px; letter-spacing: -.03em; line-height: 1.04; color: #fff; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--gold); }
.hero-copy > p { color: rgba(232, 235, 245, .78); font-size: 17px; line-height: 1.6; max-width: 500px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-ctas .btn:not(.btn-primary) { background: rgba(255, 255, 255, .06); color: #f3f4f8; border-color: rgba(255, 255, 255, .18); }
.hero-ctas .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.hero-stats { display: flex; gap: 40px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero-stats div { display: grid; }
.hero-stats strong { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1.2; color: #fff; }
.hero-stats span { color: rgba(232, 235, 245, .6); font-size: 13px; }
.hero-art { position: relative; height: 340px; }
/* Gargantua, softly: a faint ring of light behind the posters */
.hero-art::before { content: ""; position: absolute; left: 50%; top: 46%; width: 480px; height: 480px; transform: translate(-50%, -50%); border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, transparent 0 34%, rgba(231, 183, 90, .32) 35.5%, rgba(207, 122, 158, .12) 42%, transparent 56%); }
.hero-poster { position: absolute; z-index: 1; width: 172px; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .55); transition: transform .4s var(--ease); border: 1px solid rgba(255, 255, 255, .14); }
.hero-poster .poster { border-radius: 13px; }
.hero-poster.p0 { left: 50%; top: 4px; transform: translateX(-50%); z-index: 3; width: 192px; }
.hero-poster.p1 { left: 3%; top: 44px; transform: rotate(-6deg); z-index: 2; opacity: .92; }
.hero-poster.p2 { right: 3%; top: 44px; transform: rotate(6deg); z-index: 1; opacity: .92; }
.hero-poster.p0:hover { transform: translateX(-50%) translateY(-6px); }
.hero-poster.p1:hover { transform: rotate(-6deg) translateY(-6px); }
.hero-poster.p2:hover { transform: rotate(6deg) translateY(-6px); }
.admit-one { position: absolute; z-index: 4; left: 50%; bottom: 6px; transform: translateX(-50%); display: grid; justify-items: center; padding: 9px 26px; background: var(--gold); color: var(--night); border-radius: 10px; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .5);
  -webkit-mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.admit-one small { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.admit-one strong { font-family: var(--display); font-size: 20px; font-weight: 600; font-style: italic; line-height: 1.1; }
.admit-one span { position: absolute; right: -4px; top: -16px; font-size: 24px; }

/* ---------- Quote ticker ---------- */
.ticker { position: relative; margin: 20px 0 0; overflow: hidden; border-radius: 16px; isolation: isolate;
  background: radial-gradient(60% 140% at 85% 120%, rgba(231, 168, 116, .28), transparent 70%),
              radial-gradient(50% 140% at 15% -20%, rgba(116, 103, 196, .35), transparent 70%),
              linear-gradient(100deg, var(--hero-a) 0%, #232a52 45%, #33285a 75%, #43294f 100%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px var(--hero-edge); }
/* soft edges so quotes glide in and out instead of being cut off */
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 56px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--hero-a), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, #43294f, transparent); }
.ticker-track { display: flex; align-items: center; gap: 22px; width: max-content; padding: 14px 0; animation: ticker 70s linear infinite; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 16px; color: rgba(243, 244, 248, .92); white-space: nowrap; }
.ticker-track span:nth-of-type(4n+2) { color: #f3d08f; }
.ticker-track i { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--gold); box-shadow: 0 0 10px rgba(231, 183, 90, .7); }
.ticker-track i:nth-of-type(4n+2) { background: var(--dusk-pink); box-shadow: 0 0 10px rgba(207, 122, 158, .7); }
.ticker-track i:nth-of-type(4n+3) { background: #6fd3c6; box-shadow: 0 0 10px rgba(111, 211, 198, .6); }
.ticker-track i:nth-of-type(4n) { background: #8ea2f0; box-shadow: 0 0 10px rgba(142, 162, 240, .6); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Use cases ---------- */
.use-cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.use-case {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 18px; text-align: left; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .2s, border-color .2s;
}
.use-case::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 80px; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--dots) 0 0 / 10px 10px, linear-gradient(180deg, var(--accent-soft), transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
  height: 84px;
}
.use-case:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.use-case-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--tone); background: var(--tone-soft); }
.use-case h3 { font-size: 20px; margin-top: 4px; }
.use-case p { color: var(--ink-2); font-size: 14px; }
.use-case blockquote { margin: 2px 0 0; padding-left: 12px; border-left: 2px solid var(--tone); font-family: var(--display); font-style: italic; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.use-case-foot { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 650; color: var(--tone); }

/* ---------- Fan zone ---------- */
.fan-zone { padding: 32px; border-radius: 24px; background: radial-gradient(520px 260px at 100% 0%, rgba(116, 103, 196, .09), transparent 70%), radial-gradient(420px 220px at 0% 100%, rgba(231, 168, 116, .1), transparent 70%), var(--surface); border: 1px solid var(--line); }
.fan-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.fan-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; line-height: 1; color: var(--ink-2); transition: background .15s, border-color .15s, color .15s; }
.fan-chip:hover { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent-line); }
.fan-chip.live { color: var(--accent-dark); border-color: var(--accent-line); background: var(--accent-soft); }
.fan-chip span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent-fill); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.fan-chip:hover span { background: var(--accent-fill-hover); color: #fff; }

/* ---------- Reasons & steps ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reason { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.reason-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; line-height: 1; background: var(--accent-soft); color: var(--accent); }
.reason h3 { font-size: 18px; margin: 14px 0 6px; }
.reason p { color: var(--ink-2); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 24px; overflow: hidden; background: radial-gradient(80% 140% at 50% 140%, rgba(116, 103, 196, .28), transparent 70%), linear-gradient(165deg, var(--night), var(--night-2)); color: #eceef5; padding: 22px 0; position: relative; }
/* film-strip sprocket holes */
.steps::before, .steps::after { content: ""; position: absolute; left: 10px; right: 10px; height: 9px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 12px, transparent 12px 26px); border-radius: 2px; }
.steps::before { top: 7px; }
.steps::after { bottom: 7px; }
.step { padding: 30px 28px; border-right: 1px solid rgba(255, 255, 255, .08); }
.step:last-child { border-right: 0; }
.step-n { font-family: var(--display); font-size: 40px; font-weight: 600; font-style: italic; color: var(--gold); line-height: 1; }
.step h3 { font-size: 20px; margin: 14px 0 6px; color: #fff; }
.step p { color: rgba(232, 235, 245, .66); font-size: 14px; }
.site-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 14px; color: var(--ink-2); }
.site-foot .muted { font-size: 13px; }

/* ---------- Posters & movie cards ---------- */
.poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 14px; background: linear-gradient(160deg, hsl(var(--h, 30) 55% 82%), hsl(calc(var(--h, 30) + 40) 50% 70%)); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 12px; text-align: center; color: rgba(29, 35, 50, .65); font-family: var(--display); font-weight: 700; font-size: 14px; }

.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 28px 18px; }
.movie-card {
  display: flex; flex-direction: column; justify-content: flex-start; align-self: stretch; min-width: 0; text-align: left;
  padding: 8px 8px 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .2s, border-color .2s;
}
.movie-card-art { position: relative; }
.movie-card-art .poster { border-radius: 14px; box-shadow: 0 1px 2px rgba(29, 35, 50, .08), 0 10px 24px -12px rgba(29, 35, 50, .4); }
.movie-card img { transition: transform .5s ease; }
.movie-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.movie-card:hover img { transform: scale(1.03); }
.movie-card:hover .poster { box-shadow: 0 2px 4px rgba(29, 35, 50, .08), 0 20px 36px -14px rgba(29, 35, 50, .45); }
.poster-flag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; line-height: 1; color: #1d2332; /* always a light pill over the poster */ background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.movie-card-body { display: grid; grid-template-rows: auto auto; padding: 12px 6px 0; min-width: 0; }

.movie-card-body h3 { font-family: var(--font); font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; min-height: 2.6em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.movie-card-body p { color: var(--muted); font-size: 13px; margin-top: 4px; font-weight: 500; }
.movie-card.is-skeleton .poster { box-shadow: none; outline: 0; }

/* ---------- Ticket (plan card) ---------- */
/* Movie diary */
.diary-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.diary-stats div { display: grid; padding: 14px; border-radius: 16px; background: var(--accent-soft); text-align: center; }
.diary-stats strong { font-family: var(--display); font-size: 30px; line-height: 1.1; color: var(--accent-dark); }
.diary-stats span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.diary-month { display: grid; gap: 12px; }
.diary-month h2 { font-family: var(--font); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.diary-entry { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.diary-poster { border-radius: 12px; overflow: hidden; align-self: start; }
.diary-body { display: grid; gap: 5px; align-content: start; min-width: 0; }
.diary-body h3 { font-family: var(--display); font-size: 20px; }
.diary-when { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.diary-people { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; }
.diary-people > small { font-size: 12px; color: var(--muted); font-weight: 700; }
.diary-person { display: inline-flex; align-items: center; gap: 7px; }
.diary-person > span { display: grid; line-height: 1.2; font-size: 13px; }
.diary-person small { font-size: 11px; color: var(--muted); }
.diary-note { margin-top: 6px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; font-style: italic; color: var(--ink-2); font-size: 14px; }
.diary-note-edit { display: grid; gap: 8px; margin-top: 6px; }
.diary-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; font-size: 13px; }
.muted-link { color: var(--muted); }
@media (max-width: 720px) { .diary-entry { grid-template-columns: 76px 1fr; gap: 12px; } .diary-body h3 { font-size: 18px; } }

/* Reactions: a meme card or an emoji burst after a big moment (js/reactions.js) */
.reaction { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; padding: 0 16px calc(96px + var(--tabbar)); pointer-events: none; }
.reaction-card { pointer-events: auto; cursor: pointer; width: min(320px, 100%); border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: reaction-in .35s var(--ease); }
.reaction-card img, .reaction-card video { display: block; width: 100%; max-height: 260px; object-fit: cover; background: #000; }
.reaction-card p { padding: 10px 14px 12px; font-weight: 800; font-size: 15px; text-align: center; color: var(--ink); }
.reaction.is-leaving .reaction-card { opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
@keyframes reaction-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.reaction.is-burst { place-items: stretch; padding: 0; overflow: hidden; }
.reaction-burst { position: absolute; bottom: -40px; left: var(--x); font-size: 30px; animation: reaction-rise 1.9s var(--d) ease-out forwards; opacity: 0; }
@keyframes reaction-rise { 10% { opacity: 1; } 100% { opacity: 0; transform: translateY(-75vh) rotate(var(--r)); } }

/* Buzz rail */
.buzz-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; scrollbar-width: thin; }
.buzz-card { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.buzz-media { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-3); }
.buzz-body { display: grid; gap: 6px; align-content: start; padding: 12px 14px 14px; }
.buzz-body h3 { font-family: var(--font); font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.buzz-body p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.buzz-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
@media (max-width: 720px) { .buzz-rail { grid-auto-columns: 78%; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); } }

.tinted-block { padding: 22px 22px 6px; border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--tint), var(--surface-2) 65%); }
.tint-teal { --tint: var(--teal-soft); }
.tint-accent { --tint: var(--accent-soft); }
@media (max-width: 720px) { .tinted-block { padding: 18px 14px 4px; border-radius: 22px; } }

/* Movie tags on posters (MOVIE_TAGS) */
.poster-tag { position: absolute; left: 6px; top: 6px; z-index: 1; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; line-height: 1.2;
  color: #fff; background: rgba(29, 35, 50, .82); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); white-space: nowrap; pointer-events: none; }
.poster-tag.tag-spotlight { background: linear-gradient(135deg, #e7b75a, #cf7a3e); color: #1d1408; }
.poster-tag.tag-new_release { background: #2a8079; }
.poster-tag.tag-re_release { background: #2a1c14; color: #f3d08f; }
.poster-tag.tag-coming_soon { background: #b1577f; }
/* Plan tiles have a 58px thumbnail: the tag becomes a strip along its bottom
   edge so longer labels ("Re-release") stay inside the poster. */
.ticket-thumb .poster-tag { left: 0; right: 0; top: auto; bottom: 0; padding: 3px 2px; border-radius: 0 0 10px 10px;
  font-size: 8.5px; letter-spacing: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; box-shadow: none; }
.movie-headline { display: flex; align-items: flex-start; gap: 8px; max-width: 620px; color: #f3d08f; font-weight: 700; font-size: 15px; line-height: 1.45; }
.movie-headline .icon { flex: none; margin-top: 3px; }

/* Spare-ticket deals */
.deal-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; background: var(--teal); vertical-align: middle; }
.price-tag .deal-badge { font-family: var(--font); }
.deal-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.deal-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--teal-soft); color: var(--ink-2); font-size: 13px; }
.deal-note .icon { color: var(--teal); flex: none; margin-top: 2px; }
.handover { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.handover h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 14.5px; font-weight: 800; }
.handover h3 .icon { color: var(--teal); }
.handover ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.handover li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.handover li .icon { color: var(--teal); flex: none; margin-top: 2px; }
.handover li strong { color: var(--ink); }
.deals-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.deals-layout:not(:has(.deals-rail)) { grid-template-columns: minmax(0, 560px); }
.deal-wrap { position: relative; display: grid; }
.deal-ribbon { position: absolute; z-index: 2; right: 12px; top: -8px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; background: var(--teal); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); }
.pass-on-card { display: grid; gap: 12px; padding: 20px; border-radius: 22px; background: linear-gradient(160deg, var(--teal-soft), var(--surface) 70%); border: 1px solid var(--line); }
.pass-on-card h3 { font-family: var(--display); font-size: 20px; }
.pass-on-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pass-on-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.pass-on-card li .icon { color: var(--teal); flex: none; margin-top: 2px; }
.pass-on-card li strong { color: var(--ink); }
.pass-on-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 900px) { .deals-layout { grid-template-columns: minmax(0, 1fr); } }

/* Discover corners: Spotlight, New releases, Re-releases, Opening soon, Coming soon */
.corner-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.corner-rail.is-wide { grid-auto-columns: minmax(420px, 480px); }
.corner-card { scroll-snap-align: start; display: grid; gap: 10px; text-align: left; align-content: start; }
.corner-card.is-wide { grid-template-columns: 150px 1fr; gap: 18px; padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.corner-card.is-wide:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.corner-art { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.corner-card:not(.is-wide):hover .corner-art { transform: translateY(-2px); transition: transform .15s; }
.corner-tag { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: #1d2332; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.corner-body { display: grid; gap: 3px; align-content: start; min-width: 0; }
.corner-body h3 { font-family: var(--font); font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.corner-card.is-wide .corner-body { padding-top: 6px; gap: 8px; }
.corner-card.is-wide h3 { font-family: var(--display); font-size: 24px; font-weight: 650; }
.corner-headline { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.corner-note { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.corner-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 800; color: var(--accent-dark); }
.corner-block { padding: 22px 22px 8px; border-radius: 26px; background: var(--corner-bg, var(--surface-2)); border: 1px solid var(--line); }
.spotlight-block { --corner-bg: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); }
.new-block { --corner-bg: linear-gradient(135deg, var(--teal-soft), var(--surface) 70%); }
.rerelease-block { --corner-bg: linear-gradient(135deg, var(--gold-t-soft), var(--surface) 75%); }
.rerelease-block .corner-tag { background: #2a1c14; color: #f3d08f; }
.soon-block { --corner-bg: linear-gradient(135deg, var(--pink-soft), var(--surface) 70%); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 360px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.rail > * { scroll-snap-align: start; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.muted-grid .ticket { opacity: .72; }
.ticket {
  position: relative; display: flex; flex-direction: column; text-align: left; cursor: pointer; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .2s, border-color .2s;
}
.ticket:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.ticket-main {
  position: relative; isolation: isolate; display: grid; gap: 14px; padding: 20px 18px 16px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(var(--tone), var(--tone)) top / 100% 3px no-repeat;
}
.ticket-main::before {
  content: ""; position: absolute; z-index: -1; inset: 3px 0 auto 0; height: 64px;
  background: var(--dots) 0 0 / 10px 10px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
}
.more-shows { margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); white-space: nowrap; }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price-tag { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--tone); }
.ticket-movie { display: flex; gap: 14px; align-items: flex-start; }
.ticket-thumb { width: 58px; flex: none; border-radius: 10px; box-shadow: 0 4px 10px -4px rgba(29, 35, 50, .4); }
.ticket-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ticket-info h3 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-when, .ticket-where { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; font-weight: 500; }
.ticket-when { color: var(--ink); font-weight: 700; }
.ticket-when .icon, .ticket-where .icon { color: var(--tone); }
.ticket-where span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-host { display: flex; gap: 10px; align-items: flex-start; }
.ticket-host strong { font-size: 14px; font-weight: 700; display: block; line-height: 1.35; padding-top: 5px; }
.ticket-host p { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-style: italic; }
.vibe-row { display: flex; flex-wrap: wrap; gap: 6px; }
.vibe { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.vibe-fan { gap: 5px; background: var(--pink-soft); border-color: var(--pink-line); color: var(--pink); font-weight: 650; }
.ticket-stub {
  position: relative; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px;
  border-top: 1.5px dashed var(--line-2); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius);
}
/* punched notches on the perforation */
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.ticket-stub::before { left: -11px; clip-path: inset(0 0 0 50%); }
.ticket-stub::after { right: -11px; clip-path: inset(0 50% 0 0); }
.fan-zone .ticket-stub::before, .fan-zone .ticket-stub::after, .sheet .ticket-stub::before, .sheet .ticket-stub::after { background: var(--surface); }
.ticket-compact .ticket-main { gap: 10px; padding: 14px; }
.ticket-compact .ticket-stub { padding: 10px 14px; }

/* Seats */
.seats { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.seat-row { display: flex; gap: 4px; flex-wrap: wrap; }
.seat-row i { width: 14px; height: 13px; border-radius: 5px 5px 3px 3px; position: relative; }
.seat-row i::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -3px; height: 4px; border-radius: 2px; background: inherit; filter: brightness(.85); }
.seat-row i.host { background: var(--inverse); }
.seat-row i.taken { background: var(--tone, var(--accent)); }
.seat-row i.open { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.seat-row i.open::after { background: var(--line-2); filter: none; }
.seats:not(.seats-compact) .seat-row i { width: 22px; height: 20px; border-radius: 7px 7px 4px 4px; }
.seats:not(.seats-compact) .seat-row { gap: 6px; }
.seat-preview { display: grid; gap: 8px; justify-items: center; padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); text-align: center; }
.seat-preview::before { content: "SCREEN"; width: 70%; padding-bottom: 6px; border-bottom: 3px solid var(--line-2); border-radius: 0 0 50% 50%; font-size: 10px; letter-spacing: .3em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.seat-preview small { color: var(--muted); font-size: 12px; }

/* ---------- Movie detail ---------- */
.movie-hero { position: relative; margin: -28px calc(var(--gutter) * -1) 0; padding: 22px var(--gutter) 40px; isolation: isolate; overflow: hidden; color: #f3f4f8; background: linear-gradient(165deg, var(--night), var(--night-2)); border-radius: 0 0 28px 28px; }
.movie-backdrop { position: absolute; inset: 0; z-index: -1; background: var(--bg) center 20%/cover; filter: blur(48px) saturate(1.1); opacity: .4; transform: scale(1.2); }
.movie-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 27, 44, .3), rgba(22, 27, 44, .85)); }
.back-link { display: inline-flex; align-items: center; gap: 4px; height: 34px; color: #f3f4f8; font-size: 14px; font-weight: 600; padding: 0 14px 0 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); margin-bottom: 22px; }
.back-link:hover { background: rgba(255, 255, 255, .24); }
.movie-hero-inner { display: flex; gap: 34px; align-items: flex-end; max-width: 1172px; margin: 0 auto; }
.movie-hero-poster { width: 200px; flex: none; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 28px 50px -12px rgba(0, 0, 0, .55); }
.movie-hero-copy { display: grid; gap: 14px; min-width: 0; flex: 1; }
.movie-hero-copy h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 650; letter-spacing: -.025em; color: #fff; }
.movie-hero-copy .pill { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #f3f4f8; }
.movie-desc { color: rgba(232, 235, 245, .85); max-width: 640px; }
.movie-hero-stats { display: flex; flex-wrap: wrap; gap: 8px 26px; color: rgba(232, 235, 245, .75); font-size: 14px; }
.movie-hero-stats strong { color: #fff; font-family: var(--display); font-size: 20px; font-weight: 600; margin-right: 3px; }
.movie-hero .skeleton { background: rgba(255, 255, 255, .12); }
.legend { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; color: var(--ink-2); font-size: 13.5px; margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.legend-dot { width: 10px; height: 10px; margin: 4.5px 2px 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(62, 91, 196, .2); flex: none; }
.theatre-list { display: grid; gap: 14px; }
.theatre {
  position: relative; isolation: isolate; padding: 18px 20px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
/* Faint dot texture behind the header, fading out downwards. */
.theatre::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 72px; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--dots) 0 0 / 10px 10px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
}
.theatre header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.theatre h3 { font-family: var(--title); font-size: 16.5px; font-weight: 700; letter-spacing: -.015em; }
.theatre header p { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; margin-top: 2px; font-weight: 500; }
.theatre header p .icon { color: var(--accent); flex: none; }
/* Fixed-width columns, so tiles line up across theatres whatever their tags say. */
.showtimes { display: grid; grid-template-columns: repeat(auto-fill, 132px); gap: 8px; }
.showtime {
  position: relative; display: grid; align-content: start; gap: 3px; min-width: 0; padding: 9px 13px; border-radius: 10px; text-align: left;
  background: var(--surface); border: 1px solid var(--line-2); transition: border-color .15s, background .15s;
}
.showtime strong { font-size: 14.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.25; }
.showtime:hover { border-color: var(--accent); }
.showtime-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.showtime-meta small { font-size: 11px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.fmt { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 700; letter-spacing: .03em; line-height: 1.3; padding: 1px 5px; border-radius: 5px; color: var(--ink-2); border: 1px solid var(--line-2); }
.fmt-premium { color: var(--gold-t); border-color: var(--gold-line); background: var(--gold-t-soft); }
.showtime.has-plans { border-color: var(--accent); background: var(--accent-soft); }
.showtime.has-plans strong { color: var(--accent-dark); }
.showtime-badge { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent-fill); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; display: grid; place-items: center; border: 2px solid var(--surface); }

/* ---------- Sheets ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: var(--scrim); backdrop-filter: blur(4px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: min(90vh, 900px); max-height: min(90dvh, 900px); overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-lg); animation: pop .28s var(--ease); }
/* The panel takes focus on open (for keyboards and screen readers); no ring around the whole sheet. */
.sheet:focus { outline: none; }
.sheet-wide { max-width: 720px; }
.sheet, .group-list, .chat-info, .messages { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.sheet-grip { display: none; }
.sheet-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.sheet-close:hover { background: var(--line-2); color: var(--ink); }
.sheet-body { display: grid; gap: 22px; padding: 30px; }
.sheet-head { display: grid; gap: 6px; padding-right: 40px; }
.sheet-head h2 { font-size: 28px; }
.sheet-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-right: 46px; }
.sheet-section { display: grid; gap: 12px; }
.sheet-section h3 { font-family: var(--font); font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; letter-spacing: 0; }
.sheet-section h3 .count { font-size: 12px; color: #fff; background: var(--accent-fill); padding: 2px 9px; border-radius: 999px; }
.sheet-section h3 .count.soft { color: var(--accent-dark); background: var(--accent-soft); }
.section-note { color: var(--muted); font-size: 13px; margin: -2px 0 2px; }

.add-backups {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-align: left; width: 100%;
  border: 1.5px dashed var(--line-2); background: var(--surface-2); transition: border-color .15s, background .15s;
}
.add-backups:hover { border-color: var(--accent); background: var(--accent-soft); }
.add-backups > span:last-child { display: grid; gap: 1px; }
.add-backups strong { font-size: 14px; }
.add-backups small { font-size: 12px; color: var(--muted); }
.add-backups-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.backup-picker { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.backup-head { display: flex; align-items: center; gap: 10px; }
.backup-head .search { flex: 1; min-width: 0; height: 40px; }
.backup-head small { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.backup-head small.full { color: var(--accent-dark); }
.backup-list { display: grid; gap: 12px; max-height: 320px; overflow-y: auto; padding: 2px 2px 4px; }
.backup-theatre { display: grid; gap: 8px; }
.backup-theatre-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.backup-theatre-name strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.backup-theatre-name small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.backup-times { display: flex; flex-wrap: wrap; gap: 8px; }
.pick {
  display: grid; gap: 1px; min-width: 96px; padding: 7px 11px; border-radius: 10px; text-align: left;
  background: var(--surface); border: 1px solid var(--line-2); transition: background .15s, border-color .15s;
}
.pick strong { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pick small { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.pick:hover:not(:disabled) { border-color: var(--accent); }
.pick.active { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pick:disabled { opacity: .45; cursor: not-allowed; }

.show-options { display: grid; gap: 8px; }
.show-option {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; text-align: left;
  background: var(--surface); border: 1px solid var(--line-2);
}
.show-option .grow { display: grid; min-width: 0; }
.show-option b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-option .grow small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-option-time { display: grid; justify-items: start; min-width: 70px; }
.show-option-time strong { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink); }
.show-option-time em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.show-option .picks { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 3px 8px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.show-option .tick { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; color: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--surface); transition: all .15s; }
.pickable .show-option { transition: border-color .15s, background .15s; }
.pickable .show-option:hover { border-color: var(--accent); }
.pickable .show-option.active { border-color: var(--accent); background: var(--accent-soft); }
.pickable .show-option.active .tick { color: #fff; background: var(--accent-fill); box-shadow: none; }
.request-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-left: 48px; }
.request-picks > small { font-size: 12px; color: var(--muted); font-weight: 600; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.sheet-actions:empty { display: none; }

.show-summary { display: flex; gap: 18px; align-items: flex-start; padding-right: 40px; }
.show-summary h2 { font-family: var(--title); font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; }
.show-summary .pill-row { margin-top: 10px; }
.show-time-block { flex: none; display: grid; place-items: center; align-content: center; width: 92px; height: 92px; border-radius: 18px; background: var(--inverse); color: var(--on-inverse); text-align: center; box-shadow: var(--shadow); }
.show-time-block strong { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.1; color: var(--on-inverse); }
.show-time-block span { font-size: 12px; opacity: .8; }
.quick-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-type { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-align: left; background: var(--tone-soft); border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.quick-type:hover { border-color: var(--tone); }
.quick-type > span:nth-child(2) { flex: 1; display: grid; gap: 2px; min-width: 0; }
.quick-type strong { font-size: 14px; color: var(--ink); }
.quick-type small { font-size: 12.5px; color: var(--ink-2); font-style: italic; font-family: var(--display); }
.quick-type > .icon { color: var(--tone); }
.type-icon { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 20px; line-height: 1; color: var(--tone); background: var(--surface); box-shadow: inset 0 0 0 1px rgba(29, 35, 50, .06); }
.type-option .type-icon { background: var(--tone-soft); margin-bottom: 6px; }

.type-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-option { display: grid; gap: 4px; align-content: start; justify-items: start; padding: 14px; border-radius: 16px; text-align: left; background: var(--surface); border: 1px solid var(--line-2); transition: border-color .15s, background .15s; }
.type-option:hover { border-color: var(--tone); }
.type-option strong { font-size: 15px; font-family: var(--display); }
.type-option small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.type-option.active { background: var(--tone-soft); border-color: var(--tone); box-shadow: inset 0 0 0 1px var(--tone); }
.type-option.active strong { color: var(--tone); }
.preset-groups { display: grid; gap: 10px; }
.preset-group { display: grid; gap: 6px; }
.preset-group > small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.price-row { display: grid; gap: 10px; }
.money { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); }
.money span { font-weight: 800; color: var(--gold-t); }
.money input { border: 0 !important; box-shadow: none !important; padding: 12px 0 !important; background: none !important; }

.plan-banner { position: relative; display: flex; gap: 16px; align-items: center; padding: 16px; padding-right: 54px; border-radius: 22px; background: var(--tone-soft); overflow: hidden; }
.plan-banner img { width: 72px; border-radius: 10px; aspect-ratio: 2/3; object-fit: cover; box-shadow: var(--shadow); }
.plan-banner-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-banner h2 { font-size: 26px; margin: 8px 0 4px; }
.plan-banner p { color: var(--tone); font-weight: 700; font-size: 14px; }
.plan-banner .type-badge { background: var(--surface); }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-grid > div { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.detail-grid .icon { color: var(--accent); margin-top: 2px; }
.detail-grid span { display: grid; min-width: 0; }
.detail-grid strong { font-size: 14px; font-weight: 700; }
.detail-grid small { font-size: 12px; color: var(--muted); }
.host-quote { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.host-quote > div { display: grid; gap: 2px; }
.host-quote small { color: var(--muted); font-size: 12.5px; }
.host-quote p { margin-top: 8px; color: var(--ink-2); font-family: var(--display); font-style: italic; font-size: 16px; }
.host-quote.plain { background: none; border: 0; padding: 0; align-items: center; }
.host-quote.plain strong { font-size: 22px; font-family: var(--display); }

.request { padding: 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 10px; }
.request.is-done { opacity: .6; }
.request-head { display: flex; align-items: center; gap: 12px; }
.request-head > div { flex: 1; display: grid; }
.request-head small { color: var(--muted); font-size: 12px; }
.request > p { color: var(--ink-2); font-size: 14px; padding-left: 48px; font-style: italic; }
.request-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-foot { display: flex; justify-content: flex-end; }
.field { display: grid; gap: 8px; }
.field-label { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.field-label em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12px; }
input:not([type=checkbox]):not([type=date]):not([type=search]), select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); outline: 0; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 4px rgba(62, 91, 196, .14); }
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
::placeholder { color: var(--muted); opacity: .8; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a7462' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px !important; }
.composer input { border-radius: 999px !important; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 6px; border-radius: 16px; background: var(--surface-2); border: 1.5px solid var(--line-2); }
.stepper button { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); }
.stepper button:hover:not(:disabled) { color: var(--accent); }
.stepper button:disabled { opacity: .35; box-shadow: none; }
.stepper output { color: var(--muted); font-weight: 600; }
.stepper output strong { font-family: var(--display); font-size: 26px; color: var(--ink); margin-right: 4px; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.option { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border-radius: 16px; text-align: left; background: var(--surface); border: 1.5px solid var(--line-2); transition: all .15s; }
.option:hover { border-color: var(--ink-2); }
.option strong { font-size: 14px; font-weight: 700; }
.option small { font-size: 12px; color: var(--muted); }
.option.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.suggestions { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.trait-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trait { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line-2); font-weight: 700; font-size: 14px; color: var(--ink-2); transition: all .15s; }
.trait .icon { color: var(--faint); }
.trait.active { border-color: var(--success); background: #e8f7f0; color: var(--ink); }
.trait.active .icon { color: var(--success); }

/* ---------- Auth ---------- */
.auth-hero { display: grid; justify-items: center; text-align: center; gap: 10px; padding-top: 6px; }
.auth-hero h2 { font-size: 30px; margin-top: 8px; }
.auth-hero p { max-width: 380px; }
.account-list { display: grid; gap: 8px; }
.account-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; text-align: left; background: var(--surface-2); border: 1.5px solid var(--line); transition: all .15s; }
.account-row:hover { border-color: var(--line-2); background: var(--surface); box-shadow: var(--shadow-sm); }
.account-row.active { border-color: #a9dfc6; }
.account-row > span:not(.avatar) { flex: 1; display: grid; }
.account-row small { color: var(--muted); font-size: 12px; }

/* ---------- Notifications / menus ---------- */
.notif-list { display: grid; gap: 4px; margin: 0 -10px; }
.notif { display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px; border-radius: 16px; text-align: left; transition: background .15s; }
.notif:hover { background: var(--surface-2); }
.notif-icon { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--ink-2); }
.notif-icon.JOIN_REQUEST { color: var(--accent); background: var(--accent-soft); }
.notif-icon.JOIN_ACCEPTED { color: var(--success); background: var(--success-soft); }
.notif-text { flex: 1; display: grid; gap: 2px; }
.notif-text strong { font-size: 14px; font-weight: 700; }
.notif-text small { font-size: 13px; color: var(--muted); }
.notif time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.notif.unread { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.notif.unread .notif-text strong::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle; }
.menu-list { display: grid; border-radius: 18px; overflow: hidden; border: 1.5px solid var(--line); }
.menu-list button { display: flex; align-items: center; gap: 14px; padding: 15px 16px; text-align: left; background: var(--surface); transition: background .15s; }
.menu-list button + button, .menu-list a + button { border-top: 1px solid var(--line); }
.menu-list a.menu-link { display: flex; align-items: center; gap: 14px; padding: 15px 16px; background: var(--surface); transition: background .15s; }
.menu-list a.menu-link:hover { background: var(--surface-2); }
.menu-list a.menu-link > span { flex: 1; display: grid; }
.menu-list a.menu-link small { color: var(--muted); font-size: 12px; }
.menu-list a.menu-link > .icon:first-child { color: var(--accent); }
.menu-list a.menu-link > .icon:last-child { color: var(--faint); }
.menu-list button:hover { background: var(--surface-2); }
.menu-list button > span:not(.avatar) { flex: 1; display: grid; }
.menu-list button small { color: var(--muted); font-size: 12px; }
.menu-list button > .icon:first-child { color: var(--accent); }
.menu-list button > .icon:last-child { color: var(--faint); }

/* ---------- Groups & chat ---------- */
.groups-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; height: calc(100vh - var(--topbar) - var(--tabbar)); padding-bottom: 20px; }
.group-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 2px 4px 2px 2px; }
.group-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; text-align: left; border: 1.5px solid transparent; transition: all .15s; }
.group-item:hover { background: var(--surface); }
.group-item.active { background: var(--surface); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.group-item > .icon { color: var(--faint); }
.group-thumb { width: 50px; border-radius: 10px; flex: none; }
.group-item-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.group-item-text strong { font-family: var(--display); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-item-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Show-day one-tap messages above the composer; scrolls sideways on phones. */
.quick-replies { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 18px 0; border-top: 1.5px solid var(--line); background: var(--surface-2); }
.quick-replies + .composer { border-top: 0; padding-top: 10px; }
.quick-replies::-webkit-scrollbar { display: none; }
.quick-replies .chip { flex: none; }
.chat-pane { min-height: 0; border-radius: 28px; background: var(--surface); border: 1.5px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); }
.chat-placeholder { height: 100%; display: grid; place-items: center; padding: 24px; }
.chat-placeholder .empty { border: 0; background: none; }
.chat { height: 100%; display: flex; flex-direction: column; position: relative; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1.5px solid var(--line); background: var(--surface-2); }
.chat-title { flex: 1; min-width: 0; display: grid; gap: 4px; }
.chat-title strong { font-family: var(--display); font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-members-btn { padding: 4px; border-radius: 999px; transition: background .15s; }
.chat-members-btn:hover { background: var(--surface-3); }
.chat-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 280px; }
.messages { overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; background: var(--surface-2); }
.chat-intro { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.chat-intro .icon { color: var(--accent); margin-top: 2px; }
.chat-intro strong { color: var(--ink); }
.chat-empty { text-align: center; color: var(--muted); padding: 24px; }
.day-sep { display: flex; justify-content: center; margin: 14px 0 8px; }
.day-sep span { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; background: var(--surface-3); }
.msg-system { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0; }
.msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; max-width: 78%; }
.msg.grouped { margin-top: 2px; padding-left: 36px; }
.msg.mine { margin-left: auto; flex-direction: row-reverse; }
.msg.mine.grouped { padding-left: 0; }
.msg-col { display: grid; gap: 3px; min-width: 0; }
.msg-name { font-size: 12px; color: var(--muted); padding-left: 12px; font-weight: 600; }
.bubble { position: relative; padding: 10px 14px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; box-shadow: var(--shadow-sm); }
.bubble time { display: inline-block; margin-left: 10px; font-size: 10px; color: var(--muted); vertical-align: bottom; }
.msg:not(.mine) .bubble { border-bottom-left-radius: 6px; }
.msg.mine .bubble { background: var(--accent-fill); border-color: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg.mine .bubble time { color: rgba(255, 255, 255, .75); }
.msg.pending { opacity: .6; }
.chat-info { border-left: 1.5px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; background: var(--surface); }
.chat-info-head { display: flex; align-items: center; justify-content: space-between; }
.chat-info-head h3 { font-size: 18px; }
.chat-info-head .icon-btn { display: none; }
.chat-info > .pill { align-self: flex-start; }
.chat-info-actions { display: grid; gap: 8px; margin-top: auto; }
.member-list { display: grid; gap: 4px; }
.member { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.member > span:not(.avatar) { flex: 1; display: grid; min-width: 0; }
.member strong { font-size: 14px; font-weight: 700; }
.member small { font-size: 12px; color: var(--muted); }
.member .icon-btn { width: 34px; height: 34px; color: var(--muted); }
.composer { display: flex; gap: 10px; padding: 14px 18px; border-top: 1.5px solid var(--line); background: var(--surface-2); }
.composer input { flex: 1; height: 48px; }
.send-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: #fff; flex: none; box-shadow: 0 6px 14px -6px rgba(var(--accent-rgb), .6); transition: transform .12s, opacity .15s, background .15s; }
.send-btn:disabled { opacity: .35; box-shadow: none; }
.send-btn:active:not(:disabled) { transform: scale(.94); }

/* ---------- Profile ---------- */
.profile-hero { display: flex; align-items: center; gap: 24px; padding: 34px; border-radius: 24px; color: #f3f4f8; background: radial-gradient(110% 80% at 50% 150%, rgba(231, 168, 116, .22), rgba(207, 122, 158, .14) 40%, transparent 70%), radial-gradient(480px 300px at 90% 0, rgba(116, 103, 196, .3), transparent 62%), linear-gradient(165deg, var(--night), var(--night-2)); box-shadow: var(--shadow); }
.profile-hero .avatar { border: 3px solid rgba(255, 255, 255, .9); }
.profile-hero h1 { font-size: 38px; font-weight: 650; color: #fff; }
.profile-hero p { display: flex; align-items: center; gap: 6px; color: rgba(232, 235, 245, .75); margin-top: 6px; }
.profile-hero .profile-bio { color: rgba(232, 235, 245, .9); font-family: var(--display); font-style: italic; font-size: 16px; }
.profile-hero > div:nth-child(2) { flex: 1; min-width: 0; }
.profile-stats { display: flex; gap: 24px; }
.profile-stats div { display: grid; text-align: center; }
.profile-stats strong { font-family: var(--display); font-size: 32px; font-weight: 600; color: #fff; }
.profile-stats span { font-size: 12px; color: rgba(232, 235, 245, .7); }
.profile-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 22px; align-items: start; }
.side-stack { display: grid; gap: 20px; }
.card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow-sm); }
.card h2 { font-size: 22px; }
.card > .muted { margin-top: -8px; font-size: 14px; }

/* ---------- People, privacy & safety ---------- */
.avatar-photo { background: var(--surface-3); overflow: hidden; }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-btn { border-radius: 50%; flex: none; transition: transform .15s; }
.person-btn:hover { transform: scale(1.06); }
.person-btn:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.icon-btn.person-more { width: 34px; height: 34px; color: var(--muted); flex: none; }
.host-quote .person-more { margin: -4px -6px 0 0; }
.badge-verified { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--info); background: var(--info-soft); border: 1px solid var(--info-line); width: fit-content; }
/* Badges, rating and Letterboxd share one row of equal-height pills. */
.profile-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.profile-tags:empty { display: none; }
.profile-hero .badge-verified { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: #f3f4f8; }
.person-head { display: flex; gap: 16px; align-items: center; padding-right: 40px; }
.person-head h2 { font-size: 26px; }
.person-head p { display: flex; align-items: center; gap: 4px; font-size: 13.5px; margin-top: 2px; }
.person-sheet > .profile-tags { margin-top: 0; }
.person-bio { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--ink-2); }
.text-link { color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
.text-link:hover { color: var(--accent); }
.text-link.center { justify-self: center; }
.alerts-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.alerts-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.alerts-points .icon { color: var(--accent); }

/* Share card sheet */
.share-preview { display: grid; place-items: center; padding: 14px; border-radius: 20px; background: var(--surface-3); }
.share-preview canvas { width: auto; height: auto; max-width: 100%; max-height: 46vh; max-height: 46dvh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.share-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.share-themes { display: flex; gap: 8px; }
.share-theme { display: grid; justify-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.share-theme i { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); position: relative; }
.share-theme i::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.share-theme.active { color: var(--ink); }
.share-theme.active i { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-lines { display: flex; flex-wrap: wrap; gap: 6px; }
.share-input { width: 100%; }
.share-targets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-target { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 700; color: var(--ink-2); transition: transform .15s, border-color .15s; }
.share-target:hover { border-color: var(--accent); }
.share-target:active { transform: scale(.96); }
.share-target > span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.share-target.wa > span { background: #25d366; }
.share-target.ig > span { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.share-target.x > span { background: #000; }
.share-target.more > span { background: var(--inverse); color: var(--on-inverse); }
.payment-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); border: 1px solid #f5dc9c; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.payment-note .icon { color: var(--warn); flex: none; margin-top: 1px; }
.payment-note strong { color: var(--ink); }
.price-tag small { display: block; font: 600 10.5px/1.1 var(--font); color: var(--muted); text-align: right; }
.safety-tips { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.safety-tips-title { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.safety-tips-title .icon { color: var(--success); }
.safety-tip { display: flex; gap: 12px; align-items: flex-start; }
.safety-tip .icon { color: var(--accent); flex: none; margin-top: 2px; }
.safety-tip > span { display: grid; gap: 2px; font-size: 14px; }
.safety-tip small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.safety-tips.compact { gap: 6px; padding: 12px 14px; background: transparent; border-style: dashed; border-color: var(--line-2); }
.safety-tips.compact .safety-tip > span { font-size: 13px; }
.safety-tips.compact .safety-tip strong { font-weight: 600; color: var(--ink-2); }
.safety-tips.compact .text-link { font-size: 12.5px; justify-self: start; }
.chat-intro { display: grid; gap: 10px; }
.chat-intro p { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.chat-intro .safety-tips.compact { border-color: #efd28d; padding: 10px 12px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-head .muted { font-size: 14px; }
.card-head > :first-child { flex: 1; min-width: 0; }
.card-head > .btn { flex: none; }

/* Account menu under the avatar in the top bar. */
.account-menu { position: relative; display: flex; }
.account-menu .me { display: flex; border-radius: 50%; }
.account-menu .me:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 220px; display: grid; gap: 2px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.menu-pop-head { display: grid; gap: 1px; padding: 10px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.menu-pop-head strong { font-size: 14.5px; }
.menu-pop-head small { font-size: 12px; color: var(--muted); }
.menu-pop button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); }
.menu-pop button .icon { color: var(--muted); }
.menu-pop button:hover, .menu-pop button:focus-visible { background: var(--surface-2); }
.menu-pop button.danger, .menu-pop button.danger .icon { color: var(--danger); }

/* Collapsible cards (Profile): the whole header row toggles. */
.card.collapsible { padding: 0; gap: 0; }
.collapsible > summary { display: flex; align-items: center; gap: 12px; padding: 20px 24px; cursor: pointer; list-style: none; border-radius: var(--radius); }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.collapsible-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.collapsible-title h2 { font-size: 20px; }
.collapsible-title small { color: var(--muted); font-size: 13px; }
.collapsible-chev { flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.collapsible[open] .collapsible-chev { transform: rotate(180deg); }
.collapsible > summary:hover .collapsible-chev { color: var(--ink); }
.collapsible-body { display: grid; gap: 14px; padding: 0 24px 24px; }
.collapsible-body > form { display: grid; gap: 14px; }
.reviews-head.is-bare { justify-content: flex-start; }
.reviews-head.is-bare:empty { display: none; }
.photo-picker { display: flex; align-items: center; gap: 18px; }
.photo-picker-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.photo-picker-actions small { flex-basis: 100%; font-size: 12.5px; }
.private-box { display: grid; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1.5px dashed var(--line-2); }
.private-box-head { display: flex; align-items: center; gap: 8px; }
.private-box-head small { color: var(--muted); font-size: 12.5px; }
.readonly { font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.field-error { color: var(--danger); font-size: 12.5px; font-weight: 600; }
.menu-list button.danger-row > .icon:first-child, .menu-list button.danger-row strong { color: var(--danger); }
.delete-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.delete-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.delete-list .icon { flex: none; margin-top: 3px; color: var(--muted); }

/* ---------- Onboarding ---------- */
.is-onboarding .topnav, .is-onboarding .tabbar, .is-onboarding .top-actions .icon-btn { display: none; }
.is-onboarding { --tabbar: 0px; }
.onboarding { max-width: 640px; margin: 0 auto; display: grid; gap: 18px; }
.onboarding-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.steps-bar { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex: 1; }
.steps-bar li { flex: 1; display: grid; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.steps-bar li span { display: block; height: 6px; border-radius: 99px; background: var(--line-2); font-size: 0; }
.steps-bar li.done, .steps-bar li.current { color: var(--ink-2); }
.steps-bar li.done span, .steps-bar li.current span { background: var(--accent); }
.onboarding-card { padding: 32px; gap: 18px; }
.onboarding-card h1 { font-size: clamp(26px, 4vw, 34px); }
.onboarding-card > .muted { margin-top: -10px; }
.onboarding-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.onboarding-actions .btn-lg { width: auto; flex: 1; max-width: 320px; margin-left: auto; }
.verify-list { display: grid; gap: 10px; }
.verify-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); }
.verify-item > span { display: grid; }
.verify-item small { color: var(--muted); font-size: 12.5px; }
.verify-item .icon { color: var(--faint); flex: none; }
.verify-item.ok { border-color: var(--success-line); background: var(--success-wash); }
.verify-item.ok .icon { color: var(--success); }
.verify-item.soon { opacity: .7; border-style: dashed; }
.safety-promise { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--surface-2); }
.safety-promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.safety-promise li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.safety-promise .icon { color: var(--accent); flex: none; margin-top: 3px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }

/* ---------- Legal ---------- */
.legal-page { max-width: 760px; margin: 0 auto; display: grid; gap: 20px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-doc { display: grid; gap: 12px; color: var(--ink-2); line-height: 1.65; }
.legal-page .legal-doc { padding: 36px; border-radius: 24px; background: var(--surface); border: 1.5px solid var(--line); }
.legal-doc h1 { font-size: clamp(28px, 4vw, 38px); color: var(--ink); }
.legal-updated { font-size: 13px; color: var(--muted); margin-top: -6px; }
.legal-doc h2 { font-family: var(--font); font-size: 17px; font-weight: 800; color: var(--ink); margin-top: 12px; letter-spacing: 0; }
.legal-doc ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-doc strong { color: var(--ink); }
.legal-tips { display: grid; gap: 12px; }
.legal-tips > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.legal-tips > div > span { display: grid; gap: 2px; }
.legal-tips small { font-size: 13.5px; }
.legal-tips .icon { color: var(--accent); flex: none; margin-top: 2px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; font-weight: 600; }
.legal-links a { color: var(--ink-2); }
.legal-links a:hover { color: var(--accent); text-decoration: underline; }
.legal-foot { max-width: 1220px; margin: 24px auto 0; padding: 18px var(--gutter) 28px; display: grid; justify-items: center; gap: 8px; text-align: center; border-top: 1.5px dashed var(--line-2); }
.legal-foot .legal-links { justify-content: center; font-size: 12.5px; }
.legal-foot p { font-size: 12px; color: var(--muted); }
.card .legal-links { display: grid; gap: 10px; }
@media (max-width: 720px) {
  .onboarding-card, .legal-page .legal-doc { padding: 22px 18px; }
  .steps-bar li { font-size: 0; }
  .photo-picker { flex-direction: column; align-items: flex-start; }
}

/* ---------- Request & group states ---------- */
/* How it works and What's new */
.info-page { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; padding-bottom: 24px; }
.back-link.plain { justify-self: start; margin: 0; color: var(--ink-2); background: var(--surface); border-color: var(--line-2); backdrop-filter: none; }
.back-link.plain:hover { background: var(--surface-3); }
.info-head { display: grid; gap: 8px; margin: 4px 0 6px; }
.info-head h1 { font-size: clamp(28px, 4vw, 40px); }
.info-page .card h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin-bottom: 10px; }
.info-page .card h2 .icon { color: var(--accent); }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.guide-steps li { display: flex; gap: 16px; align-items: flex-start; }
.guide-steps li h2 { margin-bottom: 4px; }
.guide-steps p { color: var(--ink-2); }
.guide-n { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 18px; color: #fff; background: linear-gradient(150deg, #4f6bd3, var(--accent-dark)); }
.guide-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.guide-type { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: var(--tone-soft); }
.guide-type small { color: var(--ink-2); line-height: 1.45; }
.guide-safety { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.guide-safety li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.guide-safety li .icon { color: var(--accent); margin-top: 3px; }
.guide-safety strong { display: block; color: var(--ink); }
.guide-faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.guide-faq details:first-child { border-top: 0; padding-top: 0; }
.guide-faq summary { cursor: pointer; font-weight: 700; }
.guide-faq p { margin-top: 6px; color: var(--ink-2); }
.guide-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.news-list { display: grid; gap: 14px; }
.news-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.news-latest { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.news-entry ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.news-entry li { color: var(--ink-2); line-height: 1.5; }
.steps-more { text-align: center; margin-top: 18px; font-size: 14px; }
.me { position: relative; }
.me-dot { position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--paper); }
.menu-new { margin-left: auto; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--accent-fill); padding: 2px 7px; border-radius: 999px; }
@media (max-width: 720px) { .guide-types { grid-template-columns: 1fr; } }
.ticket-actions { display: flex; align-items: center; gap: 8px; }
.ticket-share { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); transition: color .15s, border-color .15s, transform .15s; }
.ticket-share:hover { color: var(--accent); border-color: var(--accent); }
.ticket-share:active { transform: scale(.94); }
.invite-preview img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.chip-wrap { height: auto; min-height: 32px; padding: 7px 12px; white-space: normal; text-align: left; line-height: 1.35; }
.ticket-state { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ticket-state.ok { color: var(--success); background: var(--success-soft); }
.ticket-state.wait { color: var(--warn); background: var(--warn-soft); }
.ticket-state.muted { color: var(--muted); background: var(--surface-2); }
.group-state { justify-self: start; margin-top: 3px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.group-state.cancelled { background: var(--danger-soft); color: var(--danger); }
.group-state.completed { background: var(--success-soft); color: var(--success); }
.group-state.forming { background: var(--warn-soft); color: var(--warn); }
.chat-banner { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--success-soft); color: var(--ink-2); font-size: 13.5px; border-top: 1px solid var(--success-line); }
.chat-banner.watched-ask { flex-wrap: wrap; background: var(--accent-soft); border-top-color: rgba(var(--accent-rgb), .25); }
.watched-ask > span:nth-child(2) { flex: 1; min-width: 180px; display: grid; line-height: 1.3; }
.watched-ask strong { color: var(--ink); font-size: 14px; }
.watched-ask small { color: var(--muted); font-size: 12px; }
.watched-actions { display: flex; gap: 6px; }
.chat-banner .icon { color: var(--success); }
.chat-banner span { flex: 1; }
.composer-locked { align-items: center; gap: 12px; color: var(--ink-2); }
.composer-locked > .icon { color: var(--muted); flex: none; }
.composer-locked > span { flex: 1; display: grid; font-size: 14px; }
.composer-locked small { color: var(--muted); font-size: 12.5px; }

/* ---------- Chat extras, settings ---------- */
.unread-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--accent-fill); color: #fff; font-size: 11.5px; font-weight: 800; flex: none; }
.bubble[role="button"] { cursor: pointer; }
.msg-actions { display: flex; gap: 6px; margin-top: 4px; }
.msg.mine .msg-actions { justify-content: flex-end; }
.msg-actions button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); }
.msg-actions button:hover { border-color: var(--ink-2); }
.reported-quote { margin: 0; padding: 12px 14px; border-left: 3px solid var(--danger); border-radius: 10px; background: var(--danger-soft); display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.menu-switch { display: flex; align-items: center; gap: 14px; padding: 15px 16px; background: var(--surface); cursor: pointer; border-top: 1px solid var(--line); }
.menu-switch:first-child { border-top: 0; }
.menu-switch > span { flex: 1; display: grid; }
.menu-switch small { color: var(--muted); font-size: 12px; }
.menu-switch > .icon { color: var(--accent); }
.menu-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 13px 16px; background: var(--surface); }
.menu-row > span { flex: 1; display: grid; min-width: 120px; }
.menu-row small { color: var(--muted); font-size: 12px; }
.menu-row > .icon { color: var(--accent); }
.menu-row > .segmented { margin-left: auto; }
/* Every row after the first gets a divider, whatever element it is. */
.menu-list > * + * { border-top: 1px solid var(--line); }
.menu-list > .menu-switch:first-child { border-top: 0; }
.menu-switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; border: 0; }
.menu-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.menu-switch input:checked { background: var(--success); }
.menu-switch input:checked::after { transform: translateX(18px); }
.menu-switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-list .menu-switch + button { border-top: 1px solid var(--line); }
.legal-foot .text-link { font-size: 12.5px; }
/* Help links share one row and wrap on narrow phones. */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 4px 0; }
/* Follow-us pills: brand logo in a coloured circle, then the handle. */
.social-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.social-chip:hover { transform: translateY(-1px); border-color: var(--accent-line); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .45); }
.social-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.social-logo { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.social-logo svg { width: 16px; height: 16px; }
.social-chip.ig .social-logo { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-chip.x .social-logo { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
@media (max-width: 720px) {
  .social-links { gap: 8px; }
  .social-chip { gap: 6px; padding: 3px 10px 3px 3px; font-size: 12px; }
  .social-logo { width: 24px; height: 24px; }
  .social-logo svg { width: 14px; height: 14px; }
}
.legal-doc .social-links { justify-content: flex-start; }

/* ---------- Ratings & reviews ---------- */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.star { color: var(--line-2); display: inline-grid; }
.star.on { color: var(--gold); }
.star.on svg { fill: currentColor; }
.rating-badge { display: inline-flex; align-items: center; gap: 4px; height: 28px; font-size: 13px; line-height: 1; white-space: nowrap; color: var(--ink-2); }
.rating-badge .icon { color: var(--gold); fill: var(--gold); }
.rating-badge.muted { color: var(--muted); }
.star-picker { display: flex; align-items: center; gap: 4px; }
.star-picker .star { padding: 2px; border-radius: 8px; transition: transform .1s; }
.star-picker .star:hover { transform: scale(1.12); }
.star-picker .star:focus-visible { outline: 2px solid var(--accent); }
.star-word { margin-left: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.reviews { display: grid; gap: 12px; }
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.reviews-head h3 { font-family: var(--font); font-size: 15px; font-weight: 800; letter-spacing: 0; }
.card .reviews-head h3 { font-family: var(--display); font-size: 22px; font-weight: 700; }
.reviews-score { display: inline-flex; align-items: center; gap: 6px; }
.reviews-score strong { font-family: var(--display); font-size: 22px; }
.reviews-score small { color: var(--muted); font-size: 12.5px; }
.review-list { display: grid; gap: 12px; }
.review { display: flex; gap: 10px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--line); }
.review > div { display: grid; gap: 3px; min-width: 0; }
.review-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; }
.review-meta small { color: var(--muted); font-size: 12px; }
.review p { font-size: 14px; color: var(--ink-2); word-break: break-word; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(24px + var(--tabbar)); transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--inverse); color: var(--on-inverse); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toast-in .3s var(--ease); }
.toast .icon { color: var(--on-inverse-ok); }
.toast-error { background: var(--danger); color: #fff; }
.toast-error .icon { color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.94); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .use-cases { grid-template-columns: repeat(2, 1fr); }
  .chat-body { grid-template-columns: 1fr; }
  .chat-info { display: none; position: absolute; }
  .chat.info-open .chat-info { display: flex; position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 100%); z-index: 5; box-shadow: var(--shadow-lg); }
  .chat-info-head .icon-btn { display: grid; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 40px 32px; }
  .hero-art { display: none; }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .groups-layout { grid-template-columns: 1fr; }
  .groups-layout.has-active .group-list { display: none; }
  .groups-layout:not(.has-active) .chat-pane { display: none; }
  .mobile-only { display: grid !important; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --topbar: 60px; --tabbar: calc(66px + env(safe-area-inset-bottom)); }
  .topnav, .brand-name { display: none; }
  .topbar { gap: 10px; justify-content: space-between; }
  .top-actions { gap: 6px; }
  .city-select { padding: 6px 12px; }
  /* iOS zooms into any field under 16px when it is focused. */
  input, select, textarea { font-size: 16px !important; }
  .promo-bar { margin: 10px var(--gutter) 0; }
  .promo-text small { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: var(--tabbar); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border-top: 1px solid var(--line-2);
  }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); transition: color .15s; }
.tabbar a.active { color: var(--accent-dark); }
.tabbar a.active .tab-icon { color: var(--accent); background: var(--accent-soft); }
  .tab-icon { position: relative; display: grid; place-items: center; width: 46px; height: 30px; border-radius: 999px; transition: background .15s; }
  .tab-dot { position: absolute; top: 0; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--paper); }
  .shell.in-chat .tabbar { display: none; }
  .shell.in-chat { --tabbar: 0px; }

  .page { padding-top: 16px; }
  .hero { padding: 30px 22px 26px; border-radius: 26px; }
  .hero h1 { font-size: 40px; margin-top: 22px; }
  .hero-copy > p { font-size: 15px; }
  .hero-ctas .btn { flex: 1; }
  .hero-stats { gap: 22px; margin-top: 26px; }
  .hero-stats strong { font-size: 26px; }
  .ticker-track { font-size: 15px; padding: 10px 0; }
  .block { margin-top: 36px; }
  .use-cases { grid-template-columns: 1fr; gap: 12px; }
  .use-case { padding: 20px 18px 16px; }
  .fan-zone { padding: 22px 18px; border-radius: 22px; }
  .fan-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; }
  .fan-chip { flex: none; }
  .reasons { grid-template-columns: 1fr; gap: 10px; }
  .reason { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 16px 18px; }
  .reason-icon { grid-row: span 2; }
  .reason h3 { margin: 0 0 2px; font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px dashed rgba(232, 235, 245, .2); padding: 22px; }
  .step:last-child { border-bottom: 0; }
  .head-controls { width: 100%; }
  .search { flex: 1; min-width: 0; }
  .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .movie-card-body h3 { font-size: 15.5px; }
  .corner-rail { grid-auto-columns: 132px; gap: 12px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
  .corner-rail.is-wide { grid-auto-columns: 88%; }
  .corner-card.is-wide { grid-template-columns: 104px 1fr; gap: 14px; padding: 12px; }
  .corner-card.is-wide h3 { font-size: 19px; }
  .corner-headline { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .corner-block { padding: 18px 14px 6px; border-radius: 22px; }
  .rail { grid-auto-columns: 88%; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); }
  .plan-grid { grid-template-columns: 1fr; }
  .date-pill { --row: 26px; width: 56px; height: 70px; border-radius: 14px; }
  .date-pill strong { font-size: 20px; }
  .date-any { width: 72px; }
  .date-sep { height: 40px; }

  .movie-hero { margin-top: -16px; padding-bottom: 28px; border-radius: 0 0 24px 24px; }
  .movie-hero-inner { gap: 18px; }
  .movie-hero-poster { width: 112px; }
  .movie-hero-copy { gap: 10px; }
  .movie-hero-copy h1 { font-size: 28px; }
  .movie-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
  .movie-hero-stats { font-size: 13px; gap: 4px 14px; }
  .movie-hero-stats strong { font-size: 17px; }
  .theatre { padding: 16px; }
  .showtimes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .showtime { padding: 9px 10px; }
  /* Narrow tiles: long formats ("HDR by Barco") wrap rather than get cut; tiles in a row stay equal height. */
  .fmt { white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.25; }

  .sheet-backdrop { padding: 0; place-items: end stretch; }
  .sheet { max-width: none; max-height: 93vh; max-height: 93dvh; border-radius: 28px 28px 0 0; animation: slide-up .35s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  @keyframes slide-up { from { transform: translateY(100%); } }
  .sheet-grip { display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 10px auto 0; }
  .sheet-close { top: 14px; right: 14px; }
  .sheet-body { padding: 18px 18px 26px; gap: 20px; }
  .sheet-head h2 { font-size: 24px; }
  .detail-grid, .form-row, .option-grid, .quick-types { grid-template-columns: 1fr; }
  .show-summary { flex-direction: column; gap: 14px; }
  .show-time-block { width: auto; height: auto; padding: 10px 18px; display: flex; gap: 8px; align-items: baseline; border-radius: 16px; }
  .plan-banner h2 { font-size: 22px; }
  .plan-banner img { width: 60px; }
  .sheet-actions .btn { flex: 1; }

  .groups-layout { height: calc(100dvh - var(--topbar) - var(--tabbar)); padding: 12px 0 0; }
  .shell.in-chat .groups-layout { padding: 0; margin: 0 calc(var(--gutter) * -1); height: calc(100dvh - var(--topbar)); }
  .shell.in-chat .chat-pane { border-radius: 0; border: 0; }
  .chat-head { padding: 10px 12px; }
  .messages { padding: 16px 12px; }
  .msg { max-width: 88%; }
  .composer { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }

  /* Avatar beside name and city; bio, tags and stats run full width below. */
  .profile-hero { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; row-gap: 0; padding: 24px; }
  .profile-hero > .avatar { grid-row: span 2; }
  .profile-hero > div:nth-child(2) { display: contents; }
  .profile-hero h1 { font-size: 30px; align-self: end; line-height: 1.1; }
  .profile-hero h1 + p { align-self: start; }
  .profile-hero .profile-bio, .profile-hero .profile-tags, .profile-stats { grid-column: 1 / -1; }
  .profile-hero .profile-bio { margin-top: 14px; }
  .profile-hero .profile-tags { margin-top: 14px; }
  .profile-stats { width: 100%; margin-top: 18px; justify-content: space-around; }
  .card { padding: 20px; }
  .collapsible > summary { padding: 16px 18px; }
  .collapsible-body { padding: 0 18px 20px; }
}

@media (max-width: 380px) {
  .top-actions { gap: 4px; }
  .city-select { padding: 0 10px; font-size: 12px; }
  .theme-toggle { width: 46px; }
  .theme-toggle.is-dark .theme-toggle-knob { transform: translateX(16px); }
  .showtime { padding: 8px; }
  .share-themes { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ticker-track { animation: none; }
}
.date-toolbar { margin-top: 36px; }

/* ---------- Letterboxd ---------- */
.prefix-input { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.prefix-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
.prefix-input > span { padding-left: 14px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.prefix-input input { border: 0 !important; box-shadow: none !important; background: none !important; padding-left: 1px !important; min-width: 0; }
.field-hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.field-hint .text-link { font-size: 12.5px; }
.letterboxd-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; height: 28px; padding: 0 12px 0 10px; white-space: nowrap; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); transition: border-color .15s, color .15s; }
.letterboxd-link:hover { border-color: var(--faint); color: var(--ink); }
.lb-dots { display: inline-flex; gap: 2px; }
.lb-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff8000; }
.lb-dots i:nth-child(2) { background: #00e054; }
.lb-dots i:nth-child(3) { background: #40bcf4; }
.profile-hero .letterboxd-link { color: #f3f4f8; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.profile-hero .letterboxd-link:hover { border-color: rgba(255, 255, 255, .32); }

/* ---------- Ticket details, theatre search, removing members ---------- */
.ticket-details { display: grid; gap: 16px; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.ticket-details input { margin-top: 8px; }
.ticket-details .segmented + input { margin-top: 10px; }
.ticket-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--gold-soft); border: 1px solid #f1e2bd; }
.ticket-box > .icon { color: var(--gold-t); margin-top: 2px; }
.ticket-box > span { display: grid; gap: 3px; min-width: 0; }
.ticket-box strong { font-size: 14px; }
.ticket-box small { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.ticket-box small b { font-weight: 700; color: var(--ink); }
.theatre-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.theatre-tools .search { flex: 1; max-width: 420px; min-width: 0; }
.member-remove { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: var(--danger); border: 1px solid rgba(196, 72, 91, .3); background: transparent; transition: background .15s, border-color .15s; }
.member-remove:hover { background: rgba(196, 72, 91, .06); border-color: var(--danger); }

/* Loading lines: fade in only if loading takes a moment */
.loading-line { margin: 0 0 14px; font-family: var(--display); font-style: italic; font-size: 15px; color: var(--muted); text-align: center; animation: loading-line-in .4s ease .35s both; }
.loading-line:empty { display: none; }
/* Painted together with the icon: no fade, no delay. */
.boot-line { margin: 0; min-height: 1.6em; animation: none; }
.rail + .loading-line, .sheet-body > .loading-line { text-align: left; }
@keyframes loading-line-in { from { opacity: 0; transform: translateY(4px); } }

/* Fan tag hint + live preview */
.fan-hint { display: grid; gap: 4px; }
.fan-preview { color: var(--ink-2); }
.fan-preview b { color: var(--pink); font-weight: 650; }
