/* Приложение Proxima. Палитра и типографика по BRANDBOOK.md:
   чёрный #07070D, Proxima Violet #5D36DE, свечение #B491FF, заголовки Squartiqa 4F
   капсом с разрядкой, текст Manrope. Собрано под iPhone (safe-area, standalone). */

@font-face {
  font-family: 'Squartiqa 4F';
  src: url('./fonts/Squartiqa4F.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Squartiqa 4F';
  src: url('./fonts/Squartiqa4FLight.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('./fonts/Manrope.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --bg: #07070D;
  --surface: #0E0E18;
  --surface-2: #13131F;
  --line: #23233A;
  --violet: #5D36DE;
  --deep: #4A2DAD;
  --glow: #B491FF;
  --text: #F4F2FA;
  --muted: #8A8A96;
  --ok: #34E0A1;
  --warn: #FFC24B;
  --err: #FF5C72;
  --font-display: 'Squartiqa 4F', 'Tektur', 'Manrope', sans-serif;
  --font-body: 'Manrope', -apple-system, 'Inter', sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', Menlo, monospace;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --gutter: 20px;
  --tabbar: 64px;
  --radius: 16px;
  --neon: 0 0 0 1px rgba(93, 54, 222, .45), 0 0 28px rgba(93, 54, 222, .22);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  overscroll-behavior: none; overflow: hidden;
  touch-action: manipulation;
}
body { position: fixed; top: 0; right: 0; bottom: 0; left: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--glow); text-decoration: none; }
img { display: block; max-width: 100%; }
.app, .screen * { user-select: none; -webkit-user-select: none; }
.selectable, .selectable * { user-select: text; -webkit-user-select: text; }

/* фон: неон-блики, как залитые фиолетом стены клуба */
.bg {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 40% at 15% -5%, rgba(93, 54, 222, .35), transparent 70%),
    radial-gradient(50% 35% at 110% 25%, rgba(74, 45, 173, .22), transparent 70%),
    radial-gradient(80% 45% at 50% 110%, rgba(93, 54, 222, .26), transparent 70%),
    var(--bg);
}

.app { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; display: flex; flex-direction: column; }
/* высоту окна ставит app.js (--vh): iOS 26 занижает её на статус-бар, см. fixViewport */
.app, .bg { height: var(--vh, 100%); bottom: auto; }
html, body { background: var(--bg); }

.screen {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(var(--sat) + 14px) var(--gutter) calc(var(--sab) + var(--tabbar) + 24px);
}
.screen--in { animation: screen-in .22s ease-out both; }
.screen--notabs { padding-bottom: calc(var(--sab) + 28px); }
.screen--center {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 18px; padding-bottom: calc(var(--sab) + 28px);
}
@keyframes screen-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen--in { animation: none; } }

/* --- типографика --- */
.display {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .06em; line-height: 1.1; margin: 0; overflow-wrap: break-word;
}
.h1 { font-size: clamp(22px, 8.2vw, 30px); }
.h2 { font-size: 22px; }
.h3 { font-size: 17px; letter-spacing: .08em; }
.eyebrow {
  font-family: var(--font-display); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
}
.eyebrow--glow { color: var(--glow); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.caption { font-size: 12px; line-height: 1.4; }
.glow-text { text-shadow: 0 0 18px rgba(180, 145, 255, .55); }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
p { margin: 0 0 10px; }

/* --- шапка экрана --- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 36px; margin-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 26px; height: auto; filter: drop-shadow(0 0 10px rgba(93, 54, 222, .7)); }
.brand span {
  font-family: var(--font-display); font-size: 13px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text);
}
.iconbtn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(14, 14, 24, .7); display: inline-flex; align-items: center;
  justify-content: center; color: var(--text); padding: 0;
}
.iconbtn:active { background: var(--surface-2); }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn--spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.greet { margin: 6px 0 18px; }
.greet .name { font-size: 28px; font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.greet .sub { color: var(--muted); margin: 4px 0 0; }

/* --- карточки --- */
.card {
  background: linear-gradient(180deg, rgba(20, 20, 34, .92), rgba(14, 14, 24, .92));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; position: relative;
}
.card--neon { border-color: rgba(93, 54, 222, .55); box-shadow: var(--neon); }
.card--hero { padding: 22px 20px 20px; overflow: hidden; }
.card--hero::before {
  content: ''; position: absolute; top: -40%; right: -20%; bottom: auto; left: -20%; height: 120%;
  background: radial-gradient(55% 60% at 80% 10%, rgba(93, 54, 222, .35), transparent 70%);
  pointer-events: none;
}
.card > * { position: relative; }
.card--flat { background: var(--surface); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

.rank { font-size: clamp(26px, 9.4vw, 38px); margin: 2px 0 10px; }
.fit { white-space: nowrap; overflow-wrap: normal; overflow: hidden; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(93, 54, 222, .18); color: var(--glow); font-weight: 600; font-size: 14px;
  border: 1px solid rgba(180, 145, 255, .25);
}
.pill--ok { background: rgba(52, 224, 161, .14); color: var(--ok); border-color: rgba(52, 224, 161, .3); }
.pill--warn { background: rgba(255, 194, 75, .14); color: var(--warn); border-color: rgba(255, 194, 75, .3); }
.pill--muted { background: rgba(138, 138, 150, .12); color: var(--muted); border-color: var(--line); }

.progress { margin-top: 16px; }
.progress-track {
  height: 8px; border-radius: 999px; background: #181828; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(35, 35, 58, .9);
}
.progress-fill {
  height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, var(--deep), var(--violet) 55%, var(--glow));
  box-shadow: 0 0 14px rgba(180, 145, 255, .6);
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
.progress-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.progress-meta b { color: var(--text); font-weight: 600; }

/* плитки значений */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 12px 12px; min-height: 86px;
}
.tile .label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--font-display); }
.tile .value { font-family: var(--font-display); font-size: 22px; margin-top: 8px; line-height: 1.1; white-space: nowrap; }
.tile .value small { font-size: 13px; color: var(--muted); font-family: var(--font-body); font-weight: 600; margin-left: 2px; }
.tile--accent { border-color: rgba(93, 54, 222, .5); background: linear-gradient(160deg, rgba(93, 54, 222, .22), rgba(14, 14, 24, .9)); }
.tile--accent .value { color: var(--glow); text-shadow: 0 0 14px rgba(180, 145, 255, .45); }
.tiles-hint { margin: -6px 0 16px; color: var(--muted); font-size: 12px; }

.skeleton {
  display: inline-block; min-width: 64px; height: 1em; border-radius: 6px;
  background: linear-gradient(90deg, #15152a 25%, #22223a 50%, #15152a 75%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite; vertical-align: middle;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* программа новичка: 5 шагов */
.steps { display: flex; align-items: center; gap: 6px; margin: 14px 0 10px; }
.step {
  flex: 1; height: 6px; border-radius: 999px; background: #181828; position: relative;
  box-shadow: inset 0 0 0 1px rgba(35, 35, 58, .9);
}
.step--done { background: linear-gradient(90deg, var(--deep), var(--violet)); box-shadow: 0 0 10px rgba(93, 54, 222, .55); }
.step--now { background: rgba(93, 54, 222, .35); box-shadow: 0 0 0 1px var(--violet); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 1px var(--violet), 0 0 14px rgba(180, 145, 255, .6); } }

/* кнопки */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 54px; padding: 12px 18px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-align: center; color: var(--text);
  background: var(--surface-2); transition: transform .08s ease, filter .12s ease;
}
.btn:active { transform: scale(.985); filter: brightness(1.08); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--primary {
  background: linear-gradient(135deg, var(--deep), var(--violet) 60%, #7A52F0);
  box-shadow: 0 10px 30px rgba(93, 54, 222, .35), 0 0 0 1px rgba(180, 145, 255, .25);
}
.btn--ghost { background: rgba(14, 14, 24, .7); border-color: var(--line); }
.btn--small { min-height: 44px; font-size: 15px; width: auto; padding: 8px 16px; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.link-btn { background: none; border: 0; color: var(--glow); font-weight: 600; padding: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.link-btn svg { width: 16px; height: 16px; flex: none; }

/* список действий */
.menu { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.menu-item {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text);
}
.menu-item:active { background: var(--surface-2); }
.menu-item .ico {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center;
  justify-content: center; background: rgba(93, 54, 222, .16); color: var(--glow);
}
.menu-item .ico svg { width: 20px; height: 20px; }
.menu-item .txt { flex: 1; min-width: 0; }
.menu-item .txt b { display: block; font-weight: 700; }
.menu-item .txt span { display: block; color: var(--muted); font-size: 13px; }
.menu-item .chev { color: var(--muted); flex: none; }
.menu-item .chev svg { width: 18px; height: 18px; }

/* ТОП */
.me-place { display: flex; align-items: baseline; gap: 8px; }
.me-place .big { font-size: 40px; }
.me-place .of { color: var(--muted); font-size: 15px; }
.lb { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
}
.lb-row .pos { font-family: var(--font-display); font-size: 20px; color: var(--muted); text-align: center; }
.lb-row--1 .pos { color: #FFD66B; text-shadow: 0 0 12px rgba(255, 214, 107, .6); }
.lb-row--2 .pos { color: #E2E2F0; text-shadow: 0 0 12px rgba(226, 226, 240, .5); }
.lb-row--3 .pos { color: #E0A370; text-shadow: 0 0 12px rgba(224, 163, 112, .5); }
.lb-row .who { font-weight: 700; font-size: 15px; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .who span { display: block; font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.lb-row .val { font-family: var(--font-display); font-size: 18px; white-space: nowrap; }
.lb-row .val small { font-family: var(--font-body); color: var(--muted); font-size: 12px; font-weight: 600; margin-left: 3px; }
.lb-row--me { border-color: rgba(93, 54, 222, .6); box-shadow: var(--neon); background: linear-gradient(160deg, rgba(93, 54, 222, .22), rgba(14, 14, 24, .9)); }
.lb-row--me .who { color: var(--glow); }

/* формы */
.field { margin-bottom: 12px; }
.input {
  width: 100%; min-height: 54px; border-radius: 14px; border: 1px solid var(--line);
  background: #0B0B14; color: var(--text); padding: 12px 16px; font-size: 18px;
  font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; outline: none;
}
.input::placeholder { color: #4A4A5C; letter-spacing: .04em; text-transform: none; font-family: var(--font-body); }
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(93, 54, 222, .25); }
.note { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-top: 12px; }
.note--ok { background: rgba(52, 224, 161, .12); color: var(--ok); border: 1px solid rgba(52, 224, 161, .3); }
.note--err { background: rgba(255, 92, 114, .12); color: var(--err); border: 1px solid rgba(255, 92, 114, .3); }
.code-box {
  font-family: var(--font-mono); font-size: 13px; background: #0B0B14; border: 1px dashed var(--line);
  border-radius: 12px; padding: 12px 14px; color: var(--glow); word-break: break-all; margin-bottom: 12px;
}

/* таблица статусов */
.statuses { display: flex; flex-direction: column; gap: 8px; }
.status-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.status-row b { font-family: var(--font-display); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; }
.status-row .hrs { font-family: var(--font-display); color: var(--glow); font-size: 15px; text-align: right; }
.status-row .perks { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.status-row--me { border-color: rgba(93, 54, 222, .6); box-shadow: var(--neon); }
.status-row--me b { color: var(--glow); }

/* таббар */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 14px 8px calc(var(--sab) + 6px);
  background: linear-gradient(180deg, rgba(7, 7, 13, 0) 0%, rgba(7, 7, 13, .78) 28%, rgba(7, 7, 13, .9) 100%);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 2px;
  background: none; border: 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .02em;
  border-radius: 12px;
}
.tab svg { width: 24px; height: 24px; }
.tab.is-active { color: var(--glow); }
.tab.is-active svg { filter: drop-shadow(0 0 8px rgba(180, 145, 255, .8)); }

/* экран входа и ожидания */
.hero-mark { width: 180px; height: auto; filter: drop-shadow(0 0 30px rgba(93, 54, 222, .75)); }
.hero-mark--small { width: 96px; }
.spinner {
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(93, 54, 222, .25);
  border-top-color: var(--glow); animation: spin .9s linear infinite;
  box-shadow: 0 0 20px rgba(93, 54, 222, .35);
}
.login-copy { max-width: 330px; color: var(--muted); margin: 0 auto; }
.login-actions { width: 100%; max-width: 360px; margin-top: 8px; }
.tg-ico { width: 22px; height: 22px; }
.wordmark { font-family: var(--font-display); letter-spacing: .3em; text-transform: uppercase; font-size: 13px; color: var(--glow); }

/* шаги инструкции (установка, регистрация) */
.howto { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 380px; text-align: left; }
.howto-step {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.howto-step .n {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center;
  background: rgba(93, 54, 222, .18); color: var(--glow); font-family: var(--font-display); font-size: 16px;
}
.howto-step .n svg { width: 20px; height: 20px; }
.howto-step p { margin: 0; }
.howto-step .cap { color: var(--muted); font-size: 13px; }
.kbd {
  display: inline-block; padding: 1px 7px; border-radius: 6px; background: #1A1A2E; border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; color: var(--text);
}

/* всплывашка */
.toast {
  position: absolute; left: 16px; right: 16px; bottom: calc(var(--sab) + var(--tabbar) + 14px); z-index: 10;
  padding: 12px 16px; border-radius: 14px; background: #1A1A2E; border: 1px solid var(--line);
  color: var(--text); font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  animation: toast-in .2s ease-out both; text-align: center;
}
.toast--ok { border-color: rgba(52, 224, 161, .4); }
.toast--err { border-color: rgba(255, 92, 114, .4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.offline-bar {
  margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; font-size: 13px;
  background: rgba(255, 194, 75, .12); color: var(--warn); border: 1px solid rgba(255, 194, 75, .3);
}

.footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 10px; }
.footer a { color: var(--muted); text-decoration: underline; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.spacer { height: 8px; }

@media (max-height: 700px) {
  .hero-mark { width: 130px; }
  .rank { font-size: 32px; }
}

/* узкие экраны (iPhone SE, mini): плотнее подписи плиток, перенос в строке прогресса */
@media (max-width: 389px) {
  :root { --gutter: 16px; }
  .tile { padding: 12px 10px 10px; }
  .tile .label { font-size: 10px; letter-spacing: .08em; }
  .tile .value { font-size: 20px; }
  .progress-meta { flex-wrap: wrap; }
  .h1 { font-size: 26px; }
}

/* --- переключатель языка (RU / VI / EN), справа сверху --- */
.topbar-right { display: flex; align-items: center; gap: 8px; }
.lang {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(14, 14, 24, .75); border: 1px solid var(--line);
}
.lang button {
  border: 0; background: none; color: var(--muted); font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 7px 9px; min-width: 36px;
  border-radius: 999px; line-height: 1;
}
.lang button.is-active {
  background: rgba(93, 54, 222, .38); color: var(--text);
  box-shadow: 0 0 0 1px rgba(180, 145, 255, .4), 0 0 12px rgba(93, 54, 222, .45);
}
.lang button:active { color: var(--text); }
.lang--floating { position: absolute; top: calc(var(--sat) + 14px); right: var(--gutter); z-index: 6; }

/* Вьетнамский: у Squartiqa 4F нет вьетнамских букв, заголовки капсом ведём на Manrope 800 */
html[lang="vi"] .display, html[lang="vi"] .eyebrow, html[lang="vi"] .tile .label,
html[lang="vi"] .status-row b, html[lang="vi"] .status-row .hrs, html[lang="vi"] .wordmark {
  font-family: var(--font-body); font-weight: 800; letter-spacing: .04em;
}
html[lang="vi"] .h1 { font-size: 27px; }
html[lang="vi"] .rank { font-size: 32px; }

/* ======== Путь, геймификация, шторки, пуши, демо ======== */

/* таббар на 5 вкладок */
.tabbar--5 { grid-template-columns: repeat(5, 1fr); }
.tabbar--5 .tab { font-size: 10.5px; padding: 6px 2px 2px; }

/* флаги в переключателе языка */
.lang button { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; min-width: 0; }
.lang .flag { font-size: 14px; line-height: 1; }

/* герой: кольцо прогресса и точки лестницы */
.hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero-row .grow { flex: 1; min-width: 0; }
.hero-row--wide .ring-btn { display: none; }
.ring-btn { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); flex: none; }
.ring-cap { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-display); white-space: nowrap; }
.ring { position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #181828; stroke-width: 6; }
.ring-fg { fill: none; stroke: url(#ringGrad), var(--glow); stroke: var(--glow); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(180, 145, 255, .8)); transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.ring-txt { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 17px; color: var(--text); }
.ring-txt small { font-size: 10px; color: var(--muted); margin-left: 1px; }
.ladder-dots { display: flex; gap: 5px; margin-top: 14px; }
.ladder-dots i { flex: 1; height: 4px; border-radius: 999px; background: #181828; box-shadow: inset 0 0 0 1px rgba(35, 35, 58, .9); }
.ladder-dots i.is-on { background: var(--violet); box-shadow: 0 0 8px rgba(93, 54, 222, .6); }
.ladder-dots i.is-me { background: var(--glow); box-shadow: 0 0 10px rgba(180, 145, 255, .9); }

/* неделя и серия */
.week-row { display: flex; align-items: center; gap: 12px; }
.week-row .ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(93, 54, 222, .16); color: var(--glow); }
.week-row .ico svg { width: 20px; height: 20px; }
.week-row .grow { flex: 1; min-width: 0; }
.streak-pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; flex: none; }
.streak-pill svg { width: 14px; height: 14px; }
.streak-pill.is-on { color: var(--warn); border-color: rgba(255, 194, 75, .4); background: rgba(255, 194, 75, .1); }
.week--hot { border-color: rgba(255, 194, 75, .3); }

/* следующий шаг на профиле */
.next-step { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; background: rgba(93, 54, 222, .14); border: 1px solid rgba(93, 54, 222, .45); color: var(--text); margin-bottom: 4px; }
.next-step .n { width: 34px; height: 34px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--violet); font-family: var(--font-display); font-size: 16px; box-shadow: 0 0 14px rgba(93, 54, 222, .6); }
.next-step .txt { flex: 1; min-width: 0; }
.next-step .txt b { display: block; margin-top: 2px; }
.next-step .reward { font-family: var(--font-display); color: var(--glow); font-size: 18px; text-shadow: 0 0 12px rgba(180, 145, 255, .5); }

/* достижения */
.badges-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
.badges-strip::-webkit-scrollbar { display: none; }
.badge { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); flex: none; width: 76px; }
.badge span { font-size: 11px; line-height: 1.2; text-align: center; color: var(--muted); font-weight: 600; }
.badge--sm { width: 68px; }
.badge-ico { position: relative; width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, rgba(93, 54, 222, .55), rgba(74, 45, 173, .35)); border: 1px solid rgba(180, 145, 255, .5); box-shadow: 0 0 18px rgba(93, 54, 222, .45); color: #fff; }
.badge-ico svg { width: 26px; height: 26px; }
.badge-ico i { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: #1A1A2E; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.badge-ico i svg { width: 11px; height: 11px; }
.badge--on span { color: var(--text); }
.badge--off .badge-ico { background: var(--surface); border-color: var(--line); box-shadow: none; color: #4A4A5C; filter: grayscale(1); }
.badge--sm .badge-ico { width: 50px; height: 50px; border-radius: 16px; }
.badge--sm .badge-ico svg { width: 22px; height: 22px; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
.badge-grid .badge { width: auto; }
.badge-hero { display: flex; justify-content: center; margin: 4px 0 14px; }
.badge-hero .badge-ico { width: 88px; height: 88px; border-radius: 28px; background: var(--surface); border-color: var(--line); box-shadow: none; color: #4A4A5C; }
.badge-hero .badge-ico svg { width: 40px; height: 40px; }
.badge-hero.is-on .badge-ico { background: linear-gradient(160deg, rgba(93, 54, 222, .7), rgba(74, 45, 173, .45)); border-color: rgba(180, 145, 255, .6); box-shadow: 0 0 34px rgba(93, 54, 222, .6); color: #fff; animation: pop .5s cubic-bezier(.2, 1.4, .3, 1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* история начислений */
.hist { display: flex; flex-direction: column; gap: 8px; }
.hist-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.hist-row .ico { width: 34px; height: 34px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(93, 54, 222, .14); color: var(--glow); }
.hist-row .ico svg { width: 17px; height: 17px; }
.hist-row .txt { flex: 1; min-width: 0; }
.hist-row .txt b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-row .txt span { display: block; font-size: 12px; color: var(--muted); }
.hist-row .val { font-family: var(--font-display); color: var(--ok); font-size: 16px; }

/* чипы разделов на вкладке «Путь» */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 14px; padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(14, 14, 24, .7); color: var(--muted); font-weight: 700; font-size: 13px; }
.chip.is-active { background: rgba(93, 54, 222, .3); color: var(--text); border-color: rgba(180, 145, 255, .45); box-shadow: 0 0 12px rgba(93, 54, 222, .35); }

/* таймлайн программы */
.timeline { position: relative; display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.timeline::before { content: ''; position: absolute; left: 25px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(180deg, var(--violet), #181828); opacity: .6; }
.tl-step { position: relative; display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.tl-node { width: 36px; height: 36px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 16px; background: #181828; color: var(--muted); box-shadow: inset 0 0 0 1px rgba(35, 35, 58, .9); position: relative; z-index: 1; }
.tl-node svg { width: 18px; height: 18px; }
.tl-step--done .tl-node { background: linear-gradient(135deg, var(--deep), var(--violet)); color: #fff; box-shadow: 0 0 14px rgba(93, 54, 222, .55); }
.tl-step--current { border-color: rgba(93, 54, 222, .6); box-shadow: var(--neon); }
.tl-step--current .tl-node { background: rgba(93, 54, 222, .35); color: var(--glow); box-shadow: 0 0 0 1px var(--violet); animation: pulse 1.6s ease-in-out infinite; }
.tl-step--locked { opacity: .75; }
.tl-body { flex: 1; min-width: 0; }
.tl-body p { margin: 4px 0 8px; }
.tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tl-head b { font-size: 15px; }
.tl-reward { font-family: var(--font-display); color: var(--glow); font-size: 16px; white-space: nowrap; }
.rules { margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: 14px; }
.rules li { margin-bottom: 6px; }
.rules li::marker { color: var(--glow); }

/* лестница статусов */
.ladder { display: flex; flex-direction: column; gap: 8px; }
.ladder-row { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.ladder-n { width: 32px; height: 32px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); background: #181828; color: var(--muted); }
.ladder-n svg { width: 16px; height: 16px; }
.ladder-row--on .ladder-n { background: rgba(93, 54, 222, .3); color: var(--glow); }
.ladder-row--me { border-color: rgba(93, 54, 222, .6); box-shadow: var(--neon); background: linear-gradient(160deg, rgba(93, 54, 222, .18), rgba(14, 14, 24, .9)); }
.ladder-row--me .ladder-n { background: var(--violet); color: #fff; }
.ladder-body { flex: 1; min-width: 0; }
.ladder-body b { font-family: var(--font-display); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; }
.ladder-body .hrs { font-family: var(--font-display); color: var(--glow); font-size: 14px; white-space: nowrap; }
.ladder-row .chev { color: var(--muted); flex: none; }
.ladder-row .chev svg { width: 18px; height: 18px; }
.status-row { text-align: left; color: var(--text); width: 100%; }
.ev-coins { font-family: var(--font-display); color: var(--ok); font-size: 15px; }
.menu-item--on .ico { background: rgba(52, 224, 161, .16); color: var(--ok); }
.menu-item--on .chev { color: var(--ok); }

/* шторка снизу */
.sheet-wrap { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 20; background: rgba(4, 4, 10, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-end; animation: fade-in .18s ease-out both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet { position: relative; width: 100%; max-height: 86%; overflow-y: auto; -webkit-overflow-scrolling: touch; background: linear-gradient(180deg, #15152A, #0E0E18); border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 14px var(--gutter) calc(var(--sab) + 22px); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); animation: sheet-in .26s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-handle { width: 40px; height: 4px; border-radius: 999px; background: var(--line); margin: 0 auto 16px; }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(14, 14, 24, .8); color: var(--muted); display: flex; align-items: center; justify-content: center; padding: 0; }
.sheet-x svg { width: 16px; height: 16px; }
.sheet .h2 { padding-right: 40px; }
.kv { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 14px; }
.kv > div { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(7, 7, 13, .5); border: 1px solid var(--line); }
.kv span { flex: none; min-width: 60px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--font-display); padding-top: 3px; }
.kv span svg { width: 16px; height: 16px; color: var(--glow); }
.kv b { font-weight: 600; font-size: 14px; }

/* образец сообщения бота: пузырь, как в Telegram */
.sample { position: relative; padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: #1A1A2E; border: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--text); white-space: normal; }
.sample-from { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--glow); font-weight: 700; margin-bottom: 6px; }
.sample-from img { width: 16px; height: auto; }

/* демо-плашка под шапкой */
.demo-bar { display: flex; align-items: center; gap: 8px; width: 100%; margin: -2px 0 12px; padding: 8px 12px; border-radius: 10px; border: 1px dashed rgba(255, 194, 75, .5); background: rgba(255, 194, 75, .08); color: var(--warn); font-size: 12px; text-align: left; }
.demo-bar svg { width: 16px; height: 16px; flex: none; }
.demo-bar b { letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-display); font-weight: 400; }
.demo-bar span { flex: 1; min-width: 0; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar em { font-style: normal; text-decoration: underline; }

/* конфетти в праздничной шторке */
.sheet-wrap--party .sheet { border-color: rgba(180, 145, 255, .45); box-shadow: 0 -20px 80px rgba(93, 54, 222, .35); }
.confetti { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; pointer-events: none; border-radius: 24px 24px 0 0; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: .95; animation: fall 2s ease-in forwards; }
@keyframes fall { to { transform: translateY(520px) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .confetti i { animation: none; display: none; } }

html[lang="vi"] .ring-cap, html[lang="vi"] .kv span, html[lang="vi"] .demo-bar b, html[lang="vi"] .ladder-body b,
html[lang="vi"] .next-step .n, html[lang="vi"] .tl-node, html[lang="vi"] .tl-reward, html[lang="vi"] .hist-row .val, html[lang="vi"] .ev-coins {
  font-family: var(--font-body); font-weight: 800; letter-spacing: .04em;
}

/* вход через Zalo и WhatsApp, способы входа */
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 2px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn--zalo { border-color: rgba(0, 104, 255, .45); color: #CFE1FF; }
.btn--zalo svg { color: #4C8DFF; }
.btn--wa { border-color: rgba(37, 211, 102, .45); color: #D7F8E4; }
.btn--wa svg { color: #25D366; }
.btn--wa-solid { background: linear-gradient(135deg, #128C7E, #25D366); box-shadow: 0 10px 30px rgba(37, 211, 102, .3); }
.code-big { font-family: var(--font-mono); font-size: 26px; letter-spacing: .14em; text-align: center; padding: 14px; border-radius: 14px; background: #0B0B14; border: 1px dashed rgba(180, 145, 255, .5); color: var(--glow); text-shadow: 0 0 14px rgba(180, 145, 255, .45); }
.ways { display: flex; flex-direction: column; gap: 8px; }
.way { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.way .ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(93, 54, 222, .14); color: var(--glow); }
.way .ico svg { width: 18px; height: 18px; }
.way .txt { flex: 1; min-width: 0; }
.way .txt b { display: block; font-size: 14px; }
.way .txt span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.way .pill { padding: 6px 8px; }
.way .btn--small { min-height: 36px; font-size: 13px; padding: 6px 12px; }
.btn--zalo-solid { background: linear-gradient(135deg, #0054C8, #2F80FF); box-shadow: 0 10px 30px rgba(47, 128, 255, .3); }

/* экран входа: бренд по центру свободного места, кнопки у нижнего края */
.screen--login { justify-content: flex-start; gap: 0; padding-top: calc(var(--sat) + 64px); }
.login-brand { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 0; }
.screen--login .login-actions { margin-top: 18px; }
.screen--login > .stack:last-of-type { margin-top: 12px; }
.hrs--ok { color: var(--ok); }
.badge-ico em { position: absolute; left: -6px; top: -6px; font-style: normal; font-family: var(--font-display); font-size: 10px; letter-spacing: .04em; padding: 2px 6px; border-radius: 999px; background: #0E0E18; border: 1px solid rgba(52, 224, 161, .45); color: var(--ok); }
.badge--off .badge-ico em { color: var(--muted); border-color: var(--line); }
.badge-hero .badge-ico em { display: none; }
html[lang="vi"] .badge-ico em { font-family: var(--font-body); font-weight: 800; }
.ladder-body .tl-head { flex-wrap: wrap; row-gap: 2px; }
.ladder-body .hrs { white-space: normal; text-align: right; }
.status-row .hrs { white-space: normal; }
.footer-ver { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline dotted; }
.diag { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.diag > div { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(7, 7, 13, .5); border: 1px solid var(--line); }
.diag span { flex: none; min-width: 110px; color: var(--muted); }
.diag b { font-weight: 500; word-break: break-all; }
.card--tap { cursor: pointer; }
.card--tap:active { filter: brightness(1.08); }
.card--tap .eyebrow svg { width: 14px; height: 14px; vertical-align: -2px; }
.ring-btn { cursor: pointer; }
.inst-arrow { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: rgba(93, 54, 222, .2); color: var(--glow); animation: bob 1.2s ease-in-out infinite; }
.inst-arrow svg { width: 28px; height: 28px; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ======== меню, корзина, заказы ======== */
.menu-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin: 4px 0 12px; border: 1px solid rgba(93, 54, 222, .45); box-shadow: var(--neon); min-height: 150px; }
.menu-hero img { width: 100%; height: 170px; object-fit: cover; display: block; filter: brightness(.55) saturate(1.1); }
.menu-hero-txt { position: absolute; top: 0; right: 0; bottom: 0; left: 0; padding: 16px 18px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, transparent 30%, rgba(7, 7, 13, .85)); }
.menu-hero-txt .h1 { font-size: 28px; margin: 0 0 4px; }
.menu-hero-txt p { margin: 0; color: var(--text); font-size: 13px; opacity: .9; }
.menu-item--grab { border-color: rgba(0, 177, 79, .45); margin-bottom: 12px; }
.menu-item--grab .ico { background: rgba(0, 177, 79, .16); color: #2EDB78; }
.dishes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
.dish { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.dish-img { aspect-ratio: 4 / 3; background: #10101c; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-body { padding: 10px 10px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dish-body b { font-size: 14px; line-height: 1.25; }
.dish-desc { font-size: 12px; color: var(--muted); line-height: 1.3; flex: 1; }
.dish-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; }
.dish-price { font-family: var(--font-display); font-size: 15px; color: var(--glow); line-height: 1.1; }
.dish-price small { display: block; font-family: var(--font-body); font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.addbtn { width: 36px; height: 36px; border-radius: 12px; border: 0; background: linear-gradient(135deg, var(--deep), var(--violet)); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 6px 16px rgba(93, 54, 222, .4); flex: none; }
.addbtn svg { width: 18px; height: 18px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; border-radius: 12px; background: rgba(93, 54, 222, .18); border: 1px solid rgba(180, 145, 255, .3); padding: 2px; flex: none; }
.stepper button { width: 30px; height: 30px; border-radius: 10px; border: 0; background: none; color: var(--text); display: flex; align-items: center; justify-content: center; padding: 0; }
.stepper button svg { width: 16px; height: 16px; }
.stepper span { min-width: 22px; text-align: center; font-family: var(--font-display); font-size: 15px; }
.cartbar { position: sticky; bottom: 4px; z-index: 4; display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(180, 145, 255, .35); background: linear-gradient(135deg, var(--deep), var(--violet) 60%, #7A52F0); color: #fff; font-weight: 700; box-shadow: 0 12px 30px rgba(93, 54, 222, .45); text-align: left; }
.cartbar svg { width: 22px; height: 22px; flex: none; }
.cartbar span { flex: 1; }
.cartbar b { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; }
.cartbar b svg { width: 16px; height: 16px; }
.iconbtn--badge { position: relative; }
.iconbtn--badge i { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ok); color: #07070D; font-style: normal; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cart-lines { display: flex; flex-direction: column; gap: 8px; }
.cart-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.cart-line .txt { flex: 1; min-width: 0; }
.cart-line .txt b { display: block; font-size: 14px; }
.cart-line .txt span { display: block; font-size: 12px; color: var(--muted); }
.cart-line .sum { font-family: var(--font-display); font-size: 14px; color: var(--glow); white-space: nowrap; min-width: 64px; text-align: right; }
.cart-total { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(93, 54, 222, .14); border: 1px solid rgba(93, 54, 222, .45); }
.cart-total span { color: var(--muted); font-size: 13px; }
.cart-total b { font-family: var(--font-display); font-size: 20px; color: var(--glow); flex: 1; }
.cart-total small { color: var(--muted); font-size: 12px; }
.input--text { font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-size: 15px; min-height: 48px; }
.qr-box { display: flex; justify-content: center; margin: 4px 0 6px; }
.qr-box img { width: 220px; height: 220px; border-radius: 16px; background: #fff; padding: 10px; box-shadow: 0 0 30px rgba(180, 145, 255, .35); }
.pill--warn svg { width: 14px; height: 14px; }
html[lang="vi"] .dish-price, html[lang="vi"] .cart-line .sum, html[lang="vi"] .cart-total b, html[lang="vi"] .stepper span { font-family: var(--font-body); font-weight: 800; }

/* макет меню «Поделиться» iOS: что нажать */
.ios-mock { background: #F2F2F7; color: #111; border-radius: 16px; overflow: hidden; font-family: -apple-system, 'Inter', sans-serif; font-size: 15px; }
.ios-mock-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #fff; border-bottom: 1px solid #DADAE0; font-weight: 600; position: relative; }
.ios-mock-top b { color: #0A7AFF; font-weight: 600; }
.ios-mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-bottom: 1px solid #E5E5EA; position: relative; }
.ios-mock-row:last-child { border-bottom: 0; }
.ios-mock-row .ic { width: 22px; height: 22px; color: #111; }
.ios-mock-row .ic svg { width: 22px; height: 22px; }
.ios-mock-row.is-hot { padding-right: 46px; background: #EDE7FF; box-shadow: inset 0 0 0 2px var(--violet); font-weight: 700; }
.ios-mock-ptr { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--violet); color: #fff; display: flex; align-items: center; justify-content: center; animation: nudge 1s ease-in-out infinite; }
.ios-mock-ptr svg { width: 16px; height: 16px; transform: rotate(180deg); }
.ios-mock-top .ios-mock-ptr { right: 104px; }
@keyframes nudge { 50% { transform: translate(-5px, -50%); } }
.sheet-lang { display: flex; justify-content: flex-start; margin: -4px 0 10px; }

/* макет нижней панели Safari: где кнопка «Поделиться» */
.safari-mock { display: flex; justify-content: space-around; align-items: center; margin-top: 12px; padding: 12px 10px; border-radius: 14px; background: #F2F2F7; color: #0A7AFF; }
.safari-mock span { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.safari-mock span svg { width: 24px; height: 24px; }
.safari-mock span:first-child svg { transform: rotate(180deg); }
.safari-mock .is-hot { width: 44px; height: 44px; border-radius: 12px; background: var(--violet); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 18px rgba(93, 54, 222, .7); animation: pulse-ring 1.2s ease-in-out infinite; }
@keyframes pulse-ring { 50% { box-shadow: 0 0 0 6px #fff, 0 0 24px rgba(93, 54, 222, .9); } }
.inst-down { display: flex; justify-content: center; color: var(--glow); margin-top: 2px; animation: bob 1.1s ease-in-out infinite; }
.inst-down svg { width: 28px; height: 28px; transform: rotate(90deg); }
.install-bar { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(180, 145, 255, .4); background: linear-gradient(135deg, rgba(93, 54, 222, .32), rgba(74, 45, 173, .18)); color: var(--text); font-weight: 700; font-size: 14px; text-align: left; box-shadow: 0 0 18px rgba(93, 54, 222, .25); }
.install-bar svg { width: 18px; height: 18px; flex: none; color: var(--glow); }
.install-bar span { flex: 1; }
.screen--login .install-bar { flex: none; width: 100%; max-width: 380px; margin: 0 auto 6px; }

/* пошаговая подсказка установки под Safari iOS 26 */
.inst-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.inst-step { display: flex; gap: 12px; align-items: flex-start; }
.inst-n { width: 30px; height: 30px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--violet); color: #fff; font-family: var(--font-display); font-size: 15px; box-shadow: 0 0 14px rgba(93, 54, 222, .6); }
.inst-body { flex: 1; min-width: 0; }
.inst-body p { margin: 4px 0 8px; font-weight: 600; font-size: 14px; }
.safari-bar { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 16px; background: #1C1C22; }
.sb-btn { width: 40px; height: 40px; border-radius: 50%; background: #2C2C33; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.sb-btn:first-child svg { transform: rotate(180deg); }
.sb-btn svg { width: 18px; height: 18px; }
.sb-pill { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px; border-radius: 20px; background: #2C2C33; color: #fff; font-weight: 600; font-size: 14px; }
.sb-pill b { flex: 1; min-width: 0; text-align: center; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-pill i { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.sb-pill i svg { width: 18px; height: 18px; }
.sb-pill i.is-hot { background: var(--violet); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 16px rgba(93, 54, 222, .9); animation: pulse-ring 1.2s ease-in-out infinite; }
.ios-mock--dark { background: #2A2A30; color: #fff; }
.ios-mock--dark .ios-mock-row { background: #2A2A30; border-bottom-color: #3A3A42; }
.ios-mock--dark .ios-mock-row .ic { color: #fff; }
.ios-mock--dark .ios-mock-row.is-hot { background: #3B2F7A; box-shadow: inset 0 0 0 2px var(--glow); }

/* RU-версия: оплата на ресепшене */
.pay-desk { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; margin: 4px 0 12px; background: rgba(93, 54, 222, .14); border: 1px solid rgba(93, 54, 222, .45); }
.pay-desk .ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--violet); color: #fff; box-shadow: 0 0 14px rgba(93, 54, 222, .6); }
.pay-desk .ico svg { width: 20px; height: 20px; }
.pay-desk b { display: block; margin-bottom: 4px; }
.pay-desk p { margin: 0; color: var(--muted); font-size: 14px; }

/* обязательный номер стола в корзине */
.field-label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.field-label b { color: var(--err); }
.field-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.input--table { font-family: var(--font-display); font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.field--err .input { border-color: var(--err); box-shadow: 0 0 0 3px rgba(255, 92, 114, .22); }
.field--err .field-hint { color: var(--err); }
.btn.is-off { opacity: .45; filter: saturate(.6); }
html[lang="vi"] .input--table { font-family: var(--font-body); font-weight: 800; }

/* макеты панелей Chrome (сверху) и Samsung Internet (снизу): где меню */
.and-bar { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 16px; background: #1F1F24; }
.ab-pill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 20px; background: #303036; color: #fff; font-size: 14px; }
.ab-pill svg { width: 16px; height: 16px; flex: none; opacity: .8; }
.ab-pill b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-btn { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ab-btn svg { width: 20px; height: 20px; }
.and-bar--bottom { justify-content: space-around; }
.and-bar--bottom .ab-btn:first-child svg { transform: rotate(180deg); }
.ab-btn.is-hot { background: var(--violet); box-shadow: 0 0 0 3px #fff, 0 0 18px rgba(93, 54, 222, .7); animation: pulse-ring 1.2s ease-in-out infinite; }
.install-bar--ok { border-color: rgba(80, 220, 150, .45); background: linear-gradient(135deg, rgba(40, 170, 110, .25), rgba(30, 120, 80, .12)); box-shadow: none; }
.install-bar--ok svg { color: #5BE3A0; }

/* узкие экраны: обложка Galaxy Fold (280), Android с крупным шрифтом, iPhone SE с увеличенным текстом */
@media (max-width: 400px) {
  .topbar .lang button:not(.is-active) .lc { display: none; }
  .topbar .lang button { padding: 6px 7px; }
}
@media (max-width: 340px) {
  .topbar .brand span { display: none; }
  .hero-row .ring-btn { display: none; }
  .tile { padding-left: 10px; padding-right: 10px; }
  .tile .label { font-size: 9.5px; letter-spacing: .06em; }
  .tile .value { font-size: 18px; }
  .tabbar--5 .tab { font-size: 9.5px; }
}
@media (max-width: 360px) {
  .cart-line { flex-wrap: wrap; }
  .cart-line .txt { flex-basis: 100%; }
  .cart-line .sum { margin-left: auto; }
}
/* планшеты: колонка телефона по центру, фон на весь экран */
@media (min-width: 600px) {
  .app { left: calc(50% - 280px); right: calc(50% - 280px); }
}
