/* Брендбук «Свод»: тёмная тёплая гамма, один акцент clay — плотная заливка только на
   активном элементе; всё остальное — стекло и оттенки серого. Всегда тёмная тема. */
:root {
  color-scheme: dark;
  --deep: #07070D;
  --surface: #11111D;
  --surface2: #1A1A2B;
  --clay: #22E6FF;
  --clay-dim: #6B3FC4;
  --sage: #34E3A4;
  --text: #ECEDF8;
  --muted: #9EA1C0;
  --faint: #5F6285;
  --wordmark: #2E3050;
  --violet: #A35CFF;
  --pink: #FF4FD8;
  --grad: linear-gradient(90deg, #22E6FF, #A35CFF 55%, #FF4FD8);
  --radius: 22px;
  --tabbar-h: 68px;
  --safe-top: calc(var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: calc(var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + var(--tg-content-safe-area-inset-bottom, 0px));
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--deep); color: var(--text); }
body {
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: var(--tg-viewport-stable-height, 100dvh);
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
[hidden] { display: none !important; }

.app {
  max-width: 460px; margin: 0 auto;
  padding: calc(var(--safe-top) + 14px) 16px calc(var(--safe-bottom) + var(--tabbar-h) + 34px);
}
.view { display: flex; flex-direction: column; gap: 14px; }
.view.enter { animation: view-in .28s cubic-bezier(.2,.8,.2,1); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- стекло */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.035));
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.12), 0 16px 36px rgba(0,0,0,.6);
  border-radius: var(--radius);
}
.skeleton { min-height: 120px; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- заголовки */
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 4px 2px; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark svg, .sc-mark svg, .foot-mark svg { display: block; width: 100%; height: 100%; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.view-head { padding: 6px 4px 2px; }
.view-head h1 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.3px; }
.view-head p { color: var(--muted); font-size: 15px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.section-title { color: var(--faint); font-size: 13px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; padding: 10px 6px 0; margin-bottom: -4px; }

/* ---------- карточка статуса */
.status-card { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.status-card.st-active::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,230,255,.22), transparent 65%); pointer-events: none;
}
.sc-top { display: flex; align-items: center; justify-content: space-between; }
.sc-label { color: var(--muted); font-size: 14px; font-weight: 500; }
.sc-body { display: flex; align-items: center; gap: 12px; }
.sc-main { flex: 1; min-width: 0; }
.sc-big { display: flex; align-items: flex-end; gap: 10px; min-height: 52px; }
.sc-num { font-size: 54px; line-height: .95; font-weight: 700; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.sc-unit { color: var(--muted); font-size: 14px; line-height: 1.2; padding-bottom: 4px; }
.sc-word { font-size: 22px; line-height: 1.2; font-weight: 650; align-self: center; }
.st-expired .sc-word, .st-disabled .sc-word, .st-none .sc-word { color: var(--text); }
.sc-note { color: var(--muted); font-size: 14px; margin-top: 6px; }
.st-active .sc-note { color: var(--text); font-weight: 500; }
.sc-mark { width: 64px; height: 64px; flex: none; position: relative; z-index: 1; }
.meter { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--sage); }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.sc-cell { display: flex; flex-direction: column; gap: 1px; }
.sc-cell .k { color: var(--faint); font-size: 12px; }
.sc-cell .v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip { font-size: 13px; font-weight: 500; color: var(--text); padding: 7px 12px; border-radius: 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); white-space: nowrap; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.on { color: var(--sage); background: rgba(52,227,164,.14); }
.pill.off { color: var(--clay); background: rgba(34,230,255,.13); }
.pill.wait { color: var(--muted); background: rgba(255,255,255,.07); }
.pill.none { color: var(--faint); background: rgba(255,255,255,.05); }

/* ---------- кнопки */
.actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  width: 100%; height: 56px; border-radius: 28px;
  font-size: 17px; font-weight: 600; letter-spacing: .1px;
  transition: transform .18s cubic-bezier(.3,.7,.4,1.4), opacity .2s;
}
.btn:active, .tile:active, .plan:active, .row:active, .tab:active, .dev-off:active, .faq-act:active { transform: scale(.96); }
.btn.primary { background: var(--grad); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); box-shadow: 0 14px 34px rgba(163,92,255,.32), 0 0 22px rgba(34,230,255,.2); }
.btn.secondary { color: var(--text); }
.btn.plain { height: 44px; font-size: 15px; font-weight: 500; color: var(--muted); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }

.pending { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.pending b { display: block; font-size: 16px; }
.pending span:not(.ring-sm) { color: var(--muted); font-size: 14px; }
.ring-sm { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.12); border-top-color: var(--clay); animation: spin 1.1s linear infinite; }

/* ---------- плитки */
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 14px; text-align: left; font-size: 14px; font-weight: 500; color: var(--text); border-radius: 20px;
  transition: transform .18s cubic-bezier(.3,.7,.4,1.4);
}
svg { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile svg, .row svg { width: 22px; height: 22px; stroke: var(--text); }

.included { padding: 16px 18px 18px; }
.inc-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.inc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.inc { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.25; }
.inc-ic { width: 34px; height: 34px; flex: none; border-radius: 11px; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; }
.inc-ic svg { width: 19px; height: 19px; stroke: var(--sage); }

/* ---------- строки */
.row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 52px; padding: 0 16px; border-radius: 18px; text-align: left;
  transition: transform .18s cubic-bezier(.3,.7,.4,1.4);
}
.row .link { flex: 1; min-width: 0; color: var(--muted); font: 13px/1.3 ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .label { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; }
.row .hint { color: var(--muted); font-size: 13px; text-align: right; }
.row > svg { width: 18px; height: 18px; stroke: var(--faint); flex: none; }
.row-ic { display: flex; flex: none; }
.row-ic svg { width: 21px; height: 21px; stroke: var(--text); }

.list { display: flex; flex-direction: column; padding: 4px 0; }
.list > .row { border-radius: 0; min-height: 54px; }
.list > * + * { box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.list-empty { color: var(--muted); font-size: 14px; padding: 16px; }
.list-more { color: var(--clay); font-weight: 600; font-size: 14px; padding: 14px 16px; text-align: left; }

/* пояснение: только когда что-то не так */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 18px; font-size: 13px; line-height: 1.4; }
.notice::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); margin-top: 6px; }
.notice button { margin-left: auto; color: var(--clay); font-weight: 600; font-size: 13px; padding-left: 8px; flex: none; }

/* ---------- устройства */
.segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; padding: 0 4px; }
.segments i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.09); }
.segments i.on { background: var(--sage); }
.dev-list { display: flex; flex-direction: column; gap: 10px; }
.device { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 14px; }
.device.skeleton { min-height: 72px; }
.dev-ic { width: 44px; height: 44px; flex: none; border-radius: 14px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; }
.dev-ic svg { width: 23px; height: 23px; stroke: var(--text); }
.dev-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dev-text b { font-size: 16px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.dev-text span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-off { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: transform .18s; }
.hint-text { color: var(--faint); font-size: 13px; line-height: 1.45; padding: 0 6px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 20px 20px; }
.empty-ic { width: 64px; height: 64px; border-radius: 22px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.empty-ic svg { width: 30px; height: 30px; stroke: var(--muted); }
.empty b { font-size: 17px; }
.empty p { color: var(--muted); font-size: 14px; line-height: 1.45; margin-bottom: 10px; max-width: 300px; }

/* ---------- поддержка */
.help-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.help-top { display: flex; gap: 14px; align-items: flex-start; }
.help-ic { width: 46px; height: 46px; flex: none; border-radius: 15px; background: rgba(34,230,255,.14); display: flex; align-items: center; justify-content: center; }
.help-ic svg { width: 24px; height: 24px; stroke: var(--clay); }
.help-card b { font-size: 18px; display: block; margin-bottom: 3px; }
.help-card p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.faq { padding: 2px 0; }
.faq-item + .faq-item { box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.faq-q { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 16px; font-size: 15px; font-weight: 500; }
.faq-q span { flex: 1; }
.faq-q svg { width: 18px; height: 18px; stroke: var(--faint); transform: rotate(90deg); transition: transform .25s; flex: none; }
.faq-item.open .faq-q svg { transform: rotate(-90deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-inner { overflow: hidden; padding: 0 16px; }
.faq-inner ul { list-style: none; color: var(--muted); font-size: 14px; line-height: 1.5; }
.faq-inner li { position: relative; padding-left: 16px; margin-bottom: 6px; }
.faq-inner li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.faq-act { color: var(--clay); font-size: 14px; font-weight: 600; padding: 4px 0 16px; transition: transform .18s; }

/* ---------- профиль */
.account { display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-height: 84px; }
.avatar { width: 54px; height: 54px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: var(--text); background: linear-gradient(160deg, #2A2B48, #15152A); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.acc-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-text b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-text span { color: var(--muted); font-size: 14px; }
.pay-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.pay-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pay-main b { font-size: 15px; font-weight: 500; }
.pay-main span { color: var(--faint); font-size: 13px; }
.pay-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.pay-side b { font-size: 15px; font-variant-numeric: tabular-nums; }
.tag { font-style: normal; font-size: 11px; color: var(--faint); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 0 5px; margin-left: 4px; }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.tg-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tg-text b { font-size: 15px; font-weight: 500; }
.tg-text span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 51px; height: 31px; border-radius: 16px; background: rgba(255,255,255,.14); position: relative; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: var(--text); box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .22s cubic-bezier(.3,.7,.4,1.2); }
.switch:checked { background: var(--clay); }
.switch:checked::after { transform: translateX(20px); }
.app-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 0 6px; color: var(--faint); font-size: 12px; }
.foot-mark { width: 30px; height: 30px; opacity: .8; }
.wordmark { color: var(--wordmark); font-size: 15px; font-weight: 600; letter-spacing: 1.5px; }

/* ---------- нижняя панель вкладок */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 0 12px calc(var(--safe-bottom) + 10px); pointer-events: none; }
.tabbar-inner {
  pointer-events: auto; max-width: 436px; margin: 0 auto; height: var(--tabbar-h);
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 0 6px;
  border-radius: 26px;
  background: rgba(17,17,29,.78);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.1), 0 18px 40px rgba(0,0,0,.65);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; color: var(--faint); transition: transform .18s cubic-bezier(.3,.7,.4,1.4), color .2s; }
.tab-pill { width: 54px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; transition: background .25s; }
.tab-pill svg { width: 22px; height: 22px; stroke: var(--muted); transition: stroke .2s; }
.tab-label { font-size: 11px; font-weight: 600; letter-spacing: .1px; }
.tab.on { color: var(--text); }
.tab.on .tab-pill { background: var(--grad); box-shadow: 0 6px 16px rgba(163,92,255,.35); }
.tab.on .tab-pill svg { stroke: var(--deep); }

/* ---------- панель снизу (как sheet в iOS) — поверх вкладок */
.sheet { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); animation: fade .25s ease; }
.sheet-panel {
  position: relative; width: 100%; max-width: 460px;
  background: var(--surface); border-radius: 28px 28px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 -20px 50px rgba(0,0,0,.5);
  padding: 10px 20px calc(var(--safe-bottom) + 20px);
  animation: rise .32s cubic-bezier(.2,.8,.2,1);
  max-height: 88vh; overflow-y: auto;
}
.sheet.closing .sheet-panel { animation: sink .22s ease forwards; }
.sheet.closing .sheet-backdrop { animation: fade .22s ease reverse forwards; }
@keyframes rise { from { transform: translateY(100%); } }
@keyframes sink { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet-grab { width: 36px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); margin: 0 auto 18px; }
.sheet-title { font-size: 17px; font-weight: 600; text-align: center; margin-bottom: 14px; }
.sheet-text { color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; margin: 0 4px 18px; }
.sheet-sub { color: var(--faint); font-size: 13px; text-align: center; margin: 18px 0 10px; }
.steps { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 18px 22px; }
.steps li { margin-bottom: 4px; padding-left: 2px; }
.plans { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.plan {
  display: flex; align-items: center; width: 100%; min-height: 64px; padding: 0 18px;
  border-radius: 20px; text-align: left; transition: transform .18s cubic-bezier(.3,.7,.4,1.4), box-shadow .2s;
}
.plan .name { flex: 1; font-size: 16px; font-weight: 500; }
.plan .price { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.plan .per { display: block; font-size: 12px; font-weight: 400; color: var(--faint); margin-top: 1px; }
.plan.selected { box-shadow: inset 0 0 0 1.5px var(--clay), 0 16px 36px rgba(0,0,0,.6); }
.sheet .rows { display: flex; flex-direction: column; gap: 10px; }

/* ---------- всплывающее сообщение (над панелью вкладок) */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + var(--tabbar-h) + 24px); z-index: 20;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--surface2); color: var(--text); font-size: 14px; font-weight: 500;
  padding: 11px 18px; border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.5);
  transition: opacity .25s, transform .25s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* вне Telegram */
.outside { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.outside .mark { width: 96px; height: 96px; margin-bottom: 20px; }
.outside .mark svg { width: 100%; height: 100%; }
.outside .title { font-size: 17px; font-weight: 600; color: var(--muted); }
.outside .subtitle { color: var(--faint); }

@media (max-width: 350px) {
  .tiles3 { grid-template-columns: 1fr 1fr; }
  .inc-grid { grid-template-columns: 1fr; }
  .tab-label { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- «О сервисе» и документы */
.doc { font-size: 14px; line-height: 1.55; color: var(--muted); margin-bottom: 18px; }
.doc h2 { font-size: 15px; color: var(--text); margin: 20px 0 6px; }
.doc p { margin: 0 0 8px; }
.doc ul { margin: 0 0 8px; padding-left: 18px; }
.doc li { margin: 3px 0; }
.doc a { color: var(--clay); }
.doc-updated { text-align: center; color: var(--faint); font-size: 13px; margin: -10px 0 16px; }

/* ---------- гайд (первый запуск и «Инструкция») */
.guide {
  position: fixed; inset: 0; z-index: 30; background: var(--deep);
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--safe-top) + 10px) 24px calc(var(--safe-bottom) + 20px);
  animation: fade .25s ease;
}
.g-top { width: 100%; max-width: 420px; display: flex; justify-content: flex-end; }
.g-skip { color: var(--faint); font-size: 14px; padding: 8px 4px; }
.g-stage { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.g-title { font-size: 21px; font-weight: 600; text-align: center; margin-top: 8px; }
.g-text { font-size: 15px; color: var(--muted); text-align: center; margin-top: 10px; max-width: 340px; min-height: 63px; }
.g-dots { display: flex; gap: 8px; margin: 22px 0 18px; }
.g-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.18); transition: width .25s, background .25s; }
.g-dots i.on { width: 22px; background: var(--clay); }
.g-next { width: 100%; max-width: 420px; }

.g-scene { animation: fade .35s ease; }
.g-phone {
  position: relative; width: 228px; height: 300px; border-radius: 34px;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 22px 16px; overflow: hidden;
}
.g-btn {
  width: 100%; height: 42px; border-radius: 21px; background: var(--clay); color: var(--deep);
  font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.g-press { animation: g-press 3.2s ease-in-out infinite; }
@keyframes g-press { 0%, 38%, 52%, 100% { transform: scale(1); } 45% { transform: scale(.94); filter: brightness(.9); } }
.g-finger {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(236,237,248,.85); box-shadow: 0 6px 16px rgba(0,0,0,.45);
  left: 60%; top: 92%; opacity: 0; animation: g-finger 3.2s ease-in-out infinite;
}
.g-finger::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(236,237,248,.6); opacity: 0; animation: g-ring 3.2s ease-out infinite; }
@keyframes g-finger { 0% { opacity: 0; transform: translate(30px, 40px); } 20% { opacity: 1; } 38% { transform: translate(0, 0); } 45% { transform: translate(0, 0) scale(.85); } 55% { transform: translate(0, 0); opacity: 1; } 75%, 100% { opacity: 0; transform: translate(20px, 30px); } }
@keyframes g-ring { 0%, 42% { opacity: 0; transform: scale(.6); } 48% { opacity: 1; } 70%, 100% { opacity: 0; transform: scale(1.5); } }

/* 1: магазин приложений */
.g-store { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 16px; background: var(--surface2); }
.g-icon { width: 40px; height: 40px; border-radius: 11px; background: #0D0D18; padding: 4px; flex: none; }
.g-icon svg { width: 100%; height: 100%; }
.g-store-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.g-store-lines i { display: block; height: 6px; width: 70%; border-radius: 3px; background: rgba(255,255,255,.1); }
.g-get { flex: none; font-size: 10.5px; font-weight: 700; color: var(--clay); background: rgba(34,230,255,.14); padding: 6px 9px; border-radius: 12px; animation: g-press 3.2s ease-in-out infinite; }
.g-step0 .g-finger { left: 72%; top: 44%; }
.g-bar { width: 100%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.g-fill::after { content: ""; position: absolute; inset: 0; background: var(--clay); transform-origin: left; animation: g-fill 3.2s ease-in-out infinite; }
@keyframes g-fill { 0%, 48% { transform: scaleX(0); } 85%, 100% { transform: scaleX(1); } }

/* 2: оплата — знак загорается */
.g-mark { position: relative; width: 74px; height: 74px; }
.g-mark svg { width: 100%; height: 100%; display: block; }
.g-mark-on { position: absolute; inset: 0; opacity: 0; animation: g-on 3.2s ease-in-out infinite; }
@keyframes g-on { 0%, 50% { opacity: 0; } 62%, 92% { opacity: 1; } 100% { opacity: 0; } }
.g-caption { position: relative; height: 20px; width: 100%; font-size: 13px; font-weight: 600; text-align: center; }
.g-swap span { position: absolute; inset: 0; transition: none; }
.g-swap span:first-child { color: var(--muted); animation: g-off 3.2s ease-in-out infinite; }
.g-swap span:last-child { color: var(--text); opacity: 0; animation: g-on 3.2s ease-in-out infinite; }
@keyframes g-off { 0%, 50% { opacity: 1; } 62%, 92% { opacity: 0; } 100% { opacity: 1; } }
.g-step1 .g-finger { top: 78%; }

/* 3: ключ — открыть или скопировать */
.g-link { width: 100%; display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 14px; background: var(--surface2); font: 10.5px ui-monospace, Menlo, monospace; color: var(--muted); }
.g-link span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-copy { width: 13px; height: 13px; border: 1.5px solid var(--text); border-radius: 3px; flex: none; box-shadow: 3px -3px 0 -1.5px var(--surface2), 3px -3px 0 0 var(--text); }
.g-toast { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; padding: 7px 12px; border-radius: 14px; background: #26283F; opacity: 0; animation: g-on 3.2s ease-in-out infinite; }
.g-step2 .g-finger { top: 30%; }

/* 4: кнопка питания */
.g-power { width: 108px; height: 108px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface2); box-shadow: inset 0 0 0 3px var(--clay-dim); animation: g-power 3.2s ease-in-out infinite; }
.g-power span { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid var(--muted); border-top-color: transparent; position: relative; animation: g-icon 3.2s ease-in-out infinite; }
.g-power span::after { content: ""; position: absolute; left: 50%; top: -8px; width: 3.5px; height: 18px; margin-left: -1.75px; border-radius: 2px; background: currentColor; color: var(--muted); animation: g-iconc 3.2s ease-in-out infinite; }
@keyframes g-power { 0%, 46% { background: var(--surface2); box-shadow: inset 0 0 0 3px var(--clay-dim); } 56%, 92% { background: var(--clay); box-shadow: 0 0 40px rgba(34,230,255,.35); } 100% { background: var(--surface2); } }
@keyframes g-icon { 0%, 46% { border-color: var(--muted); border-top-color: transparent; } 56%, 92% { border-color: var(--deep); border-top-color: transparent; } }
@keyframes g-iconc { 0%, 46% { color: var(--muted); } 56%, 92% { color: var(--deep); } }
.g-step3 .g-finger { left: 55%; top: 38%; }

/* Иконка Happ в гайде: нейтральная буква вместо нашего знака. */
.g-icon-happ{display:flex;align-items:center;justify-content:center;font-weight:700;font-size:22px;color:#fff;background:linear-gradient(180deg,#4b6bff,#2a3fd6);border-radius:12px}

/* знак Kitchen: горы и щит; погашенный — без цвета */
.kmark { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 0 10px rgba(163,92,255,.35)); }
.kmark.off { filter: grayscale(1) brightness(.55); }
