/* Glow & Go Nurses - portal styles (mobile first, Day shift / Night shift themes) */

/* ------------------------------------------------------------ fonts (self-hosted, SIL OFL) */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/fredoka-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/fredoka-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ------------------------------------------------------------ tokens */
:root {
  /* brand (sampled from the logo) */
  --blue: #0E69DC; --blue-2: #1C70E6; --blue-3: #0A4FBF; --sky: #4B92F5;
  --pink: #F45385; --hot: #E8195A; --violet: #7A5CF0;
  --glow: linear-gradient(120deg, #1C70E6 0%, #7A5CF0 55%, #F45385 100%);
  --font-d: "Fredoka", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-b: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* Day shift (light) */
  --bg: #F3F5FF; --text: #101735; --muted: #5A6485;
  --line: rgba(16, 23, 53, .09); --line-strong: rgba(16, 23, 53, .16);
  --card: rgba(255, 255, 255, .74); --card-solid: #FFFFFF; --card-border: rgba(255, 255, 255, .95);
  --card-hover: rgba(255, 255, 255, .92);
  --shadow: 0 1px 2px rgba(16, 23, 53, .04), 0 14px 34px -14px rgba(28, 52, 140, .24);
  --shadow-lg: 0 26px 60px -22px rgba(28, 52, 140, .4);
  --header: rgba(243, 245, 255, .84);
  --input: rgba(255, 255, 255, .92); --input-border: rgba(16, 23, 53, .13); --input-hover: rgba(16, 23, 53, .26);
  --chip: rgba(14, 105, 220, .09); --chip-text: #0B57C8;
  --pink-text: #C8104C; --pink-chip: rgba(244, 83, 133, .13);
  --g1: #1C70E6; --g2: #6A4BF0; --g3: #F45385; --g4: #9A3FD0;
  --blob-1: rgba(75, 146, 245, .5); --blob-2: rgba(244, 83, 133, .34); --blob-3: rgba(122, 92, 240, .3);
  --ok-bg: #E2F6EC; --ok: #0F7A45; --warn-bg: #FFF3D6; --warn: #8A5A00;
  --bad-bg: #FDE6EC; --bad: #B0103F; --info-bg: rgba(14, 105, 220, .09); --info: #0B4FB5;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235A6485' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --stars: 0;
  color-scheme: light;
}

/* Night shift (dark): chosen with the toggle, or by the phone setting when nothing is saved */
:root[data-theme="dark"] {
  --bg: #070B22; --text: #EEF1FF; --muted: #A2ACD0;
  --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .18);
  --card: rgba(22, 30, 72, .58); --card-solid: #131B47; --card-border: rgba(255, 255, 255, .08);
  --card-hover: rgba(30, 40, 92, .72);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .75);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .85);
  --header: rgba(7, 11, 34, .82);
  --input: rgba(255, 255, 255, .06); --input-border: rgba(255, 255, 255, .15); --input-hover: rgba(255, 255, 255, .3);
  --chip: rgba(75, 146, 245, .16); --chip-text: #A9CBFF;
  --pink-text: #FF8FB4; --pink-chip: rgba(244, 83, 133, .18);
  --g1: #6AA8FF; --g2: #A795FF; --g3: #FF7FAA; --g4: #C08CFF;
  --blob-1: rgba(28, 100, 255, .36); --blob-2: rgba(244, 63, 133, .24); --blob-3: rgba(122, 92, 240, .3);
  --ok-bg: rgba(34, 197, 94, .14); --ok: #6EE7A8; --warn-bg: rgba(250, 204, 21, .13); --warn: #FCD877;
  --bad-bg: rgba(244, 63, 94, .16); --bad: #FF9DB5; --info-bg: rgba(75, 146, 245, .16); --info: #A9CBFF;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A2ACD0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --stars: .6;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #070B22; --text: #EEF1FF; --muted: #A2ACD0;
    --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .18);
    --card: rgba(22, 30, 72, .58); --card-solid: #131B47; --card-border: rgba(255, 255, 255, .08);
    --card-hover: rgba(30, 40, 92, .72);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .75);
    --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .85);
    --header: rgba(7, 11, 34, .82);
    --input: rgba(255, 255, 255, .06); --input-border: rgba(255, 255, 255, .15); --input-hover: rgba(255, 255, 255, .3);
    --chip: rgba(75, 146, 245, .16); --chip-text: #A9CBFF;
    --pink-text: #FF8FB4; --pink-chip: rgba(244, 83, 133, .18);
    --g1: #6AA8FF; --g2: #A795FF; --g3: #FF7FAA; --g4: #C08CFF;
    --blob-1: rgba(28, 100, 255, .36); --blob-2: rgba(244, 63, 133, .24); --blob-3: rgba(122, 92, 240, .3);
    --ok-bg: rgba(34, 197, 94, .14); --ok: #6EE7A8; --warn-bg: rgba(250, 204, 21, .13); --warn: #FCD877;
    --bad-bg: rgba(244, 63, 94, .16); --bad: #FF9DB5; --info-bg: rgba(75, 146, 245, .16); --info: #A9CBFF;
    --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A2ACD0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --stars: .6;
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* .btn etc. set display, which would beat the hidden attribute */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); transition: background-color .5s var(--ease-io); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  color: var(--text); font: 400 16px/1.55 var(--font-b);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
main.wrap { flex: 1 0 auto; width: 100%; padding-top: 20px; padding-bottom: 44px; }
a { color: var(--chip-text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .2s; }
@media (hover: hover) { a:hover { color: var(--pink-text); } }
img { max-width: 100%; height: auto; }
code { background: var(--chip); color: var(--chip-text); padding: 2px 7px; border-radius: 7px; font-size: .88em; font-weight: 600; }
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 600; line-height: 1.15; letter-spacing: -.005em; text-wrap: balance; }
.qv { font-family: var(--font-b); font-weight: 800; letter-spacing: .01em; font-size: .92em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.3rem); margin: .2rem 0 .8rem; }
h2 { font-size: 1.3rem; margin: 1.2rem 0 .6rem; }
h3 { font-size: 1.12rem; margin: 0 0 .5rem; }
p { margin: 0 0 .8rem; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.pink { color: var(--pink-text); }
.inline { display: inline; margin: 0; }
.ic { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(244, 83, 133, .3); }

/* animated glow background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; }
.bg i:nth-child(1) { left: -25vmax; top: -30vmax; background: radial-gradient(closest-side, var(--blob-1), transparent); animation: drift1 26s var(--ease-io) infinite alternate; }
.bg i:nth-child(2) { right: -28vmax; top: -10vmax; background: radial-gradient(closest-side, var(--blob-2), transparent); animation: drift2 30s var(--ease-io) infinite alternate; }
.bg i:nth-child(3) { left: 10vmax; bottom: -40vmax; background: radial-gradient(closest-side, var(--blob-3), transparent); animation: drift3 34s var(--ease-io) infinite alternate; }
.bg::after { content: ""; position: absolute; inset: 0; opacity: var(--stars); transition: opacity .8s var(--ease-io);
  background-image:
    radial-gradient(1.5px 1.5px at 8% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 36%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 37% 9%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 48% 27%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 63% 13%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 76% 31%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 89% 8%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 94% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 14% 58%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 31% 74%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 55% 63%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 71% 82%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 66%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 5% 90%, #fff 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vmax, 16vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(10vmax, -14vmax) scale(1.1); } }
@keyframes twinkle { from { filter: brightness(.7); } to { filter: brightness(1.3); } }

/* ------------------------------------------------------------ top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--header); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }
.topbar-in { display: flex; align-items: center; gap: 10px 14px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; border-radius: 10px;
  transition: opacity .45s var(--ease), transform .45s var(--ease); }
.brand picture { display: block; }
.brand img { display: block; height: 28px; width: auto; }
[data-theme="dark"] .brand .lq { filter: drop-shadow(0 0 10px rgba(80, 140, 255, .35)); }
@media (min-width: 760px) { .brand img { height: 34px; } }
@media (max-width: 400px) { .topbar-in { gap: 8px; } .brand img { height: 24px; } .brand { gap: 6px; } }
.landing.hero-in .brand { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.badge { background: var(--glow); color: #fff; font-size: .68rem; font-weight: 700; padding: 4px 9px; border-radius: 99px; letter-spacing: .08em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn), .navbtn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 99px; border: 0; background: none;
  color: var(--text); font: 600 .92rem/1 var(--font-b); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.nav a:not(.btn) .ic, .navbtn .ic { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
@media (hover: hover) {
  .nav a:not(.btn):hover, .navbtn:hover { background: var(--chip); color: var(--chip-text); }
  .nav a:not(.btn):hover .ic, .navbtn:hover .ic { transform: translateY(-1px) scale(1.12); }
}
.nav a:not(.btn):active, .navbtn:active { transform: scale(.95); }
.nav a[aria-current="page"] { background: var(--chip); color: var(--chip-text); }
.nav .btn { margin-left: 4px; }
.nav-guest a.nav-login { display: none; }
@media (min-width: 480px) { .nav-guest a.nav-login { display: inline-flex; } }

/* admin nav: own scrollable row under the logo (too many links to share the logo row) */
.is-admin .topbar-in { padding-top: 10px; }
.nav-admin { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 12px 10px; overflow-x: auto; scrollbar-width: none; }
.nav-admin::-webkit-scrollbar { display: none; }
.is-admin .theme-toggle { order: 2; }

/* nurse nav: links in the header on wide screens, floating tab bar (outside the header) on phones */
.nav-tabs { display: none; }
@media (max-width: 759px) {
  .nav-user { display: none; }
  .nav-tabs { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 6px; border-radius: 24px;
    background: var(--header); border: 1px solid var(--card-border); box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
  .nav-tabs a:not(.btn), .nav-tabs .navbtn { flex-direction: column; justify-content: center; gap: 4px; width: 100%; padding: 9px 4px; border-radius: 18px; font-size: .72rem; }
  .nav-tabs .ic { width: 22px; height: 22px; }
  .nav-tabs form { display: flex; }
  .nav-tabs a[aria-current="page"] { background: var(--glow); color: #fff; box-shadow: 0 8px 20px -8px rgba(122, 92, 240, .8); }
  .has-tabs .footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------ Day / Night shift toggle */
.theme-toggle { display: none; flex: none; padding: 3px; border: 0; background: none; cursor: pointer; border-radius: 99px; -webkit-tap-highlight-color: transparent; }
.js .theme-toggle { display: inline-flex; }
.tt-track { position: relative; display: block; width: 62px; height: 32px; border-radius: 99px; overflow: hidden;
  background: linear-gradient(135deg, #8FD3FF 0%, #BFD9FF 45%, #FFC6DA 100%);
  box-shadow: inset 0 2px 5px rgba(16, 23, 53, .2), 0 0 0 1px rgba(255, 255, 255, .7), 0 6px 16px -8px rgba(28, 112, 230, .6);
  transition: box-shadow .6s var(--ease-io); }
.tt-track::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #0B1442 0%, #2A2378 60%, #4A2C8F 100%); opacity: 0; transition: opacity .6s var(--ease-io); }
.tt-cloud { position: absolute; right: 9px; bottom: 7px; width: 16px; height: 6px; border-radius: 6px; background: #fff;
  box-shadow: 5px -3px 0 1px #fff, -4px -1px 0 0 rgba(255, 255, 255, .9); transition: transform .6s var(--ease), opacity .4s; }
.tt-stars { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity .5s .1s, transform .7s var(--ease); }
.tt-stars::before { content: ""; position: absolute; left: 11px; top: 8px; width: 2px; height: 2px; border-radius: 50%; background: #fff;
  box-shadow: 7px 9px 0 0 #fff, 14px 2px 0 -.3px #fff, 3px 15px 0 -.4px rgba(255, 255, 255, .8), 18px 13px 0 -.2px #fff; }
.tt-knob { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #FFF3B0, #FFC93C 55%, #FFA51F);
  box-shadow: 0 0 0 3px rgba(255, 214, 90, .35), 0 0 16px 3px rgba(255, 180, 40, .7);
  transition: transform .7s var(--ease), background .6s var(--ease-io), box-shadow .6s var(--ease-io); }
.tt-knob::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; top: -6px; left: 9px; background: #2A2378;
  transform: scale(0); transform-origin: 80% 20%; transition: transform .6s var(--ease); }
[data-theme="dark"] .tt-track { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 18px -8px rgba(122, 92, 240, .9); }
[data-theme="dark"] .tt-track::before { opacity: 1; }
[data-theme="dark"] .tt-cloud { opacity: 0; transform: translateY(10px); }
[data-theme="dark"] .tt-stars { opacity: 1; transform: none; }
[data-theme="dark"] .tt-knob { transform: translateX(30px) rotate(-25deg);
  background: radial-gradient(circle at 30% 70%, #DCDDF8 0 2px, transparent 2.5px), radial-gradient(circle at 60% 85%, #DCDDF8 0 1.5px, transparent 2px), radial-gradient(circle at 40% 40%, #FFFFFF, #E6E8FF);
  box-shadow: 0 0 0 3px rgba(200, 210, 255, .14), 0 0 16px 2px rgba(190, 200, 255, .55); }
[data-theme="dark"] .tt-knob::after { transform: scale(1); }
@media (hover: hover) {
  .theme-toggle:hover .tt-knob { box-shadow: 0 0 0 5px rgba(255, 214, 90, .35), 0 0 22px 6px rgba(255, 180, 40, .75); }
  [data-theme="dark"] .theme-toggle:hover .tt-knob { box-shadow: 0 0 0 5px rgba(200, 210, 255, .18), 0 0 22px 5px rgba(190, 200, 255, .7); }
  .theme-toggle:hover .tt-cloud { transform: translateX(-3px); }
}
.theme-toggle:active .tt-knob { scale: .9; }

/* theme switch: circular reveal (View Transitions) or a soft color fade */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
.theming, .theming *, .theming *::before, .theming *::after { transition: background-color .5s var(--ease-io), color .5s var(--ease-io), border-color .5s var(--ease-io), box-shadow .5s var(--ease-io) !important; }

/* ------------------------------------------------------------ buttons */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 99px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 1rem/1 var(--font-b); letter-spacing: .005em; color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue-3));
  box-shadow: 0 12px 26px -12px rgba(14, 105, 220, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s; -webkit-tap-highlight-color: transparent; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, .42) 50%, transparent 75%);
  transform: translateX(-130%); transition: transform .9s var(--ease); }
.btn .ic { transition: transform .4s var(--ease); }
@media (hover: hover) {
  .btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(14, 105, 220, .85), inset 0 1px 0 rgba(255, 255, 255, .3); }
  .btn:hover::after { transform: translateX(130%); }
  .btn:hover .ic-go { transform: translateX(4px); }
}
.btn:active { transform: translateY(0) scale(.97); transition-duration: .12s; }
.btn:focus-visible { outline-offset: 4px; border-radius: 99px; }
.btn-sm { min-height: 40px; padding: 0 17px; font-size: .9rem; gap: 7px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-pink { background: linear-gradient(135deg, #DB2766, #B80E4B); box-shadow: 0 12px 26px -12px rgba(232, 25, 90, .75), inset 0 1px 0 rgba(255, 255, 255, .28); }
@media (hover: hover) { .btn-pink:hover { box-shadow: 0 18px 34px -12px rgba(232, 25, 90, .85), inset 0 1px 0 rgba(255, 255, 255, .3); } }
.btn-glow { background: linear-gradient(120deg, #1C70E6, #6A4BF0 55%, #D63A78); background-size: 160% 100%; background-position: 0 0; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-position .8s var(--ease); }
@media (hover: hover) { .btn-glow:hover { background-position: 100% 0; box-shadow: 0 18px 38px -12px rgba(122, 92, 240, .9); } }
.btn-ghost { color: var(--text); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-strong), var(--shadow); }
.btn-ghost::after { background: linear-gradient(105deg, transparent 25%, rgba(122, 92, 240, .14) 50%, transparent 75%); }
@media (hover: hover) { .btn-ghost:hover { color: var(--chip-text); background: var(--card-hover); box-shadow: inset 0 0 0 1.5px var(--sky), 0 14px 30px -14px rgba(28, 112, 230, .5); } }
.btn-wa { background: linear-gradient(135deg, #13893D, #0A6A2D); box-shadow: 0 12px 26px -12px rgba(19, 137, 61, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
@media (hover: hover) { .btn-wa:hover { box-shadow: 0 18px 34px -12px rgba(19, 137, 61, .85); } }
.btn-danger { background: linear-gradient(135deg, #D93A3A, #A81E1E); box-shadow: 0 12px 26px -14px rgba(200, 40, 40, .7); }
@media (hover: hover) { .btn-danger:hover { box-shadow: 0 18px 32px -14px rgba(200, 40, 40, .85); } }
.btn-icon { width: 44px; min-height: 44px; padding: 0; flex: none; }
.btn-icon.btn-sm { width: 40px; min-height: 40px; }
.btn-del { color: var(--bad); }
@media (hover: hover) { .btn-ghost.btn-del:hover { color: #fff; background: linear-gradient(135deg, #D93A3A, #A81E1E); box-shadow: 0 12px 26px -14px rgba(200, 40, 40, .7); } }
.linkbtn { background: none; border: 0; padding: 4px 2px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 6px;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
@media (hover: hover) { .linkbtn:hover { color: var(--pink-text); text-decoration-color: currentColor; } }

/* ------------------------------------------------------------ cards, chips */
.card { position: relative; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 22px; margin: 0 0 18px; box-shadow: var(--shadow); transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h1, .card-head h2, .card-head h3 { margin: 0; }
.sec-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.sec-head h2 { margin: 0; font-size: 1.25rem; }
.sec-head h1 { margin: 0; font-size: 1.45rem; }
.sec-ic { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue-3)); box-shadow: 0 10px 20px -10px rgba(14, 105, 220, .8); transition: transform .5s var(--ease); }
.sec-ic .ic { width: 20px; height: 20px; }
.sec-ic.pink { background: linear-gradient(135deg, #F45385, #C8104C); box-shadow: 0 10px 20px -10px rgba(232, 25, 90, .8); }
.sec-ic.violet { background: linear-gradient(135deg, #8B6CF6, #5A3FD8); box-shadow: 0 10px 20px -10px rgba(122, 92, 240, .8); }
@media (hover: hover) { .card:hover > .sec-head .sec-ic { transform: rotate(-8deg) scale(1.06); } }
.count { margin-left: auto; font-family: var(--font-d); font-weight: 600; font-size: .95rem; color: var(--chip-text); background: var(--chip); padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.grid2, .grid3 { display: grid; gap: 18px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } }
.grid2 > .card, .grid3 > .card { margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--chip); color: var(--chip-text); font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 99px; margin: 0; white-space: nowrap; }
.pill .ic { width: 15px; height: 15px; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-pink { background: var(--pink-chip); color: var(--pink-text); }

/* ------------------------------------------------------------ alerts + toast */
.alert { display: flex; align-items: flex-start; gap: 10px; max-width: 760px; margin: 0 auto 18px; padding: 13px 12px 13px 16px; border-radius: 18px;
  font-weight: 600; font-size: .95rem; box-shadow: var(--shadow); animation: pop .55s var(--ease) backwards; }
.alert > .ic { margin-top: 2px; }
.alert span { flex: 1; }
.alert-success { background: var(--ok-bg); color: var(--ok); }
.alert-error { background: var(--bad-bg); color: var(--bad); }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert-x { display: none; flex: none; width: 28px; height: 28px; margin: -3px 0; place-items: center; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; opacity: .7; transition: opacity .2s, background-color .2s, transform .3s var(--ease); }
.js .alert-x { display: grid; }
@media (hover: hover) { .alert-x:hover { opacity: 1; background: rgba(127, 127, 127, .15); transform: rotate(90deg); } }
.alert.out { animation: out .35s var(--ease) both; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 8px;
  transform: translate(-50%, 20px); opacity: 0; padding: 11px 20px; border-radius: 99px; font-weight: 700; color: #fff;
  background: linear-gradient(120deg, #1C70E6, #6A4BF0); box-shadow: 0 16px 34px -12px rgba(60, 60, 200, .7); transition: opacity .3s, transform .45s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 759px) { .has-tabs .toast { bottom: calc(104px + env(safe-area-inset-bottom)); } }

/* ------------------------------------------------------------ forms */
.form-card { max-width: 560px; margin-left: auto; margin-right: auto; }
.form-card.narrow { max-width: 440px; }
.form-card.wide { max-width: none; }
label { display: block; font-weight: 600; font-size: .88rem; margin: 0 0 16px; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { display: block; width: 100%; margin-top: 7px; font: 500 16px/1.3 var(--font-b); color: var(--text);
  min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--input-border); border-radius: 15px; background-color: var(--input);
  transition: border-color .25s, box-shadow .25s, background-color .25s; }
textarea { min-height: 96px; resize: vertical; }
select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; background-image: var(--chev); background-repeat: no-repeat; background-position: right 15px center; }
@media (hover: hover) { input:hover, select:hover, textarea:hover { border-color: var(--input-hover); } }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(28, 112, 230, .18); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
input[list]::-webkit-calendar-picker-indicator { opacity: .45; cursor: pointer; }
[data-theme="dark"] input[list]::-webkit-calendar-picker-indicator { filter: invert(1); }
/* suggestion dropdown (app.js swaps in for <datalist>, which phones show poorly) */
.combo { position: relative; display: block; }
.combo input { padding-right: 44px; background-image: var(--chev); background-repeat: no-repeat; background-position: right 15px center; }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 236px; overflow-y: auto; overscroll-behavior: contain;
  list-style: none; margin: 0; padding: 6px; background: var(--card-solid); border: 1px solid var(--line-strong); border-radius: 15px; box-shadow: var(--shadow-lg);
  font-weight: 500; font-size: .95rem; animation: pop .25s var(--ease) backwards; }
.combo-list li { padding: 12px 12px; border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.combo-list li.on { background: var(--chip); color: var(--chip-text); }
@media (hover: hover) { .combo-list li:hover { background: var(--chip); color: var(--chip-text); } }
input[disabled] { opacity: .6; cursor: not-allowed; }
input[type=file] { padding: 9px; min-height: 0; cursor: pointer; }
input[type=file]::file-selector-button { font: 700 .85rem var(--font-b); color: var(--chip-text); background: var(--chip); border: 0; padding: 8px 14px; border-radius: 99px; margin-right: 12px; cursor: pointer; transition: background-color .2s; }
@media (hover: hover) { input[type=file]::file-selector-button:hover { background: var(--pink-chip); color: var(--pink-text); } }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: .9rem; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 0; flex: none; accent-color: var(--blue-2); cursor: pointer; }
.check span { padding-top: 1px; }
.row2, .row3 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 2fr 1fr 1fr; } }
.err { display: block; color: var(--bad); font-weight: 600; font-size: .83rem; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.danger { border-color: rgba(220, 60, 60, .3); }

/* auth pages (join / log in) */
.auth { max-width: 460px; margin: 6px auto 0; padding: 26px 22px; }
.auth-emblem { display: block; width: 112px; margin: -2px auto 4px; }
.auth-emblem img { display: block; width: 100%; height: auto; }
.auth h1 { text-align: center; margin-bottom: .2rem; }
.auth .sub { text-align: center; color: var(--muted); margin: 0 0 20px; }
.auth .alt { text-align: center; color: var(--muted); margin: 18px 0 0; font-size: .92rem; }
.auth .alt + .alt { margin-top: 6px; }

/* join steps (enhanced by register.js; without JS all fields show in one form) */
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.stepper li { flex: 1; font-size: .76rem; font-weight: 700; color: var(--muted); text-align: center; transition: color .4s; }
.stepper li::before { content: ""; display: block; height: 6px; border-radius: 99px; margin-bottom: 7px; background: var(--line-strong); transition: background .5s var(--ease); }
.stepper li.on, .stepper li.done { color: var(--text); }
.stepper li.on::before, .stepper li.done::before { background: var(--glow); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { font-family: var(--font-d); font-weight: 600; font-size: 1.15rem; padding: 0; margin: 0 0 14px; }
.step + .step { margin-top: 10px; }
.step-nav { display: flex; gap: 10px; margin-top: 6px; }
.step-nav .btn { flex: 1; }
.step-nav .btn-back { flex: 0 0 auto; }
form:not(.js-steps) .js-only { display: none !important; }
.js-steps .step { display: none; }
.js-steps .step.on { display: block; animation: stepIn .5s var(--ease) backwards; }
.js-steps .step.on.back { animation-name: stepBack; }
.js-steps .step + .step { margin-top: 0; }
.invite { display: flex; align-items: center; gap: 10px; justify-content: center; text-align: center; }

/* ------------------------------------------------------------ landing */
.hero { text-align: center; padding: 10px 0 18px; }
.hero-art { position: relative; isolation: isolate; width: min(400px, 88%); margin: 0 auto 6px; }
.hero-art .halo { position: absolute; inset: 12% 8% 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 83, 133, .45), rgba(28, 112, 230, .28) 60%, transparent); filter: blur(12px); animation: breathe 7s ease-in-out infinite; }
.lq.hero-logo { display: block; animation: floaty 7s ease-in-out infinite; filter: drop-shadow(0 22px 30px rgba(28, 52, 140, .28)); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero-logo img { display: block; width: 100%; height: auto; }

/* liquid logo fill (hover, or tap on the landing logo): outline shows, the real logo rises like liquid in 1s */
.lq { position: relative; display: inline-block; vertical-align: top; --lq-size: 200% 300%; --lq-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 300L0 115.0L1 114.3L2 113.6L3 113.0L4 112.5L5 112.2L6 112.1L7 112.2L8 112.5L9 113.1L10 113.9L11 115.0L12 116.3L13 117.7L14 119.3L15 121.0L16 122.8L17 124.7L18 126.5L19 128.2L20 129.8L21 131.3L22 132.6L23 133.6L24 134.5L25 135.1L26 135.4L27 135.5L28 135.3L29 135.0L30 134.4L31 133.7L32 132.9L33 132.0L34 131.1L35 130.3L36 129.5L37 128.8L38 128.3L39 127.9L40 127.8L41 127.9L42 128.2L43 128.8L44 129.6L45 130.7L46 131.9L47 133.3L48 134.8L49 136.4L50 138.1L51 139.7L52 141.3L53 142.8L54 144.2L55 145.4L56 146.4L57 147.1L58 147.6L59 147.9L60 147.9L61 147.7L62 147.2L63 146.6L64 145.8L65 144.8L66 143.8L67 142.7L68 141.7L69 140.7L70 139.8L71 139.1L72 138.5L73 138.1L74 138.0L75 138.1L76 138.4L77 139.0L78 139.8L79 140.8L80 142.0L81 143.3L82 144.7L83 146.2L84 147.7L85 149.2L86 150.6L87 151.8L88 152.9L89 153.8L90 154.5L91 154.9L92 155.1L93 155.0L94 154.7L95 154.1L96 153.4L97 152.5L98 151.4L99 150.2L100 149.0L101 147.8L102 146.6L103 145.5L104 144.6L105 143.8L106 143.2L107 142.8L108 142.7L109 142.8L110 143.1L111 143.7L112 144.5L113 145.4L114 146.5L115 147.8L116 149.1L117 150.4L118 151.7L119 153.0L120 154.1L121 155.1L122 155.9L123 156.5L124 156.9L125 157.0L126 156.9L127 156.5L128 155.9L129 155.1L130 154.1L131 153.0L132 151.7L133 150.4L134 149.1L135 147.8L136 146.6L137 145.5L138 144.6L139 143.9L140 143.3L141 143.1L142 143.0L143 143.2L144 143.7L145 144.3L146 145.2L147 146.2L148 147.4L149 148.7L150 150.0L151 151.3L152 152.6L153 153.8L154 154.8L155 155.7L156 156.3L157 156.8L158 157.0L159 156.9L160 156.7L161 156.1L162 155.4L163 154.5L164 153.4L165 152.2L166 150.9L167 149.6L168 148.3L169 147.0L170 145.9L171 144.9L172 144.1L173 143.5L174 143.1L175 143.0L176 143.1L177 143.5L178 144.1L179 144.9L180 145.9L181 147.0L182 148.3L183 149.6L184 150.9L185 152.2L186 153.4L187 154.5L188 155.4L189 156.1L190 156.7L191 156.9L192 157.0L193 156.8L194 156.3L195 155.7L196 154.8L197 153.8L198 152.6L199 151.3L200 150.0L200 300Z'/%3E%3C/svg%3E"); }
.lq-wide { --lq-size: 200% 400%; --lq-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400' preserveAspectRatio='none'%3E%3Cpath d='M0 400L0 120.0L1 117.8L2 115.9L3 114.7L4 114.5L5 115.3L6 117.4L7 120.5L8 124.5L9 129.3L10 134.4L11 139.5L12 144.2L13 148.2L14 151.2L15 153.1L16 153.8L17 153.4L18 152.0L19 150.0L20 147.5L21 145.0L22 142.9L23 141.5L24 141.0L25 141.6L26 143.4L27 146.2L28 150.0L29 154.5L30 159.4L31 164.2L32 168.7L33 172.4L34 175.2L35 176.8L36 177.3L37 176.7L38 175.0L39 172.7L40 170.0L41 167.3L42 164.9L43 163.2L44 162.5L45 162.8L46 164.4L47 167.0L48 170.5L49 174.8L50 179.4L51 184.0L52 188.2L53 191.7L54 194.2L55 195.6L56 195.8L57 194.9L58 193.0L59 190.5L60 187.5L61 184.5L62 181.9L63 180.0L64 179.0L65 179.1L66 180.4L67 182.7L68 186.0L69 190.0L70 194.4L71 198.7L72 202.7L73 205.9L74 208.2L75 209.3L76 209.3L77 208.2L78 206.0L79 203.2L80 200.0L81 196.8L82 193.9L83 191.7L84 190.5L85 190.3L86 191.4L87 193.5L88 196.5L89 200.3L90 204.4L91 208.5L92 212.2L93 215.2L94 217.2L95 218.1L96 217.8L97 216.4L98 214.0L99 211.0L100 207.5L101 204.0L102 200.9L103 198.5L104 197.0L105 196.6L106 197.4L107 199.2L108 202.0L109 205.5L110 209.4L111 213.2L112 216.7L113 219.4L114 221.2L115 221.8L116 221.3L117 219.7L118 217.0L119 213.7L120 210.0L121 206.3L122 202.9L123 200.3L124 198.6L125 198.0L126 198.6L127 200.3L128 202.9L129 206.3L130 210.0L131 213.7L132 217.1L133 219.7L134 221.4L135 222.0L136 221.4L137 219.7L138 217.1L139 213.7L140 210.0L141 206.3L142 202.9L143 200.3L144 198.6L145 198.0L146 198.6L147 200.3L148 202.9L149 206.3L150 210.0L151 213.7L152 217.1L153 219.7L154 221.4L155 222.0L156 221.4L157 219.7L158 217.1L159 213.7L160 210.0L161 206.3L162 202.9L163 200.3L164 198.6L165 198.0L166 198.6L167 200.3L168 202.9L169 206.3L170 210.0L171 213.7L172 217.1L173 219.7L174 221.4L175 222.0L176 221.4L177 219.7L178 217.1L179 213.7L180 210.0L181 206.3L182 202.9L183 200.3L184 198.6L185 198.0L186 198.6L187 200.3L188 202.9L189 206.3L190 210.0L191 213.7L192 217.1L193 219.7L194 221.4L195 222.0L196 221.4L197 219.7L198 217.1L199 213.7L200 210.0L200 400Z'/%3E%3C/svg%3E"); }
.lq > picture { display: block; }
.lq-outline, .lq-back { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.lq-outline img, .lq-back img { width: 100%; height: 100%; }
[data-theme="dark"] .lq-outline img { filter: brightness(1.9) saturate(1.15); }
.lq-play .lq-outline { opacity: 1; }
.lq-play .lq-back, .lq-play .lq-front { -webkit-mask: var(--lq-mask) 0 0 / var(--lq-size) no-repeat; mask: var(--lq-mask) 0 0 / var(--lq-size) no-repeat; }
.lq-play .lq-back { opacity: .5; filter: saturate(1.3) brightness(1.15); animation: lqBack 1s linear both; }
.lq-play .lq-front { animation: lqFront 1s linear both; }
.lq-wide.lq-play .lq-back { animation-name: lqBackWide; }
.lq-wide.lq-play .lq-front { animation-name: lqFrontWide; }
/* steady pour from the bottom-left (surface stays tilted), then it levels and settles at the top */
@keyframes lqFront {
  0% { -webkit-mask-position: 0% 3%; mask-position: 0% 3%; animation-timing-function: linear; }
  50% { -webkit-mask-position: 15% 49%; mask-position: 15% 49%; animation-timing-function: cubic-bezier(.33, .6, .4, 1); }
  100% { -webkit-mask-position: 100% 80%; mask-position: 100% 80%; } }
@keyframes lqBack {
  0% { -webkit-mask-position: 0% 3%; mask-position: 0% 3%; animation-timing-function: linear; }
  50% { -webkit-mask-position: 10% 52%; mask-position: 10% 52%; animation-timing-function: cubic-bezier(.33, .6, .4, 1); }
  100% { -webkit-mask-position: 80% 82%; mask-position: 80% 82%; } }
@keyframes lqFrontWide {
  0% { -webkit-mask-position: 0% 2%; mask-position: 0% 2%; animation-timing-function: linear; }
  50% { -webkit-mask-position: 15% 46%; mask-position: 15% 46%; animation-timing-function: cubic-bezier(.33, .6, .4, 1); }
  100% { -webkit-mask-position: 100% 75%; mask-position: 100% 75%; } }
@keyframes lqBackWide {
  0% { -webkit-mask-position: 0% 2%; mask-position: 0% 2%; animation-timing-function: linear; }
  50% { -webkit-mask-position: 10% 49%; mask-position: 10% 49%; animation-timing-function: cubic-bezier(.33, .6, .4, 1); }
  100% { -webkit-mask-position: 80% 77%; mask-position: 80% 77%; } }
.display { font-family: var(--font-d); font-weight: 700; font-size: clamp(2.3rem, 8.5vw, 4.3rem); line-height: 1.02; letter-spacing: -.01em; margin: 10px 0 12px; }
.g-blue, .g-pink { background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: sheen 7s linear infinite; }
.g-blue { background-image: linear-gradient(100deg, var(--g1) 0%, var(--g2) 50%, var(--g1) 100%); }
.g-pink { background-image: linear-gradient(100deg, var(--g3) 0%, var(--g4) 50%, var(--g3) 100%); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 560px; margin: 0 auto 22px; text-wrap: balance; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.features { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0 0 18px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; align-items: center; gap: 16px; margin: 0; padding: 18px; }
@media (min-width: 700px) { .feature { flex-direction: column; align-items: flex-start; padding: 22px; } }
.feature h3 { margin: 0 0 2px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.f-ic { flex: none; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue-3)); box-shadow: 0 12px 24px -12px rgba(14, 105, 220, .85); transition: transform .6s var(--ease); }
.f-ic .ic { width: 26px; height: 26px; }
.f-ic.pink { background: linear-gradient(135deg, #F45385, #C8104C); box-shadow: 0 12px 24px -12px rgba(232, 25, 90, .85); }
.f-ic.violet { background: linear-gradient(135deg, #8B6CF6, #5A3FD8); box-shadow: 0 12px 24px -12px rgba(122, 92, 240, .85); }
@media (hover: hover) {
  .feature:hover { background: var(--card-hover); border-color: rgba(122, 92, 240, .35); }
  .feature:hover .f-ic { transform: rotate(-10deg) scale(1.1); }
}
.journey { position: relative; list-style: none; margin: 0 0 8px; padding: 20px 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.journey::before { content: ""; position: absolute; left: 16.66%; right: 16.66%; top: 45px; height: 2px; border-radius: 2px; background: var(--glow); opacity: .55; }
.journey li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 700; font-size: .88rem; line-height: 1.25; }
.j-ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--chip-text);
  border: 2px solid transparent; background: linear-gradient(var(--card-solid), var(--card-solid)) padding-box, var(--glow) border-box;
  box-shadow: 0 10px 22px -12px rgba(122, 92, 240, .8); transition: transform .5s var(--ease), color .3s; }
.j-ic .ic { width: 22px; height: 22px; }
@media (hover: hover) { .journey li:hover .j-ic { transform: translateY(-4px) scale(1.08); color: var(--pink-text); } }
.journey small { display: block; font-weight: 600; color: var(--pink-text); font-size: .78rem; }

/* ------------------------------------------------------------ dashboard */
.hello { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: clamp(1.7rem, 6vw, 2.2rem); }
.hello .ic { width: 28px; height: 28px; color: var(--pink); animation: sparkle 3.5s ease-in-out infinite; }
.dash-grid { display: grid; gap: 0 22px; grid-template-columns: 1fr; }
.dash-grid .col { display: contents; }
.dash-grid .pass { order: 1; } .dash-grid .events { order: 2; } .dash-grid .offer { order: 3; } .dash-grid .refer { order: 4; }
@media (min-width: 900px) {
  .dash-grid { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; }
  .dash-grid .col { display: block; }
}

/* Glow Pass: holographic membership card */
.pass { position: relative; isolation: isolate; overflow: hidden; color: #fff; border-radius: 28px; padding: 20px 20px 22px; margin: 0 0 18px;
  background: linear-gradient(140deg, #1C6FEA 0%, #4D5CF0 45%, #8E4FE2 75%, #E7508A 108%);
  box-shadow: 0 30px 60px -28px rgba(40, 70, 210, .85), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .12);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.pass::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0 16%, rgba(255, 255, 255, .17) 22%, transparent 30% 50%, rgba(255, 190, 225, .2) 58%, transparent 66% 82%, rgba(160, 210, 255, .2) 89%, transparent 96%);
  animation: spin 20s linear infinite; }
.pass::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(380px circle at var(--mx, 70%) var(--my, 0%), rgba(255, 255, 255, .3), transparent 45%); }
.pass.tilt { transition-duration: .15s; box-shadow: 0 40px 70px -28px rgba(40, 70, 210, .9), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .16); }
.pass.tilt::after { opacity: 1; }
.pass-shield { position: absolute; z-index: -1; right: -46px; bottom: -40px; width: 250px; height: auto; opacity: .16; }
.pass-shield .sh-body { fill: none; stroke: #fff; stroke-width: 7; stroke-linejoin: round; }
.pass-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pass-emblem img { display: block; width: 58px; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); }
.pass-label { font-family: var(--font-d); font-weight: 600; letter-spacing: .16em; font-size: .8rem; line-height: 1.2; }
.pass-label small { display: block; letter-spacing: .1em; font-size: .68rem; opacity: .8; font-family: var(--font-b); font-weight: 700; }
.pass-name { font-family: var(--font-d); font-weight: 600; font-size: 1.55rem; line-height: 1.1; margin: 0 0 4px; overflow-wrap: anywhere; }
.pass-meta { margin: 0 0 18px; font-size: .9rem; opacity: .88; }
.qr-btn { display: block; width: 100%; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; font: inherit; border-radius: 22px; -webkit-tap-highlight-color: transparent; }
.qr { display: block; width: min(220px, 70%); aspect-ratio: 1; margin: 0 auto; background: #fff; border-radius: 22px; padding: 12px;
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .45); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.qr svg { display: block; width: 100%; height: 100%; }
.qr-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: .82rem; font-weight: 600; opacity: .85; transition: opacity .3s; }
@media (hover: hover) { .qr-btn:hover .qr { transform: scale(1.04); box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .5); } .qr-btn:hover .qr-hint { opacity: 1; } }
.qr-btn:active .qr { transform: scale(.98); }
.qr-btn:focus-visible { outline-color: #fff; }

/* QR full screen */
.qr-modal { width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 30px; color: #101735; background: #fff; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .6); overflow: auto; }
.qr-modal[open] { animation: pop .5s var(--ease) backwards; }
.qr-modal::backdrop { background: rgba(7, 11, 34, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.qr-modal-in { position: relative; padding: 58px 22px 24px; text-align: center; }
.qr-modal .qr-big { display: block; width: 100%; max-width: 330px; aspect-ratio: 1; margin: 6px auto 14px; }
.qr-modal .qr-big svg { display: block; width: 100%; height: 100%; }
.qr-modal b { display: block; font-family: var(--font-d); font-weight: 600; font-size: 1.3rem; }
.qr-modal p { margin: 4px 0 0; color: #5A6485; font-size: .9rem; display: flex; align-items: center; justify-content: center; gap: 6px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: #F0F2FA; color: #101735; cursor: pointer; transition: transform .4s var(--ease), background-color .2s; }
@media (hover: hover) { .modal-x:hover { transform: rotate(90deg); background: #FDE6EC; color: #B0103F; } }

/* events */
.event { display: grid; grid-template-columns: 1fr; gap: 12px 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.event:first-of-type { border-top: 0; padding-top: 2px; }
.event:last-child { padding-bottom: 0; }
@media (min-width: 520px) { .event { grid-template-columns: 1fr auto; } }
.event h3 { margin: 0 0 7px; font-size: 1.08rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; color: var(--muted); font-size: .88rem; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .ic { color: var(--chip-text); width: 16px; height: 16px; }
.event-act { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.event-act form { margin: 0; }
.event-act > form:only-child { flex: 1; }
.event-act > form:only-child .btn { width: 100%; }
@media (min-width: 520px) { .event-act { flex-direction: column; align-items: flex-end; justify-content: center; } .event-act > form:only-child .btn { width: auto; } }
.more { margin-top: 2px; }
.more summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: var(--chip-text); font-weight: 700; font-size: .85rem; border-radius: 8px; transition: color .2s; }
.more summary::-webkit-details-marker { display: none; }
.more summary .ic { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.more[open] summary .ic { transform: rotate(180deg); }
@media (hover: hover) { .more summary:hover { color: var(--pink-text); } }
.more p { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }

/* offer coupon */
.coupon { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 0 0 12px; padding: 20px 22px;
  border: 0; border-radius: 18px; cursor: pointer; color: inherit; font: inherit; text-align: left; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(120deg, rgba(244, 83, 133, .16), rgba(122, 92, 240, .14));
  -webkit-mask: radial-gradient(circle 11px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  transition: transform .45s var(--ease), background-color .3s; }
.coupon::before { content: ""; position: absolute; inset: 7px; border: 2px dashed rgba(232, 25, 90, .45); border-radius: 13px; pointer-events: none; transition: border-color .3s; }
.coupon .code { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.3rem, 5.5vw, 1.6rem); letter-spacing: .06em; color: var(--pink-text); overflow-wrap: anywhere; }
.coupon-copy { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 13px; border-radius: 99px; font-weight: 700; font-size: .85rem; color: #fff;
  background: linear-gradient(135deg, #DB2766, #B80E4B); box-shadow: 0 10px 20px -10px rgba(232, 25, 90, .8); transition: transform .4s var(--ease); }
@media (hover: hover) { .coupon:hover { transform: translateY(-2px) rotate(-.4deg); } .coupon:hover::before { border-color: rgba(232, 25, 90, .8); } .coupon:hover .coupon-copy { transform: scale(1.06); } }
.coupon:active { transform: scale(.98); }
.coupon:focus-visible { outline: none; }
.coupon:focus-visible::before { border: 2px solid var(--sky); }
.coupon.used { opacity: .7; }

/* invite */
.shields { display: flex; flex-wrap: wrap; gap: 12px; margin: 2px 0 12px; }
.shield-slot { width: 58px; height: 50px; overflow: visible; transition: transform .5s var(--ease); }
.shield-slot .sh-body { fill: none; stroke: var(--line-strong); stroke-width: 6; stroke-dasharray: 11 9; stroke-linejoin: round; }
.shield-slot.on .sh-body { fill: var(--pink); stroke: var(--pink); stroke-dasharray: none; }
.shield-slot.on { filter: drop-shadow(0 8px 12px rgba(244, 83, 133, .45)); animation: popIn .7s var(--ease) backwards; }
.shield-slot .sh-check { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw .7s .35s var(--ease) forwards; }
@media (hover: hover) { .refer:hover .shield-slot.on { transform: translateY(-3px) rotate(-6deg); } }
.link-field { position: relative; margin: 0 0 12px; }
.link-field .reflink { margin: 0; padding-right: 56px; font-size: .88rem; color: var(--muted); min-height: 48px; }
.link-field .btn-icon { position: absolute; right: 4px; top: 4px; }
.share { display: flex; gap: 10px; flex-wrap: wrap; }
.share .btn { flex: 1 1 auto; }
.goal-done { color: var(--ok); font-weight: 700; }

/* profile folds */
.fold { padding: 0; }
.fold > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; border-radius: var(--radius); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { margin: 0; font-size: 1.12rem; flex: 1; }
.fold > summary > .ic { transition: transform .35s var(--ease); color: var(--muted); }
.fold[open] > summary > .ic { transform: rotate(180deg); }
@media (hover: hover) { .fold > summary:hover h2 { color: var(--chip-text); } }
.fold-body { padding: 0 22px 22px; }
.fold .sec-ic { width: 36px; height: 36px; border-radius: 12px; }

/* prose */
.prose { max-width: 780px; margin-left: auto; margin-right: auto; }
.prose li { margin-bottom: 6px; }
.prose h2 { font-size: 1.2rem; margin-top: 1.4rem; }

/* ------------------------------------------------------------ admin */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-bottom: 18px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 16px 16px 14px;
  background: linear-gradient(145deg, #2A7DF0, var(--blue-3)); box-shadow: 0 18px 36px -18px rgba(14, 105, 220, .9); transition: transform .45s var(--ease); }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.kpi.pink { background: linear-gradient(145deg, #F05185, #B80E4B); box-shadow: 0 18px 36px -18px rgba(232, 25, 90, .9); }
@media (hover: hover) { .kpi:hover { transform: translateY(-3px); } }
.kpi-v { font-family: var(--font-d); font-size: 2.1rem; font-weight: 700; line-height: 1.1; }
.kpi-l { font-weight: 700; font-size: .9rem; }
.kpi-t { font-size: .78rem; opacity: .9; }
.bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 8px 0 10px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--glow); }
.kpi .bar { background: rgba(255, 255, 255, .28); height: 7px; }
.kpi .bar i { background: #fff; }
.tbl-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; color: var(--muted); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1.5px solid var(--line-strong); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr { transition: background-color .2s; }
@media (hover: hover) { .tbl tbody tr:hover { background: var(--chip); } }
.hbar { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 7px 11px; margin-bottom: 6px; border-radius: 10px; overflow: hidden; font-size: .9rem; }
.hbar span, .hbar b { position: relative; z-index: 1; }
.hbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--chip); border-radius: 10px; }
.search { display: flex; gap: 10px; margin: 0 0 16px; align-items: center; }
.search input { margin: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; }
.pager a { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 12px; background: var(--card); color: var(--text); text-decoration: none; font-weight: 700; box-shadow: var(--shadow); transition: background-color .2s, color .2s; }
@media (hover: hover) { .pager a:hover { background: var(--chip); color: var(--chip-text); } }
.pager a.on { background: var(--glow); color: #fff; }
.code-row { display: flex; gap: 10px; align-items: center; margin: 10px 0; }

/* check-in */
.checkin-page main > h1, .checkin-page main > .card, .checkin-page main > p { max-width: 640px; margin-left: auto; margin-right: auto; }
.scanner { position: relative; background: #0B1226; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: 14px; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; width: 58%; aspect-ratio: 1; border: 3px solid rgba(255, 255, 255, .9); border-radius: 22px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .3); display: none; }
.scanning .scan-frame { display: block; animation: breathe 2.4s ease-in-out infinite; }
.scanner .btn { position: relative; z-index: 2; }
.result { border-radius: 16px; padding: 0; font-weight: 600; transition: background-color .2s; }
.result.ok, .result.warn, .result.bad { padding: 14px 16px; animation: pop .45s var(--ease) backwards; }
.result.ok { background: var(--ok-bg); color: var(--ok); }
.result.warn { background: var(--warn-bg); color: var(--warn); }
.result.bad { background: var(--bad-bg); color: var(--bad); }
.result-title { font-family: var(--font-d); font-size: 1.2rem; font-weight: 600; }
.log { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.log li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; }
.log .btn { flex-shrink: 0; }

/* ------------------------------------------------------------ footer */
.footer { flex-shrink: 0; padding: 26px 0 34px; color: var(--muted); font-size: .85rem; text-align: center; border-top: 1px solid var(--line); }
.footer p { margin: 4px 0; }
.qv-logo img { display: inline-block; height: 1.3em; width: auto; vertical-align: -.32em; }
[data-theme="dark"] .qv-logo img { filter: brightness(1.85); } /* QV blue is too dark on the Night shift background */
.footer .tagline { font-family: var(--font-d); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.footer a { color: var(--muted); }
@media (hover: hover) { .footer a:hover { color: var(--pink-text); } }

/* ------------------------------------------------------------ motion */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes out { to { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes popIn { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-24px); } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes sheen { to { background-position: -200% center; } }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .85; } }
@keyframes sparkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(18deg) scale(1.15); } }

@media (prefers-reduced-motion: no-preference) {
  main > :not(dialog):not(.alert):not(.dash-grid), .dash-grid .col > * { animation: rise .75s var(--ease) backwards; }
  main > :nth-child(2), .dash-grid .col > :nth-child(2) { animation-delay: .07s; }
  main > :nth-child(3), .dash-grid .col > :nth-child(3) { animation-delay: .14s; }
  main > :nth-child(4) { animation-delay: .21s; }
  main > :nth-child(5) { animation-delay: .28s; }
  main > :nth-child(n+6) { animation-delay: .35s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .bg i, .pass::before, .hero-logo, .g-blue, .g-pink { animation: none !important; }
}
