/* Trust — сайт магазина. Цвета и формы — как в мини-приложении (webapp/static/app.css). */
:root {
  --bg: #07070a;
  --bg-2: #0d0d12;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --surface-3: rgba(255, 255, 255, .12);
  --stroke: rgba(255, 255, 255, .075);
  --stroke-2: rgba(255, 255, 255, .14);
  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, .66);
  --text-3: rgba(235, 235, 245, .4);

  --accent: #3b7bff;
  --accent-bright: #5c9dff;
  --accent-soft: rgba(59, 123, 255, .16);
  --accent-shadow: rgba(52, 104, 255, .38);
  --grad: linear-gradient(135deg, #62b2ff 0%, #3b7bff 48%, #4c3cff 100%);

  --green: #32d583;
  --green-soft: rgba(50, 213, 131, .14);
  --red: #ff5a67;
  --red-soft: rgba(255, 90, 103, .14);
  --yellow: #ffc145;
  --yellow-soft: rgba(255, 193, 69, .14);
  --tg: #2aabee;

  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.modal-open { overflow: hidden; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
input, textarea, select { font: inherit; color: inherit; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
img, svg { display: block; }
svg { flex: 0 0 auto; }
[hidden] { display: none !important; }
::selection { background: rgba(59, 123, 255, .45); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; border-radius: 10px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .18); }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.green { color: var(--green); }
.red { color: var(--red); }
.yellow { color: var(--yellow); }
.mono { font-family: var(--mono); font-size: 13px; }
.nowrap { white-space: nowrap; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { width: 56px; animation: breathe 1.6s ease-in-out infinite; filter: drop-shadow(0 10px 30px var(--accent-shadow)); }
@keyframes breathe { 50% { transform: scale(.92); opacity: .7; } }

#bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(70% 45% at 92% -10%, rgba(59, 123, 255, .2), transparent 62%),
    radial-gradient(55% 40% at -8% -6%, rgba(76, 60, 255, .12), transparent 60%);
}
/* медленно плывущие пятна света — фон «дышит», но не отвлекает */
#bg::before, #bg::after {
  content: ""; position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform;
}
#bg::before { left: -12vmax; top: 18vh; background: radial-gradient(circle, rgba(59, 123, 255, .22), transparent 65%); animation: drift-a 38s ease-in-out infinite alternate; }
#bg::after { right: -14vmax; top: 48vh; background: radial-gradient(circle, rgba(124, 77, 255, .18), transparent 65%); animation: drift-b 46s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(22vw, 26vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-26vw, -30vh) scale(.9); } }

.view { animation: view-in .45s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 14px; white-space: nowrap;
  font-size: 15px; font-weight: 700; letter-spacing: -.005em;
  transition: transform .15s var(--ease), background-color .2s, border-color .2s, box-shadow .25s, opacity .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active:not(:disabled) { transform: scale(.975); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.small { height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn.lg { height: 54px; border-radius: 16px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.primary { color: #fff; background: var(--grad); box-shadow: 0 8px 26px var(--accent-shadow), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn.primary:hover:not(:disabled) { box-shadow: 0 12px 34px rgba(52, 104, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .32); }
.btn.ghost { background: var(--surface-2); border: 1px solid var(--stroke); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-3); border-color: var(--stroke-2); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.danger:hover:not(:disabled) { background: rgba(255, 90, 103, .22); }
.btn.white { background: #fff; color: #2350ff; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.btn.white:hover:not(:disabled) { box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.btn.tg { color: #fff; background: linear-gradient(135deg, #37bbfe, #1d93d2); box-shadow: 0 8px 24px rgba(42, 171, 238, .3), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.tg:hover:not(:disabled) { box-shadow: 0 12px 30px rgba(42, 171, 238, .42), inset 0 1px 0 rgba(255, 255, 255, .3); }
/* блик по главной кнопке при наведении */
.btn.shine { overflow: hidden; }
.btn.shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-18deg);
}
.btn.shine:hover:not(:disabled)::after { animation: sheen .9s var(--ease); }
@keyframes sheen { to { left: 130%; } }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading svg { opacity: 0; }
.btn.loading::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite;
}
.btn.ghost.loading::before { border-color: rgba(255, 255, 255, .2); border-top-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--stroke); transition: background .2s, color .2s, transform .15s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.danger:hover { color: var(--red); background: var(--red-soft); }
.icon-btn + .icon-btn { margin-left: 6px; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-bright); font-weight: 650; }
.link svg { width: 16px; height: 16px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--red); }

/* ---------- Чипы ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }
.chip svg.gem { width: 15px; height: 15px; }
.chip.blue { background: var(--accent-soft); color: var(--accent-bright); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.yellow { background: var(--yellow-soft); color: var(--yellow); }
.chip.gray { background: rgba(255, 255, 255, .08); color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.plus-badge {
  display: inline-block; vertical-align: .18em; padding: 3px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 850; letter-spacing: .06em; line-height: 1.2; color: #fff;
  background: linear-gradient(135deg, #5c9dff, #2f5bff); box-shadow: 0 4px 14px var(--accent-shadow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.plus-badge.sm { padding: 2px 6px; font-size: 10px; border-radius: 6px; }
.plus-badge.light { margin-left: 8px; background: rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }

/* ---------- Плитка и аватар ---------- */
.tile { position: relative; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; border-radius: var(--r, 16px); color: #fff; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 48%); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile span { position: relative; z-index: 1; text-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.ava { position: relative; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; }
.ava > span { font-size: .42em; }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.ava img.ok { opacity: 1; }
.uava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; flex: 0 0 auto; }
.uava.lg { width: 64px; height: 64px; font-size: 26px; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 40; transition: background .3s, border-color .3s, box-shadow .3s; border-bottom: 1px solid transparent; }
.hdr.scrolled { background: rgba(7, 7, 10, .78); border-bottom-color: var(--stroke); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hdr.scrolled { background: rgba(7, 7, 10, .62); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
}
.hdr-in { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 850; letter-spacing: -.03em; flex: 0 0 auto; }
.brand .logo { height: 34px; width: auto; filter: drop-shadow(0 6px 16px var(--accent-shadow)); transition: transform .4s var(--spring); }
.brand:hover .logo { transform: rotate(-8deg) scale(1.06); }
.search { position: relative; flex: 1 1 420px; min-width: 0; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); transition: border-color .2s, background .2s, box-shadow .2s; }
.search:focus-within { border-color: rgba(120, 165, 255, .55); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px rgba(59, 123, 255, .12); }
.search > svg { width: 18px; height: 18px; color: var(--text-3); }
.search input { flex: 1; width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search input::placeholder { color: var(--text-3); }
.search kbd { font: 600 12px var(--mono); color: var(--text-3); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--stroke-2); }
.search:focus-within kbd { opacity: 0; }
.search-pop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 6px; border-radius: 16px; z-index: 50;
  background: rgba(20, 20, 26, .96); border: 1px solid var(--stroke-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: pop-in .18s var(--ease);
}
.sp-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.sp-item:hover { background: var(--surface-2); }
.sp-name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-item b { font-size: 14px; }
.sp-empty { padding: 14px; color: var(--text-3); text-align: center; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.hnav { display: flex; align-items: center; gap: 4px; }
.hnav a { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px; border-radius: 12px; color: var(--text-2); font-weight: 650; transition: color .2s, background .2s; }
.hnav a svg { width: 18px; height: 18px; }
.hnav a:hover { color: var(--text); background: var(--surface); }
.hnav a.active { color: var(--text); }
.hnav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad); }
.hnav a .gem { width: 18px; height: 18px; }
.hdr-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.bal { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--stroke-2); font-weight: 750; font-size: 15px; transition: background .2s, border-color .2s; }
.bal:hover { background: var(--surface-2); border-color: rgba(120, 165, 255, .45); }
.bal-plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); box-shadow: 0 4px 12px var(--accent-shadow); color: #fff; }
.bal-plus svg { width: 16px; height: 16px; }
.usermenu { position: relative; }
.user-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 3px 14px 3px 3px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--stroke-2); transition: background .2s, border-color .2s;
}
.user-btn:hover, .usermenu.open .user-btn { background: var(--surface-2); border-color: rgba(120, 165, 255, .45); }
.user-plus { display: inline-flex; align-items: center; gap: 6px; font-weight: 850; font-size: 13.5px; letter-spacing: .07em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.user-plus .gem { width: 17px; height: 17px; }
.user-name { max-width: 120px; font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 260px; padding: 6px; border-radius: 18px; z-index: 50;
  background: rgba(20, 20, 26, .97); border: 1px solid var(--stroke-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity .18s, transform .18s var(--ease);
}
.usermenu.open .menu-pop { opacity: 1; transform: none; pointer-events: auto; }
.menu-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--stroke); }
.menu-head b { display: block; font-size: 15px; }
.menu-head span { font-size: 13px; color: var(--text-3); }
.menu-pop a, .menu-pop button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 11px; font-weight: 600; color: var(--text-2); }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); color: var(--text); }
.menu-pop svg { width: 18px; height: 18px; }
.menu-pop .danger { color: var(--red); }
.menu-pop .danger:hover { color: var(--red); background: var(--red-soft); }
.menu-sep { height: 1px; margin: 4px 6px; background: var(--stroke); }

.main { min-height: calc(100vh - 72px - 260px); padding-top: 12px; padding-bottom: 72px; }
.main > .view > section, .main > .view > .hero { margin-top: 40px; }
.main > .view > :first-child { margin-top: 12px; }

/* ---------- Подвал ---------- */
.ftr { border-top: 1px solid var(--stroke); background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .015)); }
.ftr-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.ftr-brand p { max-width: 340px; margin: 14px 0 0; color: var(--text-3); line-height: 1.55; }
.ftr-col { display: flex; flex-direction: column; gap: 10px; }
.ftr-col b { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 4px; }
.ftr-col a { color: var(--text-2); font-weight: 550; width: fit-content; }
.ftr-col a:hover { color: var(--text); }
.ftr-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--stroke); color: var(--text-3); font-size: 13px; }

/* подпись разработчика (как на richvpn.fun) */
.made { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; line-height: 1; padding: 9px 14px 9px 16px; border: 1.5px solid var(--stroke-2); border-radius: 99px; color: var(--text-2); font-weight: 600; transition: border-color .2s, color .2s; }
.made img { height: 16px; width: auto; }
.made svg { width: 15px; height: 15px; transition: transform .25s var(--spring), color .2s; }
.made:hover { border-color: rgba(92, 157, 255, .6); color: var(--text); }
.made:hover svg { transform: translateX(3px); color: var(--accent-bright); }

/* ---------- Заголовки секций ---------- */
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.row-head h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.025em; }
.row-head h2 .muted { font-weight: 650; font-size: 18px; margin-left: 6px; }
.row-nav { display: flex; gap: 6px; }

/* ---------- Баннеры (оформление — /static/banners.css, общее с мини-приложением) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-track { display: flex; transition: transform .75s cubic-bezier(.65, 0, .2, 1); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hero-track.instant, .hero-track.dragging { transition: none; }
.hero-track.dragging { cursor: grabbing; }
.slide.tb-slide { display: block; flex: 0 0 100%; min-height: 330px; cursor: pointer; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--hx, 50%) var(--hy, 50%), rgba(255, 255, 255, .1), transparent 60%); }
.hero:hover::after { opacity: 1; }
.slide.current .tb-kicker, .slide.current .tb-title > span, .slide.current .tb-sub, .slide.current .tb-cta { animation: rise .7s var(--ease) both; }
.slide.current .tb-title > span:nth-child(2) { animation-delay: .08s; }
.slide.current .tb-sub { animation-delay: .16s; }
.slide.current .tb-cta { animation-delay: .24s; }
.slide.current .tb-art { animation: tb-pop .8s var(--spring) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; filter: none; } }
.slide.current .tb-title .tb-accent { animation: rise-accent .7s var(--ease) .08s both; }
@keyframes rise-accent { from { opacity: 0; transform: translateY(16px) rotate(-2deg); filter: blur(4px); } to { opacity: 1; transform: rotate(-2deg); filter: none; } }
.slide.current .tb-slab { animation: tb-pop .7s var(--spring) .3s both; }
.spark { position: absolute; width: 16px; height: 16px; opacity: .9; animation: twinkle 2.6s ease-in-out infinite; pointer-events: none; }
.spark.s2 { animation-delay: -1.2s; width: 10px; height: 10px; }
.spark.s3 { animation-delay: -.6s; width: 12px; height: 12px; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
.hero-arrow {
  position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(10, 6, 40, .45); border: 1.5px solid rgba(255, 255, 255, .28); opacity: 0; transition: opacity .25s, background .2s, transform .25s var(--spring);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero-arrow svg { width: 20px; height: 20px; }
.hero-prev { left: 22px; transform: translateX(-6px); }
.hero-next { right: 22px; transform: translateX(6px); }
.hero:hover .hero-arrow { opacity: 1; transform: none; }
.hero-arrow:hover { background: rgba(10, 6, 40, .65); }
.hero-dots { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; }
.hero-dots button { position: relative; width: 22px; height: 5px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .35); transition: width .35s var(--ease); }
.hero-dots button.on { width: 44px; }
.hero-dots button i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: #fff; border-radius: 3px; }
.hero-dots button.on i { animation: progress var(--dur, 6500ms) linear forwards; }
.hero:hover .hero-dots button.on i { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- Быстрый выбор ---------- */
.quick { position: relative; margin-top: 30px !important; }
.quick-row {
  display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 6px 2px 4px;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 56px), transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 56px), transparent 100%);
}
.quick-row::-webkit-scrollbar { display: none; }
.quick-item { flex: 0 0 96px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.quick-item .tile.qi { --r: 22px !important; box-shadow: 0 10px 22px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .35s var(--spring), box-shadow .3s; }
.quick-item:hover .tile.qi { transform: translateY(-4px) scale(1.06); box-shadow: 0 16px 30px rgba(0, 0, 0, .45), 0 0 0 2px rgba(92, 157, 255, .5); }
.quick-item > span:last-child { width: 100%; font-size: 12.5px; line-height: 1.3; font-weight: 600; color: var(--text-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; transition: color .2s; }
.quick-item:hover > span:last-child { color: var(--text); }
.quick-nav {
  position: absolute; z-index: 2; top: 25px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text);
  background: rgba(22, 22, 30, .9); border: 1px solid var(--stroke-2); box-shadow: 0 10px 26px rgba(0, 0, 0, .5); transition: opacity .25s, transform .25s var(--spring), background .2s;
}
.quick-nav svg { width: 20px; height: 20px; }
.quick-nav:hover { background: #24242e; transform: scale(1.06); }
.quick-nav.prev { left: -10px; }
.quick-nav.next { right: -10px; }
.quick-nav:disabled { opacity: 0; pointer-events: none; }

/* ---------- Виджет «Пополнение Steam» ---------- */
.steam-w { margin-top: 34px; }
.steam-w.reveal { opacity: 1; transform: none; }
/* виджет Steam — в стиле баннеров (.tw.tb-steam, общий стиль в /static/banners.css) */
.sw { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 26px; padding: 18px; border-radius: 28px; }
.sw-media { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 0 0 3px var(--tb-ink), 0 16px 34px rgba(0, 0, 0, .35); transform: rotate(-3deg); transition: transform .5s var(--spring); }
.sw:hover .sw-media { transform: rotate(0) scale(1.02); }
.sw-media img { width: 100%; height: 100%; object-fit: cover; }
.sw-body { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 4px 4px 2px; }
.sw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sw-head .tw-title { margin-top: 12px; font-size: 30px; }
.sw-sub { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.sw-fee { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: rgba(255, 255, 255, .85); font-weight: 700; font-size: 14px; }
.sw-fee b { padding: 6px 12px; border-radius: 12px; transform: rotate(4deg); background: var(--tb-accent); color: var(--tb-ink); border: 2px solid var(--tb-ink); box-shadow: 0 3px 0 var(--tb-ink); font: 900 15px/1 "Unbounded", sans-serif; }
.sw-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: stretch; }
.sw-field { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 64px; padding: 10px 16px; border-radius: 16px; background: rgba(4, 12, 32, .42); border: 1.5px solid rgba(255, 255, 255, .16); transition: border-color .2s, background .2s; cursor: text; }
.sw-field:focus-within { border-color: var(--tb-accent); background: rgba(4, 12, 32, .55); }
.sw-field.error, .sw-opts.error .opt { border-color: rgba(255, 90, 103, .7); }
.sw-field > span { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.sw-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 600; }
.sw-field input::placeholder { color: rgba(255, 255, 255, .3); }
.sw-amount-in { display: flex; align-items: baseline; gap: 6px; }
.sw-amount-in input { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sw-amount-in i { font-style: normal; font-size: 18px; font-weight: 800; color: rgba(255, 255, 255, .55); }
.sw-pay.tw-cta { height: auto; min-height: 64px; border-radius: 18px; font-size: 15px; box-shadow: 0 5px 0 var(--tb-ink); }
.sw-pay.loading { opacity: .6; pointer-events: none; }
.sw-row2 { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.sw-opts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sw-opts > span { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.sw .opt { background: rgba(4, 12, 32, .42); border-color: rgba(255, 255, 255, .16); }
.sw .link { color: #fff; }
.sw-chips .chip.gray { background: rgba(4, 12, 32, .45); color: rgba(255, 255, 255, .85); }
.sw-promo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sw-promo .link svg { width: 15px; height: 15px; }
.sw-promo-in { display: flex; gap: 8px; }
.sw-promo-in input { width: 170px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--surface); outline: 0; text-transform: uppercase; font-weight: 650; letter-spacing: .04em; }
.sw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-chips a.chip:hover { color: var(--text); }

/* варианты ответа кнопками (валюта и т.п.) */
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-field .opts { margin-top: 6px; }
.opt { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--stroke); font-weight: 650; font-size: 14px; transition: background .2s, border-color .2s, transform .15s; }
.opt:has(.opt-ic) { padding-left: 5px; }
.opt:hover { background: var(--surface-3); }
.opt:active { transform: scale(.97); }
.opt-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #0b0b12; box-shadow: inset 0 0 0 1px var(--stroke-2); font-weight: 800; font-size: 14px; transition: background .2s; }
.opt.active { background: var(--accent-soft); border-color: rgba(120, 165, 255, .6); color: var(--text); }
.opt.active .opt-ic { background: var(--grad); box-shadow: none; color: #fff; }

/* ---------- История баланса ---------- */
.txs { border-radius: 20px; background: var(--surface); border: 1px solid var(--stroke); overflow: hidden; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.tx + .tx { border-top: 1px solid var(--stroke); }
.tx .mi { width: 36px; height: 36px; border-radius: 11px; }
.tx .mi svg { width: 18px; height: 18px; }
.tx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tx-main b { font-size: 15px; }
.tx-main span { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-sum { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; }
.tx-sum b { font-size: 15px; white-space: nowrap; }
.tx-sum span { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.txs + .btn { margin-top: 10px; }
#history, #orders, #how, #steam, #catalog { scroll-margin-top: 90px; }

/* ---------- Сетка товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.pcard {
  position: relative; display: flex; flex-direction: column; border-radius: 22px; padding: 8px; isolation: isolate;
  background: var(--surface); border: 1px solid var(--stroke);
  transition: transform .35s var(--ease), border-color .3s, background .3s, box-shadow .35s;
}
/* подсветка за курсором */
.pcard::before, .spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(92, 157, 255, .14), transparent 60%);
}
.pcard:hover::before, .spot:hover::before { opacity: 1; }
.pcard:hover { transform: translateY(-4px); border-color: rgba(120, 165, 255, .28); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.pcard.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); transition: transform .12s linear, border-color .3s, box-shadow .35s; }
.pcard.reveal.in.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.pcard-price b { transition: color .25s; }
.pcard:hover .pcard-price b { color: var(--accent-bright); }
.pcard-img { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-letter { position: absolute; inset: 0; display: grid; place-items: center; font-size: 52px; font-weight: 850; color: #fff; text-shadow: 0 4px 20px rgba(0, 0, 0, .2); }
.pcard-off { position: absolute; left: 8px; top: 8px; padding: 4px 8px; border-radius: 9px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 6px 16px rgba(255, 60, 80, .35); }
.pcard-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 6px 6px; flex: 1; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; }
.pcard-price b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.pcard-price s { font-size: 13px; color: var(--text-3); }
.pcard-name { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard-meta { margin-top: auto; display: flex; align-items: center; gap: 6px; padding-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.pcard-meta svg { width: 13px; height: 13px; color: #ff8a3d; }
.pcard-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.skel-card { pointer-events: none; }
.skel-card .skel.sq { display: block; aspect-ratio: 1; border-radius: 16px; }
.skel-card .skel.line { margin: 14px 6px 0; }
.grid-empty { grid-column: 1 / -1; }
.catalog-head { flex-wrap: wrap; }
.qchip { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-bright); font-weight: 650; font-size: 13.5px; }
.qchip button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(92, 157, 255, .2); }
.qchip svg { width: 12px; height: 12px; }

/* сегментированный переключатель с переезжающей «пилюлей» */
.seg { position: relative; display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); isolation: isolate; }
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 10px; font-weight: 650; font-size: 14px; color: var(--text-2); white-space: nowrap; transition: color .25s; }
.seg button em { font-style: normal; margin-left: 4px; color: var(--text-3); font-weight: 700; }
.seg button.active { color: #fff; }
.seg button.active em { color: rgba(255, 255, 255, .75); }
.seg button:hover:not(.active) { color: var(--text); }
.seg-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 10px; background: var(--grad); box-shadow: 0 6px 18px var(--accent-shadow); transition: transform .45s var(--spring), width .35s var(--ease); }

/* ---------- Как купить ---------- */
.how-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-grid::before { content: ""; position: absolute; left: 42px; right: 42px; top: 42px; height: 2px; border-radius: 2px; background: var(--grad); transform-origin: left; transform: scaleX(0); opacity: .55; transition: transform 1.4s var(--ease) .2s; }
.how-grid.in::before { transform: scaleX(1); }
.how-grid.reveal { opacity: 1; transform: none; }
.how-grid.in .how-n { animation: pop .6s var(--spring) both; }
.how-grid.in .how-step:nth-child(2) .how-n { animation-delay: .35s; }
.how-grid.in .how-step:nth-child(3) .how-n { animation-delay: .7s; }
.how-step { position: relative; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--stroke); }
.how-n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #101a33; box-shadow: inset 0 0 0 1px rgba(92, 157, 255, .35); color: var(--accent-bright); font-weight: 850; margin-bottom: 16px; }
.how-step b { display: block; font-size: 17px; letter-spacing: -.01em; }
.how-step p { margin: 6px 0 0; color: var(--text-2); line-height: 1.5; }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease) var(--d, 0ms), transform .6s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.pcard.reveal.in:hover { transform: translateY(-4px); transition-delay: 0ms; }

/* ---------- Пустые состояния и скелеты ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 48px 20px; }
.empty .ic { width: 96px; height: 96px; margin-bottom: 8px; filter: drop-shadow(0 14px 24px rgba(30, 80, 255, .35)); }
.empty .ic svg { width: 100%; height: 100%; }
.empty b { font-size: 19px; letter-spacing: -.01em; }
.empty > span:not(.ic) { color: var(--text-2); max-width: 420px; line-height: 1.5; }
.empty .btn { margin-top: 14px; }
.empty.big { padding: 80px 20px; }
.wall { max-width: 560px; margin: 40px auto; padding: 20px; border-radius: 28px; background: var(--surface); border: 1px solid var(--stroke); }
.boot-fail { max-width: 560px; margin: 15vh auto; }
.skel { position: relative; overflow: hidden; background: rgba(255, 255, 255, .05); border-radius: 12px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel.line { height: 14px; border-radius: 7px; }
.skel.line.short { width: 55%; }
.table-skel { display: grid; gap: 12px; padding: 20px 0; }
.table-skel .skel.line { height: 44px; border-radius: 14px; }

/* ---------- Окна ---------- */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 8, .62); opacity: 0; transition: opacity .22s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal {
  position: relative; width: 100%; max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 26px; padding: 28px;
  background: linear-gradient(180deg, #16161d, #111117); border: 1px solid var(--stroke-2); box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .22s, transform .3s var(--ease);
}
.modal.sm { max-width: 420px; }
.modal.md { max-width: 520px; }
.modal.lg { max-width: 680px; }
.modal.login-modal { max-width: 580px; }
.modal-root.open .modal-backdrop { opacity: 1; }
.modal-root.open .modal { opacity: 1; transform: none; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); background: var(--surface-2); transition: background .2s, color .2s; z-index: 2; }
.modal-x:hover { background: var(--surface-3); color: var(--text); }
.modal-x svg { width: 16px; height: 16px; }
.m-title { margin: 0 34px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.m-text { margin: 10px 0 0; color: var(--text-2); line-height: 1.55; }
.m-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.confirm-product { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; }
.confirm-product > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.confirm-product b { font-size: 16px; line-height: 1.3; }
.confirm-product .muted { font-size: 13px; }

#toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { padding: 12px 18px; border-radius: 14px; background: rgba(28, 28, 36, .96); border: 1px solid var(--stroke-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-weight: 600; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .25s, transform .3s var(--spring); max-width: min(520px, calc(100vw - 32px)); text-align: center; }
.toast.show { opacity: 1; transform: none; }
.toast.ok { border-color: rgba(50, 213, 131, .35); }
.toast.err { border-color: rgba(255, 90, 103, .45); }

/* ---------- Вход через Telegram ---------- */
.login-head { text-align: center; }
.login-art { display: block; width: 84px; height: 84px; margin: 0 auto 8px; filter: drop-shadow(0 14px 24px rgba(30, 80, 255, .4)); }
.login-art svg { width: 100%; height: 100%; }
.login-head h3 { margin: 0; font-size: 23px; letter-spacing: -.02em; }
.login-head p { margin: 8px auto 0; max-width: 380px; color: var(--text-2); line-height: 1.5; }
.login-body { display: grid; grid-template-columns: 168px 1fr; gap: 22px; align-items: center; margin-top: 24px; }
.qr { width: 168px; height: 168px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); animation: qr-in .5s var(--spring); }
.qr.skel { background: rgba(255, 255, 255, .06); box-shadow: none; animation: none; }
.qr svg { width: 100%; height: 100%; border-radius: 10px; }
@keyframes qr-in { from { opacity: 0; transform: scale(.9) rotate(-3deg); } }
.login-steps ol { margin: 0 0 16px; padding-left: 20px; color: var(--text-2); line-height: 1.5; display: grid; gap: 6px; }
.login-steps .skel.line { margin-bottom: 12px; }
.login-code { display: inline-block; padding: 1px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-bright); font: 800 15px var(--mono); letter-spacing: .14em; }
.login-wait { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--text-3); font-size: 13.5px; }
.login-wait b { color: var(--text-2); font-variant-numeric: tabular-nums; }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.4s ease-out infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

/* ---------- Пополнение и оплата ---------- */
.amount-field { display: flex; align-items: baseline; justify-content: flex-start; gap: 6px; margin-top: 18px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--stroke); transition: border-color .2s; }
.amount-field:focus-within { border-color: rgba(120, 165, 255, .55); }
.amount-field input { width: 1.15ch; min-width: 1.15ch; max-width: 100%; border: 0; outline: 0; background: transparent; text-align: left; font-variant-numeric: tabular-nums; font-size: 44px; font-weight: 850; letter-spacing: -.03em; caret-color: var(--accent-bright); }
.amount-field input::placeholder { color: rgba(235, 235, 245, .2); }
.amount-field span { font-size: 30px; font-weight: 800; color: var(--text-3); }
.amount-field.sm { justify-content: flex-start; margin-top: 0; padding: 10px 16px; border-radius: 16px; }
.amount-field.sm input { font-size: 28px; }
.amount-field.sm span { font-size: 22px; }
.presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.presets button { height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--stroke); font-weight: 700; font-size: 14px; text-align: center; transition: background .2s, border-color .2s; }
.presets button:hover { background: var(--surface-2); }
.presets button.active { background: var(--accent-soft); border-color: rgba(120, 165, 255, .6); }
.promo-row { margin-top: 12px; }
.promo-row input, .promo input { width: 100%; height: 46px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--stroke); background: var(--surface); outline: 0; text-transform: uppercase; font-weight: 650; letter-spacing: .04em; transition: border-color .2s; }
.promo-row input::placeholder, .promo input::placeholder { text-transform: none; letter-spacing: 0; color: var(--text-3); font-weight: 500; }
.promo-row input:focus, .promo input:focus { border-color: rgba(120, 165, 255, .55); }
.topup .btn.lg { margin-top: 16px; }
.hint { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.hint.red { color: var(--red); }
.hint.center { text-align: center; }
.pay-wait, .pay-done { text-align: center; }
.pay-wait .m-title, .pay-done .m-title { margin: 18px 0 0; }
.pay-wait .m-actions, .pay-done .m-actions { justify-content: center; }
.pay-ring { position: relative; display: block; width: 76px; height: 76px; margin: 6px auto 0; border-radius: 50%; background: var(--accent-soft); }
.pay-ring span { position: absolute; inset: 8px; border-radius: 50%; border: 3px solid rgba(92, 157, 255, .25); border-top-color: var(--accent-bright); animation: spin 1s linear infinite; }
.done-badge { display: grid; place-items: center; width: 76px; height: 76px; margin: 6px auto 0; border-radius: 50%; color: #fff; background: radial-gradient(circle at 32% 26%, #9af3c4, #18b46b 70%); box-shadow: 0 0 0 10px rgba(50, 213, 131, .1), 0 0 0 22px rgba(50, 213, 131, .05), 0 22px 50px rgba(24, 180, 107, .35); animation: pop .6s var(--spring); }
.done-badge svg { width: 36px; height: 36px; }
.pay-done .sum-rows { text-align: left; margin-top: 18px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* ---------- Страница товара ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; margin: 4px 0 18px; font-size: 13.5px; color: var(--text-3); font-weight: 600; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 14px; height: 14px; }
.crumbs span { color: var(--text-2); }
.pp {
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: auto auto 1fr; column-gap: 28px; row-gap: 18px; align-items: start;
  grid-template-areas: "hero side" "desc side" "trust side";
}
.pp-hero { grid-area: hero; }
.pp-side { grid-area: side; align-self: start; }
.pp-desc { grid-area: desc; }
.pp-trust { grid-area: trust; }
.pp-hero { position: relative; aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--stroke); }
.pp-hero img { width: 100%; height: 100%; object-fit: cover; }
.pp-hero-art { position: absolute; inset: 0; display: grid; place-items: center; }
.pp-hero-art svg { width: 40%; height: 40%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .3)); }
.card { position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--stroke); }
.card.flush { padding: 0; overflow: hidden; }

.pp-desc h2, .card-title { margin: 0 0 12px; font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.desc { white-space: pre-wrap; color: var(--text-2); line-height: 1.6; word-break: break-word; }
.pp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trust-item { display: flex; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); }
.trust-item > svg { width: 22px; height: 22px; color: var(--accent-bright); margin-top: 1px; }
.trust-item b { display: block; font-size: 14.5px; }
.trust-item span { display: block; margin-top: 3px; font-size: 13px; color: var(--text-3); line-height: 1.45; }
.pp-side { position: sticky; top: 92px; }
.buy-panel { padding: 24px; border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03)); border: 1px solid var(--stroke-2); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.buy-panel h1 { margin: 0; font-size: 25px; line-height: 1.15; font-weight: 850; letter-spacing: -.025em; word-break: break-word; }
.pp-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 0 14px; }
.pp-price b { font-size: 32px; font-weight: 850; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pp-price s { color: var(--text-3); font-size: 17px; font-weight: 600; }
.note-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--green-soft); color: var(--green); font-weight: 600; font-size: 13.5px; }
.note-row svg { width: 17px; height: 17px; margin-top: 1px; }
.panel-label { margin: 20px 0 8px; font-size: 12.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.variants button { min-width: 0; padding: 12px 14px; border-radius: 15px; background: var(--surface); border: 1px solid var(--stroke); transition: background .2s, border-color .2s, transform .15s; }
.variants button:hover { background: var(--surface-2); }
.variants button:active { transform: scale(.98); }
.variants button b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.variants button span { display: block; margin-top: 2px; font-size: 14px; font-weight: 650; color: var(--text-2); }
.variants button.active { background: var(--accent-soft); border-color: rgba(120, 165, 255, .6); box-shadow: 0 0 0 3px rgba(59, 123, 255, .12); }
.variants button.active span { color: var(--accent-bright); }
.fields { display: grid; gap: 10px; }
.field { display: block; padding: 10px 14px 11px; border-radius: 15px; background: var(--surface); border: 1px solid var(--stroke); transition: border-color .2s, background .2s; }
.field:focus-within { border-color: rgba(120, 165, 255, .55); background: rgba(255, 255, 255, .06); }
.field.error { border-color: rgba(255, 90, 103, .7); background: var(--red-soft); }
.field > span { display: block; margin-bottom: 3px; font-size: 12.5px; font-weight: 650; color: var(--text-3); }
.field input, .field textarea, .field select { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; font-size: 15.5px; font-weight: 500; resize: vertical; line-height: 1.45; }
.field textarea { min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(235, 235, 245, .25); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: #141418; }
.card .field + .field { margin-top: 10px; }
.promo { display: flex; gap: 8px; }
.promo input { flex: 1; min-width: 0; }
.promo .btn { height: 46px; }
.promo-ok { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.promo-ok > span:nth-child(2) { flex: 1; }
.sum { margin-top: 18px; }
.sum-rows { display: grid; gap: 2px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14.5px; color: var(--text-2); border-bottom: 1px dashed var(--stroke); }
.sum-row:last-child { border-bottom: 0; }
.sum-row > span:last-child { color: var(--text); font-weight: 650; text-align: right; }
.sum-row.col { flex-direction: column; gap: 2px; }
.sum-row.col > span:last-child { text-align: left; font-family: var(--mono); font-size: 13.5px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--stroke-2); font-weight: 700; }
.sum-total b { font-size: 24px; font-weight: 850; letter-spacing: -.02em; }
.sum-bal { display: flex; align-items: center; gap: 8px; margin: 12px 0 14px; font-size: 13.5px; color: var(--text-2); }
.sum-bal svg { width: 17px; height: 17px; color: var(--text-3); }
.sum-bal.short { color: var(--yellow); }
.sum-bal.short svg { color: var(--yellow); }
#buy { margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--stroke); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--stroke); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 12px; padding: 18px 20px; font-size: 16px; font-weight: 650; text-align: left; transition: background .2s; }
.faq-q:hover { background: var(--surface); }
.faq-q span { flex: 1; }
.faq-q svg { width: 18px; height: 18px; color: var(--text-3); transition: transform .3s var(--ease), color .2s; }
.faq-item.open .faq-q svg { transform: rotate(90deg); color: var(--accent-bright); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; min-height: 0; }
.faq-a p { margin: 0; padding: 0 20px 18px; color: var(--text-2); line-height: 1.6; }
.narrow { max-width: 860px; }

/* ---------- Trust Plus ---------- */
.mi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 20px rgba(0, 0, 0, .25); }
.mi svg { width: 21px; height: 21px; }
.mi.violet { background: linear-gradient(135deg, #b48bff, #6a3dff); }
.mi.teal { background: linear-gradient(135deg, #4fe0b2, #0e9c84); }
.mi.orange { background: linear-gradient(135deg, #ffc65a, #ff7a1f); }
.mi.pink { background: linear-gradient(135deg, #ff8ac8, #e0367f); }
/* Trust Plus — в стиле баннеров (.tw.tb-plus) */
.plus-hero { display: flex; align-items: center; min-height: 340px; padding: 48px 56px; border-radius: 32px; }
.plus-sheen { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.plus-sheen::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -30%; width: 22%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent); transform: skewX(-16deg); animation: sheen-run 7s ease-in-out infinite 1.5s; }
@keyframes sheen-run { 0% { left: -30%; } 30%, 100% { left: 130%; } }
.plus-copy { position: relative; z-index: 1; max-width: 560px; }
.plus-hero .tw-title { margin-top: 16px; font-size: 60px; }
.plus-price { margin-top: 18px; font: 900 30px/1.1 "Unbounded", sans-serif; letter-spacing: -.02em; }
.plus-price small { font-size: 16px; font-weight: 700; letter-spacing: 0; opacity: .85; }
.plus-hero p { margin: 12px 0 0; font-size: 17px; line-height: 1.5; font-weight: 600; opacity: .9; max-width: 480px; }
.plus-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.plus-actions .tw-cta .gem { width: 20px; height: 20px; }
.plus-saved { font-size: 14px; opacity: .9; }
.plus-art { position: absolute; z-index: 0; right: 7%; top: 50%; width: 280px; height: 280px; transform: translateY(-50%) rotate(10deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 40, .35)); animation: float-plus 7s ease-in-out infinite; perspective: 800px; }
.plus-art-in { display: block; width: 100%; height: 100%; animation: gem-turn 9s ease-in-out infinite; transform-style: preserve-3d; }
.plus-art svg { width: 100%; height: 100%; }
@keyframes gem-turn { 0%, 100% { transform: rotateY(-18deg); } 50% { transform: rotateY(18deg); } }

@keyframes float-plus { 0%, 100% { transform: translateY(-50%) rotate(10deg); } 50% { transform: translateY(calc(-50% - 12px)) rotate(6deg); } }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit { position: relative; isolation: isolate; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--stroke); transition: border-color .3s, transform .35s var(--ease); }
.benefit:hover { border-color: rgba(120, 165, 255, .25); transform: translateY(-3px); }
.benefit.reveal.in:hover { transform: translateY(-3px); transition-delay: 0ms; }
.benefit b { display: block; margin-top: 18px; font-size: 17.5px; letter-spacing: -.01em; }
.benefit p { margin: 6px 0 0; color: var(--text-2); line-height: 1.55; }

/* ---------- Рефералы ---------- */
.ref-hero { display: flex; align-items: center; gap: 32px; padding: 34px 40px; border-radius: 30px; }
.ref-art { width: 150px; height: 150px; flex: 0 0 auto; filter: drop-shadow(0 18px 28px rgba(42, 8, 69, .45)); }
.ref-art svg { width: 100%; height: 100%; }
.ref-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ref-hero .tw-title { margin-top: 12px; font-size: 40px; }
.ref-hero p { margin: 12px 0 16px; font-size: 16px; line-height: 1.55; font-weight: 600; color: rgba(255, 255, 255, .92); max-width: 620px; }
.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr) 2fr; gap: 16px; margin-top: 16px; }
.stat-card { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--stroke); }
.stat-card span { color: var(--text-3); font-weight: 650; font-size: 13.5px; }
.stat-card b { display: block; margin-top: 6px; font-size: 34px; font-weight: 850; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ref-links { grid-row: span 2; }
.ref-links .panel-label:first-child { margin-top: 0; }
.link-row { display: flex; align-items: center; gap: 8px; }
.link-row code { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 13px; background: rgba(0, 0, 0, .25); border: 1px solid var(--stroke); font: 500 13.5px var(--mono); color: var(--text-2); overflow-wrap: anywhere; }
.private { grid-column: span 2; }
.private-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.private-head b { letter-spacing: .08em; }
.private p { margin: 12px 0 0; color: var(--text-2); line-height: 1.55; font-size: 14px; }
.progress { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--grad); animation: grow 1.1s var(--ease); }
.progress.big { height: 12px; border-radius: 6px; }
@keyframes grow { from { width: 0; } }

/* ---------- Профиль ---------- */
.profile { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
.profile-side { display: grid; gap: 14px; position: sticky; top: 92px; min-width: 0; }
.profile-main, .pp > * { min-width: 0; }
.profile-card { text-align: center; padding: 26px 22px; }
.profile-card .ava { margin: 0 auto 12px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(92, 157, 255, .5), 0 16px 40px var(--accent-shadow); }
.profile-card h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; word-break: break-word; }
.wallet { display: flex; flex-direction: column; align-items: flex-start; padding: 20px 22px 22px; border-radius: 24px; }
.wallet-amount { display: block; margin: 12px 0 16px; font: 900 32px/1.05 "Unbounded", sans-serif; letter-spacing: -.03em; text-shadow: 0 3px 0 rgba(3, 48, 43, .35); }
.wallet-art { position: absolute; z-index: -1; right: 10px; top: 14px; width: 100px; height: 100px; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .28)); }
.wallet-art svg { width: 100%; height: 100%; }
.wallet .wc1 { right: 116px; top: 18px; transform: rotate(-12deg); }
.wallet .wc2 { right: 22px; bottom: 20px; animation-delay: -1.6s; }
.plus-mini { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; transition: transform .3s var(--spring); }
.plus-mini:hover { transform: translateY(-2px); }
.plus-mini .ic { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: #fff3e2; border: 2px solid var(--tb-ink); box-shadow: 0 3px 0 var(--tb-ink); transform: rotate(-6deg); }
.plus-mini .ic svg { width: 21px; height: 21px; }
.plus-mini .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.plus-mini b { font: 900 14px/1.15 "Unbounded", sans-serif; letter-spacing: -.01em; text-transform: uppercase; text-shadow: 0 2px 0 rgba(7, 26, 107, .35); }
.plus-mini .grow > span { margin-top: 3px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .86); }
.plus-mini .go { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #fff3e2; color: var(--tb-ink); border: 2px solid var(--tb-ink); box-shadow: 0 2px 0 var(--tb-ink); }
.plus-mini .go svg { width: 16px; height: 16px; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-stats > div { padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); }
.profile-stats b { display: block; font-size: 24px; font-weight: 850; letter-spacing: -.02em; }
.profile-stats span { font-size: 13px; color: var(--text-3); }
.menu-list { border-radius: 20px; background: var(--surface); border: 1px solid var(--stroke); overflow: hidden; }
.menu-list a, .menu-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 16px; font-weight: 600; transition: background .2s; }
.menu-list a + a, .menu-list a + button { border-top: 1px solid var(--stroke); }
.menu-list a:hover, .menu-list button:hover { background: var(--surface); }
.menu-list svg { width: 18px; height: 18px; color: var(--text-3); }
.menu-list span { flex: 1; min-width: 0; }
.menu-list small { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.menu-list .danger, .menu-list .danger svg { color: var(--red); }
.profile-main > section + section { margin-top: 36px; }
.orders { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.orow { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); text-align: left; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.orow:hover { background: var(--surface-2); border-color: var(--stroke-2); }
.orow-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.orow-name b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow-name span { font-size: 13px; color: var(--text-3); }
.orow-price { font-weight: 800; font-size: 15.5px; }

/* ---------- Чат по заказу ---------- */
.order-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.order-page > * { min-width: 0; }
#order-side { position: sticky; top: 92px; }
.order-card .chips { margin: 12px 0 6px; }
.order-card .btn { margin-top: 16px; }
.chat-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--stroke); background: rgba(255, 255, 255, .02); }
.chat-ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #101a33; box-shadow: inset 0 0 0 1px rgba(92, 157, 255, .3); }
.chat-ava .logo { height: 22px; width: auto; }
.chat-head b { display: block; font-size: 15.5px; }
.chat-head span { font-size: 13px; color: var(--text-3); }
.chat { display: flex; flex-direction: column; height: min(640px, calc(100vh - 220px)); min-height: 420px; }
.adm .chat { height: 460px; min-height: 0; }
.adm .chat-card { padding: 20px 20px 0; }
.adm .chat-card .card-title-row { margin-bottom: 12px; flex-wrap: wrap; }
.adm .chat-list { margin: 0 -20px; padding: 16px 20px; border-top: 1px solid var(--stroke); }
.adm .chat-foot { margin: 0 -20px; }
.chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 20px; scroll-behavior: smooth; overscroll-behavior: contain; }
.chat-loading, .chat-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 340px; text-align: center; color: var(--text-3); line-height: 1.5; }
.chat-loading { flex-direction: row; }
.chat-empty svg { width: 34px; height: 34px; color: var(--accent-bright); opacity: .8; }
.chat-day { align-self: center; margin: 10px 0 4px; }
.chat-day span { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 650; color: var(--text-3); }
.msg { position: relative; max-width: min(78%, 560px); padding: 9px 13px 7px; border-radius: 18px; line-height: 1.45; word-break: break-word; }
.msg.their { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--stroke); border-bottom-left-radius: 6px; }
.msg.mine { align-self: flex-end; background: linear-gradient(135deg, #3d7dff, #4c3cff); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 6px 20px rgba(52, 104, 255, .25); }
.msg + .msg.mine, .msg.mine + .msg.mine { margin-top: 0; }
.msg-text { white-space: pre-wrap; font-size: 14.5px; }
.msg-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.msg-meta { display: block; margin-top: 3px; font-size: 11.5px; color: var(--text-3); text-align: right; }
.msg.mine .msg-meta { color: rgba(255, 255, 255, .7); }
.msg.new { animation: msg-in .4s var(--spring) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.chat-foot { border-top: 1px solid var(--stroke); padding: 12px; background: rgba(255, 255, 255, .015); }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; }
.chat-compose textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 160px; padding: 12px 14px; border-radius: 15px; border: 1px solid var(--stroke); background: var(--surface); outline: 0; resize: none; line-height: 1.45; font-size: 15px; transition: border-color .2s; }
.chat-compose textarea:focus { border-color: rgba(120, 165, 255, .55); }
.chat-compose textarea::placeholder { color: var(--text-3); }
.send-btn { position: relative; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 6px 18px var(--accent-shadow); transition: transform .2s var(--spring), box-shadow .2s; }
.send-btn svg { width: 20px; height: 20px; transition: transform .25s var(--spring); }
.send-btn:hover svg { transform: translate(2px, -2px); }
.send-btn:active { transform: scale(.94); }
.send-btn.loading svg { opacity: 0; }
.send-btn.loading::before { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
.chat-closed { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px; color: var(--text-3); font-size: 13.5px; text-align: center; }
.chat-closed svg { width: 16px; height: 16px; color: var(--green); flex: 0 0 auto; }
/* непрочитанные ответы менеджера */
.user-btn { position: relative; }
.user-btn.has-unread::after { content: ""; position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2.5px var(--bg); animation: pop .4s var(--spring); }
.menu-count { margin-left: auto; font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; }
.orow-unread { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; animation: pop .4s var(--spring); }

/* ================= Админ-панель ================= */
body.admin { background: #060609; }
.adm { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px; border-right: 1px solid var(--stroke); background: linear-gradient(180deg, rgba(59, 123, 255, .06), transparent 40%), #09090d; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; font-size: 20px; font-weight: 850; letter-spacing: -.03em; }
.adm-brand .logo { height: 30px; filter: drop-shadow(0 6px 16px var(--accent-shadow)); }
.adm-brand em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-bright); }
.adm-nav { display: grid; gap: 2px; }
.adm-nav a { position: relative; display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px; border-radius: 12px; color: var(--text-2); font-weight: 600; transition: background .2s, color .2s; }
.adm-nav a svg { width: 19px; height: 19px; }
.adm-nav a span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-nav a:hover { background: var(--surface); color: var(--text); }
.adm-nav a.active { background: var(--surface-2); color: var(--text); }
.adm-nav a.active::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.adm-nav a.active svg { color: var(--accent-bright); }
.adm-badge { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.adm-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--stroke); }
.adm-back { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--text-2); font-weight: 600; }
.adm-back:hover { background: var(--surface); color: var(--text); }
.adm-back svg { width: 17px; height: 17px; }
.adm-me { display: flex; align-items: center; gap: 10px; padding: 6px 10px; }
.adm-me span { min-width: 0; display: flex; flex-direction: column; }
.adm-me b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-me small { font-size: 12px; color: var(--text-3); }
.adm-content { min-width: 0; }
.adm-main { max-width: 1240px; margin: 0 auto; padding: 28px 36px 80px; }
.adm-main > .view > * + * { margin-top: 18px; }
#sales-body { display: grid; gap: 18px; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.adm-head h1 { margin: 0; font-size: 30px; font-weight: 850; letter-spacing: -.03em; }
.adm-head p { margin: 6px 0 0; color: var(--text-3); }
.adm-actions { display: flex; gap: 10px; align-items: center; min-width: 0; max-width: 100%; }
.adm-head > div { min-width: 0; }
.user-head .cell-prod { gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpis.small { margin-top: 18px; }
.kpi { position: relative; overflow: hidden; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--stroke); }
.kpi-label { display: block; font-size: 13px; font-weight: 650; color: var(--text-3); }
.kpi-value { display: block; margin-top: 6px; font-size: 28px; font-weight: 850; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis.small .kpi-value { font-size: 22px; }
.kpi-sub { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.kpi.accent { background: linear-gradient(140deg, rgba(59, 123, 255, .2), rgba(76, 60, 255, .08)); border-color: rgba(120, 165, 255, .25); }
.kpi.green .kpi-value { color: var(--green); }
.kpi.red .kpi-value { color: var(--red); }
.adm-grid { display: grid; gap: 18px; align-items: start; }
.adm-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adm-grid.side { grid-template-columns: minmax(0, 1fr) 360px; }
.adm-grid.side > aside, .adm-grid.side > div { display: grid; gap: 18px; align-content: start; }
.adm-grid.side > aside { position: sticky; top: 24px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.card-title-row .card-title { margin-bottom: 0; }
.card .hint:first-child { margin-top: 0; }
.card .seg { margin: 12px 0 14px; display: flex; flex-wrap: wrap; }
.card .seg button { flex: 1; }
.sep { height: 1px; margin: 14px 0; background: var(--stroke); }
.card .btn.block + .btn.block { margin-top: 10px; }
.funnel { display: grid; gap: 12px; }
.funnel-row { display: grid; grid-template-columns: 160px 1fr 70px 56px; align-items: center; gap: 12px; font-size: 14px; }
.funnel-label { color: var(--text-2); font-weight: 600; }
.funnel-bar { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.funnel-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--grad); animation: grow .9s var(--ease) var(--d, 0ms) both; }
.funnel-row b { text-align: right; font-variant-numeric: tabular-nums; }
.funnel-row .muted { text-align: right; font-size: 13px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mini-stat { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--stroke); transition: border-color .2s; }
a.mini-stat:hover { border-color: var(--stroke-2); }
.mini-stat b { display: block; font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.mini-stat span { font-size: 13px; color: var(--text-3); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* график */
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-rev { background: var(--accent-bright); }
.lg-prof { background: var(--green); }
.chart { position: relative; margin-top: 10px; }
.chart-svg { width: 100%; height: 260px; overflow: visible; }
.chart .axis { stroke: rgba(255, 255, 255, .12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .hit { fill: transparent; }
.chart .bar:hover .hit { fill: rgba(255, 255, 255, .03); }
.chart .rev { fill: var(--accent-bright); opacity: .8; transition: opacity .2s; }
.chart .bar:hover .rev { opacity: 1; }
.chart .prof { fill: var(--green); }
.chart .loss { fill: var(--red); }
.chart .bar rect:not(.hit) { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.chart.in .bar rect:not(.hit) { transform: scaleY(1); transition: transform .7s var(--ease) var(--d, 0ms); }
.chart-x { position: relative; height: 22px; margin-top: 4px; }
.chart-x span { position: absolute; transform: translateX(-50%); font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.chart-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(24, 24, 32, .97); border: 1px solid var(--stroke-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.chart-tip b { color: var(--text); }

/* таблицы */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--stroke); white-space: nowrap; background: rgba(255, 255, 255, .015); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--stroke); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table td small { display: block; font-size: 12.5px; }
.table tbody tr { transition: background .15s; }
.table tr[data-href], .table tr[data-promo] { cursor: pointer; }
.table tr[data-href]:hover, .table tr[data-promo]:hover { background: rgba(255, 255, 255, .03); }
.card:not(.flush) .table th, .card:not(.flush) .table td { padding-left: 4px; padding-right: 4px; }
.card:not(.flush) .table th { background: none; }
.cell-prod { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-prod > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.cell-prod small { color: var(--text-3); }
.chips-cell { text-align: right; white-space: nowrap; }
.chips-cell .chip + .chip { margin-left: 4px; }
.loading { opacity: .55; transition: opacity .2s; pointer-events: none; }
.search-box { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 15px; background: var(--surface); border: 1px solid var(--stroke); max-width: 560px; }
.search-box:focus-within { border-color: rgba(120, 165, 255, .55); }
.search-box svg { width: 18px; height: 18px; color: var(--text-3); }
.search-box input { flex: 1; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; }

/* товары: сортировка перетаскиванием */
.plist { display: grid; }
.prow { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 8px; background: #0c0c11; border-bottom: 1px solid var(--stroke); transition: background .15s, box-shadow .2s; }
.prow:last-child { border-bottom: 0; }
.prow:hover { background: #101016; }
.prow.dragging { position: relative; z-index: 5; background: #17171f; box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(120, 165, 255, .35); border-radius: 14px; }
.plist.sorting .prow:not(.dragging) { transition: background .15s; }
.grip { width: 30px; height: 40px; display: grid; place-items: center; color: var(--text-3); cursor: grab; touch-action: none; border-radius: 8px; }
.grip:hover { color: var(--text); background: var(--surface); }
.grip svg { width: 18px; height: 18px; }
.prow.dragging .grip { cursor: grabbing; }
.prow-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prow-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-name span { font-size: 13px; color: var(--text-3); }
.prow-name:hover b { color: var(--accent-bright); }
.prow-sold { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.type-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); transition: border-color .2s, transform .25s var(--ease), background .2s; }
.type-card:hover { border-color: rgba(120, 165, 255, .45); background: var(--surface-2); transform: translateY(-2px); }
.type-card b { margin-top: 8px; font-size: 16px; }
.type-card span:last-child { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card .field-row .field + .field { margin-top: 0; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
.field-row + #cost-wrap, .field-row + .hint + #cost-wrap { margin-top: 10px; }
#cost-wrap .field { margin-top: 10px; }
.card > .field-row:first-of-type, .card > #cost-wrap:first-of-type .field { margin-top: 0; }
.vlist { display: grid; gap: 8px; margin-top: 12px; }
.vrow { display: flex; align-items: flex-end; gap: 8px; }
.qrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .02); border: 1px solid var(--stroke); }
.qrow .q-opts { margin: 0 0 0 34px !important; }
.qrow .q-opts > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vnum { width: 26px; height: 26px; margin-bottom: 14px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); font-size: 12.5px; font-weight: 800; flex: 0 0 auto; }
.vrow .field { margin-top: 0 !important; }
.vrow .field.grow { flex: 1; min-width: 0; }
.vrow .field.w { width: 150px; flex: 0 0 auto; }
.vrow .icon-btn { margin-bottom: 7px; }
.check { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 13px; background: var(--surface); border: 1px solid var(--stroke); font-size: 13.5px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; margin-bottom: 2px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.dropzone { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 18px; border: 1.5px dashed var(--stroke-2); background: var(--surface); overflow: hidden; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.over { border-color: rgba(120, 165, 255, .6); background: var(--accent-soft); }
.dropzone.has { border-style: solid; }
.dropzone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dz-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; }
.dz-ph svg { width: 30px; height: 30px; color: var(--accent-bright); }
.dz-ph b { font-size: 15px; }
.dz-ph span { font-size: 12.5px; color: var(--text-3); }
.dz-edit { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; background: rgba(0, 0, 0, .55); font-size: 13px; font-weight: 650; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s; }
.dz-edit svg { width: 15px; height: 15px; }
.dropzone:hover .dz-edit { opacity: 1; }
#imgactions { margin-top: 10px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.switch-row > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.switch-row small { font-size: 13px; color: var(--text-3); }
.switch { position: relative; flex: 0 0 auto; width: 46px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.switch i { position: absolute; inset: 0; border-radius: 14px; background: rgba(255, 255, 255, .14); transition: background .25s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .3s var(--spring); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(18px); }
.sticky-actions { display: grid; gap: 10px; }
.answers { display: grid; gap: 8px; }
.answer { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 44px 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .2); border: 1px solid var(--stroke); text-align: left; transition: border-color .2s; }
.answer:hover { border-color: rgba(120, 165, 255, .45); }
.answer span { font-size: 12.5px; color: var(--text-3); font-weight: 650; }
.answer b { font-family: var(--mono); font-weight: 600; font-size: 14px; word-break: break-word; }
.answer svg { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.form-grid .span2 { grid-column: span 2; }
.form-grid .panel-label { margin-top: 4px; }
.form-grid .seg { display: flex; }
.form-grid .seg button { flex: 1; }
.form-grid .switch-row { padding: 10px 14px; border-radius: 15px; background: var(--surface); border: 1px solid var(--stroke); }
.modal .fields { margin-top: 16px; }
.modal .link-row { margin-top: 0; }

/* рассылки */
.bc-list { display: grid; gap: 12px; }
.bc-item { display: block; isolation: isolate; transition: border-color .2s, transform .25s var(--ease); }
.bc-item:hover { border-color: var(--stroke-2); transform: translateY(-2px); }
.bc-top { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.bc-text { margin: 12px 0 14px; color: var(--text); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.bc-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.bc-stats b { color: var(--text); }
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.aud-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--stroke); transition: border-color .2s, background .2s; text-align: left; }
.aud-card b { font-size: 15px; }
.aud-card span { font-size: 13px; color: var(--text-3); line-height: 1.4; }
.aud-card em { margin-top: 8px; font-style: normal; font-weight: 750; color: var(--text-2); }
.aud-card.active { background: var(--accent-soft); border-color: rgba(120, 165, 255, .6); }
.aud-card.active em { color: var(--accent-bright); }
.bc-count { margin-top: 8px; text-align: right; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.bc-count.red { color: var(--red); }
.tg-preview { padding: 18px; border-radius: 16px; background: linear-gradient(160deg, #1a2333, #12161f); }
.tg-bubble { max-width: 100%; padding: 10px 14px; border-radius: 16px 16px 16px 6px; background: #2a3647; color: #fff; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.bc-progress-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.u-list { display: grid; max-height: 420px; overflow-y: auto; }
.u-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--stroke); font-size: 14px; }
.u-row:hover b { color: var(--accent-bright); }
.u-row:last-child { border-bottom: 0; }

/* ---------- Адаптивность ---------- */
@media (max-width: 1220px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.popular .pcard:nth-child(5) { display: none; }
  .hnav a span { display: none; }
  .hnav a { padding: 0 11px; }
  .hnav a.active::after { left: 10px; right: 10px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .order-page { grid-template-columns: minmax(0, 1fr); }
  #order-side { position: static; }
  .pp { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "hero" "side" "desc" "trust"; }
  .pp-side { position: static; }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .profile-side { position: static; }
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-links, .private { grid-column: span 2; grid-row: auto; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .adm { grid-template-columns: minmax(0, 1fr); }
  .adm-side { min-width: 0; position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--stroke); }
  .adm-brand { padding: 0; }
  .adm-brand span, .adm-brand em { display: none; }
  .adm-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav a { flex: 0 0 auto; height: 38px; }
  .adm-nav a.active::before { display: none; }
  .adm-foot { display: none; }
  .adm-main { padding: 22px 18px 70px; }
  .adm-grid.side, .adm-grid.two { grid-template-columns: minmax(0, 1fr); }
  .adm-grid.side > aside { position: static; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .hdr-in { gap: 10px; height: 64px; }
  .brand span { display: none; }
  .search kbd { display: none; }
  .hnav { display: none; }
  .bal { padding-right: 10px; font-size: 14px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .grid.popular .pcard:nth-child(4) { display: none; }
  .slide.tb-slide { min-height: 250px; }
  .hero-dots { bottom: 18px; }
  .hero-arrow { display: none; }
  .quick-nav { display: none; }
  .sw { grid-template-columns: 1fr; gap: 16px; }
  .sw-media { width: 92px; position: absolute; right: 18px; top: 18px; border-radius: 20px; }
  .sw-head { padding-right: 104px; flex-direction: column; gap: 8px; }
  /* на телефоне кнопка оплаты — после выбора валюты и промокода */
  .sw-row { display: contents; }
  .sw-row2 { order: 1; }
  .sw-pay { order: 2; }
  .sw-chips { order: 3; }
  .sw-chips .chip { height: auto; min-height: 26px; padding: 5px 10px; white-space: normal; line-height: 1.25; }
  .how-grid { grid-template-columns: 1fr; }
  .pp-trust { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: span 2; }
  .ftr-bottom { flex-direction: column; gap: 6px; }
  .plus-hero { padding: 34px 28px; min-height: 300px; }
  .plus-hero .tw-title { font-size: 40px; }
  .plus-art { width: 170px; height: 170px; opacity: .5; right: 2%; }
  .login-body { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .presets { grid-template-columns: repeat(3, 1fr); }
  .aud { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 120px 1fr 56px; }
  .funnel-row .muted { display: none; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.popular .pcard:nth-child(3) { display: none; }
  .pcard { padding: 6px; border-radius: 18px; }
  .pcard-body { padding: 10px 4px 4px; }
  .pcard-price b { font-size: 16px; }
  .row-head h2 { font-size: 21px; }
  .catalog-head .seg { width: 100%; }
  .catalog-head .seg button { flex: 1; }
  .main > .view > section, .main > .view > .hero { margin-top: 30px; }
  .sw-head .tw-title { font-size: 23px; }
  .slide.tb-slide { min-height: 200px; }
  .user-name { display: none; }
  .user-btn { padding-right: 3px; }
  .user-plus { font-size: 0; gap: 0; padding: 0 6px 0 2px; }
  .benefits { grid-template-columns: 1fr; }
  .ref-hero { flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px; }
  .ref-art { width: 96px; height: 96px; position: absolute; right: 14px; top: 14px; z-index: -1; }
  .ref-hero .tw-title { font-size: 28px; }
  .ref-art { width: 100px; height: 100px; }
  .ref-grid { grid-template-columns: minmax(0, 1fr); }
  .ref-links, .private { grid-column: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-value { font-size: 22px; }
  .field-row.three { grid-template-columns: 1fr 1fr; }
  .vrow { flex-wrap: wrap; }
  .vrow .field.w { width: calc(50% - 21px); }
  .type-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
  .modal { padding: 22px; border-radius: 22px; }
  .bal span[data-balance] { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
