﻿/* Простая аналитика с Дари — Telegram Mini App */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg:           #F7F2E8;
  --surface:      #FFFDF7;
  --surface-raised: #FFFFFF;
  --fg:           #101828;
  --muted:        #4D5563;
  --quiet:        #7B7F87;
  --text:         var(--fg);
  --text-muted:   var(--muted);
  --accent:       #63762F;
  --accent-cta:   #586B2A;
  --accent-soft:  #EEF4E3;
  --accent-strong: #45571E;
  --on-accent:    #FFFFFF;
  --tech:         #6D8CA8;
  --tech-soft:    #E8EEF3;
  --border:       #D9D0C3;
  --error:        #B9654A;
  --error-soft:   #F4E4DD;
  --warn:         #C28A3D;
  --warn-soft:    #F2E6D3;
  --r-card:       22px;
  --r-button:     18px;
  --r-pill:       999px;
  --r-input:      14px;
  --shadow-card:  0 8px 24px rgba(14,26,43,.06);
  --shadow-soft:  0 8px 18px rgba(14,26,43,.08);
  --badge-bg:     rgba(14,26,43,.72);
  --font: 'Manrope','Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  --motion-fast: 160ms;
  --motion-base: 180ms;
  --motion-slow: 220ms;
  --ease-standard: cubic-bezier(.22, .61, .36, 1);
  --ease-decelerate: cubic-bezier(.18, .84, .32, 1);
  --ease-emphasized: cubic-bezier(.2, 0, .13, 1);
  --space-xs: 6px; --space-sm: 10px; --space-md: 14px; --space-lg: 20px; --space-xl: 28px;
  --app-max: 100%;
  --app-gutter: clamp(16px,4.7vw,22px);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg:           #10151A;
  --surface:      #171E24;
  --surface-raised: #1D262D;
  --fg:           #F6F1E8;
  --muted:        #C8C0B3;
  --quiet:        #9B9388;
  --accent:       #AEBB6F;
  --accent-cta:   #7F9348;
  --accent-soft:  #26321F;
  --accent-strong: #94A85A;
  --on-accent:    #FFFFFF;
  --tech:         #8FB2C9;
  --tech-soft:    #1D303B;
  --border:       #343D3A;
  --error:        #D88972;
  --error-soft:   #35231F;
  --warn:         #D5A14F;
  --warn-soft:    #33291B;
  --shadow-card:  0 14px 34px rgba(0,0,0,.28);
  --shadow-soft:  0 8px 18px rgba(0,0,0,.2);
  --badge-bg:     rgba(4,8,10,.72);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
*::-webkit-scrollbar { width: 0; height: 0; }
* {
  scrollbar-width: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%; min-height: 100%; min-width: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-touch-callout: none;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overscroll-behavior: none;
}
body { min-height: 100dvh; position: relative; }
button {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}
button, a, label, summary, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a { color: inherit; text-decoration: none; }

html.theme-changing *,
html.theme-changing *::before,
html.theme-changing *::after {
  transition: none !important;
  animation-duration: 0.01ms !important;
  animation-delay: 0s !important;
}

/* ── Shell ───────────────────────────────────────────────────────────────── */
.miniapp {
  width: 100%; max-width: var(--app-max); height: 100dvh; min-width: 0;
  margin: 0 auto; display: flex; flex-direction: column; position: relative;
  background: var(--bg); overflow: hidden;
}
.safe-top  { height: max(44px, env(safe-area-inset-top, 44px)); flex-shrink: 0; }
.safe-bot  { height: max(24px, env(safe-area-inset-bottom, 24px)); flex-shrink: 0; }

.miniapp__scroll {
  flex: 1; width: 100%; min-width: 0;
  padding-left:  calc(var(--app-gutter) + env(safe-area-inset-left,  0px));
  padding-right: calc(var(--app-gutter) + env(safe-area-inset-right, 0px));
  position: relative;
  overflow-y: auto; overscroll-behavior: none;
}
.miniapp__scroll--with-main   { padding-bottom: calc(96px  + env(safe-area-inset-bottom,0px)); }
.miniapp__scroll--with-bottom { padding-bottom: calc(32px  + env(safe-area-inset-bottom,0px)); }

/* ── Typography ──────────────────────────────────────────────────────────── */
.h1 { font-size: 26px; font-weight: 700; color: var(--fg); letter-spacing: -0.018em; line-height: 1.18; }
.h2 { font-size: 22px; font-weight: 700; color: var(--fg); letter-spacing: -0.015em; line-height: 1.22; }
.h3 { font-size: 17px; font-weight: 700; color: var(--fg); letter-spacing: -0.008em; line-height: 1.3; }
.body    { font-size: 15px; font-weight: 500; color: var(--muted); line-height: 1.5; }
.small   { font-size: 13px; font-weight: 500; color: var(--quiet); line-height: 1.4; }
.tiny    { font-size: 12px; font-weight: 600; color: var(--quiet); line-height: 1.35; letter-spacing: 0.01em; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--quiet); letter-spacing: 0.08em; text-transform: uppercase; }

.section-title {
  font-size: 15px; font-weight: 700; color: var(--fg); letter-spacing: -0.005em;
  margin: 20px 0 12px;
}
.section-title:first-child { margin-top: 0; }

.sub-h    { font-size: 20px; font-weight: 700; color: var(--fg); letter-spacing: -0.012em; line-height: 1.22; }
.sub-h--sm{ font-size: 17px; font-weight: 700; color: var(--fg); letter-spacing: -0.008em; line-height: 1.3; }
.sub-p    { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.5; margin-top: 6px; }

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 16px; box-shadow: var(--shadow-card);
}
.card--lg { padding: 18px; }
.card + .card { margin-top: 12px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px; padding: 0 18px; border: 0;
  border-radius: var(--r-button); font-size: 15px; font-weight: 700;
  letter-spacing: -0.005em; cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary  { background: var(--accent-cta); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary{ background: var(--tech-soft); color: var(--fg); }
.btn-link { background: transparent; color: var(--accent); height: 40px; padding: 0 8px; }
.btn-link:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--muted); height: 40px; font-size: 14px; font-weight: 500; justify-content: flex-start; padding: 0 4px; }
.btn-ghost:hover { color: var(--fg); }
.btn-danger { color: #9F2B2B; }
.btn-danger:hover { color: #7F1D1D; background: color-mix(in srgb, #F4A6A6 22%, transparent); }
.btn-ghost svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.985); }
.btn svg { width: 18px; height: 18px; }
.btn:disabled { background: var(--border); color: var(--quiet); cursor: not-allowed; transform: none; }
.upgrade-option-btn { width: auto; min-width: 92px; height: 36px; padding: 0 14px; font-size: 13px; flex-shrink: 0; }
.product-card__price--muted { color: var(--muted); font-size: 13px; }
.nav-links { display: flex; flex-direction: column; gap: 2px; }

/* ── Status pills ────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 700; letter-spacing: -0.005em;
  white-space: nowrap; flex-shrink: 0;
}
.pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px;
  background: currentColor; opacity: 0.85;
}
.pill--plain::before { display: none; }
.pill-done    { background: var(--accent-soft); color: var(--accent); }
.pill-active  { background: var(--tech-soft);   color: var(--tech); }
.pill-soon    { background: var(--bg); color: var(--quiet); border: 1px solid var(--border); }
.pill-error   { background: var(--error-soft);  color: var(--error); }
.pill-warn    { background: var(--warn-soft);   color: var(--warn); }
.pill-pending { background: var(--tech-soft);   color: var(--tech); }
.pill-neutral { background: var(--bg); color: var(--quiet); border: 1px solid var(--border); }
.pill-quote      { background: var(--warn-soft);   color: var(--warn); }
.pill-quote-sent { background: var(--accent-soft); color: var(--accent); }

/* ── Type labels ─────────────────────────────────────────────────────────── */
.type-label {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: var(--r-pill); font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
}
.type-label--course   { background: var(--accent-soft); color: var(--accent); }
.type-label--tool     { background: var(--tech-soft);   color: var(--tech); }
.type-label--practice { background: var(--warn-soft);   color: var(--warn); }
.type-label--talk     { background: var(--tech-soft);   color: var(--tech); }
.type-label--bundle   { background: var(--accent-soft); color: var(--accent); }
.type-label--free     { background: var(--bg); color: var(--quiet); border: 1px solid var(--border); }

/* ── Brand mark ──────────────────────────────────────────────────────────── */
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--accent-cta);
  display: inline-flex; align-items: center; padding: 0 7px 0 9px; gap: 4px; flex-shrink: 0;
}
.brand-mark__d { color: var(--on-accent); font-family: var(--font); font-weight: 800; font-size: 18px; line-height: 1; letter-spacing: -0.04em; }
.brand-mark__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.brand-mark__bars i { width: 2.5px; background: var(--on-accent); border-radius: 2px; display: block; }
.brand-mark__bars i:nth-child(1) { height: 50%; opacity: 0.7; }
.brand-mark__bars i:nth-child(2) { height: 75%; opacity: 0.85; }
.brand-mark__bars i:nth-child(3) { height: 100%; }

/* ── Icon tile ───────────────────────────────────────────────────────────── */
.icon-tile {
  width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-tile--tech    { background: var(--tech-soft);  color: var(--tech); }
.icon-tile--warn    { background: var(--warn-soft);  color: var(--warn); }
.icon-tile--error   { background: var(--error-soft); color: var(--error); }
.icon-tile--neutral { background: var(--bg); color: var(--quiet); border: 1px solid var(--border); }
.icon-tile--lg { width: 44px; height: 44px; border-radius: 14px; }
.icon-tile svg { width: 18px; height: 18px; }
.icon-tile--lg svg { width: 22px; height: 22px; }

/* ── Row card ────────────────────────────────────────────────────────────── */
.row-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 14px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-card);
}
.row-card__body  { flex: 1; min-width: 0; }
.row-card__title { font-size: 15px; font-weight: 700; color: var(--fg); line-height: 1.25; letter-spacing: -0.005em; }
.row-card__sub   { font-size: 12px; font-weight: 500; color: var(--quiet); line-height: 1.35; margin-top: 3px; }
.row-card__meta  { font-size: 12px; font-weight: 600; color: var(--quiet); margin-top: 4px; }
.row-card__chev  { color: var(--quiet); flex-shrink: 0; }
.row-card__chev svg { width: 18px; height: 18px; }
.row-card__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.row-card__indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-right: 2px; }

/* ── Hub grid ────────────────────────────────────────────────────────────── */
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hub-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 10px;
  position: relative; box-shadow: var(--shadow-card); min-height: 130px;
  cursor: pointer; transition: transform 0.12s ease;
}
.hub-card:hover  { transform: translateY(-1px); }
.hub-card:active { transform: scale(0.97); }
.hub-card__chev  { position: absolute; top: 14px; right: 14px; color: var(--quiet); }
.hub-card__chev svg { width: 14px; height: 14px; }
.hub-card__title { font-size: 16px; font-weight: 700; color: var(--fg); line-height: 1.22; letter-spacing: -0.008em; margin-top: 6px; }
.hub-card__sub   { font-size: 12px; font-weight: 500; color: var(--quiet); line-height: 1.35; }
.hub-card__badge { position: absolute; bottom: 14px; right: 14px; font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: -0.005em; }
.hub-card__ico--tech { color: var(--tech); }
.hub-card__ico--warn { color: var(--warn); }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.progress { width: 100%; height: 8px; background: color-mix(in srgb, var(--accent-soft) 68%, var(--surface) 32%); border-radius: 999px; overflow: hidden; }
.progress__fill { height: 100%; background: var(--accent-cta); border-radius: 999px; }

/* ── Top header ──────────────────────────────────────────────────────────── */
.tg-top { display: flex; align-items: center; gap: 12px; padding: 12px 0 18px; }
.tg-top__avatar {
  width: 42px; height: 42px; border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 70%, var(--accent-soft) 30%), var(--accent-soft));
  color: var(--fg); font-size: 16px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid var(--border);
}
.tg-top__name  { flex: 1; min-width: 0; }
.tg-top__greet { font-size: 13px; font-weight: 500; color: var(--quiet); }
.tg-top__title { font-size: 18px; font-weight: 700; color: var(--fg); letter-spacing: -0.012em; line-height: 1.2; margin-top: 1px; }

.bonus-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  flex-shrink: 0; cursor: pointer;
}
.bonus-chip__star { font-size: 12px; line-height: 1; }
.bonus-chip__num  { font-variant-numeric: tabular-nums; }

/* ── Sub-screen header ───────────────────────────────────────────────────── */
.tg-subhead {
  display: grid; grid-template-columns: auto minmax(0,1fr) 1px;
  align-items: center; gap: 10px;
  padding: 8px var(--app-gutter) 12px;
  padding-left:  calc(var(--app-gutter) + env(safe-area-inset-left,  0px));
  padding-right: calc(var(--app-gutter) + env(safe-area-inset-right, 0px));
  flex-shrink: 0; width: 100%;
}
.tg-subhead__back {
  min-width: 88px; min-height: 44px;
  padding: 0 12px 0 10px; gap: 4px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--fg);
  font-family: var(--font); font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.tg-subhead__back:hover { background: var(--accent-soft); border-color: var(--accent); }
.tg-subhead__back svg { width: 18px; height: 18px; flex-shrink: 0; }
.tg-subhead__back span { display: inline; }
.tg-subhead__title { font-size: 15px; font-weight: 800; color: var(--fg); letter-spacing: -0.005em; text-align: left; min-width: 0; }

/* ── Filter tabs ─────────────────────────────────────────────────────────── */
.filter-tabs {
  display: flex; gap: 8px; width: 100%; min-width: 0;
  padding: 0 calc(var(--app-gutter) + env(safe-area-inset-right, 0px)) 16px
    calc(var(--app-gutter) + env(safe-area-inset-left, 0px));
  overflow-x: auto; flex-shrink: 0; scroll-snap-type: x mandatory;
}
.filter-tabs__btn {
  flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
  scroll-snap-align: start; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-tabs__btn.is-active { background: var(--accent-cta); border-color: var(--accent-cta); color: var(--on-accent); }
.filter-tabs__btn:hover:not(.is-active) { color: var(--fg); }

/* ── Product card ────────────────────────────────────────────────────────── */
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--shadow-card); cursor: pointer;
  transition: transform 0.12s ease;
}
.product-card + .product-card { margin-top: 12px; }
.product-card:hover  { transform: translateY(-1px); }
.product-card:active { transform: scale(0.98); }

.product-card__banner {
  height: 130px; position: relative; background: var(--accent-soft); overflow: hidden;
}
.product-card__banner--tech    { background: var(--tech-soft); }
.product-card__banner--warn    { background: var(--warn-soft); }
.product-card__banner--neutral { background: var(--bg); }
.product-card__banner-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.product-card__banner-art svg { width: 100%; height: 100%; display: block; }
.product-card__banner-label { position: absolute; top: 12px; left: 12px; }
.product-card__banner-badge {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px;
  border-radius: 999px; background: var(--badge-bg); color: var(--on-accent);
  font-size: 11px; font-weight: 700; backdrop-filter: blur(6px);
}
.product-card__body   { padding: 14px 16px 16px; }
.product-card__title  { font-size: 16px; font-weight: 700; color: var(--fg); letter-spacing: -0.008em; line-height: 1.25; }
.product-card__desc   { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.product-card__foot   { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 12px; }
.product-card__price  { font-size: 15px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.product-card__price--free { color: var(--accent); }
.product-card__cta    { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.product-card__cta svg { width: 14px; height: 14px; }

/* ── Tariff card ─────────────────────────────────────────────────────────── */
.tariff-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start;
  box-shadow: var(--shadow-card); position: relative; cursor: pointer;
}
.tariff-card + .tariff-card { margin-top: 10px; }
.tariff-card.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 74%, var(--surface) 26%);
}
.tariff-card__radio {
  width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--bg); flex-shrink: 0; margin-top: 2px; position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.tariff-card.is-selected .tariff-card__radio { border-color: var(--accent-cta); background: var(--accent-cta); }
.tariff-card.is-selected .tariff-card__radio::after {
  content: ''; position: absolute; inset: 4px; border-radius: 999px; background: var(--surface);
}
.tariff-card--single { cursor: default; }
.tariff-list--single { display: block !important; }
.tariff-card__body { flex: 1; min-width: 0; }
.tariff-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tariff-card__name  { font-size: 15px; font-weight: 700; color: var(--fg); letter-spacing: -0.005em; }
.tariff-card__price { font-size: 15px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.tariff-card__list  { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.tariff-card__item  { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.35; }
.tariff-card__item svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.tariff-card__bonus {
  margin-top: 10px; display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 999px; background: var(--tech-soft); color: var(--tech); font-size: 11px; font-weight: 700;
}

.bullet-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.bullet-list__item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.42; }
.bullet-list__dot  { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); margin-top: 8px; flex-shrink: 0; }

/* ── Telegram MainButton ─────────────────────────────────────────────────── */
.tg-mainbtn {
  position: absolute; left: 0; right: 0; bottom: 0;
  min-height: calc(74px + env(safe-area-inset-bottom,0px)); height: auto;
  padding: 12px calc(var(--app-gutter) + env(safe-area-inset-right,0px))
    calc(14px + env(safe-area-inset-bottom,0px))
    calc(var(--app-gutter) + env(safe-area-inset-left,0px));
  background: var(--bg); border-top: 1px solid var(--border); z-index: 12; width: 100%;
}
.tg-mainbtn__btn {
  width: 100%; height: 50px; background: var(--accent-cta); color: var(--on-accent);
  border: 0; border-radius: var(--r-button); font-size: 16px; font-weight: 700;
  letter-spacing: -0.005em; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s;
}
.tg-mainbtn__btn:hover    { background: var(--accent-strong); }
.tg-mainbtn__btn:disabled { background: var(--border); color: var(--quiet); cursor: not-allowed; }

/* ── Order card ──────────────────────────────────────────────────────────── */
.order-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 16px; box-shadow: var(--shadow-card); cursor: pointer;
}
.order-card + .order-card { margin-top: 12px; }
.order-card:active { transform: scale(0.985); }
.order-card__head  { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-card__head > :first-child { flex: 1; min-width: 0; }
.order-card__name  { font-size: 15px; font-weight: 700; color: var(--fg); letter-spacing: -0.005em; line-height: 1.25; }
.order-card__tariff{ font-size: 12px; font-weight: 500; color: var(--quiet); margin-top: 3px; }
.order-card__foot  {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border);
}
.order-card__sum   { font-size: 14px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.order-card__date  { font-size: 12px; font-weight: 500; color: var(--quiet); }

/* ── Pending launch ──────────────────────────────────────────────────────── */
.pending-block { background: var(--tech-soft); border-radius: var(--r-card); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.pending-block__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--tech); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.pending-block__title { font-size: 15px; font-weight: 700; color: var(--fg); letter-spacing: -0.005em; }
.pending-block__text  { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.4; margin-top: 4px; }

/* ── Access link ─────────────────────────────────────────────────────────── */
.access-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-button); background: var(--surface); border: 1px solid var(--border); cursor: pointer; }
.access-link + .access-link { margin-top: 10px; }
.access-link__icon { width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.access-link__icon svg { width: 18px; height: 18px; }
.access-link__body { flex: 1; min-width: 0; }
.access-link__title { font-size: 14px; font-weight: 700; color: var(--fg); letter-spacing: -0.005em; }
.access-link__sub   { font-size: 12px; font-weight: 500; color: var(--quiet); margin-top: 2px; }
.access-link__chev  { color: var(--quiet); }
.access-link__chev svg { width: 16px; height: 16px; }

/* ── Balance hero ────────────────────────────────────────────────────────── */
.balance-hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px 20px 20px; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.balance-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.balance-hero__label  { font-size: 12px; font-weight: 700; color: var(--quiet); letter-spacing: 0.08em; text-transform: uppercase; }
.balance-hero__value  { color: var(--fg); line-height: 1.08; }
.balance-hero__value--level { max-width: 58%; text-align: right; font-size: 24px; font-weight: 900; letter-spacing: 0; overflow-wrap: anywhere; }
.balance-hero__num    { font-size: 52px; font-weight: 800; color: var(--fg); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 8px; }
.balance-hero__unit   { font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 6px; }
.balance-hero__sub    { display: flex; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.balance-hero__sub-item { flex: 1; min-width: 0; }
.balance-hero__sub-label { font-size: 11px; font-weight: 600; color: var(--quiet); letter-spacing: 0.03em; text-transform: uppercase; }
.balance-hero__sub-num   { font-size: 17px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: -0.012em; margin-top: 3px; }
.balance-hero__star { position: absolute; top: 20px; right: 22px; width: 30px; height: 30px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }

/* ── Bonus history row ───────────────────────────────────────────────────── */
.b-history { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 4px 16px; box-shadow: var(--shadow-card); }
.b-rules   { font-size: 13px; font-weight: 500; color: var(--quiet); line-height: 1.45; margin-top: 12px; padding: 0 4px; }

.bonus-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.bonus-row:last-child { border-bottom: 0; }
.bonus-row__icon { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.bonus-row__icon--in  { background: var(--accent-soft); color: var(--accent); }
.bonus-row__icon--out { background: var(--error-soft);  color: var(--error); }
.bonus-row__body  { flex: 1; min-width: 0; }
.bonus-row__title { font-size: 14px; font-weight: 600; color: var(--fg); letter-spacing: -0.005em; line-height: 1.3; }
.bonus-row__date  { font-size: 12px; font-weight: 500; color: var(--quiet); margin-top: 2px; }
.bonus-row__sum   { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.bonus-row__sum--in  { color: var(--accent); }
.bonus-row__sum--out { color: var(--error); }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; }
.empty__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--quiet); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.empty__icon svg { width: 28px; height: 28px; }
.empty__icon--ok  { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.empty__title { font-size: 16px; font-weight: 700; color: var(--fg); letter-spacing: -0.005em; }
.empty__text  { font-size: 13px; font-weight: 500; color: var(--quiet); margin-top: 6px; line-height: 1.4; }
.empty__btn   { margin-top: 20px; width: auto; padding: 0 22px; }

/* ── Insight plate ───────────────────────────────────────────────────────── */
.insight { background: var(--accent-soft); border-radius: var(--r-card); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.insight--tech { background: var(--tech-soft); }
.insight__dot  { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); margin-top: 9px; flex-shrink: 0; }
.insight--tech .insight__dot { background: var(--tech); }
.insight__text { font-size: 14px; font-weight: 600; color: var(--fg); line-height: 1.4; letter-spacing: -0.005em; }

/* ── Form controls ───────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 12px; font-weight: 700; color: var(--quiet); letter-spacing: 0.04em; text-transform: uppercase; }
.input {
  width: 100%; height: 48px; padding: 0 14px;
  border-radius: var(--r-input); border: 1px solid var(--border);
  background: var(--surface); color: var(--fg); font-family: var(--font);
  font-size: 15px; font-weight: 500; outline: 0;
  transition: border-color 0.15s, background 0.15s;
}
.input:focus { border-color: var(--accent); background: var(--surface-raised); }
.input::placeholder { color: var(--quiet); }
.input--readonly { background: var(--bg); color: var(--muted); cursor: default; }
.textarea {
  width: 100%; min-height: 120px; padding: 14px;
  border-radius: var(--r-input); border: 1px solid var(--border);
  background: var(--surface); color: var(--fg); font-family: var(--font);
  font-size: 15px; font-weight: 500; line-height: 1.5; outline: 0; resize: vertical;
  transition: border-color 0.15s, background 0.15s;
}
.textarea:focus { border-color: var(--accent); background: var(--surface-raised); }
.textarea::placeholder { color: var(--quiet); }

.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }
.input-row .btn   { width: auto; height: 48px; padding: 0 16px; flex-shrink: 0; }

.toggle-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.toggle-row__body  { flex: 1; min-width: 0; }
.toggle-row__title { font-size: 15px; font-weight: 700; color: var(--fg); letter-spacing: -0.005em; line-height: 1.25; }
.toggle-row__sub   { font-size: 12px; font-weight: 500; color: var(--quiet); margin-top: 3px; }
.toggle { width: 46px; height: 28px; background: var(--border); border: 0; border-radius: 999px; position: relative; cursor: pointer; flex-shrink: 0; transition: background 0.15s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-raised); box-shadow: 0 1px 3px rgba(14,26,43,.18); transition: left 0.18s ease; }
.toggle.is-on { background: var(--accent-cta); }
.toggle.is-on::after { left: 21px; }

.discount-strip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-button); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 4px; border-top: 1px dashed var(--border); }
.sum-row__label { font-size: 13px; font-weight: 600; color: var(--quiet); }
.sum-row__val   { font-size: 28px; font-weight: 800; color: var(--fg); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1; }

/* ── Chip group ──────────────────────────────────────────────────────────── */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-group__btn {
  height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  font-family: var(--font); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip-group__btn.is-active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); color: var(--accent); }

/* ── Upload button ───────────────────────────────────────────────────────── */
.upload-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 16px;
  border-radius: var(--r-button); background: var(--surface); border: 1px dashed var(--border);
  color: var(--muted); font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.upload-btn:hover { border-color: var(--accent); color: var(--fg); background: var(--surface-raised); }

/* ── Event card ──────────────────────────────────────────────────────────── */
.event-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 14px 16px 14px 18px;
  position: relative; overflow: hidden; display: flex; gap: 16px; align-items: flex-start;
}
.event-card + .event-card { margin-top: 12px; }
.event-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tech); }
.event-card--today::before { background: var(--accent); }
.event-card__body { flex: 1; min-width: 0; }
.event-card__meta { font-size: 12px; font-weight: 600; color: var(--quiet); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-card__title { font-size: 16px; font-weight: 700; color: var(--fg); letter-spacing: -0.008em; line-height: 1.25; margin-top: 4px; }
.event-card__remind {
  margin-top: 12px; height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  font-family: var(--font); font-size: 12px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.event-card__remind.is-on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); color: var(--accent); }

/* ── Referral hero ───────────────────────────────────────────────────────── */
.ref-hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px 20px; box-shadow: var(--shadow-card); text-align: center; }
.ref-hero__num   { font-size: 64px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ref-hero__label { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.ref-hero__bonus { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }

/* ── Stars rating ────────────────────────────────────────────────────────── */
.rating-stars { display: flex; gap: 6px; justify-content: center; padding: 4px 0; }
.rating-stars__star { width: 38px; height: 38px; border: 0; background: transparent; color: var(--border); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color 0.15s, transform 0.1s; }
.rating-stars__star svg { width: 30px; height: 30px; }
.rating-stars__star:hover, .rating-stars__star.is-filled { color: var(--warn); }
.rating-stars__star:hover { transform: scale(1.08); }

/* ── Lesson rows ─────────────────────────────────────────────────────────── */
.lesson-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--border); transition: background 0.12s;
}
.lesson-row:last-child { border-bottom: none; }
.lesson-row:active, .lesson-row:hover { background: var(--accent-soft); }
.lesson-row--locked { opacity: 0.5; cursor: default; pointer-events: none; }
.lesson-row--done   .lesson-row__icon { background: var(--accent-soft); color: var(--accent); }
.lesson-row--done   .lesson-row__title { color: var(--quiet); }
.lesson-row--current { background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.lesson-row__ico--done    { background: var(--accent-soft); color: var(--accent); }
.lesson-row__ico--current { background: var(--accent-soft); color: var(--accent); }
.lesson-row__ico--locked  { background: var(--bg); color: var(--quiet); border: 1px solid var(--border); }

/* ── Home screen specifics ───────────────────────────────────────────────── */
.home-active { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px; box-shadow: var(--shadow-card); cursor: pointer; }
.home-active:active { transform: scale(0.985); }
.home-active__head  { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-active__label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); }
.home-active__title { font-size: 16px; font-weight: 700; color: var(--fg); letter-spacing: -0.008em; line-height: 1.25; margin-top: 8px; }
.home-active__meta  { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 6px; }
.home-active__meta-label { font-size: 12px; font-weight: 600; color: var(--quiet); }
.home-active__meta-val   { font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.home-active__cta { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent); }
.home-active__cta svg { width: 14px; height: 14px; }

/* ── Order detail specifics ──────────────────────────────────────────────── */
.od-h   { font-size: 22px; font-weight: 700; color: var(--fg); letter-spacing: -0.015em; line-height: 1.22; }
.od-sub { font-size: 13px; font-weight: 500; color: var(--quiet); margin-top: 4px; }
.od-meta { margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 14px 16px; box-shadow: var(--shadow-card); }
.od-meta__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; }
.od-meta__row + .od-meta__row { border-top: 1px dashed var(--border); }
.od-meta__label { font-size: 13px; font-weight: 500; color: var(--quiet); flex-shrink: 0; }
.od-meta__val   { font-size: 14px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.od-section   { margin-top: 22px; }
.od-section__h { font-size: 13px; font-weight: 700; color: var(--quiet); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.od-note       { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 14px 16px; box-shadow: var(--shadow-card); }
.od-note__from { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }
.od-note__text { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.45; margin-top: 6px; }

/* ── Product detail banner ───────────────────────────────────────────────── */
.pd-banner       { height: 168px; margin: 0 0 16px; border-radius: var(--r-card); background: var(--accent-soft); position: relative; overflow: hidden; }
.pd-banner__art  { position: absolute; inset: 0; }
.pd-banner__art svg { width: 100%; height: 100%; display: block; }
.pd-banner__label { position: absolute; top: 14px; left: 16px; }
.pd-banner__badge { position: absolute; top: 14px; right: 16px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--badge-bg); color: var(--on-accent); font-size: 12px; font-weight: 700; }
.pd-title { font-size: 24px; font-weight: 700; color: var(--fg); letter-spacing: -0.018em; line-height: 1.18; }
.pd-sub   { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.45; margin-top: 8px; }
.pd-block { margin-top: 22px; }
.pd-block__h    { font-size: 13px; font-weight: 700; color: var(--quiet); letter-spacing: 0.06em; text-transform: uppercase; }
.pd-block__text { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.5; margin-top: 8px; }
.pd-pending { margin-top: 14px; background: var(--tech-soft); border-radius: var(--r-card); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.pd-pending__icon  { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); color: var(--tech); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.pd-pending__title { font-size: 14px; font-weight: 700; color: var(--fg); }
.pd-pending__text  { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.4; margin-top: 3px; }

/* ── Checkout ────────────────────────────────────────────────────────────── */
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; }
.summary-row + .summary-row { border-top: 1px dashed var(--border); }
.summary-row__label { font-size: 13px; font-weight: 500; color: var(--quiet); }
.summary-row__val   { font-size: 14px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }

/* ── Profile ─────────────────────────────────────────────────────────────── */
.profile-meta { margin-top: 4px; display: flex; flex-direction: column; }
.profile-meta__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.profile-meta__row:last-child { border-bottom: 0; }
.profile-meta__label { font-size: 13px; font-weight: 500; color: var(--quiet); flex-shrink: 0; }
.profile-meta__val   { font-size: 14px; font-weight: 700; color: var(--fg); text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.stack-10 > * + * { margin-top: 10px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-gap-8   { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-gap-10  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 10px; }

/* ── Skeleton loader animation ───────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}
.skel {
  background: var(--border); border-radius: 8px;
  animation: pulse 1.4s ease-in-out infinite;
}
.skel-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-card); }
.skel-line { height: 14px; background: var(--border); border-radius: 6px; animation: pulse 1.4s ease-in-out infinite; }
.skel-line--sm  { height: 11px; }
.skel-line--lg  { height: 18px; }
.skel-title {
  margin: 0 0 12px;
  color: var(--fg);
  font-size: 17px;
  line-height: 1.15;
  font-weight: 900;
}

/* ── Tablet / wide screen adapt ─────────────────────────────────────────── */
@media (min-width: 600px) {
  :root {
    --app-gutter: 28px;
  }

  .miniapp {
    max-width: 640px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  /* product cards → 2 columns on tablet */
  .catalog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .catalog-grid .product-card { margin-top: 0; }
  .catalog-grid .product-card + .product-card { margin-top: 0; }

  /* hub grid stays 2 col but gets bigger cards */
  .hub-grid { gap: 16px; }
  .hub-card  { padding: 20px 18px 18px; }

  /* tariff cards side-by-side */
  #tariff-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  #tariff-list .tariff-card { margin-top: 0 !important; }

  /* quick-grid → 4 columns on tablet */
  .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .home-hero { min-height: 200px; }
  .continue-card { grid-template-columns: 64px 1fr 48px; }
}

/* ── v2 Bottom navigation ────────────────────────────────────────────────── */
.bottom-nav-outer {
  flex-shrink: 0;
  background: var(--bg);
  padding: 8px 16px max(14px, env(safe-area-inset-bottom, 14px));
}
.bottom-nav {
  height: 66px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 4px;
  padding: 7px;
  border-radius: 30px;
  background: color-mix(in oklch, var(--surface), transparent 5%);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px color-mix(in oklch, var(--fg), transparent 88%);
  backdrop-filter: blur(14px);
}
html[data-theme="dark"] .bottom-nav {
  background: rgba(23, 30, 36, 0.94);
}
.nav-item {
  height: 50px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--quiet);
  font-size: 10.8px;
  font-weight: 850;
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.15s, background 0.15s;
}
.nav-item svg { width: 20px; height: 20px; stroke-width: 2; display: block; }
.nav-item.is-active { color: var(--accent-strong); background: color-mix(in oklch, var(--accent), var(--surface) 82%); }

/* ── v2 Home hero ────────────────────────────────────────────────────────── */
.home-hero {
  min-height: 144px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--accent-soft) 74%, transparent) 0 26%, transparent 27%),
    linear-gradient(135deg,
      color-mix(in srgb, var(--surface) 72%, var(--accent-soft) 28%),
      color-mix(in srgb, var(--surface) 88%, var(--bg) 12%));
  box-shadow: var(--shadow-card);
  margin-bottom: 4px;
  cursor: pointer;
}
.home-hero::after {
  content: "";
  position: absolute; right: 18px; bottom: 18px;
  width: 84px; height: 62px;
  border: 1px solid var(--border); border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  box-shadow: inset 0 -18px 0 color-mix(in srgb, var(--accent-soft) 70%, transparent);
  opacity: .9; z-index: 0;
}
.hero-kicker {
  display: inline-flex; width: fit-content;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
}
.home-hero__title {
  position: relative; z-index: 1;
  margin-top: 10px; max-width: 230px;
  color: var(--fg);
  font-size: 25px; font-weight: 900; line-height: 1.06; letter-spacing: -.04em;
}
.home-hero__sub {
  position: relative; z-index: 1;
  margin-top: 7px; max-width: 245px;
  color: var(--muted); font-size: 13.5px; line-height: 1.32; font-weight: 650;
}
.home-hero__meta {
  position: relative; z-index: 1;
  margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap;
}

/* ── v2 Brand hero (с фото) ──────────────────────────────────────────────── */
.home-hero--brand {
  min-height: 224px;
  padding: 0;
  justify-content: flex-end;
  background-image: url('dari-hero.webp');
  background-size: cover;
  background-position: center top;
  position: relative;
  isolation: isolate;
  --hero-overlay: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.02) 55%, rgba(255,255,255,.00) 100%);
  --hero-band: linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,255,255,.43) 58%, rgba(255,255,255,.18));
  --hero-band-border: rgba(14,26,43,.08);
  --hero-greeting: var(--fg);
  --hero-greeting-shadow: none;
}
html[data-theme="dark"] .home-hero--brand {
  --hero-overlay: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.04) 55%, rgba(0,0,0,.00) 100%);
  --hero-band: linear-gradient(180deg, rgba(16,21,26,.72), rgba(16,21,26,.52) 58%, rgba(16,21,26,.26));
  --hero-band-border: rgba(255,255,255,.10);
  --hero-greeting: #F6F1E8;
}
.home-hero--brand::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--hero-overlay);
}
.home-hero--brand::after {
  content: ""; position: absolute; inset: auto 0 0; z-index: 0; pointer-events: none;
  height: 140px;
  background: var(--hero-band);
  border-top: 1px solid var(--hero-band-border);
}
.home-hero__foot {
  position: relative; z-index: 1;
  padding: 12px 16px 16px;
  display: flex; flex-direction: column; gap: 10px; width: 100%;
}
.home-hero__foot-left  { display: flex; flex-direction: column; gap: 6px; min-width: 0; width: 100%; }
.home-hero__foot-right {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 8px; width: 100%;
}
.home-hero__greeting {
  color: var(--hero-greeting);
  font-size: 20px; font-weight: 900; line-height: 1.12; letter-spacing: -0.03em;
  text-shadow: var(--hero-greeting-shadow);
  width: 100%;
}

/* ── v2 Quick grid ───────────────────────────────────────────────────────── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.quick-card {
  min-height: 88px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.quick-card:hover  { transform: translateY(-1px); }
.quick-card:active { transform: scale(0.97); }
.quick-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.quick-card .h3 { font-size: 15px; margin-top: 8px; }
.quick-card .small { margin-top: 2px; }

/* ── v2 Continue card ────────────────────────────────────────────────────── */
.continue-card {
  padding: 13px;
  display: grid;
  grid-template-columns: 56px 1fr 44px;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}
.ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--accent) 0 34%, var(--tech-soft) 34% 100%);
  position: relative;
  color: var(--fg);
  font-size: 14px; font-weight: 800;
}
.ring::before {
  content: "";
  position: absolute; inset: 7px;
  border-radius: 50%;
  background: var(--surface);
}
.ring span { position: relative; }
.progress-bar {
  height: 6px; border-radius: 999px;
  background: var(--tech-soft); overflow: hidden; margin-top: 7px;
}
.progress-bar i {
  display: block; height: 100%;
  border-radius: inherit; background: var(--accent);
}
.play-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px; border: 0;
  color: var(--on-accent); background: var(--accent-cta);
  cursor: pointer; flex-shrink: 0;
}
.play-btn svg { width: 18px; height: 18px; }

/* ── v2 Assist card (главная) ────────────────────────────────────────────── */
.assist-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  cursor: pointer;
}
.assist-card__text { flex: 1; min-width: 0; }
.assist-card__title {
  font-size: 14px; font-weight: 800;
  color: var(--fg); letter-spacing: -0.01em;
}
.assist-card__title span { color: var(--accent); }
.assist-card__sub {
  margin-top: 2px;
  color: var(--muted); font-size: 12px; font-weight: 600;
}
.assist-card__btn {
  height: 36px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  padding: 0 12px; font-size: 12px; font-weight: 800;
  cursor: pointer; font-family: var(--font);
}

/* ── v2 Profile cabinet ──────────────────────────────────────────────────── */
.profile-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
}
.profile-avatar {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 18px;
  background: var(--accent-cta); color: var(--on-accent);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 900; letter-spacing: -0.05em;
}
.profile-name { font-size: 17px; font-weight: 800; color: var(--fg); letter-spacing: -0.02em; }
.profile-sub  { margin-top: 3px; font-size: 12px; color: var(--quiet); font-weight: 600; }

/* ── Product badge chip (banner system) ─────────────────────────────────── */
.product-badge {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.product-badge--accent { background: var(--accent-soft); color: var(--accent); }
.product-badge--tech   { background: var(--tech-soft);   color: var(--tech); }
.product-badge--warn   { background: var(--warn-soft);   color: var(--warn); }
.product-badge--hot    { background: #FEE2E2; color: #DC2626; }

.product-card__top .product-badge {
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Quick actions (list layout) ─────────────────────────────────────────── */
.quick-actions { display: flex; flex-direction: column; gap: 7px; }
.action-row {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.12s ease;
  font-family: var(--font);
}
.action-row:hover  { transform: translateY(-1px); }
.action-row:active { transform: scale(0.98); }
.action-row .h3 { font-size: 15px; display: block; }
.action-row .small { display: block; margin-top: 1px; }
.link-cta { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 13px; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
button.link-cta {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* ── Catalog recommendation and result-first product card ─────────────── */
.catalog-recommendation-prompt {
  margin: 4px var(--app-gutter) 16px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--border));
  border-radius: var(--r-input);
  background: var(--accent-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.catalog-recommendation-prompt__content { display: grid; gap: 4px; }
.catalog-recommendation-prompt__content strong { font-size: 14px; line-height: 1.35; }
.catalog-recommendation-prompt__content span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.catalog-recommendation-prompt__actions { display: flex; align-items: center; gap: 6px; }
.catalog-recommendation-prompt__actions .btn { width: auto; min-height: 40px; padding: 0 14px; border-radius: 12px; }
.catalog-recommendation-prompt__close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.catalog-recommendation-prompt__close svg { width: 18px; height: 18px; }

.home-recommendation {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  border-radius: var(--r-card);
  background: var(--surface);
  display: grid;
  gap: 13px;
  box-shadow: var(--shadow-card);
}
.home-recommendation__eyebrow,
.recommendation-result__status,
.recommendation-result-card__label,
.product-recommended-format__label {
  color: var(--accent-strong);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}
html[data-theme="dark"] .home-recommendation__eyebrow,
html[data-theme="dark"] .recommendation-result__status,
html[data-theme="dark"] .recommendation-result-card__label,
html[data-theme="dark"] .product-recommended-format__label { color: var(--accent); }
.home-recommendation__body { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.home-recommendation__body > div { display: grid; gap: 4px; }
.home-recommendation__price { white-space: nowrap; font-size: 15px; }

.recommendation-screen .miniapp__body { padding-bottom: 40px; }
.recommendation-flow,
.recommendation-result { display: grid; gap: 20px; }
.recommendation-flow h1,
.recommendation-result h1 { font-size: 24px; line-height: 1.25; letter-spacing: 0; }
.recommendation-result > p { margin-top: -12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.recommendation-progress { display: grid; gap: 8px; }
.recommendation-progress__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.recommendation-progress__meta strong { color: var(--fg); font-size: 12px; }
.recommendation-progress__track { height: 5px; border-radius: 999px; background: var(--border); overflow: hidden; }
.recommendation-progress__track span { display: block; height: 100%; border-radius: inherit; background: var(--accent-cta); transition: width var(--motion-base) var(--ease-standard); }
.recommendation-options { display: grid; gap: 8px; }
.recommendation-options button {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  background: var(--surface);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}
.recommendation-options button:active { background: var(--accent-soft); border-color: var(--accent); }
.recommendation-options svg { width: 18px; height: 18px; color: var(--accent); }
.recommendation-back-step,
.recommendation-restart {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.recommendation-back-step svg { width: 16px; height: 16px; }
.recommendation-loading { min-height: 340px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; }
.recommendation-loading > span { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: recommendation-spin .8s linear infinite; }
.recommendation-loading p { color: var(--muted); font-size: 13px; }
@keyframes recommendation-spin { to { transform: rotate(360deg); } }

.recommendation-result-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  background: var(--surface);
  display: grid;
  gap: 12px;
}
.recommendation-result-card.is-primary { border-color: color-mix(in srgb, var(--accent) 54%, var(--border)); background: color-mix(in srgb, var(--accent-soft) 44%, var(--surface)); }
.recommendation-result-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.recommendation-result-card__head > div { display: grid; gap: 4px; }
.recommendation-result-card__head h3 { font-size: 16px; line-height: 1.35; letter-spacing: 0; }
.recommendation-result-card__head p { color: var(--muted); font-size: 12px; line-height: 1.4; }
.recommendation-result-card__head > strong { white-space: nowrap; font-size: 15px; }
.recommendation-result-card__reason { color: var(--muted); font-size: 12px; line-height: 1.45; }
.recommendation-result-card__outcomes { list-style: none; display: grid; gap: 7px; }
.recommendation-result-card__outcomes li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 9px; color: var(--fg); font-size: 12px; line-height: 1.45; }
.recommendation-result-card__outcomes li span { width: 7px; height: 7px; margin-top: 5px; border-radius: 2px; background: var(--accent); }
.recommendation-result__alternatives { display: grid; gap: 10px; }
.recommendation-result--fallback .btn + .btn { margin-top: -10px; }

.product-decision-section { margin-top: 18px; display: grid; gap: 11px; }
.product-decision-section h2 { font-size: 15px; line-height: 1.35; letter-spacing: 0; }
.product-outcomes,
.product-after-steps { list-style: none; display: grid; gap: 9px; }
.product-outcomes li,
.product-after-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.product-outcomes li > span,
.product-after-steps li > span { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
html[data-theme="dark"] .product-outcomes li > span,
html[data-theme="dark"] .product-after-steps li > span { color: var(--accent); }
.product-outcomes li p,
.product-after-steps li p { padding-top: 2px; color: var(--fg); font-size: 13px; line-height: 1.5; }
.product-not-for { margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--warn); background: var(--warn-soft); border-radius: 0 var(--r-input) var(--r-input) 0; display: grid; gap: 4px; }
.product-not-for strong { font-size: 12px; }
.product-not-for span { color: var(--muted); font-size: 12px; line-height: 1.45; }

.product-recommended-format { margin-top: 18px; padding: 16px; display: grid; gap: 13px; }
.product-recommended-format__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(108px, auto); gap: 12px; align-items: stretch; }
.product-recommended-format__copy { display: grid; align-content: center; gap: 5px; }
.product-recommended-format__copy strong { font-size: 15px; line-height: 1.35; }
.product-recommended-format__copy span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.product-recommended-format .format-price-card__price-panel { min-height: 82px; }
.product-all-tariffs { border-top: 1px solid var(--border); padding-top: 11px; }
.product-all-tariffs > summary { list-style: none; cursor: pointer; color: var(--accent-strong); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 800; }
html[data-theme="dark"] .product-all-tariffs > summary { color: var(--accent); }
.product-all-tariffs > summary::-webkit-details-marker { display: none; }
.product-all-tariffs > summary svg { width: 16px; height: 16px; transition: transform var(--motion-fast); }
.product-all-tariffs[open] > summary svg { transform: rotate(90deg); }
.product-all-tariffs .tariff-tabs { margin-top: 10px; }
.product-primary-action { margin-top: 12px; }

.product-more { margin-top: 18px; }
.product-more-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.product-more-tabs button { min-height: 36px; padding: 6px 4px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; }
.product-more-tabs button.is-active { background: var(--surface-raised); color: var(--fg); box-shadow: 0 2px 8px rgba(14,26,43,.08); }
.product-more-panel { padding-top: 14px; }
.product-more-panel[hidden] { display: none; }
.product-more-description { margin-bottom: 14px; }
.product-more-note { margin-bottom: 14px; display: grid; gap: 6px; }
.product-more-note strong { font-size: 12px; }
.product-more-note div,
.product-more-empty { color: var(--muted); font-size: 12px; line-height: 1.55; }
.admin-product-recommendation { margin-top: 12px; padding: 14px; display: grid; gap: 12px; }
.admin-product-recommendation .admin-product-kpi-strip { margin: 0; }

@media (max-width: 380px) {
  .catalog-recommendation-prompt { grid-template-columns: 1fr; }
  .catalog-recommendation-prompt__actions { justify-content: space-between; }
  .catalog-recommendation-prompt__actions .btn { flex: 1; }
  .product-recommended-format__main { grid-template-columns: 1fr; }
  .product-recommended-format .format-price-card__price-panel { min-height: 70px; }
}

/* Individual order offer */
.individual-offer__body {
  width: min(100%, 560px);
  margin: 0 auto;
  gap: 18px;
  padding-bottom: 24px;
}

.individual-offer__intro {
  display: grid;
  gap: 9px;
}

.individual-offer__intro .type-label {
  width: fit-content;
}

.individual-offer__intro h1 {
  margin: 0;
  color: var(--fg);
  font-size: 25px;
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.individual-offer__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 550;
}

.individual-offer__facts {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
}

.individual-offer__facts > div {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.individual-offer__facts > div:last-child {
  border-bottom: 0;
}

.individual-offer__facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.individual-offer__facts strong {
  max-width: 58%;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 850;
  text-align: right;
}

.individual-offer__facts > div:first-child strong {
  color: var(--accent-strong);
  font-size: 20px;
}

.individual-offer__section {
  display: grid;
  gap: 8px;
}

.individual-offer__payments {
  display: grid;
  gap: 7px;
}

.individual-offer__payment,
.individual-offer__fixed-payment {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--fg);
  text-align: left;
}

.individual-offer__payment {
  cursor: pointer;
}

.individual-offer__payment.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.individual-offer__payment strong,
.individual-offer__fixed-payment strong,
.individual-offer__bonus strong {
  display: block;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 850;
}

.individual-offer__payment small,
.individual-offer__fixed-payment small,
.individual-offer__bonus small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 550;
}

.individual-offer__radio {
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--quiet);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--card);
  background: transparent;
}

.individual-offer__payment.is-active .individual-offer__radio {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--accent-soft);
}

.individual-offer__fixed-payment .icon-tile {
  width: 20px;
  height: 20px;
  color: var(--accent-strong);
  background: transparent;
}

.individual-offer__terms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.individual-offer__terms > span {
  flex: 1 1 100%;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 600;
}

.individual-offer__bonus {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
}

.individual-offer__bonus input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.individual-offer__bonus.is-disabled {
  opacity: .58;
  cursor: default;
}

.individual-offer__note {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 11px 12px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.individual-offer__note svg {
  width: 17px;
  height: 17px;
  color: var(--accent-strong);
}

.individual-offer__error {
  margin: 0;
}

.individual-order-description {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--fg);
}

.individual-offer__actions {
  display: grid;
  gap: 4px;
}

.screen-wrap .individual-offer__actions.tg-mainbtn {
  position: static;
  margin: 0;
  padding: 0;
  border-top: 0;
  background: transparent;
}

.individual-offer__actions .btn-ghost {
  justify-content: center;
}

@media (max-width: 380px) {
  .individual-offer__intro h1 {
    font-size: 22px;
  }

  .individual-offer__facts > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .individual-offer__facts strong {
    max-width: 100%;
    text-align: left;
  }
}
button.link-cta:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 8px; }
.link-cta svg { width: 14px; height: 14px; }

/* ── Product list (catalog list layout) ─────────────────────────────────── */
.product-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 22px; }
.product-list-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.product-list-card:hover  { transform: translateY(-1px); }
.product-list-card:active { transform: scale(0.98); }
.product-list-card--featured { background: color-mix(in srgb, var(--surface) 82%, var(--accent-soft) 18%); padding: 16px; }
.product-list-card__top  { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.product-list-card__name { font-size: 17px; font-weight: 800; color: var(--fg); letter-spacing: -.01em; line-height: 1.25; }
.product-list-card__desc { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.38; font-weight: 550; }
.product-list-card__foot { margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--border); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.product-list-card__price { color: var(--fg); font-size: 14px; font-weight: 850; }
.product-list-card__price--free { color: var(--accent); }

/* ── Attach list (request form) ─────────────────────────────────────────── */
.attach-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.attach-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px; border-radius: var(--r-input);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 550;
}
.attach-item--loading { opacity: .6; }
.attach-item--error { border-color: var(--error); }
.attach-item__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.attach-item__status { color: var(--quiet); font-size: 12px; flex-shrink: 0; }
.attach-item__status--err { color: var(--error); }
.attach-item__remove { background: none; border: none; padding: 0 2px; cursor: pointer; color: var(--quiet); font-size: 14px; flex-shrink: 0; line-height: 1; }
.attach-item__remove:hover { color: var(--error); }

/* ── Empty / Error states ────────────────────────────────────────────────── */
.empty-state {
  padding: 28px 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--shadow-card);
}
.empty-state__icon { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: var(--tech-soft); color: var(--tech); }
.empty-state__icon svg { width: 22px; height: 22px; }
.empty-state__title { font-size: 16px; font-weight: 800; color: var(--fg); letter-spacing: -.01em; }

/* ── Copy toast ──────────────────────────────────────────────────────────── */
.copy-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--fg); color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: 999px; pointer-events: none;
  opacity: 0; transition: opacity 0.2s, transform 0.2s; z-index: 999;
}
.copy-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.copy-toast--error { background: var(--error); }

.copy-chip,
.referral-link-chip {
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent-soft) 58%, var(--surface) 42%);
  color: var(--accent-strong);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.15;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: left;
  cursor: pointer;
}

.copy-chip:active,
.referral-link-chip:active { transform: scale(.98); }

/* ── Payment details screen ──────────────────────────────────────────────── */
.pay-row {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 14px 16px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 6px;
}
.pay-row__label { font-size: 12px; font-weight: 700; color: var(--quiet); letter-spacing: 0.05em; text-transform: uppercase; }
.pay-row__val   { font-size: 22px; font-weight: 800; color: var(--fg); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pay-row__val--card { font-family: 'Courier New', Courier, monospace; font-size: 20px; font-weight: 700; letter-spacing: 0.08em; word-spacing: 0.2em; }
.copy-btn {
  align-self: stretch; height: 40px; border: 1.5px solid var(--border); border-radius: var(--r-input);
  background: var(--bg); color: var(--quiet); font-family: var(--font); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px;
}
.copy-btn:active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.copy-btn--accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.copy-btn--accent:active { background: var(--accent-cta); border-color: var(--accent-cta); }
.pay-details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 14px 16px; box-shadow: var(--shadow-card);
  font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.6; white-space: pre-wrap;
}

/* ── Receipt upload zone ─────────────────────────────────────────────────── */
.upload-zone {
  background: var(--surface); border: 2px dashed var(--border); border-radius: var(--r-card);
  padding: 28px 20px; cursor: pointer; text-align: center;
  transition: border-color 0.15s, background 0.15s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.upload-zone:hover, .upload-zone:active { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone__icon { font-size: 32px; line-height: 1; }
.upload-zone__text { font-size: 14px; font-weight: 700; color: var(--fg); }
.upload-zone__sub  { font-size: 12px; font-weight: 500; color: var(--quiet); }

/* ── Course / module accordion ───────────────────────────────────────────── */
.module-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card);
}
.module-head {
  width: 100%; background: none; border: none; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  text-align: left; font-family: var(--font);
}
.module-head__body   { flex: 1; min-width: 0; }
.module-head__title  { font-size: 15px; font-weight: 700; color: var(--fg); letter-spacing: -0.01em; }
.module-head__sub    { font-size: 12px; font-weight: 600; color: var(--quiet); margin-top: 2px; }
.module-head__chev   { color: var(--quiet); transition: transform 0.2s; flex-shrink: 0; width: 18px; height: 18px; }
.module-head__chev svg { width: 18px; height: 18px; }
.module-head__chev.is-open { transform: rotate(90deg); }
.module-lessons {
  overflow: hidden; max-height: 0; transition: max-height 0.25s ease;
  border-top: 0px solid var(--border);
}
.module-lessons.is-open {
  max-height: 2000px;
  border-top-width: 1px;
}
.lesson-row__icon  { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--bg); color: var(--quiet); }
.lesson-row__icon svg { width: 16px; height: 16px; }
.lesson-row__body  { flex: 1; min-width: 0; }
.lesson-row__title { font-size: 14px; font-weight: 600; color: var(--fg); }
.lesson-row__dur   { font-size: 12px; font-weight: 500; color: var(--quiet); margin-top: 2px; }
.lesson-row__arrow { color: var(--quiet); flex-shrink: 0; width: 16px; height: 16px; }
.lesson-row__arrow svg { width: 16px; height: 16px; }
.empty-state__text  { font-size: 14px; font-weight: 550; color: var(--muted); line-height: 1.45; }

/* Open Design exact handoff */
.miniapp__scroll > .screen-wrap {
  display: block;
  width: 100%;
  min-height: 100%;
}

.screen-wrap,
.screen-wrap * {
  letter-spacing: 0;
}

.screen-wrap .miniapp__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 0 24px;
}

.product-title-break span {
  display: block;
}

.arrow-action svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}

.icon-tech,
.icon-tile.icon-tech {
  background: var(--tech-soft);
  color: var(--tech);
}

.icon-warn,
.icon-tile.icon-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.icon-success,
.icon-tile.icon-success {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.icon-telegram,
.icon-tile.icon-telegram {
  background: var(--tech-soft);
  color: var(--tech);
}

.admin-dashboard .miniapp__body {
  gap: 12px;
  padding-bottom: 112px;
}

.screen-wrap[data-screen-key="course-admin"] .miniapp__body {
  padding-bottom: 112px;
}

.admin-bottom-nav {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}

.admin-bottom-nav .nav-item {
  font-size: 10.4px;
}

.admin-bottom-nav .nav-item.is-active {
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent-soft) 76%, var(--surface) 24%);
}

.admin-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.admin-toggle strong,
.admin-toggle small {
  display: block;
}

.admin-toggle strong {
  font-size: 13px;
  line-height: 1.25;
}

.admin-toggle small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.admin-toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent-cta);
  flex-shrink: 0;
}

.admin-filter-row {
  display: grid;
  gap: 8px;
}

.admin-filter-row .admin-compact-note {
  margin-top: 0;
}

.admin-filter-row .admin-toggle {
  box-shadow: none;
}

.admin-work-scroll {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.admin-work-ref {
  min-height: 100%;
}

.admin-work-ref .admin-work-screen {
  width: 100%;
  min-height: 100%;
  padding: 8px 0 100px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.admin-work-ref .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  min-height: 46px;
  padding-top: 0;
}

.admin-work-ref .topbar.compact {
  align-items: center;
}

.admin-work-ref .title-wrap {
  min-width: 0;
  padding-top: 2px;
}

.admin-work-ref h1,
.admin-work-ref h2,
.admin-work-ref h3,
.admin-work-ref p {
  margin: 0;
}

.admin-work-ref h1 {
  color: var(--fg);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
}

.admin-work-ref .service-note {
  margin-top: 5px;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}

.admin-work-ref .menu-button,
.admin-work-ref .back-button {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-strong);
  box-shadow: var(--shadow-button);
  line-height: 1;
}

.admin-work-ref .menu-button {
  font-size: 22px;
  font-weight: 750;
}

.admin-work-ref .back-button {
  font-size: 20px;
  font-weight: 700;
}

.admin-work-ref .service-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 6;
  width: 232px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
  transform-origin: top right;
  transform: scale(.96) translateY(-4px);
  opacity: 0;
  pointer-events: none;
  transition: transform .16s ease, opacity .16s ease;
}

.admin-work-ref .service-menu[hidden] {
  display: none;
}

.admin-work-ref .service-menu.is-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.admin-work-ref .service-menu button {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  color: var(--fg);
  text-align: left;
  font-size: 13px;
  font-weight: 560;
}

.admin-work-ref .service-menu button:hover {
  background: var(--surface-soft);
}

.admin-work-ref .card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}

.admin-work-ref .work-stack,
.admin-work-ref .task-list {
  display: grid;
  gap: 10px;
}

.admin-work-ref .priority-card {
  width: 100%;
  padding: 16px;
  display: grid;
  gap: 13px;
  color: var(--fg);
  text-align: left;
  background: var(--surface-raised);
  border-color: color-mix(in srgb, var(--warn) 24%, var(--border));
}

.admin-work-ref .priority-head,
.admin-work-ref .queue-row,
.admin-work-ref .task-card,
.admin-work-ref .detail-card {
  display: grid;
}

.admin-work-ref .priority-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.admin-work-ref .priority-title,
.admin-work-ref .queue-title,
.admin-work-ref .task-title {
  color: var(--fg);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: 0;
}

.admin-work-ref .priority-title {
  font-size: 19px;
  display: block;
}

.admin-work-ref .queue-title,
.admin-work-ref .task-title {
  font-size: 15px;
}

.admin-work-ref .priority-copy,
.admin-work-ref .queue-meta,
.admin-work-ref .task-meta,
.admin-work-ref .detail-copy,
.admin-work-ref .state-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

.admin-work-ref .priority-copy {
  display: block;
  margin-top: 4px;
}

.admin-work-ref .priority-count {
  min-width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: var(--warn-soft);
  color: var(--warn-strong);
  font-size: 22px;
  line-height: 1;
  font-weight: 720;
}

.admin-work-ref .priority-action {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 650;
}

.admin-work-ref .priority-action:active,
.admin-work-ref .queue-row:active,
.admin-work-ref .task-detail-button:active,
.admin-work-ref .action-button:active {
  transform: translateY(1px);
}

.admin-work-ref .queue-list {
  display: grid;
  gap: 8px;
}

.admin-work-ref .queue-row {
  width: 100%;
  min-height: 64px;
  padding: 12px 13px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  text-align: left;
  box-shadow: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.admin-work-ref .queue-row:hover {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  background: var(--surface);
}

.admin-work-ref .queue-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-work-ref .queue-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.admin-work-ref .queue-count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 690;
  font-variant-numeric: tabular-nums;
}

.admin-work-ref .detail-card {
  gap: 8px;
  padding: 14px;
  background: var(--surface-soft);
  box-shadow: none;
}

.admin-work-ref .detail-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 2px;
  background: var(--accent-soft);
  color: var(--accent);
}

.admin-work-ref .detail-icon.warn {
  background: var(--warn-soft);
  color: var(--warn-strong);
}

.admin-work-ref .detail-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-work-ref .task-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-work-ref .task-card {
  min-height: 72px;
  padding: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 12px;
  box-shadow: none;
  transition: border-color .16s ease, background .16s ease;
}

.admin-work-ref .task-card:hover,
.admin-work-ref .task-card:focus-within {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  background: var(--surface);
}

.admin-work-ref .task-detail-button {
  min-width: 0;
  min-height: 42px;
  padding: 2px 0;
  display: grid;
  gap: 4px;
  appearance: none;
  border: 0;
  outline: none;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-work-ref .task-title,
.admin-work-ref .task-meta {
  overflow-wrap: anywhere;
}

.admin-work-ref .action-button {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 14px;
  appearance: none;
  border: 0;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: transform .14s ease, background .14s ease;
}

.admin-work-ref .task-card > .action-button {
  width: 100%;
  grid-column: 1 / -1;
}

.admin-work-ref .admin-client-link {
  min-height: 34px;
  padding: 7px 10px;
  align-self: start;
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--accent-strong) 22%, var(--border));
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.admin-work-ref .action-button:hover {
  background: color-mix(in srgb, var(--accent-soft) 62%, var(--surface-raised));
}

.admin-work-ref .action-button--wide {
  width: fit-content;
}

.admin-work-ref .state-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  box-shadow: none;
}

.admin-work-ref .state-title {
  color: var(--fg);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 650;
}

.admin-work-ref .loading-line {
  height: 10px;
  border-radius: 999px;
  background: var(--border);
  animation: adminWorkPulse 1.2s ease-in-out infinite;
}

.admin-work-ref .loading-line.short {
  width: 58%;
}

.admin-bottom-nav {
  height: 66px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border-radius: 24px;
}

.admin-bottom-nav .nav-item {
  min-height: 54px;
  border-radius: 18px;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 650;
}

.admin-bottom-nav .nav-item svg {
  stroke-width: 1.7;
}

@keyframes adminWorkPulse {
  0%,
  100% { opacity: .48; }
  50% { opacity: 1; }
}

@media (max-width: 360px) {
  .admin-work-ref .admin-work-screen {
    padding-inline: 0;
  }

  .admin-work-ref .priority-card,
  .admin-work-ref .queue-row,
  .admin-work-ref .task-card {
    border-radius: 18px;
  }

  .admin-work-ref .task-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-work-ref .action-button {
    width: 100%;
  }
}

.icon-inline {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  vertical-align: -3px;
}

.icon-inline svg {
  width: 16px;
  height: 16px;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 84%, var(--accent-soft) 16%), var(--surface-raised));
}

.admin-hero__title {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 800;
  color: var(--fg);
}

.admin-hero__count {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--accent-cta);
  color: var(--on-accent);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.admin-attention-grid,
.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-kpi-card,
.admin-metric-card,
.admin-product-bar {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.admin-kpi-card {
  min-height: 118px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.admin-kpi-card .icon-tile {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.admin-kpi-card__value {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}

.admin-kpi-card__title {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--fg);
}

.admin-metric-card {
  padding: 14px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-metric-card strong {
  font-size: 22px;
  line-height: 1.05;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.admin-metric-card span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.admin-product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-product-bar {
  padding: 14px;
}

.admin-product-bar__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.admin-product-bar__top strong {
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-product-bar__track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface) 28%);
  margin-bottom: 8px;
}

.admin-product-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-cta), var(--accent));
}

.admin-insight-list {
  display: grid;
  gap: 8px;
}

.admin-insight {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.admin-insight--success {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 52%, var(--surface-raised) 48%);
}

.admin-insight--warn {
  border-color: color-mix(in srgb, var(--warn) 30%, var(--border));
  background: color-mix(in srgb, var(--warn-soft) 46%, var(--surface-raised) 54%);
}

.admin-insight__title {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--fg);
}

.admin-insight__text {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 560;
  color: var(--muted);
}

.admin-funnel,
.admin-workload,
.admin-data-sources,
.admin-mini-top {
  padding: 14px;
}

.admin-funnel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-funnel__steps,
.admin-workload__list,
.admin-data-source-list {
  display: grid;
  gap: 9px;
}

.admin-funnel-step__top,
.admin-workload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.admin-funnel-step__top {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 760;
  color: var(--fg);
}

.admin-funnel-step__top strong {
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}

.admin-funnel-step__track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface) 28%);
}

.admin-funnel-step__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-cta);
}

.admin-funnel__meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 560;
}

.admin-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-mini-top {
  display: grid;
  gap: 9px;
  box-shadow: var(--shadow-card);
}

.admin-mini-top .admin-product-bar {
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.admin-mini-top .admin-product-bar:first-of-type {
  border-top: 0;
}

.admin-workload-row {
  position: relative;
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  text-align: left;
}

.admin-workload-row:last-child {
  border-bottom: 0;
}

.admin-workload-row strong,
.admin-data-source-list strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--fg);
}

.admin-workload-row small,
.admin-data-source-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 560;
}

.admin-workload-row__age {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.admin-workload-row i {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-cta);
}

.admin-data-source-list {
  margin: 12px 0;
}

.admin-data-source-list div {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.admin-data-source-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-compact .miniapp__body {
  gap: 11px;
}

.admin-compact-note {
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  font-weight: 650;
}

.admin-summary-card {
  padding: 15px;
  display: grid;
  gap: 13px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 10%, color-mix(in srgb, var(--tech-soft) 86%, transparent), transparent 44%),
    linear-gradient(135deg, var(--surface-raised) 0%, color-mix(in srgb, var(--accent-soft) 68%, var(--surface-raised) 32%) 100%);
}

.admin-summary-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.admin-summary-card strong {
  display: block;
  margin-top: 4px;
  color: var(--fg);
  font-size: 22px;
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-summary-card span,
.admin-analytics-summary span,
.admin-data-hero span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.admin-mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-mini-chips span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-raised) 72%, var(--bg));
  color: var(--fg);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.admin-mini-chips b {
  font-variant-numeric: tabular-nums;
}

.admin-primary-btn {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 15px;
  background: var(--accent-cta);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 900;
}

.admin-money-card {
  padding: 5px 14px;
}

.admin-money-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.admin-money-row:last-child {
  border-bottom: 0;
}

.admin-money-row div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.admin-money-row i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--accent-cta);
  transform: translateY(-1px);
}

.admin-money-row i.wait {
  background: var(--tech);
}

.admin-money-row i.warn {
  background: var(--warn);
}

.admin-money-row span {
  color: var(--fg);
  font-size: 13px;
  font-weight: 850;
}

.admin-money-row strong {
  color: var(--fg);
  font-size: 17px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-signal-card {
  padding: 12px;
  display: grid;
  gap: 0;
}

.admin-signal-row,
.admin-slice-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--fg);
  text-align: left;
}

.admin-signal-row {
  padding: 0 0 9px;
  border-bottom: 1px solid var(--border);
}

.admin-signal-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-signal-row strong,
.admin-slice-row strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.admin-signal-row small,
.admin-slice-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.32;
  font-weight: 600;
}

.admin-category-card {
  width: 100%;
  padding: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--fg);
  text-align: left;
}

.admin-category-card.is-priority {
  border-color: color-mix(in srgb, var(--warn) 36%, var(--border));
  background: color-mix(in srgb, var(--warn-soft) 30%, var(--surface-raised));
}

.admin-category-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-category-title {
  color: var(--fg);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.admin-category-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.admin-category-count {
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.admin-category-card.is-priority .admin-category-count {
  background: var(--warn-soft);
  color: var(--warn);
}

.admin-segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-raised);
}

.admin-segmented button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  font-weight: 850;
}

.admin-segmented button.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.admin-analytics-summary,
.admin-funnel-compact,
.admin-data-hero {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.admin-analytics-summary strong {
  display: block;
  color: var(--fg);
  font-size: 27px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.admin-spark {
  height: 38px;
  display: flex;
  align-items: end;
  gap: 6px;
  padding-top: 4px;
}

.admin-spark i {
  flex: 1;
  min-width: 0;
  min-height: 6px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-strong) 76%, var(--surface-raised)), color-mix(in srgb, var(--accent-cta) 58%, var(--muted)));
  opacity: .78;
}

.admin-funnel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.admin-funnel-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.admin-stage {
  padding: 9px 6px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-raised) 82%, var(--accent-soft) 18%);
  text-align: center;
}

.admin-stage span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
}

.admin-stage strong {
  display: block;
  margin-top: 4px;
  color: var(--fg);
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.admin-stage.is-muted {
  opacity: .62;
}

.admin-drop-note {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.admin-drop-note strong {
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}

.admin-slice-list {
  display: grid;
  gap: 8px;
}

.admin-slice-row {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  color: var(--fg);
  text-align: left;
}

.admin-slice-row > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-slice-row strong,
.admin-slice-row small {
  overflow-wrap: anywhere;
}

.admin-slice-row strong {
  color: var(--fg);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.admin-slice-row small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 650;
}

.admin-data-hero {
  background: linear-gradient(135deg, var(--surface-raised), color-mix(in srgb, var(--accent-soft) 62%, var(--surface-raised)));
}

.admin-data-hero__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.admin-data-hero strong {
  display: block;
  color: var(--fg);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
}

.admin-nested-summary {
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: color-mix(in srgb, var(--surface-raised) 78%, var(--accent-soft) 22%);
}

.admin-nested-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-nested-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--fg);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
}

.admin-nested-summary b {
  max-width: 164px;
  color: var(--accent-strong);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 850;
  text-align: right;
}

.admin-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.admin-search-row input {
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-raised);
  color: var(--fg);
  font-size: 14px;
  font-weight: 650;
  outline: none;
}

.admin-search-row input:focus {
  border-color: color-mix(in srgb, var(--accent-cta) 52%, var(--border));
}

.admin-search-row button {
  min-width: 78px;
  height: 44px;
  border: 0;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.admin-select-all {
  min-height: 46px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 850;
}

.admin-select-all input,
.admin-exclusion-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-cta);
  flex: 0 0 auto;
}

.admin-exclusion-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.admin-exclusion-actions .btn {
  min-height: 44px;
  padding-inline: 10px;
  font-size: 12px;
}

.admin-exclusion-list {
  display: grid;
  gap: 8px;
}

.admin-exclusion-row {
  min-height: 64px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.admin-exclusion-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-exclusion-main strong,
.admin-exclusion-main small {
  overflow-wrap: anywhere;
}

.admin-exclusion-main strong {
  color: var(--fg);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.admin-exclusion-main small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 650;
}

@media (max-width: 360px) {
  .admin-mini-grid {
    grid-template-columns: 1fr;
  }

  .admin-funnel-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-exclusion-actions,
  .admin-search-row {
    grid-template-columns: 1fr;
  }
}

.admin-dashboard .section-title {
  margin: 4px 0 -2px;
}

.admin-dashboard .action-row[disabled] {
  opacity: .55;
  cursor: default;
}

.screen-wrap[data-screen-key="home"] .miniapp__body {
  gap: 14px;
  padding-bottom: 22px;
}

.screen-wrap[data-screen-key="home"] .home-hero--brand {
  min-height: clamp(212px, 55vw, 226px);
  margin: 0;
  padding: 0;
  border-radius: 28px;
  background: #241E18;
  background-image: none;
  overflow: hidden;
  cursor: pointer;
}

.screen-wrap[data-screen-key="home"] .home-hero__persona {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #241E18;
}

.screen-wrap[data-screen-key="home"] .home-hero--brand::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(12, 15, 20, 0.06) 0%, rgba(12, 15, 20, 0.04) 44%, rgba(12, 15, 20, 0.56) 100%);
}

.screen-wrap[data-screen-key="home"] .home-hero--brand::after {
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  z-index: 1;
  height: 138px;
  background: linear-gradient(180deg, rgba(14, 18, 24, 0) 0%, rgba(14, 18, 24, 0.54) 74%, rgba(14, 18, 24, 0.64) 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
}

.screen-wrap[data-screen-key="home"] .home-hero__content {
  position: absolute;
  left: 20px;
  right: 72px;
  bottom: 18px;
  z-index: 2;
}

.screen-wrap[data-screen-key="home"] .home-hero__content h1 {
  margin: 0;
  color: #fff7ed;
  font-size: clamp(25px, 7.1vw, 30px);
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.screen-wrap[data-screen-key="home"] .home-greeting-line,
.screen-wrap[data-screen-key="home"] .home-greeting-name {
  display: block;
}

.screen-wrap[data-screen-key="home"] .home-theme-icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-strong);
  font-size: 23px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.16);
  cursor: pointer;
}

.theme-icon,
#theme-toggle .theme-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 20px;
}

html[data-theme="dark"] .screen-wrap[data-screen-key="home"] .home-theme-icon {
  background: rgba(16, 21, 26, 0.76);
  color: #f6f1e8;
  border-color: rgba(255, 255, 255, 0.18);
}

.screen-wrap[data-screen-key="home"] .quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.screen-wrap[data-screen-key="home"] .quick-actions .card + .card {
  margin-top: 0;
}

.screen-wrap[data-screen-key="home"] .quick-actions .action-row {
  position: relative;
  min-height: 124px;
  padding: 14px;
  display: block;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-raised) 94%, var(--bg) 6%);
}

.screen-wrap[data-screen-key="home"] .quick-actions .icon-tile {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 13px;
}

.screen-wrap[data-screen-key="home"] .quick-actions .action-row__text {
  display: block;
  min-width: 0;
  padding-right: 36px;
}

.screen-wrap[data-screen-key="home"] .quick-actions .link-cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.screen-wrap[data-screen-key="home"] .quick-actions .h3 {
  font-size: 15px;
  line-height: 1.16;
  font-weight: 900;
  white-space: nowrap;
}

.screen-wrap[data-screen-key="home"] .quick-actions .small {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.18;
  color: var(--muted);
}

.continue-order-card[hidden] {
  display: none !important;
}

.screen-wrap[data-screen-key="home"] .continue-order-card {
  position: relative;
  overflow: hidden;
  padding: 18px 16px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-raised) 94%, var(--accent-soft) 6%), color-mix(in srgb, var(--surface) 94%, var(--bg) 6%));
  box-shadow: var(--shadow-card);
}

.screen-wrap[data-screen-key="home"] .continue-order-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -28px;
  width: 108px;
  height: 108px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 72%, transparent);
  pointer-events: none;
}

.screen-wrap[data-screen-key="home"] .continue-course-card {
  border-color: color-mix(in srgb, var(--tech) 34%, var(--border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-raised) 92%, var(--tech-soft) 8%), color-mix(in srgb, var(--surface) 94%, var(--bg) 6%));
}

.screen-wrap[data-screen-key="home"] .continue-course-card::after {
  background: color-mix(in srgb, var(--tech-soft) 74%, transparent);
}

.screen-wrap[data-screen-key="home"] .continue-course-card .continue-order-card__status {
  border-color: color-mix(in srgb, var(--tech) 45%, var(--border));
  color: var(--fg);
  background: color-mix(in srgb, var(--tech-soft) 70%, var(--surface) 30%);
}

.continue-order-card__top {
  position: relative;
  z-index: 1;
}

.continue-order-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  border-radius: 999px;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface) 28%);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.continue-order-card .h3 {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 900;
}

.continue-order-card .small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.continue-order-card .btn {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  height: 48px;
  border-radius: 13px;
}

.featured-card {
  position: relative;
  min-height: 94px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  overflow: hidden;
  cursor: pointer;
}

.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--featured-bg-light);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

html[data-theme="dark"] .featured-card::before {
  background-image: var(--featured-bg-dark);
  opacity: 0.14;
}

.featured-card > * {
  position: relative;
  z-index: 1;
}

.featured-card__img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--surface-raised) 76%, transparent);
  color: var(--accent);
}

.featured-card__img svg {
  width: 48px;
  height: 48px;
}

.featured-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-strong);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
}

.home-featured-caption {
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.screen-wrap[data-screen-key="catalog"] .tg-subhead.catalog-head,
.screen-wrap[data-screen-key="product"] .tg-subhead,
.screen-wrap[data-screen-key="checkout"] .tg-subhead {
  margin-bottom: 28px;
  padding-top: 4px;
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
}

.screen-wrap[data-screen-key="checkout"] .tg-subhead {
  grid-template-columns: 72px minmax(0, 1fr) 24px;
}

.screen-wrap[data-screen-key="catalog"] .tg-subhead.catalog-head {
  margin-bottom: 28px;
}

.screen-wrap[data-screen-key="catalog"] .tg-subhead__title,
.screen-wrap[data-screen-key="product"] .tg-subhead__title,
.screen-wrap[data-screen-key="checkout"] .tg-subhead__title {
  font-size: 23px;
  line-height: 1.08;
  font-weight: 900;
}

.screen-wrap[data-screen-key="checkout"] .tg-subhead__title {
  font-size: 21px;
  white-space: nowrap;
}

.screen-wrap[data-screen-key="catalog"] .tg-subhead__back,
.screen-wrap[data-screen-key="product"] .tg-subhead__back,
.screen-wrap[data-screen-key="checkout"] .tg-subhead__back {
  min-width: 72px;
}

.screen-wrap[data-screen-key] .tg-subhead__back {
  width: auto;
  min-width: 0;
  min-height: 34px;
  height: 34px;
  padding: 0 8px 0 4px;
  gap: 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.screen-wrap[data-screen-key] .tg-subhead__back:hover,
.screen-wrap[data-screen-key] .tg-subhead__back:active {
  background: var(--accent-soft);
  color: var(--fg);
  border-color: transparent;
}

.screen-wrap[data-screen-key] .tg-subhead__back svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.tg-subhead .tg-subhead__back {
  width: auto;
  min-width: 0;
  min-height: 34px;
  height: 34px;
  padding: 0 8px 0 4px;
  gap: 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tg-subhead .tg-subhead__back:hover,
.tg-subhead .tg-subhead__back:active {
  background: var(--accent-soft);
  color: var(--fg);
  border-color: transparent;
}

.tg-subhead .tg-subhead__back svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.screen-wrap[data-screen-key="catalog"] .filter-tabs {
  margin: 0 0 26px;
  padding: 0 max(var(--app-gutter), 16px) 0 0;
  gap: 8px;
  scrollbar-width: none;
}

.screen-wrap[data-screen-key="catalog"] .filter-tabs::-webkit-scrollbar {
  display: none;
}

.screen-wrap[data-screen-key="catalog"] .filter-tabs__btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  border-color: color-mix(in srgb, var(--border) 88%, var(--accent) 12%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.screen-wrap[data-screen-key="catalog"] .filter-tabs__btn.is-active {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
  color: var(--accent-strong);
}

.catalog-screen {
  position: relative;
  min-height: 100%;
}

.screen-wrap[data-screen-key="catalog"] .catalog-categories {
  margin-bottom: 14px;
}

.catalog-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 44px auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.catalog-tool-button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.catalog-tool-button--icon {
  width: 44px;
  display: grid;
  place-items: center;
}

.catalog-tool-button--filters {
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.catalog-tool-button svg {
  width: 18px;
  height: 18px;
}

.catalog-tool-button__count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-cta);
  color: var(--on-accent);
  font-size: 11px;
  line-height: 1;
}

.catalog-tool-button__count[hidden] {
  display: none;
}

.catalog-result-count {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-align: right;
}

.catalog-search {
  height: 44px;
  padding: 0 10px 0 12px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 68%, transparent);
}

.catalog-search[hidden] {
  display: none;
}

.catalog-search > svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.catalog-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 650;
}

.catalog-search input::placeholder {
  color: var(--quiet);
}

.catalog-search button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.catalog-search button svg {
  width: 16px;
  height: 16px;
}

.catalog-filter-chips {
  width: 100%;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.catalog-filter-chip {
  height: 32px;
  padding: 0 9px 0 11px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.catalog-filter-chip svg {
  width: 14px;
  height: 14px;
}

.catalog-results {
  padding-bottom: 8px;
}

.catalog-empty-state {
  min-height: 300px;
  justify-content: center;
}

.miniapp__scroll.is-catalog-filter-open {
  overflow: hidden;
}

.catalog-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(12, 18, 21, .48);
  backdrop-filter: blur(2px);
}

.catalog-filter-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 221;
  width: min(100vw, 640px);
  max-height: min(86dvh, 760px);
  display: flex;
  flex-direction: column;
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: var(--surface-raised);
  box-shadow: 0 -18px 48px rgba(10, 18, 22, .2);
}

.catalog-filter-sheet__handle {
  width: 42px;
  height: 4px;
  margin: 8px auto 2px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--border);
}

.catalog-filter-sheet__head {
  padding: 10px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.catalog-filter-sheet__eyebrow {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.catalog-filter-sheet__head h2 {
  color: var(--fg);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
}

.catalog-filter-sheet__close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.catalog-filter-sheet__close svg {
  width: 18px;
  height: 18px;
}

.catalog-filter-sheet__body {
  min-height: 0;
  padding: 0 16px;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.catalog-filter-group {
  border-bottom: 1px solid var(--border);
}

.catalog-filter-group summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  color: var(--fg);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.catalog-filter-group summary::-webkit-details-marker {
  display: none;
}

.catalog-filter-group__meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.catalog-filter-group__meta svg {
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
}

.catalog-filter-group[open] .catalog-filter-group__meta svg {
  transform: rotate(-90deg);
}

.catalog-filter-options {
  padding: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.catalog-filter-option {
  min-height: 42px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  text-align: left;
  cursor: pointer;
}

.catalog-filter-option.is-active {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.catalog-filter-option:disabled {
  opacity: .42;
  cursor: default;
}

.catalog-filter-option__check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--accent-strong);
}

.catalog-filter-option.is-active .catalog-filter-option__check {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 64%, var(--surface));
}

.catalog-filter-option__check svg {
  width: 13px;
  height: 13px;
}

.catalog-filter-option__label {
  overflow-wrap: anywhere;
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 750;
}

.catalog-filter-option__count {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.catalog-filter-sheet__footer {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: minmax(96px, .6fr) minmax(0, 1.4fr);
  gap: 8px;
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  background: var(--surface-raised);
}

.catalog-filter-reset {
  min-height: 48px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.catalog-filter-reset:disabled {
  opacity: .45;
}

.catalog-filter-apply {
  border-radius: 8px;
}

.catalog-tool-button:focus-visible,
.catalog-search button:focus-visible,
.catalog-filter-chip:focus-visible,
.catalog-filter-sheet button:focus-visible,
.catalog-filter-group summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
  outline-offset: 2px;
}

.free-product-note {
  color: var(--accent-strong);
}

.screen-wrap[data-screen-key="catalog"] .product-list {
  gap: 16px;
  padding-bottom: 28px;
}

.screen-wrap[data-screen-key="catalog"] .product-card {
  padding: 16px;
  border-radius: 20px;
  cursor: pointer;
}

.screen-wrap[data-screen-key="catalog"] .product-card__body {
  display: grid;
  gap: 9px;
}

.screen-wrap[data-screen-key="catalog"] .product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.screen-wrap[data-screen-key="catalog"] .product-card .h3 {
  font-size: 18px;
  line-height: 1.18;
  font-weight: 900;
}

.screen-wrap[data-screen-key="catalog"] .type-label {
  height: 25px;
  padding: 0 10px;
  flex-shrink: 0;
  text-transform: none;
  font-size: 12px;
  font-weight: 800;
}

.screen-wrap[data-screen-key="catalog"] .product-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 650;
}

.screen-wrap[data-screen-key="catalog"] .product-card__foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.screen-wrap[data-screen-key="catalog"] .product-card__price {
  color: var(--fg);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}

.screen-wrap[data-screen-key="catalog"] .catalog-more {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-cta);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 900;
}

.catalog-empty {
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.screen-wrap[data-screen-key="product"] .miniapp__body,
.screen-wrap[data-screen-key="checkout"] .miniapp__body {
  gap: 12px;
  padding-bottom: 28px;
}

.screen-wrap[data-screen-key="checkout"] .miniapp__body {
  gap: 10px;
  padding-bottom: 0;
}

.product-gallery {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.product-gallery__head {
  min-height: 44px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
}

.product-gallery__heading {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.product-gallery__heading span {
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 850;
  text-transform: uppercase;
}

.product-gallery__heading strong {
  color: var(--fg);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.product-gallery__head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.product-gallery__overview {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.product-gallery__icon-btn,
.product-gallery__arrow,
.product-gallery-modal__close,
.product-gallery-modal__arrow {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.product-gallery__icon-btn {
  width: 34px;
  height: 34px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.product-gallery__icon-btn svg,
.product-gallery__arrow svg,
.product-gallery-modal__close svg,
.product-gallery-modal__arrow svg {
  width: 18px;
  height: 18px;
}

.product-gallery__viewport {
  position: relative;
  overflow: hidden;
  background: var(--surface-raised);
}

.product-gallery__track {
  width: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.product-gallery__track::-webkit-scrollbar {
  display: none;
}

.product-gallery__slide {
  width: 100%;
  min-width: 100%;
  flex: 0 0 100%;
  padding: 0;
  display: grid;
  grid-template-rows: auto;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--fg);
  text-align: left;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: zoom-in;
  touch-action: pan-x pan-y;
}

.product-gallery__slide--tariff {
  cursor: pointer;
}

.product-gallery__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-raised) 88%, var(--accent-soft) 12%);
}

.product-gallery__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.product-gallery[data-gallery-mode="tariff"] .product-gallery__slide {
  grid-template-rows: auto;
}

[data-product-gallery-slot] .product-gallery {
  opacity: 1;
  transition: opacity 140ms ease;
}

[data-product-gallery-slot].product-gallery--switching .product-gallery {
  opacity: 0.45;
}

.product-gallery__slide.is-image-error .product-gallery__media img {
  display: none;
}

.product-gallery__slide.is-image-error .product-gallery__media::after {
  content: "Изображение недоступно";
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
}

.product-gallery__arrow {
  position: absolute;
  top: calc(50% - 27px);
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--fg);
  box-shadow: var(--shadow-card);
}

.product-gallery__arrow--prev {
  left: 8px;
}

.product-gallery__arrow--next {
  right: 8px;
}

@media (min-width: 521px) {
  .product-gallery__viewport {
    padding-inline: 46px;
  }

  .product-gallery__arrow--prev {
    left: 4px;
  }

  .product-gallery__arrow--next {
    right: 4px;
  }
}

.product-gallery__arrow:disabled,
.product-gallery-modal__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.product-gallery__footer {
  min-height: 36px;
  padding: 7px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.product-gallery__footer-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-gallery__footer .product-gallery__icon-btn {
  width: 28px;
  height: 28px;
}

.product-gallery__footer .product-gallery__icon-btn svg {
  width: 15px;
  height: 15px;
}

.product-gallery__footer .product-gallery__overview {
  min-height: 28px;
  padding: 0 9px;
  font-size: 10px;
}

.product-gallery__dots {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.product-gallery__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--quiet) 48%, transparent);
  cursor: pointer;
  transition: width 0.16s ease, background 0.16s ease;
}

.product-gallery__dot.is-active {
  width: 18px;
  background: var(--accent-strong);
}

.product-gallery__counter {
  color: var(--quiet);
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
}

.product-gallery button:focus-visible,
.product-gallery-modal button:focus-visible,
.product-gallery-tour button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 46%, transparent);
  outline-offset: 2px;
}

.miniapp__scroll.is-gallery-modal-open {
  overflow: hidden;
}

.product-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 4px;
  padding: calc(58px + env(safe-area-inset-top, 0px)) 10px calc(24px + env(safe-area-inset-bottom, 0px));
  background: rgba(12, 15, 17, 0.96);
  color: #fff;
}

.product-gallery-modal[hidden] {
  display: none;
}

.product-gallery-modal__body {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
}

.product-gallery-modal__body img {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}

.product-gallery-modal__body span {
  font-size: 12px;
  font-weight: 850;
}

.product-gallery-modal__close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.product-gallery-modal__arrow {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.product-gallery-tour {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.product-gallery-tour__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 17, 0.68);
  pointer-events: auto;
}

.product-gallery-tour__card {
  position: absolute;
  left: max(14px, env(safe-area-inset-left, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  z-index: 203;
  max-width: 430px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.product-gallery-tour__progress {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 900;
}

.product-gallery-tour__card strong {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 900;
}

.product-gallery-tour__card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
}

.product-gallery-tour__actions {
  margin-top: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.product-gallery-tour__skip,
.product-gallery-tour__next {
  min-height: 42px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.product-gallery-tour__skip {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--muted);
}

.product-gallery-tour__next {
  border: 1px solid var(--accent-cta);
  background: var(--accent-cta);
  color: var(--on-accent);
}

.is-product-tour-target {
  position: relative;
  z-index: 202 !important;
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 24%, transparent) !important;
}

@media (max-width: 520px) {
  .product-gallery__arrow {
    display: none;
  }

  .product-gallery-modal {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    padding-inline: 4px;
  }

  .product-gallery-modal__arrow {
    width: 34px;
    height: 34px;
  }
}

.screen-wrap[data-screen-key="product"] .pd-banner--image {
  height: clamp(146px, 39vw, 166px);
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.screen-wrap[data-screen-key="product"] .pd-banner--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screen-wrap[data-screen-key="product"] .pd-title {
  margin: 4px auto 0;
  max-width: 280px;
  text-align: center;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.screen-wrap[data-screen-key="product"] .pd-sub {
  width: 100%;
  max-width: none;
  margin: 0 0 6px;
  color: var(--muted);
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}

.product-accordion {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.product-accordion summary {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.product-accordion summary::-webkit-details-marker {
  display: none;
}

.product-accordion__chev {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  transform: rotate(90deg);
  transition: transform 0.18s ease;
}

.product-accordion[open] .product-accordion__chev {
  transform: rotate(-90deg);
}

.product-accordion__chev svg {
  width: 15px;
  height: 15px;
}

.product-accordion__body {
  padding: 0 14px 14px;
}

.feature-list {
  display: grid;
  gap: 10px;
}

.feature-item {
  min-height: 68px;
  padding: 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-raised) 78%, var(--surface) 22%);
}

.feature-check {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.feature-check svg {
  width: 16px;
  height: 16px;
}

.feature-item .h3 {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
}

.feature-item .small {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--muted);
}

.feature-list--compact {
  gap: 8px;
}

.feature-list--compact .feature-item {
  min-height: 52px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
}

.feature-list--compact .feature-check {
  width: 28px;
  height: 28px;
}

.product-access-note,
.pd-block__text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.product-program .product-accordion__body {
  display: grid;
  gap: 12px;
}

.product-program-section {
  display: grid;
  gap: 8px;
}

.product-program-section__title {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.product-program-list,
.product-prep-list {
  display: grid;
  gap: 8px;
  list-style: none;
}

.product-program-list li,
.product-prep-list li {
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-raised) 82%, var(--surface) 18%);
}

.product-program-blocks {
  display: grid;
  gap: 10px;
}

.product-program-block {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-raised) 86%, var(--surface) 14%);
}

.product-program-block__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 68%, transparent);
  cursor: pointer;
  list-style: none;
}

.product-program-block__head::-webkit-details-marker {
  display: none;
}

.product-program-block__title {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.product-program-block__chev {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.16s ease;
}

.product-program-block[open] .product-program-block__chev {
  transform: rotate(90deg);
}

.product-program-block__head strong {
  color: var(--fg);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
}

.product-program-block__num {
  color: var(--accent-strong);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
}

.product-program-refresh {
  justify-self: start;
  margin: 0 0 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-program-lessons {
  display: grid;
}

.product-program-lesson {
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 54%, transparent);
}

.product-program-lesson:last-child {
  border-bottom: 0;
}

.product-prep-list li {
  background: color-mix(in srgb, var(--accent-soft) 36%, var(--surface) 64%);
}

.product-program-list__index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.product-program-list__text {
  display: grid;
  gap: 2px;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.32;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.product-program-list__text strong {
  color: var(--fg);
  font-size: 13px;
  line-height: 1.28;
  font-weight: 850;
}

.product-program-list__text span,
.product-program-list__text em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 650;
}

.product-program-description {
  padding: 10px 0 2px;
}

.pd-badge-row {
  display: flex;
  justify-content: center;
  margin: -2px 0 4px;
}

.pd-badge-row .product-badge {
  margin: 0;
}

.format-price-card {
  display: grid;
  gap: 12px;
  border-radius: 16px;
}

.format-price-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.format-price-card__head strong {
  color: var(--fg);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.format-price-card__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, 0.72fr);
  gap: 12px;
  align-items: stretch;
}

.format-price-card--price-only .format-price-card__layout {
  grid-template-columns: 1fr;
}

.format-price-card--price-only .format-price-card__switcher {
  display: none;
}

.format-price-card__switcher {
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.format-price-card__switcher .tariff-tabs {
  width: 100%;
  grid-template-columns: 1fr;
}

.format-price-card__price-panel {
  min-height: 78px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 12px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-soft) 46%, var(--surface) 54%);
  text-align: center;
}

.format-price-card--price-only .format-price-card__price-panel {
  min-height: 66px;
}

.format-price-card__price-panel span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
}

.format-price-card__price-panel strong {
  color: var(--accent-strong);
  font-size: 22px;
  line-height: 1.05;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.tariff-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tariff-tabs--single {
  grid-template-columns: 1fr;
}

.tariff-tab {
  min-height: 42px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.tariff-tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tariff-tab.is-active {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border));
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.payment-note {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
}

.payment-note__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.checkout-price-card {
  position: relative;
  overflow: hidden;
  padding: 20px 16px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius: 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-raised) 95%, var(--accent-soft) 5%), var(--surface));
  box-shadow: var(--shadow-card);
}

.checkout-price-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: 58px;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 64%, transparent);
  pointer-events: none;
}

.checkout-price-card > * {
  position: relative;
  z-index: 1;
}

.checkout-order-card__product {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-align: center;
}

.checkout-product-card__title {
  color: var(--fg);
  font-size: 17px;
  line-height: 1.18;
  font-weight: 900;
}

.checkout-tariff-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface) 28%);
  color: var(--accent-strong);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.checkout-price-card__benefit-title {
  margin-bottom: 4px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 900;
}

.checkout-price-card__sub {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.benefit-choice {
  display: grid;
  gap: 8px;
}

.benefit-option {
  min-height: 54px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-raised) 78%, var(--surface) 22%);
  cursor: pointer;
}

.benefit-option.is-active {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 46%, var(--surface) 54%);
}

.benefit-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.benefit-option__text strong {
  display: block;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.18;
  font-weight: 900;
}

.benefit-option__text small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 650;
}

.benefit-option__amount {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.checkout-promo-form[hidden],
.checkout-row[hidden] {
  display: none !important;
}

.checkout-promo-form {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.checkout-promo-form .promo-input {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
}

.checkout-promo-form .btn {
  width: auto;
  height: 40px;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 12px;
}

.promo-form__message {
  margin-top: 6px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.promo-form__message.is-error {
  color: var(--error);
}

.benefit-option.is-error {
  border-color: color-mix(in srgb, var(--error) 45%, var(--border));
}

.checkout-receipt {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed color-mix(in srgb, var(--border) 76%, transparent);
  display: grid;
  gap: 10px;
}

.checkout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 750;
}

.checkout-row strong {
  color: var(--fg);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.checkout-row--total {
  min-height: 44px;
  margin-top: 2px;
  padding: 0 12px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--fg);
}

.checkout-row--total strong {
  color: var(--accent-strong);
  font-size: 21px;
}

.payment-type-card {
  padding: 10px 14px;
  border-radius: 16px;
}

.payment-type-option {
  min-height: 46px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.payment-type-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.payment-type-option strong {
  display: block;
  color: var(--fg);
  font-size: 14px;
  font-weight: 900;
}

.payment-type-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 650;
}

.payment-type-option em {
  color: var(--quiet);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.screen-wrap .tg-mainbtn {
  position: sticky;
  left: auto;
  right: auto;
  bottom: 0;
  min-height: auto;
  margin: 6px calc(var(--app-gutter) * -1) 0;
  padding: 12px var(--app-gutter) 8px;
  border-top: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 0%, transparent) 0%, var(--bg) 38%);
  z-index: 20;
}

.screen-wrap .tg-mainbtn__btn {
  height: 50px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
}

.screen-wrap[data-screen-key="product"] .tg-mainbtn {
  position: static;
  margin: 2px 0 0;
  padding: 0;
  background: transparent;
}

.screen-wrap[data-screen-key="checkout"] .checkout-submit-block {
  position: static;
  margin: 12px 0 0;
  padding: 0;
  background: transparent;
}

.screen-wrap[data-screen-key="checkout"] .section-title {
  margin: 8px 0 8px;
}

.screen-wrap[data-screen-key="profile"] .miniapp__body {
  gap: 0;
  padding-bottom: 112px;
}

.screen-wrap[data-screen-key="profile"] .profile-card--personal {
  padding: 14px;
  overflow: hidden;
  position: relative;
  border-color: color-mix(in srgb, var(--accent-strong) 18%, var(--border) 82%);
  background:
    radial-gradient(circle at 12% -24%, color-mix(in srgb, var(--accent-soft) 96%, transparent) 0 38%, transparent 60%),
    radial-gradient(circle at 104% 8%, color-mix(in srgb, var(--accent-soft) 76%, transparent) 0 30%, transparent 54%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 76%, var(--accent-soft) 24%), color-mix(in srgb, var(--surface) 92%, var(--bg) 8%));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 82%, transparent);
}

.screen-wrap[data-screen-key="profile"] .profile-card--personal.account-card {
  display: grid;
  gap: 13px;
}

.screen-wrap[data-screen-key="profile"] .profile-card--personal .profile-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 18px;
}

.screen-wrap[data-screen-key="profile"] .profile-card--personal .h2 {
  font-size: 19px;
  line-height: 1.2;
  font-weight: 850;
}

.screen-wrap[data-screen-key="profile"] .profile-card--personal .small {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 650;
  color: var(--muted);
}

.screen-wrap[data-screen-key="profile"] .profile-card--personal .pill-done {
  height: auto;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}

.screen-wrap[data-screen-key="profile"] .profile-card--personal .pill-done::before {
  width: 6px;
  height: 6px;
  background: var(--accent);
  opacity: .72;
}

.screen-wrap[data-screen-key="profile"] .account-level {
  width: 100%;
  min-height: 42px;
  padding: 11px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  text-align: left;
  font-family: var(--font);
  cursor: pointer;
}

.screen-wrap[data-screen-key="profile"] .account-level .h3 {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 740;
}

.screen-wrap[data-screen-key="profile"] .account-level .small {
  display: block;
  margin-top: 3px;
}

.screen-wrap[data-screen-key="profile"] .account-level .link-cta {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.screen-wrap[data-screen-key="profile"] .section-title {
  margin: 12px 0 6px;
}

.screen-wrap[data-screen-key="level"] .miniapp__body {
  gap: 0;
  padding-bottom: 112px;
}

.screen-wrap[data-screen-key="level"] .section-title {
  margin: 16px 0 8px;
}

.screen-wrap[data-screen-key="level"] .stack {
  gap: 8px;
}

.screen-wrap[data-screen-key="level"] .stack > .card + .card {
  margin-top: 0;
}

.level-reward-card .action-copy-btn {
  justify-self: end;
}

.level-counted-accordion {
  margin-top: 16px;
}

.level-counted-accordion .product-accordion__body {
  padding-top: 0;
}

.level-counted-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.level-counted-list li {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 78%, var(--bg-soft) 22%);
  color: var(--fg);
  font-size: 13px;
  font-weight: 780;
}

.level-counted-list__marker {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface) 28%);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.screen-wrap[data-screen-key="profile"] .profile-stack-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.screen-wrap[data-screen-key="profile"] .profile-stack-compact .card + .card {
  margin-top: 0;
}

.screen-wrap[data-screen-key="profile"] .profile-stack-compact .action-row {
  position: relative;
  min-height: 112px;
  padding: 13px;
  display: block;
  border-radius: 22px;
  text-decoration: none;
}

.screen-wrap[data-screen-key="profile"] .profile-stack-compact .action-row .icon-tile {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 14px;
}

.screen-wrap[data-screen-key="profile"] .profile-stack-compact .action-row .icon-tile svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.screen-wrap[data-screen-key="profile"] .profile-stack-compact .action-row .h3 {
  display: block;
  max-width: 116px;
  margin-top: 2px;
  font-size: 14.5px;
  line-height: 1.14;
  font-weight: 900;
}

.screen-wrap[data-screen-key="profile"] .profile-stack-compact .action-row .small {
  display: block !important;
  max-width: 124px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.28;
  font-weight: 700;
}

.screen-wrap[data-screen-key="profile"] .profile-stack-compact .action-row .link-cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.screen-wrap[data-screen-key="profile"] .profile-stack-compact .action-row .action-copy-btn {
  position: absolute;
  right: 48px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
}

.screen-wrap[data-screen-key="profile"] .profile-stack-contact {
  grid-template-columns: 1fr;
}

.screen-wrap[data-screen-key="profile"] .profile-stack-contact .action-row {
  min-height: 84px;
  padding: 15px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.screen-wrap[data-screen-key="profile"] .profile-stack-contact .action-row .icon-tile {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
}

.screen-wrap[data-screen-key="profile"] .profile-stack-contact .action-row .h3,
.screen-wrap[data-screen-key="profile"] .profile-stack-contact .action-row .small {
  max-width: none;
}

.screen-wrap[data-screen-key="profile"] .profile-stack-contact .action-row .link-cta {
  position: static;
  justify-self: end;
}

.screen-wrap[data-screen-key="profile"] .profile-support-action {
  border-color: color-mix(in srgb, var(--warn) 22%, var(--border));
}

.screen-wrap[data-screen-key="profile"] .profile-info-action {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}

.screen-wrap[data-screen-key="profile"] .telegram-card {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  background: color-mix(in srgb, var(--surface) 78%, var(--accent-soft) 22%);
}

.settings-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
}

.settings-note {
  margin-top: 6px;
}

.theme-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.theme-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.theme-switch button.is-active {
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: var(--shadow-card);
}

/* Strict handoff bridge for the remaining Mini App screens. */
.screen-wrap[data-screen-key="access"] .tg-subhead,
.screen-wrap[data-screen-key="request"] .tg-subhead,
.screen-wrap[data-screen-key="bonuses"] .tg-subhead,
.screen-wrap[data-screen-key="order"] .tg-subhead,
.screen-wrap[data-screen-key="paymentDetails"] .tg-subhead,
.screen-wrap[data-screen-key="receiptUpload"] .tg-subhead,
.screen-wrap[data-screen-key="course"] .tg-subhead {
  min-height: 54px;
  margin-bottom: 10px;
  padding-top: 4px;
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
}

.screen-wrap[data-screen-key="access"] .tg-subhead__title,
.screen-wrap[data-screen-key="request"] .tg-subhead__title,
.screen-wrap[data-screen-key="bonuses"] .tg-subhead__title,
.screen-wrap[data-screen-key="order"] .tg-subhead__title,
.screen-wrap[data-screen-key="paymentDetails"] .tg-subhead__title,
.screen-wrap[data-screen-key="receiptUpload"] .tg-subhead__title,
.screen-wrap[data-screen-key="course"] .tg-subhead__title {
  font-size: 22px;
  line-height: 1.08;
  font-weight: 900;
  white-space: normal;
}

/* Unified screen header: back aligns with the content edge, title stays centered. */
.miniapp__scroll > .screen-wrap[data-screen-key] .tg-subhead {
  position: relative;
  width: 100%;
  min-height: 54px;
  margin: 0 0 18px;
  padding: 4px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-template-columns: none;
}

.miniapp__scroll > .screen-wrap[data-screen-key] .tg-subhead > div:not(.tg-subhead__title) {
  display: none;
}

.miniapp__scroll > .screen-wrap[data-screen-key] .tg-subhead__title {
  max-width: calc(100% - 156px);
  margin: 0 auto;
  color: var(--fg);
  font-size: 22px;
  line-height: 1.08;
  font-weight: 900;
  text-align: center;
  white-space: normal;
}

.miniapp__scroll > .screen-wrap[data-screen-key] .tg-subhead__back {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.miniapp__scroll > .screen-wrap[data-screen-key="catalog"] .tg-subhead.catalog-head,
.miniapp__scroll > .screen-wrap[data-screen-key="product"] .tg-subhead,
.miniapp__scroll > .screen-wrap[data-screen-key="checkout"] .tg-subhead {
  margin-bottom: 18px;
}

.miniapp__scroll > .screen-wrap[data-screen-key="checkout"] .tg-subhead__title,
.miniapp__scroll > .screen-wrap[data-screen-key="course"] .tg-subhead__title {
  max-width: calc(100% - 120px);
  font-size: 20px;
}

.screen-wrap[data-screen-key="access"] .filter-tabs {
  margin: 2px calc(var(--app-gutter) * -1) 16px 0;
  padding: 0 var(--app-gutter) 0 0;
}

.screen-wrap[data-screen-key="access"] [data-filter-list="orders"] {
  gap: 14px;
  padding-bottom: 28px;
}

.screen-wrap[data-screen-key="access"] .order-card + .order-card,
.screen-wrap[data-screen-key="access"] .card + .card {
  margin-top: 0;
}

.screen-wrap[data-screen-key="access"] .order-card__name {
  font-size: 16px;
  line-height: 1.18;
  font-weight: 900;
}

.screen-wrap[data-screen-key="access"] .order-card__tariff {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
}

.screen-wrap[data-screen-key="access"] .order-card__sum {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mini-action {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-cta);
  color: var(--on-accent);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.mini-action:active { transform: scale(.98); }

.balance-hero--reference {
  display: grid;
  gap: 8px;
  min-height: 176px;
  padding: 20px;
  border-color: color-mix(in srgb, var(--border) 76%, var(--accent) 24%);
  background:
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--accent-soft) 62%, transparent) 0 34%, transparent 58%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, var(--accent-soft) 12%), color-mix(in srgb, var(--surface) 94%, var(--bg) 6%));
}

.balance-kicker {
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.balance-rule {
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.balance-num {
  color: var(--fg);
  font-size: clamp(44px, 15vw, 56px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
}

.balance-caption,
.bonus-rule-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.spaced-cta { margin-top: 2px; }

.bonus-steps,
.bonus-history {
  display: grid;
  gap: 0;
  padding: 6px 16px;
}

.bonus-step {
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 62%, transparent);
}

.bonus-step:last-child,
.bonus-row:last-child { border-bottom: 0; }

.bonus-step__num,
.bonus-sign {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.bonus-sign.out {
  background: var(--warn-soft);
  color: var(--warn);
}

.bonus-history .bonus-row {
  min-height: 54px;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 62%, transparent);
}

.bonus-history .bonus-row .h3,
.compact-title,
.compact-title-sm {
  color: var(--fg);
  font-size: 14px;
  line-height: 1.22;
  font-weight: 800;
}

.bonus-history .bonus-row .small,
.screen-wrap .small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 620;
}

.bonus-sum {
  align-self: center;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: lining-nums tabular-nums;
}

.bonus-sum.out { color: var(--warn); }

.bonus-empty {
  gap: 8px;
  justify-items: start;
}

.screen-wrap[data-screen-key="request"] .miniapp__body {
  gap: 12px;
  padding-bottom: 112px;
}

.request-hero {
  min-height: 118px;
  padding: 14px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft) 12%);
  box-shadow: var(--shadow-card);
}

.request-hero img {
  grid-column: 2;
  grid-row: 1;
  width: 82px;
  height: 92px;
  object-fit: cover;
  object-position: 70% center;
  border-radius: 18px;
}

.request-hero__title {
  color: var(--fg);
  font-size: 19px;
  line-height: 1.12;
  font-weight: 900;
}

.request-hero__lead {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.request-field {
  width: 100%;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  background: var(--surface-raised);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
  resize: none;
  outline: none;
}

.request-field::placeholder { color: var(--muted); }
.request-field:focus {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 74%, transparent);
}
.request-field.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-soft);
}

.request-product {
  padding: 13px 14px;
  display: grid;
  gap: 4px;
  border-radius: 8px;
  box-shadow: none;
}

.request-product__label {
  color: var(--accent-strong);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

.request-product strong {
  color: var(--fg);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.request-product > span:last-child {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
}

.microcopy {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 650;
}

.chip-set {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chip-set::-webkit-scrollbar { display: none; }

.attachment-actions { display: grid; gap: 8px; }

.attachment-action {
  min-height: 42px;
  border: 1px dashed color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius: var(--r-button);
  background: var(--surface-raised);
  color: var(--fg);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 900;
}

.request-success {
  display: grid;
  gap: 12px;
  background: color-mix(in srgb, var(--accent-soft) 62%, var(--surface));
}

.request-success__actions {
  display: grid;
  gap: 8px;
}

.screen-wrap[data-screen-key="order"] .miniapp__body,
.screen-wrap[data-screen-key="paymentDetails"] .miniapp__body,
.screen-wrap[data-screen-key="receiptUpload"] .miniapp__body,
.screen-wrap[data-screen-key="course"] .miniapp__body {
  gap: 12px;
  padding-bottom: 116px;
}

.order-product-card,
.meta-card,
.order-state-card,
.payment-detail-card,
.receipt-flow-card,
.course-access-card,
.course-module {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.order-product-card {
  overflow: hidden;
  border-color: color-mix(in srgb, var(--border) 76%, var(--accent) 24%);
  background:
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--accent-soft) 60%, transparent) 0 34%, transparent 58%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, var(--accent-soft) 12%), color-mix(in srgb, var(--surface) 94%, var(--bg) 6%));
}

.order-product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-product-card__kicker {
  color: var(--accent-strong);
  font-size: 11.5px;
  line-height: 1;
  font-weight: 900;
}

.od-title {
  margin-top: 12px;
  color: var(--fg);
  font-size: 24px;
  line-height: 1.08;
  font-weight: 900;
}

.meta-card {
  display: grid;
  gap: 0;
}

.meta-row {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px dashed var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.meta-row:last-child { border-bottom: 0; }
.meta-row strong {
  color: var(--fg);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.order-state-card,
.order-state-actions,
.course-access-card,
.payment-detail-card,
.receipt-flow-card {
  display: grid;
  gap: 12px;
}

.order-state-card--actions {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.payment-detail-card--highlight {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft) 12%);
}

.payment-requisites { gap: 14px; }

.payment-requisite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.payment-requisite-row__label {
  display: block;
  margin-bottom: 5px;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.payment-requisite-row__value {
  color: var(--fg);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  word-break: break-word;
}

.payment-requisite-row__value--amount {
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.payment-card-number {
  font-size: 20px;
  letter-spacing: .02em;
  word-spacing: 4px;
}

.payment-copy-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 84%, var(--accent-soft) 16%);
  color: var(--accent);
}

.payment-copy-btn svg {
  width: 16px;
  height: 16px;
}

.payment-recipient {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
  white-space: pre-wrap;
}

.receipt-flow-card {
  border-color: color-mix(in srgb, var(--warn) 28%, var(--border));
}

.receipt-flow-card__title {
  color: var(--fg);
  font-size: 17px;
  line-height: 1.24;
  font-weight: 900;
}

.receipt-flow-card__text {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 620;
}

.receipt-upload-zone {
  min-height: 112px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 42%, var(--border));
  border-radius: 14px;
  background: var(--surface-raised);
  color: var(--fg);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.receipt-upload-zone input { display: none; }
.receipt-upload-zone small {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 620;
}

.receipt-upload-screen,
.receipt-upload-state {
  display: grid;
  gap: 12px;
}

.receipt-upload-preview {
  display: none;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-raised);
}

.receipt-upload-preview.is-visible { display: grid; }

.receipt-upload-preview__thumb {
  min-height: 82px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-soft) 54%, var(--surface) 46%);
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
}

.receipt-file-pill {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12.5px;
  font-weight: 900;
}

.receipt-file-pill button,
.receipt-upload-remove {
  border: 0;
  background: transparent;
  color: currentColor;
  font-family: var(--font);
  font-weight: 900;
}

.receipt-upload-actions {
  display: grid;
  gap: 10px;
}

.receipt-upload-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: receipt-spin .8s linear infinite;
}

@keyframes receipt-spin { to { transform: rotate(360deg); } }

.course-progress {
  display: grid;
  gap: 8px;
  padding: 0 2px 4px;
}

.course-progress__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 900;
}

.course-progress__bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.course-progress__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-cta);
}

.course-refresh-btn {
  width: 100%;
  min-height: 40px;
  margin: 2px 0 6px;
}

.course-module {
  padding: 0;
  overflow: hidden;
}

.course-module summary {
  min-height: 56px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.course-module summary::-webkit-details-marker { display: none; }

.course-module__title {
  color: var(--fg);
  font-size: 15px;
  font-weight: 900;
}

.course-module__meta {
  margin-top: 2px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
}

.course-lessons {
  border-top: 1px solid color-mix(in srgb, var(--border) 62%, transparent);
}

.course-lesson {
  min-height: 54px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 54%, transparent);
}

.course-lesson:last-child { border-bottom: 0; }

.course-lesson.lesson-row--locked {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
}

.course-lesson[type="button"],
.course-material-row {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
}

.course-lesson[type="button"]:active,
.course-lesson[type="button"]:hover,
.course-material-row:active,
.course-material-row:hover {
  background: var(--accent-soft);
}

.course-lesson-detail__body {
  display: grid;
  gap: 16px;
}

.course-lesson-hero {
  display: grid;
  gap: 8px;
}

.course-lesson-hero h2 {
  margin: 0;
  color: var(--fg);
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
}

.course-lesson-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.course-lesson-meta,
.course-lesson-actions,
.course-homework-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.course-lesson-meta span {
  min-height: 28px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
  background: var(--surface);
}

.course-lesson-meta svg {
  width: 14px;
  height: 14px;
}

.course-video-shell,
.course-video-empty,
.course-homework-panel,
.course-muted-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.course-video-shell {
  overflow: hidden;
}

.course-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0B0F12;
}

.course-video[hidden],
.course-video-fallback[hidden] {
  display: none !important;
}

.course-video-shell .course-video-fallback {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.course-video-fallback .btn {
  margin-top: 12px;
}

.course-video-empty,
.course-muted-card {
  padding: 18px;
}

.course-materials,
.course-homework-panel {
  display: grid;
  gap: 10px;
}

.course-material-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.course-material-row {
  min-height: 52px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 54%, transparent);
  cursor: pointer;
}

.course-material-row:last-child {
  border-bottom: 0;
}

.course-homework-panel {
  padding: 14px;
}

.course-homework-prompt,
.course-homework-comment,
.course-homework-message,
.course-muted-card {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.course-homework-status {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  background: var(--accent-soft);
  color: var(--accent);
}

.course-homework-status.is-returned {
  background: color-mix(in srgb, #D97706 14%, var(--surface));
  color: #A15C00;
}

.course-homework-status.is-accepted {
  background: color-mix(in srgb, #0F8A5F 14%, var(--surface));
  color: #0F6B4E;
}

.course-homework-text {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  line-height: 1.45;
}

.course-homework-question-list {
  display: grid;
  gap: 10px;
}

.course-homework-question-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 74%, var(--bg));
}

.course-homework-check {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
  background: var(--surface);
}

.course-homework-check.is-done {
  border-color: var(--accent-cta);
  background: var(--accent-cta);
  color: var(--on-accent);
}

.course-homework-check svg {
  width: 14px;
  height: 14px;
}

.course-homework-question-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.course-homework-question-text {
  color: var(--fg);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.course-homework-answer {
  min-height: 88px;
  background: var(--surface);
}

.course-homework-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-homework-attach {
  gap: 6px;
}

.course-homework-attach small {
  color: var(--quiet);
}

.course-homework-attach button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  color: var(--fg);
  cursor: pointer;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

/* Interactive layer */
.screen-wrap {
  transform-origin: 50% 0;
  will-change: transform, opacity;
}

.screen-wrap.is-screen-enter {
  opacity: 0;
}

.screen-wrap.is-screen-enter.is-root-transition {
  transform: translate3d(0, 10px, 0);
}

.screen-wrap.is-screen-enter.is-push-transition {
  transform: translate3d(20px, 0, 0);
}

.screen-wrap.is-screen-enter.is-pop-transition {
  transform: translate3d(-16px, 0, 0);
}

.screen-wrap.is-screen-enter.is-screen-enter-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity var(--motion-base) var(--ease-standard),
    transform var(--motion-base) var(--ease-decelerate);
}

.reveal-item {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity var(--motion-fast) var(--ease-standard) var(--reveal-delay, 0ms),
    transform var(--motion-fast) var(--ease-decelerate) var(--reveal-delay, 0ms);
}

.card,
.btn,
.mini-action,
.filter-tabs__btn,
.nav-item,
.payment-copy-btn,
.attachment-action,
.receipt-upload-zone,
.account-level,
.benefit-option,
.payment-type-option,
.swipe-card__action,
.theme-switch button,
.product-accordion summary,
.course-module summary {
  transition:
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-standard);
  will-change: transform;
}

.is-pressed {
  transform: scale(.985) translateZ(0);
}

.is-releasing {
  transform: scale(1) translateZ(0);
}

.filter-tabs,
.chip-set {
  scroll-behavior: smooth;
}

.filter-tabs__btn {
  position: relative;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

.filter-tabs__btn.is-active {
  box-shadow: 0 10px 18px rgba(88, 107, 42, .16);
}

.bottom-nav {
  transition: background-color var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard);
}

.nav-item {
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-base) var(--ease-standard),
    color var(--motion-base) var(--ease-standard);
}

.nav-item svg,
.nav-item span {
  transition: transform var(--motion-fast) var(--ease-standard), color var(--motion-base) var(--ease-standard), opacity var(--motion-fast) var(--ease-standard);
}

.nav-item.is-active svg,
.nav-item.is-active span {
  transform: translateY(-1px);
}

.screen-wrap[data-screen-key="home"] .quick-actions .action-row,
.screen-wrap[data-screen-key="catalog"] .product-card,
.screen-wrap[data-screen-key="profile"] .profile-stack-compact .action-row,
.screen-wrap[data-screen-key="profile"] .profile-stack-contact .action-row,
.screen-wrap[data-screen-key="bonuses"] .bonus-steps,
.screen-wrap[data-screen-key="request"] .request-hero,
.screen-wrap[data-screen-key="checkout"] .checkout-price-card,
.screen-wrap[data-screen-key="checkout"] .payment-type-card {
  transition:
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard);
}

.screen-wrap[data-screen-key="catalog"] .product-card:hover,
.screen-wrap[data-screen-key="catalog"] .product-card.is-pressed {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 18px 32px rgba(14,26,43,.08);
}

.screen-wrap[data-screen-key="catalog"] .catalog-more {
  opacity: .96;
  transform: translate3d(0, 2px, 0);
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

.screen-wrap[data-screen-key="catalog"] .product-card:hover .catalog-more,
.screen-wrap[data-screen-key="catalog"] .product-card.is-pressed .catalog-more,
.screen-wrap[data-screen-key="catalog"] .catalog-more.is-pressed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  box-shadow: 0 12px 20px rgba(88, 107, 42, .18);
}

.continue-order-card--pending.is-breathing {
  animation: pending-breathe 3.4s var(--ease-standard) infinite;
}

@keyframes pending-breathe {
  0%, 100% { box-shadow: var(--shadow-card); border-color: color-mix(in srgb, var(--border) 76%, var(--accent) 24%); }
  50% { box-shadow: 0 16px 30px rgba(88, 107, 42, .16); border-color: color-mix(in srgb, var(--border) 48%, var(--accent) 52%); }
}

.featured-card {
  transition:
    transform var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard),
    opacity var(--motion-base) var(--ease-standard);
}

.featured-card.is-engaged {
  transform: translate3d(0, -1px, 0);
}

.ptr-indicator {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent-soft) 8%);
  color: var(--fg);
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
}

.ptr-indicator__glyph {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(99, 118, 47, .18);
}

.miniapp__scroll.is-ptr-armed .ptr-indicator__glyph,
.miniapp__scroll.is-ptr-refreshing .ptr-indicator__glyph {
  box-shadow: 0 0 0 6px rgba(99, 118, 47, .1);
}

.miniapp__scroll.is-ptr-refreshing .ptr-indicator__glyph {
  animation: ptr-pulse .9s linear infinite;
}

@keyframes ptr-pulse {
  0% { transform: scale(.9); opacity: .7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(.9); opacity: .7; }
}

.coachmark {
  margin: 8px 0 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(92%, 320px);
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 94%, var(--accent-soft) 6%);
  color: var(--fg);
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  pointer-events: none;
}

.coachmark::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.coachmark--top {
  margin-top: 6px;
}

.coachmark--inline {
  margin: 4px 0 10px;
}

.coachmark.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-decelerate);
}

.screen-wrap[data-screen-key="access"] .orders-list {
  display: grid;
  gap: 12px;
}

.screen-wrap[data-screen-key="access"] .order-card + .order-card,
.screen-wrap[data-screen-key="access"] .card + .card {
  margin-top: 0;
}

.swipe-card-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.swipe-card__rail {
  position: absolute;
  inset: 0 0 0 auto;
  width: 88px;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  justify-content: end;
  padding: 0;
  opacity: 0;
  transform: translate3d(10px, 0, 0);
  transition:
    opacity var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
  pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--surface) 78%, transparent) 0%, color-mix(in srgb, var(--surface) 58%, transparent) 22%, transparent 100%);
}

.swipe-card-shell.is-open .swipe-card__rail {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.swipe-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border: 0;
  color: var(--on-accent);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.swipe-card-shell.is-open .swipe-card__action {
  pointer-events: auto;
}

.swipe-card__action--secondary {
  background: color-mix(in srgb, var(--tech) 76%, #50657E 24%);
}

.swipe-card__action--primary {
  background: var(--accent-cta);
}

.swipe-card__surface {
  position: relative;
  z-index: 2;
  margin: 0;
  touch-action: pan-y;
}

.swipe-card-shell.is-open .swipe-card__surface {
  box-shadow: 0 18px 30px rgba(14,26,43,.1);
}

.screen-wrap[data-screen-key="checkout"] .benefit-option,
.screen-wrap[data-screen-key="checkout"] .payment-type-option,
.screen-wrap[data-screen-key="checkout"] .checkout-row strong,
.screen-wrap[data-screen-key="checkout"] .checkout-row span {
  transition:
    transform var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-standard);
}

.screen-wrap[data-screen-key="checkout"] .benefit-option.is-active,
.screen-wrap[data-screen-key="checkout"] .payment-type-option.is-active {
  transform: translate3d(0, -1px, 0);
}

.screen-wrap[data-screen-key="bonuses"] .balance-hero {
  transition:
    transform var(--motion-base) var(--ease-decelerate),
    box-shadow var(--motion-base) var(--ease-standard),
    opacity var(--motion-base) var(--ease-standard);
}

.screen-wrap[data-screen-key="bonuses"] .balance-hero.is-balance-live {
  transform: translate3d(0, 0, 0);
}

.screen-wrap[data-screen-key="bonuses"] .balance-num {
  transition: transform var(--motion-fast) var(--ease-decelerate), opacity var(--motion-fast) var(--ease-standard);
}

.screen-wrap[data-screen-key="request"] .attach-item,
.screen-wrap[data-screen-key="request"] .request-success,
.screen-wrap[data-screen-key="request"] .insight {
  transition:
    transform var(--motion-fast) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

.receipt-upload-state,
.receipt-upload-preview,
.receipt-file-pill {
  transition:
    transform var(--motion-fast) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard);
}

.catalog-shortcuts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 var(--page-x) 14px;
}

.catalog-shortcuts .action-row {
  margin-bottom: 10px;
}

.screen-wrap[data-screen-key="profile"] > .miniapp__body > .action-row {
  margin-bottom: 6px;
}

.screen-wrap[data-screen-key="profile"] > .miniapp__body > .settings-card {
  margin-top: 0;
}

.support-form,
.bonus-code-card,
.referral-card,
.giveaway-card,
.support-ticket-head,
.tool-question {
  display: grid;
  gap: 10px;
}

.support-form {
  gap: 12px;
  padding: 16px;
}

.support-field {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg) 12%);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 650;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}

.support-field:focus {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 72%, transparent);
}

.support-field--textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: none;
  line-height: 1.45;
}

.support-empty {
  padding: 26px 16px;
}

.support-direct-btn {
  background: color-mix(in srgb, var(--surface) 84%, var(--accent-soft) 16%);
  color: var(--accent-strong);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
}

.request-field--small {
  min-height: 88px;
}

.support-thread {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.support-message {
  justify-self: start;
  max-width: 86%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--fg);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.support-message.is-client {
  justify-self: end;
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
}

.support-message span {
  display: block;
  margin-top: 4px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 700;
}

.copy-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}

.copy-line span {
  overflow: hidden;
  color: var(--fg);
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-line .referral-link-chip {
  width: 100%;
  margin-top: 0;
  justify-content: flex-start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.selfpay-fields {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.benefit-option.is-disabled {
  opacity: .54;
}

.payment-schedule-preview {
  display: grid;
  gap: 0;
  padding: 2px 14px;
}

.schedule-preview-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px dashed var(--border);
}

.schedule-preview-row:last-child {
  border-bottom: 0;
}

.schedule-payment-list {
  gap: 10px;
}

.schedule-payment-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-color: color-mix(in srgb, var(--border) 82%, var(--accent) 18%);
}

.schedule-payment-card__top,
.schedule-payment-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.schedule-payment-card__actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 2px;
}

.schedule-payment-card__number {
  min-width: 42px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: lining-nums tabular-nums;
}

.schedule-payment-card__amount {
  color: var(--fg);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: lining-nums tabular-nums;
}

.schedule-payment-card__meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.schedule-upload-context {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft) 12%);
  box-shadow: var(--shadow-card);
}

.schedule-upload-context__eyebrow {
  color: var(--quiet);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.schedule-upload-context__title {
  color: var(--fg);
  font-size: 18px;
  line-height: 1.16;
  font-weight: 900;
}

.schedule-upload-context__meta {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.access-hub-card {
  gap: 10px;
}

.payment-schedule .mini-action {
  min-width: 64px;
}

.tool-question .request-field {
  margin-top: 4px;
}

.public-promos {
  margin-top: 10px;
}

.guide-landing .miniapp__body,
.guide-success .miniapp__body {
  gap: 14px;
}

.guide-hero {
  display: grid;
  gap: 10px;
}

.guide-hero__banner {
  margin-bottom: 2px;
}

.guide-hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.guide-bonus {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 999px;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--surface) 82%, var(--accent-soft) 18%);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.guide-bonus--success {
  margin: 10px auto 0;
}

.guide-list {
  display: grid;
  gap: 10px;
}

.guide-list__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.42;
  font-weight: 650;
}

.guide-list__mark {
  display: grid;
  width: 28px;
  height: 28px;
  min-width: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.guide-list__mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
}

.guide-next {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.guide-next__label {
  color: var(--quiet);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-next__text {
  color: var(--fg);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.guide-next__btn {
  width: max-content;
}

.guide-next__wide-btn,
.guide-claim-btn,
.guide-download-btn {
  width: 100%;
}

.guide-claim-btn {
  margin-top: 2px;
}

.guide-success__main {
  padding-bottom: 4px;
}

/* Admin Mini App V3 */
.admin-head {
  grid-template-columns: minmax(64px, 1fr) auto minmax(64px, 1fr);
}

.admin-head__menu-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.admin-head__menu-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--fg);
  font-size: 24px;
  line-height: 1;
}

.admin-head__menu {
  position: absolute;
  top: 42px;
  right: 0;
  z-index: 30;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-raised);
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.16);
}

.admin-head__menu[hidden] {
  display: none;
}

.admin-head__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--fg);
  font-weight: 800;
  text-align: left;
}

.admin-rnp-grid,
.admin-row-stack,
.admin-vertical-funnel {
  display: grid;
  gap: 10px;
}

.admin-root-card {
  position: relative;
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  text-align: left;
  color: var(--fg);
}

.admin-root-card strong {
  max-width: calc(100% - 30px);
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: 0;
}

.admin-root-card small,
.admin-row-card small,
.admin-detail-card small,
.admin-next-action small {
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.32;
}

.admin-root-card__kicker {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-root-card__arrow {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 22px;
  height: 22px;
  color: var(--quiet);
}

.admin-root-card--action {
  border-color: color-mix(in srgb, var(--accent-strong) 34%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 64%, var(--surface-raised));
}

.admin-row-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  color: var(--fg);
  text-align: left;
}

.admin-row-card strong,
.admin-row-card small {
  display: block;
}

.admin-row-card__rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.admin-row-card i {
  width: 20px;
  height: 20px;
  color: var(--quiet);
}

.admin-row-card em {
  min-width: 28px;
  font-style: normal;
  font-weight: 900;
  color: var(--accent-strong);
  text-align: right;
}

.admin-empty-compact {
  padding-top: 34px;
  padding-bottom: 34px;
}

.admin-detail-card,
.admin-next-action,
.admin-funnel-stage {
  padding: 15px;
  border: 1px solid var(--border);
}

.admin-action-stack {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.admin-action-stack .btn {
  width: 100%;
}

.course-block-broadcast__card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.course-block-broadcast__card .btn {
  width: 100%;
}

.admin-detail-card__head {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.admin-detail-card__head strong {
  font-size: 21px;
  line-height: 1.12;
}

.admin-detail-list {
  display: grid;
  gap: 8px;
}

.admin-detail-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.admin-detail-list span,
.admin-next-action span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
}

.admin-next-action {
  display: grid;
  gap: 10px;
}

.admin-next-action strong {
  font-size: 19px;
}

.admin-next-action__draft {
  padding: 10px 11px;
  border: 1px dashed color-mix(in srgb, var(--accent-strong) 34%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-soft) 54%, var(--surface-raised));
  color: var(--fg);
  font-size: 13px;
  line-height: 1.36;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-funnel-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: var(--fg);
  text-align: left;
}

.admin-funnel-stage span {
  display: grid;
  gap: 4px;
}

.admin-funnel-stage em {
  font-style: normal;
  font-size: 24px;
  font-weight: 950;
  color: var(--accent-strong);
}

.admin-homework-tabs {
  grid-template-columns: repeat(3, 1fr);
}

.admin-homework-card {
  border: 1px solid var(--border);
}

.admin-period-control {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(96px, 1.15fr);
  gap: 6px;
  align-items: stretch;
}

.period-chip,
.period-select summary,
.period-options button,
.admin-product-sort button {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--fg);
  font-size: 12px;
  font-weight: 850;
}

.period-chip.is-active,
.period-options button.is-active,
.admin-product-sort button.is-active {
  border-color: color-mix(in srgb, var(--accent-strong) 34%, var(--border));
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.period-select {
  position: relative;
}

.period-select summary {
  display: grid;
  place-items: center;
  list-style: none;
  cursor: pointer;
}

.period-select summary::-webkit-details-marker {
  display: none;
}

.period-options {
  position: absolute;
  top: 40px;
  right: 0;
  z-index: 12;
  display: grid;
  gap: 6px;
  min-width: 132px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.period-options button {
  width: 100%;
  text-align: left;
  padding: 0 12px;
}

.pill-button {
  border: 1px solid color-mix(in srgb, var(--accent-strong) 30%, var(--border));
  cursor: pointer;
}

.admin-funnel-line .admin-stage {
  width: 100%;
  color: inherit;
}

button.admin-stage {
  cursor: pointer;
}

.admin-metric-toolbar,
.admin-product-sort {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.admin-metric-toolbar::-webkit-scrollbar,
.admin-product-sort::-webkit-scrollbar {
  display: none;
}

.admin-metric-toolbar span {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 850;
}

.admin-product-sort button {
  flex: 0 0 auto;
  padding: 0 12px;
}

.admin-metric-tile {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.admin-metric-tile span,
.admin-metric-tile small {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
}

.admin-metric-tile strong {
  color: var(--fg);
  font-size: 21px;
  line-height: 1.05;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.admin-metric-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-product-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  color: var(--fg);
  text-align: left;
}

.admin-product-row__main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-product-row__main strong,
.admin-product-row__main small {
  overflow-wrap: anywhere;
}

.admin-product-row__main small {
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.28;
}

.admin-product-row__main i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 62%, transparent);
}

.admin-product-row__main b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-strong);
}

.admin-product-row em {
  color: var(--accent-strong);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.admin-product-detail {
  display: grid;
  gap: 10px;
}

.admin-product-hero {
  display: grid;
  gap: 6px;
  padding: 2px 2px 0;
}

.admin-product-hero .pill {
  width: max-content;
}

.admin-product-hero strong {
  color: var(--fg);
  font-size: 21px;
  line-height: 1.08;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.admin-product-hero small {
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.admin-product-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.admin-product-kpi-grid--primary .admin-metric-tile {
  min-height: 104px;
  padding: 13px;
  background: var(--surface-raised);
}

.admin-product-kpi--drop strong {
  font-size: 16px;
  line-height: 1.08;
}

.admin-product-kpi--drop small {
  line-height: 1.22;
}

.admin-product-funnel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.admin-product-kpi-strip {
  margin-top: 1px;
}

.admin-product-funnel div {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-raised) 82%, var(--accent-soft) 18%);
}

.admin-product-funnel span,
.admin-product-funnel small,
.admin-section-head span {
  display: block;
  color: var(--quiet);
  font-size: 10.5px;
  line-height: 1.22;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-product-funnel strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--fg);
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.admin-product-client-list,
.admin-order-mini-list {
  display: grid;
  gap: 8px;
}

.admin-order-mini-list {
  padding: 12px;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
}

.admin-section-head strong {
  display: block;
  margin-top: 2px;
  color: var(--fg);
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.admin-product-person-row em {
  color: var(--accent-strong);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.admin-order-mini-row {
  width: 100%;
  min-height: 50px;
  padding: 9px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  appearance: none;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  font: inherit;
  text-align: left;
}

.admin-order-mini-row:first-of-type {
  border-top: 0;
}

.admin-order-mini-row span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-order-mini-row strong,
.admin-order-mini-row small {
  overflow-wrap: anywhere;
}

.admin-order-mini-row strong {
  color: var(--fg);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.admin-order-mini-row small {
  color: var(--quiet);
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 650;
}

.admin-order-mini-row em {
  color: var(--accent-strong);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.admin-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.admin-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.admin-file-chip svg {
  width: 14px;
  height: 14px;
}

.admin-comment-field {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 12px;
  background: var(--surface-raised);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
}

.admin-comment-field:focus {
  outline: 2px solid color-mix(in srgb, var(--accent-strong) 30%, transparent);
  outline-offset: 2px;
}

.admin-homework-button {
  display: grid;
  gap: 8px;
  width: 100%;
  color: var(--fg);
  text-align: left;
}

.admin-homework-button .row-between {
  gap: 10px;
}

.admin-person-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  color: var(--fg);
  text-align: left;
}

.admin-person-row__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 950;
}

.admin-person-row__main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-person-row__main strong,
.admin-person-row__main small {
  overflow-wrap: anywhere;
}

.admin-person-row__main small {
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.28;
}

.admin-person-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
}

.admin-person-hero > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-person-hero strong,
.admin-person-hero small {
  overflow-wrap: anywhere;
}

.admin-person-hero strong {
  color: var(--fg);
  font-size: 17px;
  line-height: 1.16;
  font-weight: 950;
}

.admin-person-hero small {
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
}

.admin-person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.admin-person-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--accent-strong) 20%, var(--border));
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
}

.admin-person-action svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.admin-person-action--primary {
  border-color: color-mix(in srgb, var(--accent-strong) 35%, var(--border));
  background: var(--accent-soft);
}

.admin-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
  color: var(--fg);
}

.admin-section-title strong {
  font-size: 14px;
  font-weight: 950;
}

.admin-section-title span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 850;
}

.admin-person-documents,
.admin-person-products,
.admin-timeline {
  display: grid;
  gap: 9px;
}

.admin-document-row,
.admin-person-product-row,
.admin-timeline-row {
  border: 1px solid var(--border);
  color: var(--fg);
}

.admin-document-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  appearance: none;
  background: var(--surface);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-document-row__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.admin-document-row__icon svg {
  width: 17px;
  height: 17px;
}

.admin-person-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.admin-document-row__main,
.admin-person-product-row span,
.admin-timeline-row span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-document-row strong,
.admin-document-row small,
.admin-person-product-row strong,
.admin-person-product-row small,
.admin-timeline-row strong,
.admin-timeline-row small {
  overflow-wrap: anywhere;
}

.admin-document-row strong,
.admin-person-product-row strong,
.admin-timeline-row strong {
  font-size: 13px;
  line-height: 1.24;
  font-weight: 900;
}

.admin-document-row small,
.admin-document-row time,
.admin-person-product-row small,
.admin-timeline-row small,
.admin-timeline-row time {
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 750;
}

.admin-document-row time {
  white-space: nowrap;
  text-align: right;
}

.admin-person-product-row b {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.admin-timeline-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
}

.admin-timeline-row i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.admin-timeline-row time {
  max-width: 82px;
  text-align: right;
}

@media (max-width: 360px) {
  .screen-wrap[data-screen-key="home"] .quick-actions {
    gap: 10px;
  }

  .screen-wrap[data-screen-key="home"] .quick-actions .action-row {
    height: 118px;
    padding: 12px;
  }

  .screen-wrap[data-screen-key="catalog"] .product-card .h3,
  .checkout-product-card__title {
    font-size: 16px;
  }
}

/* Marketplace-style product detail */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.product-purchase-card {
  width: 100%;
  margin: 0;
  padding: 14px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.product-purchase-card .pd-badge-row {
  justify-content: flex-start;
  margin: 0;
}

.product-purchase-card__hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
}

.product-purchase-card__tariffs {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-purchase-card__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 0.72fr);
  gap: 12px;
  align-items: stretch;
}

.product-purchase-card__copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
}

.product-purchase-card__copy strong {
  color: var(--fg);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.product-purchase-card__copy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.product-purchase-card__cta {
  width: 100%;
  min-height: 46px;
}

.product-purchase-card__launch {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.product-purchase-card__launch > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.product-purchase-card__launch svg { width: 15px; height: 15px; }
.product-purchase-card__launch div { display: grid; gap: 2px; }
.product-purchase-card__launch strong { font-size: 11px; line-height: 1.25; }
.product-purchase-card__launch small { color: var(--muted); font-size: 11px; line-height: 1.3; }

.product-summary {
  width: 100%;
  max-width: none;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.product-not-for {
  margin-top: 4px;
  padding: 9px 0 9px 12px;
  border-left: 2px solid color-mix(in srgb, var(--warn) 72%, var(--border));
  border-radius: 0;
  background: transparent;
}

.product-not-for strong { font-size: 12px; line-height: 1.3; }
.product-not-for span { font-size: 12px; line-height: 1.5; }

.product-detail-accordion-group {
  width: 100%;
  margin-top: 4px;
  display: grid;
  gap: 8px;
}

.product-detail-accordion {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-soft) 42%, var(--surface) 58%);
  box-shadow: none;
}

.product-detail-accordion summary {
  min-height: 54px;
  padding: 8px 12px;
  background: transparent;
}

.product-detail-accordion__heading {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.product-detail-accordion__heading strong {
  font-size: 13px;
  line-height: 1.3;
}

.product-detail-accordion__heading small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 700;
}

.product-detail-accordion .product-accordion__body {
  padding: 0 12px 12px;
}

.product-detail-accordion .product-program-list,
.product-detail-accordion .product-prep-list,
.product-detail-accordion .product-process-list {
  display: grid;
  gap: 0;
  list-style: none;
}

.product-detail-accordion .product-program-list li,
.product-detail-accordion .product-prep-list li,
.product-detail-accordion .product-process-list li {
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 0;
  background: transparent;
}

.product-detail-accordion .product-program-list li:first-child,
.product-detail-accordion .product-prep-list li:first-child,
.product-detail-accordion .product-process-list li:first-child {
  border-top: 0;
}

.product-detail-note {
  display: grid;
  gap: 5px;
  padding: 10px 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.product-detail-note strong { font-size: 11px; line-height: 1.3; }
.product-detail-note div,
.product-detail-empty { color: var(--muted); font-size: 12px; line-height: 1.5; }
.product-detail-empty { padding: 8px 0; }

@media (max-width: 380px) {
  .product-purchase-card { padding: 12px; }
  .product-purchase-card__main { grid-template-columns: minmax(0, 1fr) 108px; gap: 9px; }
  .product-purchase-card__tariffs { grid-template-columns: 1fr; }
  .format-price-card__price-panel strong { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 1ms;
    --motion-base: 1ms;
    --motion-slow: 1ms;
  }

  .screen-wrap *,
  .screen-wrap *::before,
  .screen-wrap *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .continue-order-card--pending.is-breathing,
  .miniapp__scroll.is-ptr-refreshing .ptr-indicator__glyph {
    animation: none !important;
  }
}
