/* Enrico Marinelli Club — client card and boutique app. Same palette and type as enricomarinelli.kz. */
:root {
  color-scheme: dark;
  --bg: #0D0C0B;
  --panel: #171513;
  --panel2: #1F1C19;
  --fg: #ECE6DC;
  --soft: #A39E96;
  --muted: #8C857B;
  --hair: rgba(236, 230, 220, 0.16);
  --accent: #C2A46E;
  --ok: #8FBF9A;
  --bad: #E08A7A;
  --ink: #0D0C0B;
  --gold: linear-gradient(115deg, #8E6E34 0%, #D9BC7C 30%, #B8924A 52%, #EAD3A0 74%, #9C7A3C 100%);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
}
html[lang="ar"] { --sans: "Cairo", "Manrope", Arial, sans-serif; --serif: "Cairo", "Cormorant Garamond", serif; }
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* layout */
.shell { width: 100%; max-width: 520px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.shell.wide { max-width: 1120px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand i { display: block; width: 22px; height: 30px; flex: none; background: var(--fg); -webkit-mask: url(/img/emblem.svg) center / contain no-repeat; mask: url(/img/emblem.svg) center / contain no-repeat; }
.brand b { display: block; width: 150px; height: 10px; background: var(--fg); -webkit-mask: url(/img/wordmark.svg) left center / contain no-repeat; mask: url(/img/wordmark.svg) left center / contain no-repeat; }
.brand span { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.brand .bw { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.langs { display: flex; gap: 2px; }
.langs button { border: 0; background: none; padding: 8px 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.langs button[aria-pressed="true"] { color: var(--fg); border-bottom: 1px solid var(--accent); }
main { padding-top: 22px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.row2 > * { min-width: 0; }
.eyebrow { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; }
.lead { margin: 0; color: var(--soft); }
.note { margin: 0; color: var(--muted); font-size: 14px; }
.small { font-size: 13px; color: var(--muted); }
.ok { color: var(--ok); } .bad { color: var(--bad); } .gold { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--hair); margin: 6px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 1px solid rgba(236,230,220,.42); background: none; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: border-color .2s, color .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--fg); border-color: var(--fg); color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-gold { background: var(--gold); border: 0; color: #1A140A; }
.btn-gold:hover { color: #1A140A; filter: brightness(1.06); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 11px; letter-spacing: .14em; }
.btn-danger { border-color: rgba(224,138,122,.55); color: var(--bad); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--soft); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* forms */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.f input, .f select, .f textarea { width: 100%; min-width: 0; min-height: 52px; padding: 0 14px; border: 1px solid var(--hair); background: var(--panel); border-radius: 0; font-size: 17px; letter-spacing: normal; text-transform: none; color: var(--fg); }
.f textarea { padding: 12px 14px; min-height: 80px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--accent); }
.f input.big { font-size: 26px; font-weight: 600; letter-spacing: .06em; }
/* hints inside the fields are barely visible, so they are not mistaken for a typed value */
.f input::placeholder, .f textarea::placeholder { color: var(--fg); opacity: .18; font-weight: 400; }
/* phone: the mask +7 (___) ___-__-__ is drawn behind the typed digits */
.pmask { position: relative; display: block; }
.f input.ph { font-variant-numeric: tabular-nums; }
.pm-ghost { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 15px; font-size: 17px; letter-spacing: normal; text-transform: none; font-variant-numeric: tabular-nums;
  color: var(--soft); white-space: pre; pointer-events: none; overflow: hidden; direction: ltr; unicode-bidi: isolate; }
.pm-typed { visibility: hidden; }
/* the card number as a barcode under the QR code */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--soft); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.err { margin: 0; padding: 12px 14px; border: 1px solid rgba(224,138,122,.45); background: rgba(224,138,122,.08); color: #F2B5A9; font-size: 14px; }
.okbox { margin: 0; padding: 12px 14px; border: 1px solid rgba(143,191,154,.45); background: rgba(143,191,154,.08); color: #C3E3CB; font-size: 14px; }

/* panels and lists */
.panel { border: 1px solid var(--hair); background: var(--panel); padding: 18px; }
.list { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.li > div { min-width: 0; }
.li .t { font-size: 15px; }
.li .s { font-size: 13px; color: var(--muted); }
.li .v { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.li.click { cursor: pointer; } .li.click:hover .t { color: var(--accent); }
.perks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: baseline; }
.perks li::before { content: ""; width: 6px; height: 6px; flex: none; transform: translateY(-2px) rotate(45deg); background: var(--accent); }
.rules { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--soft); }
.chip { display: inline-block; padding: 3px 9px; border: 1px solid var(--hair); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.chip.ok { border-color: rgba(143,191,154,.5); color: var(--ok); }
.chip.warn { border-color: rgba(194,164,110,.6); color: var(--accent); }
.chip.bad { border-color: rgba(224,138,122,.5); color: var(--bad); }

/* membership card */
.mcard { position: relative; aspect-ratio: 1.586; border-radius: 16px; overflow: hidden; padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 140% at 0% 0%, #2A2620 0%, #151311 55%, #0E0D0C 100%); box-shadow: 0 20px 50px rgba(0,0,0,.55), inset 0 0 0 1px rgba(194,164,110,.35); }
.mcard::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(194,164,110,.28); border-radius: 11px; pointer-events: none; }
.mcard::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 110% -10%, rgba(194,164,110,.07) 0 1px, transparent 1px 7px); pointer-events: none; }
.mcard .mc-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.mcard .mc-logo { display: flex; align-items: center; gap: 10px; }
.mcard .mc-logo i { width: 26px; height: 36px; background: var(--gold); -webkit-mask: url(/img/emblem.svg) center / contain no-repeat; mask: url(/img/emblem.svg) center / contain no-repeat; }
.mcard .mc-logo b { width: 140px; height: 9px; background: var(--gold); -webkit-mask: url(/img/wordmark.svg) left center / contain no-repeat; mask: url(/img/wordmark.svg) left center / contain no-repeat; }
.mcard .mc-club { font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
.mcard .mc-bal { position: relative; z-index: 1; }
.mcard .mc-bal small { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); }
.mcard .mc-bal strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1; margin-top: 6px; font-variant-numeric: lining-nums; }
.mcard .mc-bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; position: relative; z-index: 1; font-size: 13px; color: var(--soft); }
.mcard .mc-bot .num { font-variant-numeric: tabular-nums; letter-spacing: .14em; color: var(--fg); direction: ltr; unicode-bidi: isolate; }
/* the QR on soft champagne gold: dark modules on a light gold ground still read like black on white */
.qrbox { background: #E6D2A2; padding: 14px; border-radius: 12px; width: min(260px, 70vw); margin: 0 auto; box-shadow: inset 0 0 0 1px rgba(255,248,226,.35); }
.qrbox svg { display: block; width: 100%; height: auto; }
.code { font-family: var(--sans); font-weight: 600; font-size: 54px; letter-spacing: .18em; text-align: center; font-variant-numeric: tabular-nums; direction: ltr; }
.code.sm { font-size: 40px; }
.timer { text-align: center; color: var(--soft); font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.foot a { color: var(--soft); }
.foot .foot-site { align-self: flex-start; font-size: 18px; letter-spacing: .02em; color: var(--fg); margin: 4px 0 2px; }
.visit { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-top: 6px; }
.visit .btns { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; }
.visit .btns .btn { text-align: center; }
.visit .btns .wa { grid-column: 1 / -1; }
/* «Новинки» */
.news { display: flex; flex-direction: column; gap: 16px; }
.news-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.news-h .link { font-size: 13px; }
.post { border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.025); }
.post-m img, .post-m video { display: block; width: 100%; max-height: 72vh; background: #000; }
.post-m img { object-fit: cover; }
.post-m video { object-fit: contain; }
.post-x { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 230px; padding: 40px 28px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #2B251B 0%, #17140F 58%, #0F0D0A 100%); }
.post-x::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(217,188,124,.32); border-radius: 8px; pointer-events: none; }
.post-x i { width: 26px; height: 36px; background: var(--gold); -webkit-mask: url(/img/emblem.svg) center / contain no-repeat; mask: url(/img/emblem.svg) center / contain no-repeat; }
.post-x b { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 9.5vw, 46px); line-height: 1.04; text-wrap: balance; overflow-wrap: anywhere;
  background: linear-gradient(115deg, #8E6A2C 0%, #D9B66C 22%, #FFF3D2 34%, #B8924A 50%, #EAD3A0 70%, #9C7A3C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.post-t { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
/* «book»: several photos of one post, swiped page by page, each with its own caption */
.book { position: relative; }
.book-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.book-track::-webkit-scrollbar { display: none; }
.book-page { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; }
.book-page img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #000; }
.book-page figcaption { padding: 14px 18px 4px; font-size: 16px; line-height: 1.5; color: var(--fg); }
.book-cap { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; }
.book-page.open .book-cap { display: block; -webkit-line-clamp: none; }
.book-more { display: none; margin-top: 2px; padding: 4px 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 15px; cursor: pointer; }
.book-page.long:not(.open) .book-more { display: inline-block; }
.book-n { position: absolute; top: 12px; inset-inline-end: 12px; padding: 4px 10px; border-radius: 20px; background: rgba(13,12,11,.62); color: #fff; font-size: 12px; letter-spacing: .06em; pointer-events: none; }
.book-dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 16px; }
.book-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(236,230,220,.28); transition: background .2s, transform .2s; }
.book-dots i.on { background: var(--accent); transform: scale(1.25); }
.post-t small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.post-t h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.15; }
.post-t p { margin: 0; color: var(--fg); font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.post-t a { color: var(--accent); }
.mprev { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mprev img, .mprev video { max-width: 100%; max-height: 320px; border-radius: 10px; background: #000; }
.spinner { width: 28px; height: 28px; margin: 40px auto; border: 2px solid var(--hair); border-top-color: var(--accent); border-radius: 50%; animation: sp 1s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px); padding: 12px 18px; background: var(--fg); color: var(--ink); font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.install { display: flex; gap: 16px; align-items: flex-start; border-color: rgba(194,164,110,.45); }
.install i { width: 52px; height: 52px; flex: none; border-radius: 12px; background: #000 url(/club/icons/client-192.png) center / cover; box-shadow: 0 0 0 1px rgba(236,230,220,.18), 0 6px 18px rgba(0,0,0,.5); }
.install .btn { align-self: flex-start; }
.inapp { border-color: rgba(194,164,110,.6); background: linear-gradient(180deg, rgba(194,164,110,.10), rgba(194,164,110,.02)); }
/* iPhone: add-to-home-screen guide */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(5,5,4,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 12px calc(76px + env(safe-area-inset-bottom)); animation: shIn .25s ease-out; }
@keyframes shIn { from { opacity: 0; } }
.sheet-card { position: relative; width: 100%; max-width: 460px; margin: 0 auto; max-height: 100%; overflow-y: auto; background: var(--panel2); border: 1px solid rgba(194,164,110,.4); border-radius: 18px; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.sheet-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.sheet-ico { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sheet-ico i { width: 64px; height: 64px; border-radius: 15px; background: #000 url(/club/icons/client-192.png) center / cover; box-shadow: 0 0 0 1px rgba(236,230,220,.2), 0 8px 22px rgba(0,0,0,.55); }
.sheet-ico span { font-size: 12px; color: var(--soft); }
.sheet .h2 { text-align: center; font-size: 26px; }
.isteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.isteps li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.isteps li > span:last-child { display: block; padding-top: 3px; }
.isteps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #1A140A; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.isteps small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.ik { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: -4px 2px; vertical-align: middle; border-radius: 8px; background: #F4EFE6; color: #0A84FF; }
.sheet-arrow { position: fixed; bottom: calc(10px + env(safe-area-inset-bottom)); left: 50%; margin-left: -15px; color: var(--accent); filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); animation: bob 1.1s ease-in-out infinite; pointer-events: none; }
.sheet-arrow.r { left: auto; right: 22px; margin-left: 0; }
@keyframes bob { 50% { transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .sheet-arrow { animation: none; } .sheet { animation: none; } }
details.memo { border: 1px solid var(--hair); background: var(--panel); padding: 0 16px; }
details.memo summary { cursor: pointer; padding: 14px 0; font-size: 14px; color: var(--soft); }
details.memo[open] summary { color: var(--fg); }
details.memo .stack { padding-bottom: 16px; font-size: 14px; color: var(--soft); }
details.memo p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* boutique app */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; border-bottom: 1px solid var(--hair); }
.tabs button { border: 0; background: none; padding: 12px 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.tabs .badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-inline-start: 6px; border-radius: 9px; background: var(--accent); color: var(--ink); font-size: 11px; letter-spacing: 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.stat { border: 1px solid var(--hair); background: var(--panel); padding: 16px; }
.stat small { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.stat strong { display: block; margin-top: 8px; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 4px; font-size: 13px; color: var(--soft); }
.stat.tap { position: relative; cursor: pointer; }
.stat.tap:hover, .stat.tap:focus-visible { border-color: var(--accent); outline: none; }
.stat .edit { position: absolute; top: 14px; right: 16px; font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: start; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--hair); }
table.t td { padding: 10px 8px; border-bottom: 1px solid var(--hair); vertical-align: top; }
table.t td.n { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--panel); }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-variant-numeric: tabular-nums; }
.sum b { text-align: end; }
.scan { position: fixed; inset: 0; z-index: 40; background: #000; display: flex; flex-direction: column; }
.scan video { flex: 1; width: 100%; object-fit: cover; }
.scan .bar { padding: 16px; display: flex; justify-content: space-between; align-items: center; background: #000; }
.cols { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.who { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.who .small { font-size: 12px; white-space: nowrap; }
.who .btn-sm { min-height: 34px; padding: 0 12px; }
@media (max-width: 760px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; touch-action: pan-x; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: -18px; padding-inline: 10px; gap: 0;
    border-bottom: 0; box-shadow: inset 0 -1px 0 var(--hair);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; white-space: nowrap; padding: 12px 10px; letter-spacing: .12em; margin-bottom: 0; }
}
@media (max-width: 380px) { .h1 { font-size: 34px; } .mcard .mc-bal strong { font-size: 44px; } .code { font-size: 44px; } .brand b { width: 120px; } }
.code-in { font-size: 30px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.pushon { color: var(--soft); }
.pushon .ok { color: #8FBF9A; }
.pushask { border-color: rgba(194,164,110,.45); }
input[type="date"] { min-height: 52px; display: block; max-width: 100%; -webkit-appearance: none; appearance: none; line-height: 50px; }
input[type="date"]::-webkit-date-and-time-value { text-align: start; margin: 0; }
.top .brand { flex: 1 1 auto; overflow: hidden; }
.brand .bw { overflow: hidden; }
.brand .bw span { overflow: hidden; text-overflow: ellipsis; }
.top .langs { flex: none; }
@media (max-width: 600px) {
  .audgrid { grid-template-columns: 1fr !important; gap: 6px; }
  .audgrid .stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
  .audgrid .stat strong { font-size: 26px; margin: 0; }
}

/* divider between the Telegram code and the seller code */
.rule { width: 100%; height: 1px; background: var(--hair); margin: 2px 0; }

/* bonus expiry line on the card: highlighted in the last 30 days */
.note.soon { color: var(--accent); }

/* profile: the round button in the header, the list of settings */
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none;
  border: 1px solid rgba(194,164,110,.55); background: rgba(194,164,110,.08); color: var(--accent); font: 500 16px var(--serif); letter-spacing: 0; }
.avatar.big { width: 76px; height: 76px; font-size: 32px; margin: 0 auto; }
/* the client's own photo instead of the letters */
.avatar.pic { overflow: hidden; padding: 0; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
button.avatar { cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
.avatar.big { width: 96px; height: 96px; }
.photo-acts { display: flex; gap: 18px; justify-content: center; margin: 0; }
.langpill { flex: none; padding: 7px 12px; border: 1px solid var(--hair); border-radius: 999px; color: var(--soft); font-size: 11px; letter-spacing: .16em; text-decoration: none; }
.plist { border: 1px solid var(--hair); background: var(--panel); }
.prow { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 56px; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--hair);
  background: none; color: var(--fg); font: inherit; font-size: 16px; text-align: start; text-decoration: none; cursor: pointer; }
.prow:last-child { border-bottom: 0; }
div.prow { cursor: default; }
.prow .v { color: var(--muted); white-space: nowrap; }
.prow.bad { color: #E08A7A; }
.pv { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pv small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pv b { font-weight: 500; font-size: 17px; }
.pv span { font-size: 13px; color: var(--muted); }
#pushbox:empty { display: none; }

/* membership levels: a faceted gem per level and the progress to the next one */
.gem { display: inline-block; width: 18px; height: 16px; vertical-align: -2px; clip-path: polygon(50% 100%, 0 38%, 22% 0, 78% 0, 100% 38%); }
.gem.g1 { background: linear-gradient(135deg, #9DB8FF 0%, #3D63D6 45%, #1B3A9A 100%); }
.gem.g2 { background: linear-gradient(135deg, #8EF0C0 0%, #14A05C 45%, #07582F 100%); }
.gem.g3 { background: linear-gradient(135deg, #FF9CB0 0%, #D21F4A 45%, #7A0C25 100%); }
.gem.g4 { background: linear-gradient(135deg, #FFFFFF 0%, #DDE6EE 40%, #9FB2C2 70%, #F4F8FB 100%); }
.tierbox { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--hair); background: var(--panel); text-decoration: none; color: var(--fg); }
.tierbox.t1 { border-color: rgba(61,99,214,.45); } .tierbox.t2 { border-color: rgba(20,160,92,.45); } .tierbox.t3 { border-color: rgba(210,31,74,.45); } .tierbox.t4 { border-color: rgba(221,230,238,.6); }
.tb-head { display: flex; align-items: center; gap: 10px; }
.tb-head .gem { width: 22px; height: 20px; }
.tb-head b { font: 500 20px var(--serif); }
.tb-pct { margin-inline-start: auto; font-size: 13px; color: var(--soft); text-align: end; }
.tb-bar { height: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.tb-bar i { display: block; height: 100%; background: var(--gold); }
.tierbox .small { color: var(--muted); }
.tierrow .tpct { font: 500 22px var(--serif); color: var(--soft); }
.tierrow.mine { background: rgba(194,164,110,.07); }
.tierrow.mine .tpct { color: var(--accent); }
.tierrow .pv b { display: flex; align-items: center; gap: 8px; }

/* rating of a visit (client card) and the boutique's list of ratings */
.rev .rev-t { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; }
.stars { display: flex; justify-content: center; gap: 4px; direction: ltr; }
.star { width: 52px; height: 52px; padding: 0; border: 0; background: none; color: rgba(236,230,220,.24); font-size: 36px; line-height: 1; cursor: pointer; transition: color .15s, transform .15s; }
.stars:hover .star { color: var(--accent); }
.stars .star:hover ~ .star { color: rgba(236,230,220,.24); }
.star:active { transform: scale(.92); }
.star:disabled { cursor: default; }
.stars.shown { justify-content: flex-start; gap: 2px; font-size: 22px; color: var(--hair); }
html[dir="rtl"] .stars.shown { justify-content: flex-end; }
.stars.shown i { font-style: normal; }
.stars.shown i.on, .st5 { color: var(--accent); }
.rev textarea { font-size: 16px; }
.st5 { letter-spacing: 1px; white-space: nowrap; }
.distrow { display: grid; grid-template-columns: 34px 1fr 40px; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
.distrow i { display: block; height: 6px; background: var(--panel2); }
.distrow b { display: block; height: 100%; background: var(--accent); }
.distrow .n { text-align: end; font-variant-numeric: tabular-nums; }
.t tr.lo td { background: rgba(224,138,122,.07); }
.t td.cm { max-width: 340px; color: var(--fg); }

/* the card takes the colour of the membership level (gemstone) */
.mcard .mc-tier { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: -4px -2px 0 0; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg); }
.mcard .mc-tier span { opacity: .9; margin-inline-end: -.26em; }
.mcard .gemsvg { width: clamp(64px, 22vw, 92px); height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.mcard.lv1 { background: repeating-radial-gradient(circle at 110% -10%, rgba(194,164,110,.07) 0 1px, transparent 1px 7px), radial-gradient(120% 140% at 0% 0%, #3A5089 0%, #1D2C55 48%, #0E1631 100%); }
.mcard.lv2 { background: repeating-radial-gradient(circle at 110% -10%, rgba(194,164,110,.07) 0 1px, transparent 1px 7px), radial-gradient(120% 140% at 0% 0%, #2E8550 0%, #17492B 48%, #0A2415 100%); }
.mcard.lv3 { background: repeating-radial-gradient(circle at 110% -10%, rgba(194,164,110,.07) 0 1px, transparent 1px 7px), radial-gradient(120% 140% at 0% 0%, #9A2335 0%, #5C111D 48%, #2A060C 100%); }
/* a soft gold light passes over the coloured cards now and then (the diamond card has its own) */
.mcard.lv1::after, .mcard.lv2::after, .mcard.lv3::after { background: linear-gradient(105deg, rgba(214,170,84,0) 42%, rgba(214,170,84,.01) 47%, rgba(246,214,140,.035) 50%, rgba(214,170,84,.008) 53%, rgba(214,170,84,0) 58%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0; animation: em-shine 7s ease-in-out 2s infinite; }
/* everything gold on the card plays with light all the time: the emblem, the wordmark, "Astana Club" and the frame,
   each with its own slow drift, like polished metal turning in the hand */
.mcard .mc-logo i, .mcard .mc-logo b { background: linear-gradient(115deg, #6B4E1E 0%, #C9A257 14%, #FFF8E2 23%, #B08636 34%, #7A5A24 44%, #E6C985 56%, #FFF5DA 64%, #9C7A3C 76%, #F3DCA4 88%, #6B4E1E 100%);
  background-size: 320% 100%; animation: em-flow 4.6s ease-in-out infinite alternate, em-glow 4.6s ease-in-out infinite alternate; }
.mcard .mc-logo b { animation-duration: 5.4s, 5.4s; animation-delay: -1.8s, -1.8s; }
@keyframes em-glow { from { filter: drop-shadow(0 0 0 rgba(255,226,160,0)); } to { filter: drop-shadow(0 0 5px rgba(255,226,160,.45)); } }
.mcard:not(.lv4) .mc-club { background: linear-gradient(115deg, #8E6A2C 0%, #D9B66C 18%, #FFF8E2 28%, #A8843F 42%, #E6C985 58%, #FFF5DA 68%, #8E6A2C 100%); background-size: 320% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: em-flow 5s ease-in-out -2.6s infinite alternate; }
.mcard:not(.lv4)::before { border: 1px solid transparent;
  background: linear-gradient(120deg, rgba(150,114,48,.4) 0%, rgba(255,236,190,1) 14%, rgba(150,114,48,.25) 30%, rgba(255,244,214,1) 48%, rgba(150,114,48,.28) 66%, rgba(240,214,160,.95) 84%, rgba(150,114,48,.4) 100%) border-box;
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  animation: em-flow 6s ease-in-out infinite alternate; }
@keyframes em-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.mcard.lv4 { color: #15181C;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, rgba(0,0,0,.025) 1px 2px, rgba(255,255,255,0) 2px 3px),
              linear-gradient(125deg, #FBFCFE 0%, #DCE3EA 20%, #AFBAC6 42%, #F3F6F9 58%, #C2CCD6 78%, #EEF2F6 100%);
  box-shadow: 0 26px 60px rgba(0,0,0,.6), 0 0 46px rgba(190,215,255,.14), inset 0 0 0 1px rgba(255,255,255,.75), inset 0 -2px 6px rgba(70,90,110,.18); }
.mcard.lv4::before { border: 1px solid rgba(160,128,62,.6); box-shadow: inset 0 0 0 3px rgba(255,255,255,.45), inset 0 0 0 4px rgba(160,128,62,.28); }
.mcard.lv4::after { background: linear-gradient(105deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.7) 49%, rgba(225,240,255,.35) 53%, rgba(255,255,255,0) 62%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0; animation: em-shine 7s ease-in-out 1.2s infinite; mix-blend-mode: soft-light; }
@keyframes em-shine { 0% { background-position: 160% 0; } 38%, 100% { background-position: -60% 0; } }
.mcard.lv4 .mc-bal small, .mcard.lv4 .mc-bot { color: #4A525B; }
.mcard.lv4 .mc-bal strong { color: #121418; text-shadow: 0 1px 0 rgba(255,255,255,.85), 0 -1px 0 rgba(60,70,80,.18); }
.mcard.lv4 .mc-bot .num { color: #15181C; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.mcard.lv4 .mc-club { color: #8A6C2E; }
.mcard.lv4 .mc-logo i, .mcard.lv4 .mc-logo b { background: linear-gradient(115deg, #4E3810 0%, #B8954E 16%, #FCE7B4 25%, #9C762E 38%, #5E4416 48%, #E2C68A 60%, #FFF0C8 68%, #7A5A20 80%, #C9A660 90%, #4E3810 100%); background-size: 320% 100%; }
.mcard.lv4 .mc-tier span { background: linear-gradient(115deg, #6E5320 0%, #C9A660 40%, #EED6A0 52%, #8E6C2C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; opacity: 1; }
.mcard.lv4 .gemsvg { width: clamp(78px, 26vw, 112px); filter: drop-shadow(0 6px 10px rgba(40,55,70,.38)) drop-shadow(0 0 10px rgba(255,255,255,.6)); }
.mcard .gl { opacity: 0; animation: em-gl 5.4s ease-in-out infinite; mix-blend-mode: screen; }
/* the stone turning in the light */
.gemsvg .fl, .gemsvg .fd { opacity: 0; pointer-events: none; }
.mcard .gemsvg .turn { transform-box: fill-box; transform-origin: 50% 50%; animation: em-turn 3.6s ease-in-out infinite; }
.mcard .gemsvg .fl { animation: em-fl 3.6s linear infinite; }
.mcard .gemsvg .fd { animation: em-fd 3.6s linear infinite; }
.mcard.lv4 .gemsvg .fd { animation-name: em-fd4; }
@keyframes em-turn { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.9); } }
@keyframes em-fl { 0%, 36%, 100% { opacity: 0; } 16% { opacity: .55; } }
@keyframes em-fd { 0%, 40%, 100% { opacity: 0; } 20% { opacity: .3; } }
@keyframes em-fd4 { 0%, 40%, 100% { opacity: 0; } 20% { opacity: .16; } }
@keyframes em-gl { 0%, 62%, 100% { opacity: 0; } 72% { opacity: .75; } 82% { opacity: .1; } }
@media (prefers-reduced-motion: reduce) { .mcard::after, .mcard::before, .mcard .mc-logo i, .mcard .mc-logo b, .mcard .mc-club { animation: none !important; } .mcard .gl { animation: none; opacity: 0; } .mcard .gemsvg .turn, .mcard .gemsvg .fl, .mcard .gemsvg .fd { animation: none; } }

/* boutique app: the client's level as a gemstone next to the name */
.gemi { display: inline-block; width: 24px; height: 20px; margin-inline-start: 8px; vertical-align: -3px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }
.h2 .gemi { width: 32px; height: 26px; vertical-align: -2px; margin-inline-start: 10px; }

/* two letters in the avatar (name + surname) */
.avatar { letter-spacing: .02em; }
.avatar:not(.big) { font-size: 15px; }
.avatar.big { font-size: 30px; letter-spacing: .04em; }

/* ---------- catalog, cart and orders ---------- */
.top-r { display: flex; align-items: center; gap: 10px; flex: none; }
.cartbtn { position: relative; flex: none; width: 38px; height: 38px; border: 1px solid var(--hair); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--fg); text-decoration: none; }
.cartbtn b { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 600; line-height: 19px; text-align: center; }
.shopbox { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border: 1px solid rgba(194,164,110,.55); background: var(--panel); text-decoration: none; }
.shopbox b { display: block; font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.15; }
.shopbox small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.shopbox .v { flex: none; color: var(--accent); font-size: 20px; }
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel); border: 1px solid var(--hair); text-decoration: none; }
.cat img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cat i { position: absolute; inset: 0; background: var(--gold); opacity: .18; }
.cat span { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px; padding: 34px 12px 12px; background: linear-gradient(rgba(13,12,11,0), rgba(13,12,11,.9)); }
.cat b { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.1; color: #fff; }
.cat small { font-size: 12px; color: var(--soft); }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; text-decoration: none; }
.pcard img, .pcard i { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--panel); }
.pcard b { font-weight: 500; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.pp { font-size: 14px; color: var(--accent); white-space: nowrap; }
.pvid { position: absolute; top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(13,12,11,.62); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.item-book { margin-inline: -18px; }
.book-page video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #000; }
.price { margin: 0; font-size: 22px; color: var(--accent); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sz { min-width: 54px; min-height: 46px; padding: 0 12px; border: 1px solid var(--hair); background: none; font-size: 15px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sz.on { border-color: var(--accent); background: rgba(194,164,110,.14); color: var(--accent); }
.clist { border-top: 1px solid var(--hair); }
.crow { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.crow img, .crow i { display: block; width: 72px; height: 90px; object-fit: cover; background: var(--panel); }
.crow .ct { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.crow .ct b { font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.crow-b { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--hair); }
.qty button { width: 38px; height: 36px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.qty span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.ctot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 18px; }
.ctot b { color: var(--accent); font-weight: 600; }
.cosum { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--hair); background: var(--panel); cursor: pointer; }
.opt input { margin-top: 4px; accent-color: #C2A46E; flex: none; }
.opt b { display: block; font-weight: 500; }
.opt small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.opt:has(input:checked) { border-color: var(--accent); }
.ochip { display: inline-block; padding: 3px 10px; border: 1px solid var(--hair); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.ochip.s-new, .ochip.s-await_pay { border-color: rgba(194,164,110,.6); color: var(--accent); }
.ochip.s-paid, .ochip.s-sent, .ochip.s-ready { border-color: rgba(143,191,154,.5); color: var(--ok); }
.ochip.s-cancelled { color: var(--muted); }
.orow .pv { min-width: 0; }
.unb { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; vertical-align: 2px; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; background: var(--panel2); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: rgba(194,164,110,.16); border-end-end-radius: 4px; }
.msg.them { align-self: flex-start; border-end-start-radius: 4px; }
.msg small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); white-space: normal; }
.chatf { display: flex; gap: 8px; align-items: flex-end; }
.chatf textarea { flex: 1; min-width: 0; min-height: 52px; padding: 12px 14px; border: 1px solid var(--hair); background: var(--panel); border-radius: 0; font-size: 16px; resize: vertical; }
.chatf textarea:focus { outline: none; border-color: var(--accent); }
.chatf .btn { min-height: 52px; }
/* Club Pro: catalog and orders */
.stgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 12px; }
.stp { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; text-align: start; cursor: pointer; min-width: 0; }
.stp img, .stp i { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--panel); }
.stp.off img { opacity: .4; }
.stp b { font-weight: 500; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.stp small { font-size: 12px; color: var(--muted); }
.stfiles { display: flex; flex-wrap: wrap; gap: 10px; }
.stfile { position: relative; width: 96px; }
.stfile img, .stfile video { display: block; width: 96px; height: 120px; object-fit: cover; background: #000; }
.stfile span { display: flex; justify-content: space-between; gap: 4px; margin-top: 4px; font-size: 12px; }
.stfile .cv { position: absolute; top: 4px; inset-inline-start: 4px; padding: 1px 6px; background: rgba(13,12,11,.7); color: var(--accent); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.szset { display: flex; flex-wrap: wrap; gap: 6px; }
.szset button { min-width: 48px; min-height: 40px; padding: 0 10px; border: 1px solid var(--hair); background: none; font-size: 14px; cursor: pointer; }
.szset button[aria-pressed="true"] { border-color: var(--accent); background: rgba(194,164,110,.16); color: var(--accent); }
.oli { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); cursor: pointer; }
.oli .t { font-size: 15px; }
.oli .s { font-size: 13px; color: var(--muted); }
.ostbtns { display: flex; flex-wrap: wrap; gap: 8px; }
/* Club Pro: product from the label's barcode */
.lkbox { padding: 14px; border: 1px solid var(--hair); }
.lkbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.bscan .bview { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.bscan .bview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.baim { position: absolute; left: 7%; right: 7%; top: 50%; height: 30%; transform: translateY(-50%); border: 2px solid rgba(255,255,255,.85); border-radius: 8px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.38); pointer-events: none; }
.baim::after { content: ""; position: absolute; left: 4%; right: 4%; top: 50%; height: 2px; background: #E0584A; }
.bscan .bar { flex-wrap: wrap; gap: 10px; padding: 14px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.bscan .bar .small { flex: 1 1 220px; min-width: 0; color: #E9E4DA; }
.bbtns { display: flex; gap: 8px; flex-wrap: wrap; }
/* who a post or a gift is for: membership levels */
.tierpick { border: 1px solid var(--hair); margin: 0; padding: 12px 14px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.tierpick legend { padding: 0 6px; }
.tierpick .check { align-items: center; color: var(--fg); }
@media (max-width: 520px) { .tierpick { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .row2.m1 { grid-template-columns: minmax(0, 1fr); } }
/* charts of the summary */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .charts { grid-template-columns: minmax(0, 1fr); } }
.chart { gap: 10px; min-width: 0; }
.chart > svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .cg { stroke: var(--hair); stroke-width: 1; }
.chart .cy, .chart .cx { fill: var(--soft); font-size: 15px; font-family: inherit; }
.chart .cy { text-anchor: end; }
.chart .cx { text-anchor: middle; }
.chart rect:hover { opacity: .75; }
.lgs { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--soft); }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg i { width: 10px; height: 10px; display: inline-block; }
.lg b { color: var(--fg); font-weight: 600; }
.shr { display: grid; gap: 10px; }
.shrow { display: grid; grid-template-columns: minmax(110px, 10rem) minmax(0, 1fr) auto 3rem; gap: 10px; align-items: center; font-size: 14px; }
.shrow .small { text-align: right; }
.shrow .gemi { margin-inline-start: 0; margin-inline-end: 6px; }
.shbar { height: 10px; background: var(--hair); position: relative; }
.shbar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.row3 > * { min-width: 0; }
@media (max-width: 520px) { .row3.m1 { grid-template-columns: minmax(0, 1fr); } }
/* «Приведи друга» */
a.panel.invite { display: grid; gap: 6px; text-decoration: none; color: var(--fg); border-color: rgba(194,164,110,.55); }
a.panel.invite b { font-weight: 600; }
.refcode { font-size: 34px; letter-spacing: .22em; font-weight: 600; color: var(--accent); }
/* the hidden level: Black Diamond */
.gem.g5 { background: linear-gradient(135deg, #8C877C 0%, #2A2824 45%, #0B0A09 75%, #5A564E 100%); }
.tierbox.t5 { border-color: rgba(194,164,110,.7); }
.mcard.lv5 { background: repeating-radial-gradient(circle at 110% -10%, rgba(194,164,110,.09) 0 1px, transparent 1px 7px), radial-gradient(120% 140% at 0% 0%, #34312B 0%, #151412 50%, #050505 100%); }
.mcard.lv5::before { border: 1px solid rgba(214,182,110,.75); box-shadow: inset 0 0 0 3px rgba(0,0,0,.6), inset 0 0 0 4px rgba(214,182,110,.35); }
/* a new level: the celebration */
.lvlup { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); background: rgba(8,7,6,.0); transition: background .4s ease; }
.lvlup.on { background: rgba(8,7,6,.86); }
.lu-box { position: relative; width: min(360px, 100%); display: grid; gap: 12px; justify-items: center; text-align: center; padding: 30px 22px 24px; background: var(--panel, #161412); border: 1px solid rgba(194,164,110,.6); transform: scale(.85); opacity: 0; transition: transform .5s cubic-bezier(.2,1.4,.4,1), opacity .35s ease; }
.lvlup.on .lu-box { transform: none; opacity: 1; }
.lu-gem { width: 120px; position: relative; z-index: 1; animation: lu-spin 1.1s cubic-bezier(.2,1.3,.4,1) both .15s; filter: drop-shadow(0 0 18px rgba(232,206,150,.55)); }
.lu-gem svg { width: 100%; height: auto; display: block; }
.lu-rays { position: absolute; top: 72px; left: 50%; width: 0; height: 0; }
.lu-rays i { position: absolute; left: 0; top: 0; width: 3px; height: 3px; border-radius: 50%; background: #E9D29A; box-shadow: 0 0 8px #E9D29A; transform: rotate(var(--a)) translateY(0); opacity: 0; animation: lu-burst 1.4s ease-out var(--d) both; }
@keyframes lu-burst { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.5); } 15% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-150px) scale(1.4); } }
@keyframes lu-spin { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lu-gem, .lu-rays i { animation: none; } .lu-rays { display: none; } .lu-box { transition: none; } }
.lu-gem .gl { opacity: 0; animation: em-gl 5.4s ease-in-out infinite; mix-blend-mode: screen; }
.lu-gem .gemsvg .turn { transform-box: fill-box; transform-origin: 50% 50%; animation: em-turn 3.6s ease-in-out infinite; }
.lu-gem .gemsvg .fl { animation: em-fl 3.6s linear infinite; }
.lu-gem .gemsvg .fd { animation: em-fd 3.6s linear infinite; }
.lvlup.lv4 .lu-gem .gemsvg .fd { animation-name: em-fd4; }
@media (prefers-reduced-motion: reduce) { .lu-gem .gl { animation: none; } .lu-gem .gemsvg .turn, .lu-gem .gemsvg .fl, .lu-gem .gemsvg .fd { animation: none; } }
/* «Бонусы ×2» on the client's card */
.panel.promo { display: flex; align-items: center; gap: 14px; border-color: rgba(194,164,110,.7); background: linear-gradient(120deg, rgba(194,164,110,.16), rgba(194,164,110,.04) 60%), var(--panel); }
.pmx { flex: none; font: 500 40px/1 var(--serif); color: var(--accent); background: var(--gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* welcome screen: the big «Вступить в клуб» button, first on the screen */
.btn-hero { position: relative; overflow: hidden; flex-direction: column; gap: 6px; min-height: 92px; padding: 16px 22px;
  box-shadow: 0 12px 34px rgba(194,164,110,.30), inset 0 0 0 1px rgba(255,240,205,.45); }
.btn-hero .bh-main { display: inline-flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 800; letter-spacing: .16em; }
.btn-hero .bh-arr { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: bh-nudge 2.4s ease-in-out infinite; }
.btn-hero .bh-sub { font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: none; opacity: .8; }
.btn-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, rgba(255,255,255,0) 36%, rgba(255,250,232,.6) 50%, rgba(255,255,255,0) 64%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0; animation: em-shine 5s ease-in-out 1s infinite; }
.btn-hero:active { transform: scale(.985); }
html[dir="rtl"] .btn-hero .bh-arr { transform: scaleX(-1); animation-name: bh-nudge-rtl; }
@keyframes bh-nudge { 0%, 55%, 100% { translate: 0 0; } 28% { translate: 6px 0; } }
@keyframes bh-nudge-rtl { 0%, 55%, 100% { translate: 0 0; } 28% { translate: -6px 0; } }
@media (prefers-reduced-motion: reduce) { .btn-hero::after, .btn-hero .bh-arr { animation: none; } }

/* card screen: two big actions — «Копить бонусы» (card QR for the cashier) and «Оплатить бонусами» */
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acts.one { grid-template-columns: 1fr; }
.act { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 136px; padding: 16px 12px; border: 0; border-radius: 0;
  background: var(--gold); color: #1A140A; font: inherit; text-align: center; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 10px 28px rgba(194,164,110,.22), inset 0 0 0 1px rgba(255,240,205,.45); transition: transform .12s, filter .2s; }
.act:hover { color: #1A140A; filter: brightness(1.06); }
.act:active { transform: scale(.98); }
.act svg { width: 34px; height: 34px; margin-bottom: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.act b { font-size: 16px; font-weight: 800; line-height: 1.2; }
.act span { font-size: 12.5px; font-weight: 600; line-height: 1.3; opacity: .78; }
.acts.one .act { min-height: 104px; }
