/* Cyber Place Club Card (2026-11-25). The brand's night navy and the
 * blue-to-violet of its mark; Russo One for the name and the balances, Inter
 * for reading. The one bold thing is the wallet of club cards. */
@font-face {
  font-family: "Russo One";
  src: url("/assets/fonts/RussoOne.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

:root {
  --night: #020514;
  --surface: #0b1335;
  --line: rgba(142, 156, 230, 0.18);
  --ink: #eaf0ff;
  --mute: #8b96c4;
  --blue: #3e63d6;
  --violet: #9a3fc1;
  --focus: #07ddf1;
  --radius-card: 22px;
  --display: "Russo One", "Inter", "Noto Sans Armenian", system-ui, sans-serif;
  --text: "Inter", "Noto Sans Armenian", "Sylfaen", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* `clip`, not `hidden`: no sideways scroll, and no scroll box that would
   unstick the header (2026-11-25). */
html, body { margin: 0; min-height: 100%; background: var(--night); color: var(--ink); overflow-x: clip; }
body {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
#app {
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.noscript { padding: 24px; text-align: center; }

/* ── screens ─────────────────────────────────────────────────────────── */
.screen { flex: 1; display: flex; flex-direction: column; animation: enter 480ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px) scale(0.99); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: fade 160ms linear both; } }

.screen--splash { align-items: center; justify-content: center; gap: 22px; text-align: center; }
.splash__mark { width: 132px; height: 132px; border-radius: 32px; box-shadow: 0 18px 60px rgba(62, 99, 214, 0.35); }
.splash__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: 0.01em; }
.splash__title span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  background: linear-gradient(100deg, #6f8cff, #c06bf0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.screen--center { justify-content: center; gap: 18px; text-align: center; }
.screen h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.15; }
.lead { margin: 0; color: var(--mute); max-width: 34ch; margin-inline: auto; }

.lang-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 2px !important;
  font-family: var(--text) !important;
  font-size: 15px !important;
  font-weight: 600;
  color: var(--mute);
}
.lang-title svg { width: 18px; height: 18px; flex: none; }

.mark-small { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 6px; }

/* The brand block on the join screen: a larger mark, then the name with
 * «Club Card» in the blue-to-violet of the mark. */
.brand { display: grid; justify-items: center; gap: 14px; margin-bottom: 6px; }
.brand__mark { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 16px 50px rgba(62, 99, 214, 0.32); }
.brand__name { margin: 0; font-family: var(--display); font-size: 30px; line-height: 1.1; letter-spacing: 0.01em; }
.brand__name span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  background: linear-gradient(100deg, #6f8cff, #c06bf0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.screen h2.join-title { font-family: var(--text); font-weight: 700; font-size: 22px; margin-top: 10px; }

.lang__name { display: inline-flex; align-items: center; gap: 12px; }
.flag { width: 30px; height: 20px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 16px 20px;
  min-height: 56px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  width: 100%;
  background: linear-gradient(100deg, var(--blue), var(--violet));
  color: #fff;
  transition: transform 120ms ease, filter 120ms ease;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { filter: grayscale(0.6) brightness(0.7); cursor: progress; }
.btn--quiet { background: transparent; color: var(--mute); border: 1px solid var(--line); font-weight: 600; }
.btn--call { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn--call svg { width: 20px; height: 20px; flex: none; }

.langs { display: grid; gap: 12px; width: 100%; }
.lang {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lang small { color: var(--mute); font-weight: 500; font-size: 14px; }

.stack { display: grid; gap: 12px; width: 100%; margin-top: 8px; }

.field { display: grid; gap: 6px; text-align: left; }
.field__label { font-size: 14px; color: var(--mute); font-weight: 600; }
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.field__input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }

.chip--icon { display: inline-grid; place-items: center; width: 40px; height: 38px; padding: 0; }
.chip--icon svg { width: 19px; height: 19px; }

.club__holder { align-self: center; display: grid; gap: 2px; min-width: 0; }
.club__holder-name { font-size: 19px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club__holder-phone { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.club__eye {
  appearance: none;
  border: 0;
  width: 34px;
  height: 30px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: rgba(2, 5, 20, 0.28);
  color: #fff;
  cursor: pointer;
}
.club__eye svg { width: 18px; height: 18px; }
.club__star { color: #ffd36e; font-size: 18px; line-height: 1; flex: none; }
.club-actions__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.club-actions__default { color: #ffd36e; font-weight: 700; font-size: 15px; }
.link-btn--danger { color: #ff8aa0; }
.btn--danger { background: linear-gradient(100deg, #d2384f, #a42640); }

.sheet__body--tall { max-height: 86dvh; grid-template-rows: auto 1fr auto; }
.history { overflow-y: auto; display: grid; gap: 4px; align-content: start; min-height: 120px; }
.history__row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.history__main { min-width: 0; flex: 1; }
.history__what { font-weight: 600; }
.history__meta { font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history__amount { font-family: var(--display); font-size: 20px; color: #7ee0a6; flex: none; }
.history__amount.is-minus { color: #ff9db0; }
.error { color: #ff8aa0; margin: 0; font-size: 14px; }

/* ── home ───────────────────────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.top__brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 16px; white-space: nowrap; min-width: 0; }
.top > div:last-child { display: flex; gap: 6px; flex: none; }
.chip { white-space: nowrap; }
.top__brand img { width: 34px; height: 34px; border-radius: 10px; }
.lang-pick { position: relative; }
.chip--lang { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; }
.chip--lang .flag { width: 22px; height: 15px; border-radius: 2px; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 196px;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: #0d1640;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(2, 5, 20, 0.6);
  animation: menu-in 160ms ease-out both;
  transform-origin: top right;
}
@keyframes menu-in { from { opacity: 0; transform: scale(0.96) translateY(-4px); } to { opacity: 1; transform: none; } }
.lang-menu__item {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 11px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.lang-menu__item:hover, .lang-menu__item:focus-visible { background: rgba(142, 156, 230, 0.14); outline: none; }
.lang-menu__item.is-current { background: rgba(62, 99, 214, 0.22); }
.lang-menu__check { margin-left: auto; color: #8fa6ff; font-weight: 700; }

.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* The code: what the administrator scans or types. */
.code-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 20px 20px;
  display: grid;
  justify-items: center;
  gap: 16px;
}
.code-card__qr { width: min(220px, 62vw); aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; }
.code-card__qr svg { display: block; width: 100%; height: 100%; }
.code-card__code {
  font-family: var(--display);
  font-size: 40px;
  letter-spacing: 0.18em;
  margin: 0;
  padding-left: 0.18em;
  line-height: 1;
}
.code-card__hint { margin: 0; color: var(--mute); text-align: center; font-size: 15px; max-width: 32ch; }

.empty { display: grid; gap: 18px; }
.empty h2 { font-size: 24px; text-align: center; }
.empty__art { width: 112px; height: 112px; margin: 0 auto; }

/* The wallet: cards lie on each other like in a wallet app; the open one
 * stands clear of the rest and shows how to reach the club. */
.wallet { display: flex; flex-direction: column; padding-bottom: 12px; }
.club {
  --hue-a: var(--blue);
  --hue-b: var(--violet);
  position: relative;
  appearance: none;
  border: 0;
  width: 100%;
  min-height: 196px;
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(135deg, var(--hue-a), var(--hue-b));
  box-shadow: 0 -10px 30px rgba(2, 5, 20, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  transition: margin 320ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.club-swipe { position: relative; }
.club-swipe + .club-swipe { margin-top: -132px; }
.club-swipe.is-open + .club-swipe { margin-top: 16px; }
.club-swipe__bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 196px;
  border-radius: var(--radius-card);
  background: linear-gradient(90deg, #d2384f, #a42640);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 24px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 120ms ease;
}
.club-swipe__bg svg { width: 22px; height: 22px; }
.club-swipe:has(.club.is-dragging) .club-swipe__bg { opacity: 1; }
.club.is-dragging { transition: none; }
.club { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.club:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.club__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.club__logo {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(2, 5, 20, 0.35);
}
.club__name { font-weight: 700; font-size: 17px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club__place { font-size: 13px; opacity: 0.82; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club__balance { align-self: end; display: flex; align-items: baseline; gap: 8px; }
.club__balance strong { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; }
.club__balance span { font-size: 15px; opacity: 0.85; }
/* «Ещё ⌄» on the card's corner (2026-11-25, owner): a frosted pill saying
   that a tap opens the club's menu and news. */
.club__more {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 10px 7px 13px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 6px 16px rgba(2, 5, 20, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: background-color 200ms ease;
}
.club__more svg { width: 18px; height: 18px; stroke-width: 2.4; transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.club__more.is-open svg { transform: rotate(180deg); }
.club:hover .club__more, .club:focus-visible .club__more { background: rgba(255, 255, 255, 0.24); }
@media (prefers-reduced-motion: reduce) { .club__more svg { transition: none; } }

.club-actions { display: grid; gap: 10px; margin: 14px 0 8px; animation: enter 260ms ease-out both; }
.club-actions__phone { margin: 0; text-align: center; color: var(--mute); font-size: 14px; }

.screen .section-title { margin: 4px 0 16px; font-family: var(--text); font-size: 15px; color: var(--mute); font-weight: 600; }
.offline { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 181, 71, 0.12); color: #ffcf85; font-size: 14px; }

/* The code sheet, over the wallet. */
.sheet {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 20, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 10;
  animation: fade 200ms ease-out both;
}
.sheet__body {
  width: 100%;
  max-width: 480px;
  background: var(--night);
  border-top: 1px solid var(--line);
  border-radius: 26px 26px 0 0;
  padding: 22px 20px max(22px, env(safe-area-inset-bottom));
  display: grid;
  gap: 16px;
  animation: rise 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.sheet__body h2 { text-align: center; font-size: 22px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(40px); } to { transform: none; } }

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

/* ── the app shell (2026-11-25): header, one tab, the bottom navigation ── */
.app-shell { padding-bottom: calc(92px + env(safe-area-inset-bottom)); animation: none; }
/* The shell is drawn again on every tab: only the tab moves, never the frame
   (a transformed ancestor would also carry the fixed navigation with it). */
/* The header stays on top while the page scrolls (2026-11-25, owner), and
   settles in smoothly: a frosted band and a soft shadow fade in once the
   page moves under it. */
.app-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* The page's top inset and the header's were added twice on an iPhone
     (2026-11-25, owner: the header sat too low): the header now starts at
     the very top and alone keeps clear of the status bar. */
  margin: calc(-1 * max(20px, env(safe-area-inset-top))) -20px 18px;
  /* +16px: a breath below the status bar (owner, 2026-11-25: +4 was too high). */
  padding: calc(max(8px, env(safe-area-inset-top)) + 16px) 20px 10px;
  background: rgba(2, 5, 20, 0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0);
  transition: background 260ms ease, box-shadow 260ms ease, backdrop-filter 260ms ease;
}
.app-head.is-stuck {
  background: rgba(2, 5, 20, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.35);
}
.app-head__me { appearance: none; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }

.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar--sm { width: 38px; height: 38px; font-size: 15px; }
.avatar--lg { width: 104px; height: 104px; font-size: 38px; font-family: var(--display); font-weight: 400; }

/* Tabs slide in from the side they lie on; a person sees where they went. */
.tab-view { }
/* Page changes (2026-11-25, owner: very smooth): the new page glides in and
   settles with a soft ease-out while the old one drifts the other way and
   fades — both at once, nothing jumps. */
.app-shell { position: relative; }
.tab-view.fade { animation: tab-fade 380ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.tab-view.from-right { animation: tab-right 460ms cubic-bezier(0.22, 1, 0.36, 1) 110ms both; }
.tab-view.from-left { animation: tab-left 460ms cubic-bezier(0.22, 1, 0.36, 1) 110ms both; }
.tab-view.tab-leave { position: absolute; margin: 0; pointer-events: none; z-index: 0; }
.tab-view.tab-leave.to-left { animation: tab-out-left 220ms cubic-bezier(0.4, 0, 1, 1) both; }
.tab-view.tab-leave.to-right { animation: tab-out-right 220ms cubic-bezier(0.4, 0, 1, 1) both; }
@keyframes tab-fade { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes tab-right { from { opacity: 0; transform: translateX(44px) scale(0.985); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes tab-left { from { opacity: 0; transform: translateX(-44px) scale(0.985); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes tab-out-left { from { opacity: 1; transform: none; } 70% { opacity: 0; } to { opacity: 0; transform: translateX(-30px) scale(0.985); } }
@keyframes tab-out-right { from { opacity: 1; transform: none; } 70% { opacity: 0; } to { opacity: 0; transform: translateX(30px) scale(0.985); } }
@media (prefers-reduced-motion: reduce) {
  .tab-view.fade, .tab-view.from-right, .tab-view.from-left { animation: tab-fade 160ms linear both; }
}

.bottom-nav {
  --i: 0;
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(448px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px;
  border-radius: 24px;
  background: rgba(11, 19, 53, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(2, 5, 20, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 15;
}
.bottom-nav__pill {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px) / 3);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(62, 99, 214, 0.55), rgba(154, 63, 193, 0.55));
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bottom-nav__item {
  position: relative;
  appearance: none;
  border: 0;
  background: none;
  color: var(--mute);
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 9px 2px 8px;
  border-radius: 18px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 200ms ease;
}
.bottom-nav__item svg { width: 23px; height: 23px; transition: transform 200ms ease; }
.bottom-nav__item.is-active { color: #fff; }
.bottom-nav__item.is-active svg { transform: translateY(-1px) scale(1.06); }
.bottom-nav__item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bottom-nav__item .bottom-nav__icon, .bottom-nav__item .badge { overflow: visible; text-overflow: clip; max-width: none; }

/* An Armenian phone: the country is fixed, the 8 digits are typed. */
.phone {
  display: flex;
  align-items: stretch;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.phone:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.phone__country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 14px;
  font-weight: 700;
  font-size: 17px;
  border-right: 1px solid var(--line);
  background: rgba(142, 156, 230, 0.08);
  white-space: nowrap;
}
.phone__country .flag { width: 24px; height: 16px; }
.phone__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  letter-spacing: 0.06em;
  padding: 0 14px;
}
.phone__input:focus { outline: none; }
.phone__input::placeholder { color: rgba(139, 150, 196, 0.55); letter-spacing: 0.06em; }
.phone.is-complete .phone__country { color: #7ee0a6; }

/* Profile */
.profile { display: grid; gap: 14px; }
.profile__photo { display: grid; justify-items: center; gap: 10px; margin-bottom: 4px; }
.profile__avatar { position: relative; appearance: none; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.profile__cam {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--night);
  color: #fff;
}
.profile__cam svg { width: 17px; height: 17px; }
.profile__photo-actions { display: flex; gap: 16px; }
.profile__card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 12px; }
.profile__card h3 { margin: 0; font-size: 15px; color: var(--mute); font-weight: 600; }
.profile__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile__ok { color: #7ee0a6; font-weight: 600; }
.profile__muted { color: var(--mute); font-size: 14px; text-align: right; }
.profile__note { margin: 0; text-align: center; color: var(--mute); min-height: 1.5em; }
.link-btn { appearance: none; border: 0; background: none; color: #8fa6ff; font-weight: 700; font-size: 15px; cursor: pointer; padding: 6px 2px; }
.link-btn--quiet { color: var(--mute); font-weight: 600; }

.seg { display: grid; gap: 8px; }
.seg__item {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(2, 5, 20, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.seg__item.is-active { background: rgba(62, 99, 214, 0.25); border-color: rgba(143, 166, 255, 0.6); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Club Card ranks (2026-11-25): the emblem at the card's top right. */
.club__rank { flex: none; display: grid; justify-items: center; gap: 1px; width: 58px; margin: -6px -6px 0 0; }
.club__rank .rank-emblem { width: 46px; height: 46px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45)); }
.club__rank-name { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.club__rank.is-rankup .rank-emblem { animation: rank-up 1.6s ease-out 1; }
@keyframes rank-up {
  0% { transform: scale(0.4) rotate(-25deg); opacity: 0; }
  55% { transform: scale(1.25) rotate(6deg); opacity: 1; filter: drop-shadow(0 0 14px #fff6c8); }
  100% { transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) { .club__rank.is-rankup .rank-emblem { animation: none; } }
.rank-up-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; font-weight: 700; color: #2b1d00; background: linear-gradient(100deg, #fff1b0, #ffd36e); }

/* The scanning beam over the QR (2026-11-25, owner): ONCE — up from the
   bottom, back down, then gone, so it never stands in the scanner's way.
   A violet-cyan shade trails behind it, the way it travels. */
.code-card__frame { position: relative; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, 0.04); }
.code-card__frame .code-card__qr { position: relative; }
.scan-corner { position: absolute; width: 26px; height: 26px; border: 3px solid #5ee0ff; filter: drop-shadow(0 0 6px rgba(94, 224, 255, 0.7)); }
.scan-corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.scan-corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.scan-corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.scan-corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.scan-beam {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(100% - 18px);
  height: 4px;
  border-radius: 4px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #5ee0ff 18%, #b56bff 50%, #5ee0ff 82%, transparent);
  box-shadow: 0 0 12px 2px rgba(94, 224, 255, 0.85), 0 0 26px 6px rgba(181, 107, 255, 0.45);
  animation: scan-once 2.4s cubic-bezier(0.45, 0, 0.55, 1) 0.2s 1 forwards;
  pointer-events: none;
}
/* The shade: drawn below the beam while it rises, flipped above it while it falls. */
.scan-beam::before {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  top: 2px;
  height: 64px;
  border-radius: 0 0 10px 10px;
  transform-origin: top center;
  background: linear-gradient(to bottom, rgba(181, 107, 255, 0.5), rgba(94, 224, 255, 0.18) 45%, rgba(94, 224, 255, 0));
  animation: scan-shade 2.4s linear 0.2s 1 forwards;
}
@keyframes scan-once {
  0% { top: calc(100% - 18px); opacity: 0; }
  8% { opacity: 1; }
  50% { top: 14px; }
  92% { opacity: 1; }
  100% { top: calc(100% - 18px); opacity: 0; }
}
@keyframes scan-shade {
  0%, 49.9% { transform: none; }
  50%, 100% { transform: scaleY(-1); }
}
@media (prefers-reduced-motion: reduce) { .scan-beam { display: none; } }

/* The club menu (2026-11-25). */
.btn--menu { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255, 255, 255, 0.08); }
.btn--menu svg { width: 20px; height: 20px; }
.sheet--full { align-items: stretch; }
/* Every sheet sits above the bottom navigation (found in the browser, 2026-11-25). */
.sheet { z-index: 60; }
.sheet__body { max-height: 92dvh; overflow-y: auto; }
.menu-sheet { max-height: 100dvh; height: 100dvh; overflow-y: auto; border-radius: 0; padding-bottom: 32px; align-content: start; }
.menu-head { position: sticky; top: 0; z-index: 1; display: grid; gap: 2px; padding: 6px 0 12px; background: inherit; }
.menu-head h2 { margin: 4px 0 0; }
.menu-club { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--mute); font-size: 15px; }
.menu-club__logo { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; background: rgba(255, 255, 255, 0.06); }
.menu-club__name { font-weight: 600; color: var(--ink, #fff); overflow-wrap: anywhere; }
.menu-cat { margin: 18px 0 10px; font-size: 16px; letter-spacing: 0.02em; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.menu-item { display: grid; gap: 6px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); min-width: 0; }
.menu-item.is-out { opacity: 0.55; }
.menu-item__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.menu-item__img--none { display: grid; place-items: center; font-size: 34px; font-weight: 800; color: rgba(255, 255, 255, 0.55); background: linear-gradient(135deg, #3e63d6, #9a3fc1); }
.menu-item__name { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.menu-item__price { font-weight: 800; color: #5ee0ff; }
.menu-item__out { font-size: 12px; color: #ff8aa0; }

/* A time bonus offered (2026-11-25). */
.offer { text-align: center; }
.offer__burst { font-size: 46px; line-height: 1; }
.offer__prize { margin: 6px auto; padding: 10px 18px; border-radius: 16px; font-size: 32px; font-weight: 800; color: #2b1d00; background: linear-gradient(100deg, #fff1b0, #ffd36e); width: fit-content; }
.offer__seat { margin: 0; color: var(--mute); }

/* Club news (2026-11-25, owner): one calm column, the newest first. */
.news-body { display: grid; gap: 12px; align-content: start; }
.news-item { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.news-item__when { display: block; color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.news-item__title { margin: 4px 0 0; font-size: 17px; line-height: 1.3; }
.news-item__body { margin: 6px 0 0; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.news-item__img { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; margin-top: 10px; }

/* Unread badges (2026-11-25, owner): a red pill with the number, ringed in
   the background colour so it reads on any surface. */
.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box;
  border-radius: 999px; background: linear-gradient(180deg, #ff5a6e, #e5243f); color: #fff;
  font-size: 11.5px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--night), 0 4px 10px rgba(229, 36, 63, 0.45);
  animation: badge-in 260ms cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}
.bottom-nav__icon { position: relative; display: inline-grid; }
.badge--nav { position: absolute; top: -7px; left: calc(100% - 9px); }
.badge--card { position: absolute; top: -7px; right: -7px; min-width: 24px; height: 24px; font-size: 12.5px; }
.badge--inline { margin-left: 6px; box-shadow: none; }
@keyframes badge-in { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .badge { animation: none; } }

/* The menu and the news keep the bottom navigation over them (2026-11-25). */
body.has-full-sheet .bottom-nav { z-index: 70; }
.sheet--full .menu-sheet { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.bottom-nav.is-off .bottom-nav__pill { opacity: 0; }
/* «Уведомления» beside the profile (2026-11-25, owner). */
.app-head__actions { display: flex; align-items: center; gap: 10px; }
.app-head__bell {
  position: relative; appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06);
  color: var(--ink); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.app-head__bell svg { width: 21px; height: 21px; }
.app-head__bell.is-active { background: linear-gradient(135deg, rgba(62, 99, 214, 0.55), rgba(154, 63, 193, 0.55)); border-color: transparent; }
.app-head__bell:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.badge--bell { position: absolute; top: -5px; right: -7px; }

/* «Club Card» in the logo's colours (2026-11-25, owner), not plain white. */
.top__brand-name {
  background: linear-gradient(90deg, #6f8dff 0%, #b06bff 55%, #e26bd6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* «Мой код» always in its coloured circle (2026-11-25, owner): a round
   button lifted over the bar, the label under it; the player finds the code
   at once, whichever tab is open. */
.bottom-nav__item[data-tab="code"] { z-index: 1; overflow: visible; background: none; color: #fff; padding-top: 0; }
.bottom-nav__item[data-tab="code"] .bottom-nav__icon {
  width: 54px; height: 54px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.28), transparent 45%), linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 0 4px var(--night), 0 10px 24px rgba(154, 63, 193, 0.55);
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1.3), box-shadow 220ms ease;
}
.bottom-nav__item[data-tab="code"] .bottom-nav__icon svg { width: 26px; height: 26px; }
.bottom-nav__item[data-tab="code"]:active .bottom-nav__icon { transform: scale(0.94); }
.bottom-nav__item[data-tab="code"].is-active .bottom-nav__icon {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px var(--night), 0 0 0 6px rgba(176, 107, 255, 0.75), 0 12px 28px rgba(154, 63, 193, 0.65);
}
.bottom-nav__item[data-tab="code"]:focus-visible { outline: none; }
.bottom-nav__item[data-tab="code"]:focus-visible .bottom-nav__icon { outline: 2px solid var(--focus); outline-offset: 4px; }
/* The pill never sits behind the circle. */
.bottom-nav.is-code .bottom-nav__pill { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .bottom-nav__item[data-tab="code"] .bottom-nav__icon { transition: none; } }
/* A little larger (2026-11-25, owner): the logo and «CLUB CARD». */
.app-head .top__brand { gap: 10px; font-size: 19px; letter-spacing: 0.06em; }
.app-head .top__brand img { width: 42px; height: 42px; border-radius: 12px; }

/* «Install the app» (2026-11-25, owner): one calm sheet; on iPhone the steps,
   numbered because they are a sequence, each with the icon Safari shows. */
.sheet--install { z-index: 80; }
.install { justify-items: center; text-align: center; padding-bottom: max(26px, env(safe-area-inset-bottom)); }
.install__icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 28px rgba(154, 63, 193, 0.45); }
.install h2 { margin: 4px 0 0; }
.install .lead { margin: 0; }
.install .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.install .btn svg { width: 20px; height: 20px; }
.install__steps { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: grid; gap: 10px; text-align: left; }
.install__step {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-size: 15px; line-height: 1.35;
}
.install__num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}
.install__glyph { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: #4da3ff; }
.install__glyph svg { width: 22px; height: 22px; stroke-width: 2; }
.install__pointer {
  position: fixed; left: 50%; bottom: 6px; transform: translateX(-50%); color: #fff; width: 34px; height: 34px;
  animation: install-point 1.2s ease-in-out infinite;
}
.install__pointer svg { width: 34px; height: 34px; stroke-width: 2.6; }
@keyframes install-point { 0%, 100% { transform: translate(-50%, 0); opacity: 1; } 50% { transform: translate(-50%, 8px); opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .install__pointer { animation: none; } }

/* While the cards load (2026-11-25): a card-shaped shimmer, never the QR. */
.club-skeleton {
  height: 196px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.04) 70%) 0 0 / 300% 100%;
  animation: club-shimmer 1.2s ease-in-out infinite;
}
@keyframes club-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .club-skeleton { animation: none; } }

/* No pinch or double-tap zoom on a phone (2026-11-25, owner; see card.js). */
:root { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* A push while the app is open (2026-11-25): the push's own words on top. */
.push-banner {
  position: fixed; z-index: 90; left: 50%; top: calc(env(safe-area-inset-top) + 8px); transform: translateX(-50%);
  width: min(448px, calc(100% - 20px)); display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 20px; text-align: left; cursor: pointer; color: var(--ink); font: inherit;
  background: rgba(16, 24, 60, 0.92); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 16px 40px rgba(2, 5, 20, 0.6);
  animation: push-in 320ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.push-banner.is-leaving { animation: push-out 240ms ease-in both; }
.push-banner__icon { width: 36px; height: 36px; border-radius: 10px; }
.push-banner__text { display: grid; gap: 2px; min-width: 0; }
.push-banner__title { font-size: 13px; color: var(--mute); font-weight: 600; }
.push-banner__body { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
@keyframes push-in { from { transform: translate(-50%, -24px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes push-out { to { transform: translate(-50%, -24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .push-banner, .push-banner.is-leaving { animation: none; } }

/* «Карты» with no card yet (2026-11-25, owner): say so plainly and lead to the code. */
.no-cards { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 28px 4px 8px; }
.no-cards__art {
  width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.22), transparent 50%), linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 14px 34px rgba(154, 63, 193, 0.4);
}
.no-cards__art svg { width: 40px; height: 40px; }
.no-cards__title { margin: 6px 0 0; font-size: 22px; line-height: 1.25; }
.no-cards__lead { margin: 0; max-width: 340px; }
.no-cards__btn { margin-top: 8px; width: 100%; max-width: 340px; min-height: 58px; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.no-cards__btn svg { width: 24px; height: 24px; }

/* The page fills the screen from the first frame (iPhone home-screen apps). */
html { height: 100%; }
body { min-height: 100%; }

/* «Turn on notifications» (2026-11-25): a calm strip, never in the way. */
.push-ask {
  display: grid; grid-template-columns: 36px 1fr auto auto; align-items: center; gap: 10px; margin: 0 0 16px;
  padding: 10px 8px 10px 12px; border-radius: 16px; background: rgba(77, 163, 255, 0.10); border: 1px solid rgba(77, 163, 255, 0.28);
}
.push-ask__icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); }
.push-ask__icon svg { width: 20px; height: 20px; }
.push-ask__text { font-size: 13.5px; line-height: 1.35; }
.push-ask__on { padding: 8px 14px; min-height: 0; font-size: 14px; width: auto; }
.push-ask__close { appearance: none; border: 0; background: none; color: var(--mute); font-size: 22px; line-height: 1; padding: 6px; cursor: pointer; }

/* Notifications in the profile (2026-11-26): the state, then the one action. */
.profile__push { display: grid; gap: 10px; }
.profile__push-btn { width: 100%; min-height: 46px; }
.profile__hint { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--mute); }
.no-cards__moved { margin: 6px 0 0; max-width: 340px; font-size: 13.5px; line-height: 1.45; color: var(--mute); }
/* «Удалить аккаунт»: its own red block at the foot of the profile (2026-11-26). */
.profile__danger {
  margin-top: 6px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 92, 120, 0.38);
  background: linear-gradient(160deg, rgba(210, 56, 79, 0.22), rgba(120, 22, 44, 0.16));
  display: grid;
  gap: 12px;
}
.profile__danger-note { margin: 0; font-size: 13px; line-height: 1.4; color: #ffb3c1; }
.profile__delete { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-shadow: 0 10px 28px rgba(210, 56, 79, 0.32); }
.profile__delete svg { width: 18px; height: 18px; }
/* A reload in the same visit: the splash and the entrance are not played again. */
.is-restored .screen--splash { visibility: hidden; }
.is-restored .screen { animation: none; }
