/* ==========================================================================
   Зелёный кошелёк — премиальный скин коробочного решения
   Светлая и тёмная темы, тёмный холст сверху, белый лист поверх.
   ========================================================================== */

:root {
  --accent: #1DA33C;
  --accent-deep: #0E7A2A;
  --accent-soft: #E9F6EC;
  --accent-ink: #FFFFFF;

  --ink: #0B1410;
  --dim: #5A6A60;
  --mute: #93A399;

  --bg: #F2F6F3;
  --surface: #FFFFFF;
  --surface-2: #EEF3EF;
  --hair: rgba(11, 20, 16, 0.07);
  --press: rgba(11, 20, 16, 0.035);

  --canvas: #05150B;
  --canvas-ink: #F3FBF5;
  --canvas-dim: rgba(243, 251, 245, 0.62);
  --canvas-line: rgba(243, 251, 245, 0.16);

  --neg: #C7452F;

  --r-sheet: 30px;
  --r-md: 22px;
  --r-sm: 16px;

  /* Ширина колонки контента: холст тянется во всю ширину, текст — нет. */
  --app-w: 480px;
  --pad-top: max(20px, env(safe-area-inset-top));

  --shadow-soft: 0 10px 26px rgba(11, 20, 16, 0.06);
  --shadow-lift: 0 18px 38px rgba(6, 42, 20, 0.20);
  --dock-bg: rgba(255, 255, 255, 0.92);
}

[data-theme='dark'] {
  --accent: #2ABA4C;
  --accent-deep: #7CE39A;
  --accent-soft: rgba(42, 186, 76, 0.16);

  --ink: #E9F3EB;
  --dim: #9AAEA1;
  --mute: #6D8175;

  --bg: #08120C;
  --surface: #101C14;
  --surface-2: #15231A;
  --hair: rgba(233, 243, 235, 0.09);
  --press: rgba(233, 243, 235, 0.05);

  --neg: #F08A78;

  --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.34);
  --shadow-lift: 0 18px 38px rgba(0, 0, 0, 0.45);
  --dock-bg: rgba(16, 28, 20, 0.92);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  min-height: 100dvh;
  background: var(--bg);
}

/* —————————————————— оболочка веб-приложения —————————————————— */

/* Приложение занимает вьюпорт целиком. Контент внутри упирается в --app-w,
   чтобы на широком экране колонка оставалась читаемой, а холст — во всю ширину. */
.app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}

.statusbar { display: none; }


/* —————————————————— вид (экран стека) —————————————————— */

#stack { position: relative; flex: 1; min-height: 0; display: flex; }

.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.view.enter-push { animation: pushIn 0.42s cubic-bezier(0.22, 0.85, 0.28, 1) both; }
.view.leave-push { animation: leavePush 0.38s cubic-bezier(0.4, 0, 0.6, 1) both; }
.view.enter-pop { animation: enterPop 0.4s cubic-bezier(0.22, 0.85, 0.28, 1) both; }
.view.leave-pop { animation: leavePop 0.36s cubic-bezier(0.4, 0, 0.7, 0.2) both; }
.view.enter-tab { animation: tabIn 0.38s cubic-bezier(0.22, 0.85, 0.28, 1) both; }
.view.leave-tab { animation: leaveTab 0.32s cubic-bezier(0.4, 0, 0.6, 1) both; }
.view.is-leaving { pointer-events: none; z-index: 1; }
.view.is-entering { z-index: 2; }

@keyframes pushIn {
  from { opacity: 0; transform: translate3d(16%, 0, 0); filter: blur(2px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes leavePush {
  from { opacity: 1; transform: none; }
  to { opacity: 0.35; transform: translate3d(-8%, 0, 0) scale(0.985); }
}
@keyframes enterPop {
  from { opacity: 0.55; transform: translate3d(-7%, 0, 0) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes leavePop {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translate3d(18%, 0, 0); }
}
@keyframes tabIn {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes leaveTab {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translate3d(0, -8px, 0) scale(0.99); }
}

/* —————————————————— тёмный холст —————————————————— */

.canvas {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--canvas);
  color: var(--canvas-ink);
  padding: calc(var(--pad-top) + 4px) 22px 42px;
}
.canvas.short { padding-bottom: 38px; }
.canvas.bare { background: #04100A; padding-bottom: 14px; }

/* Слои фона крутятся бесконечно и независимо: периоды не кратны друг другу,
   поэтому картина «дышит» и не зацикливается на глаз. */
:is(.canvas, .lock) .art {
  position: absolute;
  inset: -18%;
  background: url('assets/card-bg.webp') center / cover no-repeat;
  opacity: 0.94;
  will-change: transform;
  animation: art 26s ease-in-out infinite;
}
@keyframes art {
  0%   { transform: translate3d(-3.2%, 2.1%, 0) scale(1.18) rotate(-1.1deg); }
  25%  { transform: translate3d(2.4%, -2.4%, 0) scale(1.26) rotate(0.4deg); }
  55%  { transform: translate3d(3.4%, 2.6%, 0) scale(1.2) rotate(1.2deg); }
  80%  { transform: translate3d(-1.6%, -1.2%, 0) scale(1.24) rotate(-0.3deg); }
  100% { transform: translate3d(-3.2%, 2.1%, 0) scale(1.18) rotate(-1.1deg); }
}

/* Мягкая дымка поверх текстуры — медленно плывёт. */
:is(.canvas, .lock) .haze {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(120, 255, 170, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 70%, rgba(40, 120, 80, 0.22), transparent 65%);
  mix-blend-mode: soft-light;
  opacity: 0.7;
  will-change: transform, opacity;
  animation: haze 19s ease-in-out infinite;
}
@keyframes haze {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
  40% { transform: translate3d(4%, -3%, 0) scale(1.08); opacity: 0.85; }
  70% { transform: translate3d(-3%, 4%, 0) scale(1.04); opacity: 0.65; }
}

:is(.canvas, .lock) .bloom {
  position: absolute;
  width: 118%;
  height: 78%;
  right: -30%;
  top: -34%;
  background: radial-gradient(
    closest-side,
    rgba(94, 232, 132, 0.55),
    rgba(45, 190, 92, 0.26) 45%,
    rgba(29, 163, 60, 0) 76%
  );
  opacity: 0.46;
  will-change: transform, opacity;
  animation: bloom 18s ease-in-out infinite;
}
@keyframes bloom {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.32; }
  30%  { transform: translate3d(-12%, 9%, 0) scale(1.22); opacity: 0.68; }
  60%  { transform: translate3d(6%, 14%, 0) scale(1.08); opacity: 0.44; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.32; }
}

:is(.canvas, .lock) .drift {
  position: absolute;
  width: 96%;
  height: 90%;
  left: -34%;
  bottom: -46%;
  background: radial-gradient(
    closest-side,
    rgba(126, 245, 174, 0.34),
    rgba(52, 200, 108, 0.16) 48%,
    rgba(29, 163, 60, 0) 78%
  );
  opacity: 0.4;
  pointer-events: none;
  will-change: transform, opacity;
  animation: drift 28s ease-in-out infinite;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1.04); opacity: 0.28; }
  35%  { transform: translate3d(18%, -14%, 0) scale(1.28); opacity: 0.58; }
  70%  { transform: translate3d(30%, 6%, 0) scale(1.12); opacity: 0.38; }
  100% { transform: translate3d(0, 0, 0) scale(1.04); opacity: 0.28; }
}

/* Плавающие «огненные» пятна света — главный признак живого фона. */
:is(.canvas, .lock) .orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(18px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
:is(.canvas, .lock) .orb.o1 {
  width: 42%;
  height: 36%;
  left: 8%;
  top: 18%;
  background: radial-gradient(circle, rgba(160, 255, 190, 0.55), rgba(40, 180, 90, 0) 70%);
  animation: orb1 14s ease-in-out infinite;
}
:is(.canvas, .lock) .orb.o2 {
  width: 34%;
  height: 30%;
  right: 4%;
  top: 42%;
  background: radial-gradient(circle, rgba(90, 220, 140, 0.45), rgba(20, 100, 60, 0) 72%);
  animation: orb2 17s ease-in-out infinite;
}
:is(.canvas, .lock) .orb.o3 {
  width: 50%;
  height: 28%;
  left: 28%;
  bottom: 6%;
  background: radial-gradient(circle, rgba(200, 255, 220, 0.28), transparent 68%);
  animation: orb3 21s ease-in-out infinite;
}
@keyframes orb1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.45; }
  50% { transform: translate3d(18%, -22%, 0) scale(1.35); opacity: 0.85; }
}
@keyframes orb2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.1); opacity: 0.35; }
  40% { transform: translate3d(-22%, 12%, 0) scale(1.4); opacity: 0.75; }
  75% { transform: translate3d(-8%, -18%, 0) scale(0.95); opacity: 0.5; }
}
@keyframes orb3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.3; }
  45% { transform: translate3d(-12%, -16%, 0) scale(1.25); opacity: 0.7; }
}

:is(.canvas, .lock) .mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 30%, rgba(180, 255, 210, 0.07) 48%, transparent 62%),
    linear-gradient(0deg, rgba(4, 20, 10, 0.35), transparent 42%);
  opacity: 0.9;
  animation: mist 12s ease-in-out infinite alternate;
}
@keyframes mist {
  from { opacity: 0.55; transform: translateX(-2%); }
  to { opacity: 0.95; transform: translateX(3%); }
}

/* Пылинки света */
:is(.canvas, .lock) .motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
:is(.canvas, .lock) .motes i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(220, 255, 230, 0.85);
  box-shadow: 0 0 6px rgba(140, 255, 180, 0.7);
  animation: mote var(--dur, 9s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  left: var(--x, 50%);
  top: var(--y, 50%);
  opacity: 0;
}
@keyframes mote {
  0%, 100% { opacity: 0; transform: translate3d(0, 8px, 0) scale(0.6); }
  15% { opacity: 0.9; }
  50% { opacity: 0.55; transform: translate3d(12px, -28px, 0) scale(1); }
  85% { opacity: 0.15; transform: translate3d(-6px, -48px, 0) scale(0.7); }
}

:is(.canvas, .lock) .sheen {
  position: absolute;
  top: -40%;
  bottom: -40%;
  width: 42%;
  opacity: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 12%,
    rgba(233, 255, 240, 0.22) 48%,
    rgba(255, 255, 255, 0) 88%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform, opacity;
  animation: sheen 14s ease-in-out infinite;
}
@keyframes sheen {
  0%, 78% { opacity: 0; transform: translateX(-160%) skewX(-8deg); }
  86% { opacity: 0.35; }
  96%, 100% { opacity: 0; transform: translateX(210%) skewX(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
  :is(.canvas, .lock) .art,
  :is(.canvas, .lock) .haze,
  :is(.canvas, .lock) .bloom,
  :is(.canvas, .lock) .drift,
  :is(.canvas, .lock) .orb,
  :is(.canvas, .lock) .mist,
  :is(.canvas, .lock) .motes i,
  :is(.canvas, .lock) .sheen { animation: none !important; }
  :is(.canvas, .lock) .sheen,
  :is(.canvas, .lock) .motes { opacity: 0; }
  .view.enter-push,
  .view.leave-push,
  .view.enter-pop,
  .view.leave-pop,
  .view.enter-tab,
  .view.leave-tab { animation: none !important; }
}

/* Колонка контента держится по центру, а холст остаётся во всю ширину. */
.canvas > .c-in {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--app-w);
  margin-inline: auto;
}

/* Строка статуса — бутафория из макета телефона, в вебе её нет. */
.statusbar { display: none; }

.id-row { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.ava {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(243, 251, 245, 0.13);
  border: 1px solid var(--canvas-line);
  font-size: 13px;
  font-weight: 800;
}
.id-row .greet { font-size: 11px; font-weight: 650; color: var(--canvas-dim); }
.id-row .who { font-size: 15px; font-weight: 760; letter-spacing: -0.02em; margin-top: 2px; }
.id-row .spacer { flex: 1; }

.ghost-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(243, 251, 245, 0.10);
  border: 1px solid var(--canvas-line);
  color: var(--canvas-ink);
  font-size: 15px;
  display: grid;
  place-items: center;
  transition: transform 0.15s;
  flex: 0 0 auto;
}
.ghost-btn:active { transform: scale(0.93); }

.balance-block { margin-top: 26px; }
.balance-block .cap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  color: var(--canvas-dim);
}
.tier {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(207, 246, 218, 0.34);
  color: #CFF6DA;
}
.balance {
  margin-top: 9px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.balance small { font-size: 21px; font-weight: 700; color: var(--canvas-dim); letter-spacing: -0.02em; }
.delta { margin-top: 9px; font-size: 11.5px; font-weight: 650; color: rgba(160, 240, 185, 0.9); }

.pills { margin-top: 22px; display: flex; gap: 8px; }
.pill {
  flex: 1;
  cursor: pointer;
  font: inherit;
  border-radius: 15px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(243, 251, 245, 0.10);
  border: 1px solid var(--canvas-line);
  color: var(--canvas-ink);
  transition: transform 0.15s;
}
.pill:active { transform: scale(0.96); }
.pill.key {
  background: #FFFFFF;
  border-color: transparent;
  color: #07351A;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}
.pill .gl { font-size: 17px; line-height: 1; }
.pill span { font-size: 10.5px; font-weight: 700; }

.c-title { margin-top: 20px; font-size: 21px; font-weight: 790; letter-spacing: -0.03em; }
.c-sub { margin-top: 5px; font-size: 12px; color: var(--canvas-dim); font-weight: 600; }

.seg {
  margin-top: 18px;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(243, 251, 245, 0.10);
  border: 1px solid var(--canvas-line);
}
.seg button {
  flex: 1;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 8px 4px;
  background: none;
  color: var(--canvas-dim);
  transition: background 0.2s, color 0.2s;
}
.seg button.on { background: #FFFFFF; color: #07351A; }

.c-search {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(243, 251, 245, 0.12);
  border: 1px solid var(--canvas-line);
  color: var(--canvas-dim);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* шапка вложенного экрана */
.topbar { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.topbar .ttl { font-size: 17px; font-weight: 780; letter-spacing: -0.02em; }

/* —————————————————— белый лист —————————————————— */

.sheet {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  margin-top: -26px;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  background: var(--bg);
  box-shadow: 0 -14px 30px rgba(4, 22, 12, 0.18);
  display: flex;
  flex-direction: column;
}
.sheet::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--hair);
}
.scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 20px 0;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }

/* Внутренняя колонка листа — той же ширины, что и колонка холста.
   Карусель шире на величину своего выноса, поэтому её края совпадают
   с краями колонки. */
.scroll > * { max-width: var(--app-w); margin-inline: auto; }
.scroll > .rail-x {
  max-width: calc(var(--app-w) + 40px);
  margin-inline: auto;
}

/* —————————————————— типовые блоки —————————————————— */

.cap-row { display: flex; align-items: baseline; justify-content: space-between; }
.cap-row .h { font-size: 13px; font-weight: 780; letter-spacing: -0.01em; }
.cap-row .r { font-size: 11.5px; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; }
.cap-row + * { margin-top: 10px; }

.rail-x {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 20px 4px;
  margin: 0 -20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail-x::-webkit-scrollbar { display: none; }

.prod {
  position: relative;
  overflow: hidden;
  flex: 0 0 63%;
  scroll-snap-align: start;
  cursor: pointer;
  border-radius: var(--r-md);
  padding: 15px 16px 16px;
  min-height: 118px;
  background: var(--surface);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s;
}
.prod:active { transform: scale(0.98); }
.prod .kind { font-size: 10.5px; font-weight: 700; color: var(--mute); }
.prod .val {
  margin-top: 20px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.prod .meta { margin-top: 5px; font-size: 11px; color: var(--mute); font-weight: 650; }
.prod .chip {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-size: 14px;
}
.prod.dark {
  background: #06170D;
  border-color: transparent;
  color: #F3FBF5;
  box-shadow: var(--shadow-lift);
}
.prod.dark .kind, .prod.dark .meta { color: rgba(243, 251, 245, 0.6); }
.prod.dark .chip { background: rgba(243, 251, 245, 0.14); color: #F3FBF5; }

/* На тёмном фоне «тёмная» карточка иначе сливается с листом. */
[data-theme='dark'] .prod.dark {
  background: #0C2716;
  border: 1px solid rgba(124, 227, 154, 0.20);
}
.prod.frozen { opacity: 0.55; }
.prod.add {
  display: grid;
  place-items: center;
  flex-basis: 42%;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
  border-style: dashed;
  box-shadow: none;
  background: transparent;
}

/* —— Кедр карта: пластик под каждую подпись —— */
.prod.plastic {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* ISO/IEC 7810 ID-1 ≈ 85.6×54 мм → 1.586:1 */
  flex: 0 0 78%;
  aspect-ratio: 1.586 / 1;
  height: auto;
  min-height: 0;
  border: none;
  color: #F7FBF8;
  isolation: isolate;
  box-sizing: border-box;
}
.prod.plastic.wide {
  flex: none;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1.586 / 1;
  min-height: 0;
  max-height: none;
}
.prod.plastic .val {
  margin-top: 0;
  position: relative;
  z-index: 2;
  font-size: clamp(17px, 5.2vw, 22px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}
.prod.plastic .meta {
  margin-top: 0;
  color: inherit;
  opacity: 0.78;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.plastic-shine,
.plastic-wave {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.plastic-shine {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(255, 255, 255, 0.08), transparent 50%);
}
.plastic-wave {
  opacity: 0.35;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 14px,
      rgba(255, 255, 255, 0.045) 14px 16px
    );
}
.plastic-top,
.plastic-bot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.plastic-mark {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0.92;
}
.plastic-net {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plastic-label {
  font-size: 11px;
  font-weight: 750;
  opacity: 0.9;
}
.plastic-chip {
  position: absolute;
  top: 22%;
  left: 16px;
  z-index: 2;
  width: 36px;
  height: 28px;
  border-radius: 5px;
  background:
    linear-gradient(135deg, #e8d5a3 0%, #c9a84c 42%, #f0e2b8 58%, #b8923a 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.plastic-chip::after {
  content: '';
  position: absolute;
  inset: 5px 4px;
  border-radius: 2px;
  background:
    linear-gradient(#0000 40%, rgba(0, 0, 0, 0.18) 40% 48%, #0000 48%),
    linear-gradient(90deg, #0000 40%, rgba(0, 0, 0, 0.18) 40% 48%, #0000 48%);
  background-size: 100% 100%, 100% 100%;
}
.prod.plastic .val { padding-left: 56px; }

.plastic-stack {
  display: grid;
  gap: 14px;
}
.plastic-stack .prod.plastic {
  flex: none;
  width: 100%;
}

/* Флип: лицо ↔ реквизиты */
.plastic-flip {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
  aspect-ratio: 1.586 / 1;
  perspective: 1400px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.plastic-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.plastic-flip.is-flipped .plastic-flip-inner {
  transform: rotateY(180deg);
}
.plastic-flip.is-busy {
  pointer-events: none;
  opacity: 0.85;
}
.plastic-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  flex: none !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 16px 18px 14px;
}
.plastic-face.back {
  transform: rotateY(180deg);
  padding: 14px 16px 12px;
}
.plastic-face.front .plastic-bot {
  margin-bottom: 16px;
}
.plastic-face.back .plastic-reqs {
  max-height: calc(100% - 72px);
}
.plastic-back-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.plastic-magstripe {
  position: relative;
  z-index: 2;
  height: 28px;
  margin: 0 -16px 10px;
  background: linear-gradient(180deg, #1a1a1a, #2c2c2c 40%, #111);
}
.plastic-reqs {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 18px;
}
.plastic-req {
  display: grid;
  gap: 1px;
}
.plastic-req .k,
.plastic-billing .k {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}
.plastic-req .v,
.plastic-billing .v {
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}
.plastic-req .v.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  font-size: 13px;
}
.plastic-req.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.plastic-billing {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 1px;
}
.plastic-billing .v b {
  font-weight: 800;
  opacity: 0.75;
}
.prod.plastic.brand-balance .plastic-billing {
  border-top-color: rgba(18, 48, 30, 0.15);
}
.prod.plastic.brand-balance .plastic-magstripe {
  background: linear-gradient(180deg, #2a3d30, #1a2a20);
}

/* Мир — изумрудная волна НСПК */
.prod.plastic.brand-mir {
  background:
    linear-gradient(145deg, #064a32 0%, #0b8f4e 48%, #157a5a 100%);
  box-shadow: 0 14px 28px rgba(8, 90, 52, 0.28);
}
.prod.plastic.brand-mir .plastic-wave {
  opacity: 0.55;
  background:
    radial-gradient(ellipse 90% 50% at 80% 20%, rgba(180, 255, 210, 0.25), transparent 60%),
    repeating-linear-gradient(12deg, transparent 0 18px, rgba(255, 255, 255, 0.06) 18px 22px);
}
.prod.plastic.brand-mir .plastic-net {
  color: #d8ffe8;
  letter-spacing: 0.18em;
}

/* Виза — navy + золотая полоса */
.prod.plastic.brand-visa {
  background:
    linear-gradient(160deg, #0b1640 0%, #1a3a8a 55%, #0e2a66 100%);
  box-shadow: 0 14px 28px rgba(12, 30, 90, 0.32);
}
.prod.plastic.brand-visa::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  height: 8px;
  z-index: 1;
  background: linear-gradient(90deg, #c9a227, #f0d56a 45%, #a8841a);
  opacity: 0.9;
}
.prod.plastic.brand-visa .plastic-net {
  font-style: italic;
  letter-spacing: 0.14em;
  color: #f4f7ff;
}

/* Апра — кедр / тёплый лес + золото */
.prod.plastic.brand-apra {
  background:
    linear-gradient(150deg, #1c2a14 0%, #3a4f28 42%, #2a3d1c 100%);
  box-shadow: 0 14px 28px rgba(40, 55, 20, 0.3);
}
.prod.plastic.brand-apra .plastic-wave {
  opacity: 0.5;
  background:
    radial-gradient(circle at 85% 15%, rgba(212, 175, 55, 0.35), transparent 45%),
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(212, 175, 55, 0.07) 10px 12px);
}
.prod.plastic.brand-apra .plastic-net {
  color: #e8c96a;
  letter-spacing: 0.2em;
}

/* Баланс — светлый пластик, тёмный текст */
.prod.plastic.brand-balance {
  background:
    linear-gradient(145deg, #f4faf6 0%, #e2f0e8 55%, #d5e8dc 100%);
  color: #12301e;
  box-shadow: 0 12px 24px rgba(20, 60, 35, 0.12);
  border: 1px solid rgba(29, 163, 60, 0.18);
}
.prod.plastic.brand-balance .plastic-shine {
  background:
    radial-gradient(100% 70% at 100% 0%, rgba(29, 163, 60, 0.12), transparent 55%);
}
.prod.plastic.brand-balance .plastic-wave {
  opacity: 0.4;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(29, 163, 60, 0.06) 22px 23px);
}
.prod.plastic.brand-balance .val {
  text-shadow: none;
}
.prod.plastic.brand-balance .plastic-net {
  color: #1da33c;
  letter-spacing: 0.12em;
}
.prod.plastic.brand-balance .meta,
.prod.plastic.brand-balance .plastic-mark,
.prod.plastic.brand-balance .plastic-label {
  opacity: 0.72;
}

/* USDT — тёмный пластик, зелёный Tether */
.prod.plastic.brand-usdt {
  background:
    linear-gradient(155deg, #0d1210 0%, #15221c 50%, #0a1a14 100%);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(38, 161, 123, 0.35);
}
.prod.plastic.brand-usdt .plastic-wave {
  opacity: 0.7;
  background:
    radial-gradient(circle at 78% 28%, rgba(38, 161, 123, 0.35), transparent 42%),
    conic-gradient(from 30deg at 80% 30%, transparent 0 60%, rgba(38, 161, 123, 0.12) 70%, transparent 85%);
}
.prod.plastic.brand-usdt .plastic-net {
  color: #26a17b;
  letter-spacing: 0.16em;
}
.prod.plastic.brand-usdt .plastic-chip {
  background:
    linear-gradient(135deg, #26a17b 0%, #1a7a5c 50%, #3ecf9a 100%);
}

/* Запасной / без подписи */
.prod.plastic.brand-generic {
  background: linear-gradient(145deg, #06170d 0%, #0c2716 100%);
  box-shadow: var(--shadow-lift);
}

[data-theme='dark'] .prod.plastic.brand-balance {
  background: linear-gradient(145deg, #1a2a20 0%, #24352a 100%);
  color: #e8f5ec;
  border-color: rgba(124, 227, 154, 0.2);
}
[data-theme='dark'] .prod.plastic.brand-balance .plastic-net {
  color: #7ce39a;
}

/* Свотчи в списке выпуска */
.g.brand-swatch {
  border-radius: 10px !important;
  border: none !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.g.brand-swatch.brand-mir {
  background: linear-gradient(145deg, #064a32, #0b8f4e);
}
.g.brand-swatch.brand-visa {
  background: linear-gradient(145deg, #0b1640, #1a3a8a);
}
.g.brand-swatch.brand-apra {
  background: linear-gradient(145deg, #1c2a14, #3a4f28);
}
.g.brand-swatch.brand-balance {
  background: linear-gradient(145deg, #e2f0e8, #d5e8dc);
  box-shadow: inset 0 0 0 1px rgba(29, 163, 60, 0.25);
}
.g.brand-swatch.brand-usdt {
  background: linear-gradient(145deg, #0d1210, #15221c);
  box-shadow: inset 0 0 0 1px rgba(38, 161, 123, 0.4);
}

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }

.cell {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  padding: 13px 6px 11px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s;
}
.cell:active { transform: scale(0.96); }
.cell .g {
  width: 36px;
  height: 36px;
  margin: 0 auto 7px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-size: 15px;
}
.cell span { display: block; font-size: 10px; font-weight: 680; color: var(--dim); line-height: 1.25; }

.banner {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s;
}
.banner:active { transform: scale(0.99); }
.banner .badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex: 0 0 auto;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-size: 17px;
}
.banner .t { font-size: 12.5px; font-weight: 720; letter-spacing: -0.01em; }
.banner .s { font-size: 11px; color: var(--mute); margin-top: 2px; }
.banner .go { margin-left: auto; color: var(--mute); font-size: 17px; }

/* —— Хаб сервисов на главной —— */
.hub-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.hub-card {
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 14px 12px 13px;
  border-radius: 18px;
  color: #F3FBF5;
  display: grid;
  gap: 6px;
  min-height: 108px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s;
}
.hub-card:active { transform: scale(0.97); }
.hub-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.hub-ico {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 15px;
  position: relative;
  z-index: 1;
}
.hub-t { font-size: 13px; font-weight: 800; letter-spacing: -0.02em; position: relative; z-index: 1; }
.hub-s { font-size: 10px; font-weight: 650; opacity: 0.72; position: relative; z-index: 1; line-height: 1.25; }
.hub-travel { background: linear-gradient(150deg, #0b3d5c 0%, #1a7a8c 55%, #0e5a4a 100%); }
.hub-crypto { background: linear-gradient(150deg, #0d1210 0%, #163528 50%, #0a1f18 100%); }
.hub-cards { background: linear-gradient(150deg, #064a32 0%, #0b8f4e 100%); }

/* Промо на платежах */
.svc-promos { display: grid; gap: 10px; }
.svc-promo {
  border-radius: 20px;
  padding: 16px 16px 14px;
  color: #F3FBF5;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s;
}
.svc-promo:active { transform: scale(0.99); }
.svc-promo.travel { background: linear-gradient(135deg, #0c4a62, #157a6a); }
.svc-promo.crypto { background: linear-gradient(135deg, #101816, #1a3d2e); }
.svc-promo.cards { background: linear-gradient(135deg, #0a3d24, #14924a); }
.svc-promo-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}
.svc-promo p {
  margin: 8px 0 12px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.78;
  line-height: 1.35;
  max-width: 90%;
}
.svc-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 750;
  opacity: 0.92;
}

/* Герои сервисов */
.canvas.svc-hero { padding-bottom: 22px; }
.svc-hero-body { position: relative; z-index: 1; margin-top: 10px; }
.svc-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(233, 246, 236, 0.55);
}
.svc-hero-body h2 {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 820;
  letter-spacing: -0.03em;
}
.svc-hero-body p {
  margin: 6px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(233, 246, 236, 0.62);
  line-height: 1.4;
  max-width: 34em;
}
.crypto-bal {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 820;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.crypto-rate {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 650;
  color: rgba(180, 255, 200, 0.75);
}
.svc-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.svc-act {
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 12px 8px;
  background: rgba(243, 251, 245, 0.12);
  color: #F3FBF5;
  display: grid;
  justify-items: center;
  gap: 5px;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  transition: transform 0.15s, background 0.15s;
}
.svc-act:active { transform: scale(0.96); background: rgba(243, 251, 245, 0.2); }
.svc-act .ic-svg { font-size: 16px; }

.net-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.net-pill {
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  color: var(--mute);
  cursor: pointer;
}
.net-pill.on {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: transparent;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.issue-card {
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: 16px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 4px;
  font: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s;
}
.issue-card:active { transform: scale(0.98); }
.issue-card .swatch {
  width: 28px;
  height: 18px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.issue-card .t { font-size: 13px; font-weight: 800; }
.issue-card .s { font-size: 11px; color: var(--mute); font-weight: 650; }
/* Стоимость выпуска: видна до нажатия, чтобы списание не было сюрпризом. */
.issue-card .price { margin-top: 2px; font-size: 11.5px; font-weight: 800; color: var(--ink); }

/* Цена в списке «Открыть продукт» — там она стоит в колонке справа. */
.rows .row .right { font-size: 12px; font-weight: 750; color: var(--dim); }

/* Мост валют на карте: сколько это в валюте карты и кнопка перевода. */
.fx-bridge {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-soft);
}
.fx-bridge .fx-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.fx-bridge b { font-size: 15px; font-weight: 800; }
.fx-bridge span { font-size: 11.5px; color: var(--mute); font-weight: 650; }
.fx-bridge.dim b, .fx-bridge.dim span { color: var(--mute); }
.fx-bridge .mini {
  flex: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 750;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.issue-card.brand-mir .swatch { background: linear-gradient(145deg, #064a32, #0b8f4e); }
.issue-card.brand-visa .swatch { background: linear-gradient(145deg, #0b1640, #1a3a8a); }
.issue-card.brand-apra .swatch { background: linear-gradient(145deg, #1c2a14, #3a4f28); }
.issue-card.brand-balance .swatch { background: linear-gradient(145deg, #e2f0e8, #d5e8dc); }
.issue-card.brand-usdt .swatch { background: linear-gradient(145deg, #0d1210, #15221c); }

/* Авиа: маршрут на холсте */
.route-board {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
}
.route-air {
  background: rgba(243, 251, 245, 0.1);
  border: 1px solid rgba(243, 251, 245, 0.14);
  border-radius: 16px;
  padding: 10px 12px 8px;
  display: grid;
  gap: 2px;
}
.route-air .lab {
  font-size: 10px;
  font-weight: 700;
  color: rgba(233, 246, 236, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.route-air .iata {
  border: 0;
  outline: 0;
  background: transparent;
  color: #F3FBF5;
  font: inherit;
  font-size: 26px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 100%;
  padding: 0;
  text-align: left;
}
.route-swap {
  align-self: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 0;
  background: rgba(243, 251, 245, 0.14);
  color: #F3FBF5;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.route-meta {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.route-date {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(243, 251, 245, 0.1);
  border: 1px solid rgba(243, 251, 245, 0.14);
  color: #F3FBF5;
  font-size: 13px;
  font-weight: 750;
  overflow: hidden;
}
.route-date input[type="date"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.route-go {
  width: auto !important;
  min-width: 112px;
  padding-inline: 20px !important;
  margin: 0;
}
.chip-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.chip-rail::-webkit-scrollbar { display: none; }
.chip-route {
  flex: 0 0 auto;
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.chip-route.on {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: transparent;
}

.flight-list { display: grid; gap: 9px; }
.flight-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 14px 15px;
  box-shadow: var(--shadow-soft);
  animation: flightIn 0.35s ease both;
}
@keyframes flightIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.flight-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.flight-top .airline { font-size: 12.5px; font-weight: 750; }
.flight-top .price {
  font-size: 14px;
  font-weight: 820;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}
.flight-path {
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.flight-path .code {
  font-size: 18px;
  font-weight: 820;
  letter-spacing: 0.06em;
}
.flight-path .line {
  height: 2px;
  background: linear-gradient(90deg, var(--hair), var(--accent), var(--hair));
  position: relative;
  border-radius: 2px;
}
.flight-path .line i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--surface);
}
.flight-bot {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 650;
  color: var(--mute);
}
.flight-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--mute);
}
.flight-empty-ico {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.flight-empty .t { font-size: 14px; font-weight: 780; color: var(--ink); }
.flight-empty .s { margin-top: 4px; font-size: 12px; font-weight: 600; }

.list { margin-top: 4px; }
.op {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 2px;
  cursor: pointer;
  border-radius: 14px;
}
.op:active { background: var(--press); }
.op + .op { border-top: 1px solid var(--hair); }
.op .ic {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  flex: 0 0 auto;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.op .t { font-size: 13px; font-weight: 680; letter-spacing: -0.01em; }
.op .s { font-size: 11px; color: var(--mute); margin-top: 2px; }
.op .v {
  margin-left: auto;
  padding-left: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.op .v.in { color: var(--accent-deep); }

.hero {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--r-md);
  padding: 20px;
  color: #F3FBF5;
  box-shadow: var(--shadow-lift);
  background: linear-gradient(140deg, #0B3E1E 0%, #12722F 55%, #1DA33C 100%);
}
.hero .ring {
  position: absolute;
  width: 190px;
  height: 190px;
  right: -56px;
  top: -64px;
  border-radius: 50%;
  border: 1px solid rgba(243, 251, 245, 0.22);
}
.hero .ring::after {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px solid rgba(243, 251, 245, 0.14);
}
.hero h3 { position: relative; font-size: 17px; font-weight: 790; letter-spacing: -0.025em; }
.hero p {
  position: relative;
  margin-top: 5px;
  font-size: 12px;
  color: rgba(243, 251, 245, 0.72);
  line-height: 1.4;
  max-width: 24ch;
}
.hero .cta {
  position: relative;
  margin-top: 14px;
  display: inline-block;
  background: #F3FBF5;
  color: #0B3E1E;
  font-size: 12px;
  font-weight: 780;
  padding: 9px 15px;
  border-radius: 999px;
}

.sum-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.sum-strip div {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  box-shadow: var(--shadow-soft);
}
.sum-strip b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.sum-strip b.in { color: var(--accent-deep); }
.sum-strip span { display: block; font-size: 11px; color: var(--mute); margin-top: 3px; font-weight: 650; }

.gap { height: 18px; }
.pad { height: 104px; }
.pad.flat { height: 26px; }

.empty {
  text-align: center;
  color: var(--mute);
  font-size: 12px;
  font-weight: 650;
  padding: 26px 20px;
  line-height: 1.5;
}

/* строки настроек */
.rows {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  cursor: pointer;
}
.row + .row { border-top: 1px solid var(--hair); }
.row:active { background: var(--press); }
.row .g {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  flex: 0 0 auto;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-size: 15px;
}
.row .t { font-size: 13px; font-weight: 700; }
.row .s { font-size: 11px; color: var(--mute); margin-top: 2px; }
.row .right { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--mute); }

.switch {
  margin-left: auto;
  width: 46px;
  height: 27px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--hair);
  position: relative;
  transition: background 0.22s;
  flex: 0 0 auto;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s;
}
.switch.on { background: var(--accent); border-color: transparent; }
.switch.on::after { transform: translateX(19px); }

/* кнопки */
.btn {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: linear-gradient(180deg, #27B849, var(--accent));
  color: #fff;
  box-shadow: 0 12px 24px rgba(29, 163, 60, 0.32);
}
.btn.quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--hair); }
.btn.danger { background: var(--surface); color: var(--neg); border: 1px solid var(--hair); }
.btn[disabled] { opacity: 0.42; pointer-events: none; }

.footer-cta {
  padding: 14px 20px 22px;
  background: linear-gradient(180deg, transparent, var(--bg) 34%);
}

/* —————————————————— PIN —————————————————— */

.lock {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--pad-top) + 42px) 26px 26px;
  background: var(--canvas);
  color: var(--canvas-ink);
  position: relative;
  overflow: hidden;
}
/* Колонка входа не расползается на широком экране. */
.lock .keypad,
.lock .otp-cells,
.lock .auth-err,
.lock .field,
.lock .btn { max-width: 320px; }
/* На высоком экране входа текстуру уводим кверху: cover иначе показывает
   узкую полосу из центра, и холст читается плоским. Гасим её сильнее, чем на
   главной, — премиальность тут в глубине, а не в яркости, и текст должен
   читаться на всей высоте. */
.lock .art {
  background-position: center 22%;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), #000 34%, rgba(0, 0, 0, 0.4));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), #000 34%, rgba(0, 0, 0, 0.4));
}
/* Прозрачность свечений анимируется, поэтому приглушаем их фильтром. */
.lock .bloom,
.lock .drift { filter: brightness(0.72); }
.lock .logo {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(243, 251, 245, 0.12);
  border: 1px solid var(--canvas-line);
  font-size: 24px;
}
.lock h2 { position: relative; margin-top: 18px; font-size: 19px; font-weight: 790; letter-spacing: -0.02em; }
.lock p { position: relative; margin-top: 6px; font-size: 12.5px; color: var(--canvas-dim); font-weight: 600; }

.dots { position: relative; margin-top: 26px; display: flex; gap: 14px; }
.dots i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(243, 251, 245, 0.45);
  transition: background 0.15s, transform 0.15s;
}
.dots i.fill { background: var(--canvas-ink); border-color: var(--canvas-ink); transform: scale(1.08); }
.dots.shake { animation: shake 0.42s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  45% { transform: translateX(7px); }
  70% { transform: translateX(-4px); }
}

.keypad {
  position: relative;
  margin-top: auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.keypad button {
  height: 62px;
  border: 0;
  border-radius: 22px;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(243, 251, 245, 0.10);
  color: var(--canvas-ink);
  transition: transform 0.12s, background 0.12s;
}
.keypad button:active { transform: scale(0.94); background: rgba(243, 251, 245, 0.2); }
.keypad button.plain { background: none; font-size: 18px; }
.keypad button.ghost { background: none; pointer-events: none; opacity: 0; }

.pin-alt {
  position: relative;
  margin-top: 14px;
  width: 100%;
}

.bio-btn {
  position: relative;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid rgba(243, 251, 245, 0.28);
  border-radius: 999px;
  background: rgba(243, 251, 245, 0.1);
  color: var(--canvas-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 760;
  cursor: pointer;
  transition: background 0.16s, transform 0.16s;
}
.bio-btn:active { transform: scale(0.97); }
.bio-btn:disabled { opacity: 0.55; pointer-events: none; }
.bio-btn .ic-svg { width: 21px; height: 21px; }
.bio-btn[disabled] .ic-svg { animation: bioPulse 1.1s ease-in-out infinite; }
@keyframes bioPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* клавиатура суммы — на светлом листе */
.keypad.light button { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); }
.keypad.light button.plain { background: none; box-shadow: none; color: var(--dim); }

/* —————————————————— ввод суммы —————————————————— */

.amount-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}
.amount-stage .to { font-size: 12px; color: var(--mute); font-weight: 680; }
.amount-stage .big {
  margin-top: 12px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.amount-stage .big.dim { color: var(--mute); }
.amount-stage .avail { margin-top: 12px; font-size: 11.5px; color: var(--mute); font-weight: 650; }
.amount-stage .warn { color: var(--neg); }

/* Курс конвертации под суммой: во что превратится перевод в другой валюте. */
.rate-hint {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  font-weight: 650;
  color: var(--dim);
}
.rate-hint b { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -0.2px; }
.rate-hint span { font-size: 11px; color: var(--mute); font-weight: 600; }
.rate-hint.dim, .rate-hint.warn { font-size: 11.5px; }
.rate-hint.dim { color: var(--mute); }
.rate-hint.warn { color: var(--neg); }

.chips { margin-top: 16px; display: flex; gap: 8px; }
.chips button {
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
  cursor: pointer;
}
.chips button:active { transform: scale(0.96); }

/* —————————————————— сканер —————————————————— */

.scanner {
  flex: 1;
  position: relative;
  background: #04100A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.scanner .noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 40% at 30% 20%, rgba(29, 163, 60, 0.22), transparent 60%),
    radial-gradient(50% 40% at 80% 80%, rgba(20, 90, 45, 0.28), transparent 60%);
}
/* Поток камеры лежит под подсветкой: рамка и луч остаются читаемыми. */
.scanner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.scanner.live video { opacity: 1; }
.scanner.live .noise { background: rgba(4, 16, 10, 0.34); }
.scanner.live .frame i { border-color: #8CF3AB; }
.scanner.found .frame i { border-color: #FFFFFF; }
.scanner.found .beam { display: none; }
.scanner .manual {
  position: relative;
  margin-top: 22px;
  width: min(320px, 82%);
  display: grid;
  gap: 9px;
}
.scanner .manual input {
  width: 100%;
  border: 1px solid rgba(243, 251, 245, 0.24);
  background: rgba(4, 16, 10, 0.55);
  color: #F3FBF5;
  border-radius: 14px;
  padding: 13px 15px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 620;
  outline: none;
}
.scanner .manual input:focus { border-color: #6BE68F; }
.scanner .manual input::placeholder { color: rgba(243, 251, 245, 0.42); }
.frame {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 26px;
}
.frame i {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid #6BE68F;
}
.frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 22px 0 0 0; }
.frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 22px 0 0; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 22px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 22px 0; }
.frame .beam {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8CF3AB, transparent);
  box-shadow: 0 0 18px rgba(140, 243, 171, 0.8);
  animation: beam 2.2s ease-in-out infinite;
}
@keyframes beam {
  0%, 100% { top: 12px; opacity: 0.35; }
  50% { top: 190px; opacity: 1; }
}
.scanner .hint {
  position: relative;
  margin-top: 26px;
  font-size: 12.5px;
  font-weight: 650;
  color: rgba(243, 251, 245, 0.7);
  text-align: center;
  max-width: 24ch;
  line-height: 1.45;
}
.scanner .actions { position: relative; margin-top: 26px; display: flex; gap: 10px; }
.scanner .actions button {
  border: 1px solid rgba(243, 251, 245, 0.2);
  background: rgba(243, 251, 245, 0.1);
  color: #F3FBF5;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 720;
  cursor: pointer;
}
.scanner .actions button.key { background: #F3FBF5; color: #07351A; border-color: transparent; }

/* —————————————————— мой QR —————————————————— */

.qr-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  padding: 22px 18px 20px;
  display: grid;
  justify-items: center;
  gap: 4px;
}
.qr-card img {
  width: 220px;
  height: 220px;
  border-radius: 18px;
  background: #FFFFFF;
}
.qr-card .t { margin-top: 12px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.qr-card .s { font-size: 12.5px; font-weight: 620; color: var(--mute); text-align: center; }

/* —————————————————— успех —————————————————— */

.success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  background: var(--bg);
}
.check-wrap {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  animation: checkPop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
@keyframes checkPop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.check-wrap svg { width: 54px; height: 54px; }
.check-wrap path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 0.45s 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.success h2 {
  margin-top: 22px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  animation: riseIn 0.4s 0.15s both;
}
.success p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--dim);
  font-weight: 650;
  line-height: 1.5;
  animation: riseIn 0.4s 0.24s both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.success .receipt {
  margin-top: 22px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 4px 16px;
  box-shadow: var(--shadow-soft);
  animation: riseIn 0.4s 0.32s both;
}
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; font-size: 12.5px; }
.kv + .kv { border-top: 1px solid var(--hair); }
.kv .k { color: var(--mute); font-weight: 650; }
.kv .v { font-weight: 720; text-align: right; font-variant-numeric: tabular-nums; }

.spark { position: absolute; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; animation: fly 1.1s ease-out forwards; }
@keyframes fly {
  from { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(280deg); }
}

/* —————————————————— контакты, поиск —————————————————— */

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 13px 16px;
  box-shadow: var(--shadow-soft);
}
.field input {
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  flex: 1;
  text-align: left;
  min-width: 0;
}
.field input::placeholder { color: var(--mute); }

.contact { display: flex; align-items: center; gap: 13px; padding: 11px 2px; cursor: pointer; border-radius: 14px; }
.contact + .contact { border-top: 1px solid var(--hair); }
.contact:active { background: var(--press); }
.contact .cav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12.5px;
  font-weight: 800;
}
.contact .t { font-size: 13px; font-weight: 700; }
.contact .s { font-size: 11px; color: var(--mute); margin-top: 2px; }

/* —————————————————— шторка —————————————————— */

.backdrop {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: rgba(4, 16, 9, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.backdrop.on { opacity: 1; pointer-events: auto; }

.modal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  padding: 10px 20px 22px;
  transform: translateY(102%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 0.85, 0.28, 1), visibility 0s linear 0.32s;
  max-height: 82%;
  overflow-y: auto;
  scrollbar-width: none;
}
.modal::-webkit-scrollbar { display: none; }
.modal.on {
  transform: none;
  visibility: visible;
  transition: transform 0.32s cubic-bezier(0.22, 0.85, 0.28, 1), visibility 0s;
}
.modal .grip {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--hair);
  margin: 0 auto 16px;
}
.modal h3 { font-size: 17px; font-weight: 790; letter-spacing: -0.02em; }
.modal .sub { margin-top: 5px; font-size: 12px; color: var(--mute); font-weight: 650; }

/* —————————————————— док и тост —————————————————— */

.dock {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 36px), var(--app-w));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
  border-radius: 24px;
  background: var(--dock-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--hair);
  box-shadow: 0 16px 34px rgba(6, 32, 17, 0.16);
  transition: transform 0.3s cubic-bezier(0.22, 0.85, 0.28, 1), opacity 0.25s;
}
.dock.hidden { transform: translateX(-50%) translateY(130%); opacity: 0; pointer-events: none; }
.dock button {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  border-radius: 18px;
  padding: 9px 2px 8px;
  color: var(--mute);
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: background 0.18s, color 0.18s;
}
.dock button .gl { font-size: 17px; line-height: 1; }
.dock button.on {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(29, 163, 60, 0.32);
}

.toast {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 94px;
  z-index: 55;
  background: #0B2A15;
  color: #E7F7EC;
  border-radius: var(--r-sm);
  padding: 12px 15px;
  font-size: 12.5px;
  font-weight: 650;
  box-shadow: 0 16px 34px rgba(4, 26, 13, 0.34);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
.toast.on { opacity: 1; transform: none; }

/* —————————————————— вход по API —————————————————— */

.auth-form {
  position: relative;
  width: 100%;
  margin-top: 26px;
  display: grid;
  gap: 10px;
  align-self: stretch;
  text-align: left;
}
.lock .auth-form .field,
.lock .auth-form .btn,
.lock .auth-form .auth-err {
  max-width: none;
  width: 100%;
  justify-self: stretch;
}

.field.dark.stacked {
  display: grid;
  gap: 4px;
  padding: 10px 16px 12px;
  border-radius: 18px;
}
.field.dark.stacked label {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(233, 246, 236, 0.5);
  text-align: left;
}
.field.dark.stacked label .opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  opacity: 0.7;
}
.field.dark.stacked input {
  width: 100%;
  text-align: left;
  padding: 0;
  font-size: 16px;
}
.agree-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(233, 246, 236, 0.72);
  line-height: 1.35;
  cursor: pointer;
}
.agree-row input {
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: #1da33c;
  width: 16px;
  height: 16px;
}
.register-lock .auth-form {
  margin-top: 18px;
  max-height: min(62vh, 520px);
  overflow-y: auto;
  padding-right: 2px;
}
.lock.register-lock {
  padding-top: calc(var(--pad-top) + 24px);
}
.lock.register-lock h2 { font-size: 18px; }
.lock .auth-form .field.dark { justify-self: stretch; }
.lock .auth-form .field,
.lock .auth-form .btn,
.lock .auth-form .auth-err {
  max-width: none;
  width: 100%;
  justify-self: stretch;
}
.field.dark {
  background: rgba(243, 251, 245, 0.10);
  border: 1px solid var(--canvas-line);
  box-shadow: none;
  padding: 15px 18px;
  justify-content: flex-start;
}
.field.dark .pfx {
  flex: 0 0 auto;
  min-width: 1.6em;
}
.field.dark input {
  color: var(--canvas-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
  min-width: 0;
}
.field.dark input::placeholder { color: rgba(233, 246, 236, 0.38); font-weight: 600; }
.field .pfx { color: var(--canvas-dim); font-size: 15px; font-weight: 750; }

.field .mini {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 750;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.btn.ghost-dark {
  background: rgba(243, 251, 245, 0.08);
  color: var(--canvas-ink);
  border: 1px solid var(--canvas-line);
}

.auth-err {
  border-radius: 14px;
  padding: 11px 14px;
  background: rgba(255, 107, 107, 0.14);
  border: 1px solid rgba(255, 138, 138, 0.32);
  color: #FFD9D9;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}
.auth-note {
  position: relative;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 650;
  color: var(--canvas-dim);
}

.api-note {
  position: relative;
  margin-top: auto;
  padding-top: 18px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(233, 246, 236, 0.42);
}

.otp-cells {
  position: relative;
  margin-top: 26px;
  display: flex;
  gap: 9px;
}
.otp-cells i {
  width: 38px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 19px;
  font-weight: 780;
  background: rgba(243, 251, 245, 0.08);
  border: 1px solid var(--canvas-line);
  transition: background 0.15s, border-color 0.15s;
}
.otp-cells i.fill { background: rgba(243, 251, 245, 0.18); border-color: rgba(243, 251, 245, 0.42); }
.otp-cells.shake { animation: shake 0.42s ease; }

/* Слот статуса всегда в разметке — так ячейки не прыгают при появлении ошибки. */
.otp-status {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  min-height: 34px;
  margin-top: 14px;
  display: grid;
  place-items: center;
}
.otp-status .auth-note { margin-top: 0; }

.lock .logo.pulse { animation: logo-pulse 1.5s ease-in-out infinite; }
@keyframes logo-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

.lock .back-abs { position: absolute; top: 26px; left: 20px; }

/* выбор счёта списания */
.row-select {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.row-select .g {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 16px;
}
.row-select .s { font-size: 10.5px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: 0.04em; }
.row-select .t { font-size: 13px; font-weight: 720; color: var(--ink); margin-top: 2px; }
.row-select .right { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--accent-deep); }

/* сегменты на светлом листе */
.seg.light {
  background: var(--surface-2);
  border-color: var(--hair);
}
.seg.light button { color: var(--dim); }
.seg.light button.on { background: var(--accent); color: #fff; }

/* —————————————————— иконки —————————————————— */

.ic-svg {
  width: 1.15em;
  height: 1.15em;
  display: block;
  flex: 0 0 auto;
}

.pill .gl, .dock button .gl { display: grid; place-items: center; }
.contact .cav .ic-svg { width: 1.4em; height: 1.4em; }
.field .pre { display: flex; color: var(--mute); font-size: 15px; }
.row .right, .banner .go { display: flex; align-items: center; gap: 6px; }
.row .right .ic-svg, .banner .go .ic-svg { color: var(--mute); }

.hero .cta { display: inline-flex; align-items: center; gap: 7px; }
.c-search .ic-svg { font-size: 15px; }
.prod.add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
}
.keypad button .ic-svg { margin: 0 auto; }

/* —————————————————— переписка с поддержкой —————————————————— */

.chat-log {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-soft);
}
/* Свои сообщения справа и на фирменной заливке, ответы оператора — слева. */
.bubble.me {
  justify-self: end;
  border-bottom-right-radius: 7px;
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}
.bubble.them {
  justify-self: start;
  border-bottom-left-radius: 7px;
}
.bubble .txt {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.42;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble .when {
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.62;
}

/* Валюта, за которой пришёл пользователь, подсвечена в списке. */
.row.accent .t { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .art, .bloom, .drift, .sheen, .beam, .haze, .orb, .mist, .motes i { animation: none !important; }
  .lock .logo.pulse { animation: none; }
}

/* —————————————————— адаптив —————————————————— */

/* На широком экране колонка шире, а холст всё равно во всю ширину окна. */
@media (min-width: 900px) {
  :root { --app-w: 560px; }
  .canvas { padding-bottom: 52px; }
  .balance { font-size: 44px; }
}

@media (max-width: 620px) {
  :root { --pad-top: max(26px, env(safe-area-inset-top)); }
  .lock .back-abs { top: var(--pad-top); }
}

/* —————————————————— регистрация / уровни —————————————————— */

.reg-progress {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 14px 0 6px;
}
.reg-progress i {
  width: 28px;
  height: 4px;
  border-radius: 99px;
  background: rgba(243, 251, 245, 0.18);
}
.reg-progress i.on { background: #7CE39A; }

.verify-pick {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  width: 100%;
  border: 1px solid rgba(243, 251, 245, 0.16);
  background: rgba(243, 251, 245, 0.08);
  color: #F3FBF5;
  border-radius: 18px;
  padding: 14px;
  cursor: pointer;
  font: inherit;
}
.verify-pick:active { transform: scale(0.99); }
.vp-ico {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(124, 227, 154, 0.18);
  color: #B8F5C8;
}
.vp-text { display: grid; gap: 3px; }
.vp-text b { font-size: 13.5px; font-weight: 800; }
.vp-text small { font-size: 11.5px; font-weight: 600; opacity: 0.7; line-height: 1.3; }
.vp-go { opacity: 0.55; }
.doc-note {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(233, 246, 236, 0.62);
  text-align: left;
  line-height: 1.35;
}

.tier-hero {
  background: linear-gradient(145deg, #0a3d24, #14924a);
  color: #F3FBF5;
  border-radius: 20px;
  padding: 18px 16px;
}
.tier-kicker { font-size: 11px; font-weight: 700; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.04em; }
.tier-title { margin-top: 4px; font-size: 24px; font-weight: 820; letter-spacing: -0.03em; }
.tier-sub { margin-top: 4px; font-size: 12.5px; font-weight: 650; opacity: 0.8; }
.tier-list { display: grid; gap: 10px; }
.tier-card {
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.tier-card.on {
  border-color: rgba(29, 163, 60, 0.35);
  box-shadow: 0 0 0 1px rgba(29, 163, 60, 0.12), var(--shadow-soft);
}
.tier-name { font-size: 14px; font-weight: 800; }
.tier-lim { margin-top: 4px; font-size: 12px; color: var(--mute); font-weight: 650; }
.tier-feats {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tier-feats span {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.tier-hero .tier-feats span {
  background: rgba(255, 255, 255, 0.16);
  color: #F3FBF5;
}
.lock .tier-card {
  background: rgba(243, 251, 245, 0.1);
  border-color: rgba(243, 251, 245, 0.14);
  color: #F3FBF5;
  box-shadow: none;
}
.lock .tier-lim { color: rgba(233, 246, 236, 0.7); }
.lock .tier-feats span {
  background: rgba(124, 227, 154, 0.18);
  color: #C9F7D6;
}

/* —————————————————— даты и фото KYC —————————————————— */

.date-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1fr;
  gap: 8px;
}
.date-row select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 0;
  outline: none;
  background: rgba(243, 251, 245, 0.1);
  color: #F3FBF5;
  border-radius: 12px;
  padding: 10px 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  background-image: linear-gradient(45deg, transparent 50%, rgba(233,246,236,.55) 50%),
    linear-gradient(135deg, rgba(233,246,236,.55) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 22px;
}
.date-row select option {
  color: #0b1f12;
  background: #fff;
}

.photo-slot {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  width: 100%;
  border: 1px dashed rgba(243, 251, 245, 0.28);
  background: rgba(243, 251, 245, 0.06);
  color: #F3FBF5;
  border-radius: 18px;
  padding: 12px;
  cursor: pointer;
  font: inherit;
}
.photo-slot.on {
  border-style: solid;
  border-color: rgba(124, 227, 154, 0.45);
  background: rgba(124, 227, 154, 0.1);
}
.photo-slot img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.ps-ico {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(124, 227, 154, 0.16);
  color: #B8F5C8;
}
.ps-text { display: grid; gap: 3px; }
.ps-text b { font-size: 13.5px; font-weight: 800; }
.ps-text small { font-size: 11.5px; font-weight: 600; opacity: 0.7; line-height: 1.3; }

/* —————————————————— авиа: премиум экран —————————————————— */

.travel-view .travel-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 28px;
  min-height: 320px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(90, 180, 220, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(29, 163, 60, 0.35), transparent 50%),
    linear-gradient(165deg, #041810 0%, #0a3a3a 42%, #0b4a2e 100%);
}
.travel-sky {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 20, 16, 0.15) 0%, rgba(4, 20, 16, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}
.travel-3d {
  position: absolute;
  right: -8%;
  top: 28px;
  width: min(340px, 78vw);
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.45));
  animation: planeFloat 6.5s ease-in-out infinite;
  transform-origin: 55% 45%;
}
.travel-hero .c-in { position: relative; z-index: 1; }
.travel-copy {
  max-width: 58%;
  margin-top: 6px;
}
.travel-copy h2 {
  font-size: 28px;
  line-height: 1.1;
  margin-top: 4px;
}
.travel-copy .svc-kicker { color: rgba(180, 230, 210, 0.7); }

.travel-search {
  margin-top: 16px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(243, 251, 245, 0.1);
  border: 1px solid rgba(243, 251, 245, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.travel-search .route-board { margin-top: 0; }
.travel-search .route-air {
  background: rgba(4, 24, 16, 0.35);
  border-color: rgba(243, 251, 245, 0.1);
  border-radius: 16px;
  padding: 10px 12px 10px;
}
.travel-search .route-air .city {
  font-size: 11px;
  font-weight: 650;
  color: rgba(233, 246, 236, 0.55);
  letter-spacing: 0;
  text-transform: none;
}
.travel-search .route-air .iata { font-size: 24px; }
.travel-search .route-swap {
  background: rgba(29, 163, 60, 0.85);
  color: #fff;
  box-shadow: 0 6px 16px rgba(29, 163, 60, 0.35);
}
.travel-search .route-date {
  background: rgba(4, 24, 16, 0.35);
  gap: 8px;
}
.travel-search .route-date .rd-ico {
  display: grid;
  place-items: center;
  opacity: 0.7;
}
.travel-search .route-go {
  border-radius: 16px !important;
  min-width: 108px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(29, 163, 60, 0.35);
}

.travel-sheet { margin-top: -6px; }

.dest-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 72%);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.dest-rail::-webkit-scrollbar { display: none; }
.dest-card {
  position: relative;
  border: 0;
  padding: 0;
  height: 132px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: #F3FBF5;
  scroll-snap-align: start;
  box-shadow: 0 10px 24px rgba(12, 40, 24, 0.12);
}
.dest-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}
.dest-card:active img { transform: scale(1.06); }
.dest-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(4, 18, 12, 0.78) 100%);
}
.dest-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 2px;
  z-index: 1;
}
.dest-title { font-size: 16px; font-weight: 820; letter-spacing: -0.02em; }
.dest-sub { font-size: 12px; font-weight: 650; opacity: 0.85; }

.flight-list { display: grid; gap: 12px; }

.ticket-card {
  display: grid;
  grid-template-columns: 1fr 92px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(12, 40, 24, 0.08);
  border: 1px solid var(--hair);
  cursor: pointer;
  animation: ticketIn 0.45s ease both;
}
.ticket-card:active { transform: scale(0.985); }
@keyframes ticketIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.ticket-main { padding: 14px 14px 12px; min-width: 0; }
.ticket-air {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ticket-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.ticket-carrier {
  font-size: 12px;
  font-weight: 700;
  color: var(--mute);
}
.ticket-route {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 6px;
  align-items: end;
}
.tr-end { display: grid; gap: 1px; }
.tr-end.right { text-align: right; justify-items: end; }
.tr-end b {
  font-size: 22px;
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1;
}
.tr-end small {
  font-size: 11px;
  font-weight: 650;
  color: var(--mute);
}
.tr-end em {
  margin-top: 4px;
  font-style: normal;
  font-size: 13px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}
.tr-mid {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding-bottom: 2px;
}
.tr-dur, .tr-stops {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--mute);
}
.tr-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 99px;
  display: grid;
  place-items: center;
}
.plane-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px var(--surface);
}
.plane-dot .ic-svg { width: 12px; height: 12px; }

.ticket-stub {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 12px 8px;
  background:
    linear-gradient(180deg, #0a3d24 0%, #14924a 100%);
  color: #F3FBF5;
  text-align: center;
}
.ticket-stub::before,
.ticket-stub::after {
  content: '';
  position: absolute;
  left: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg, #eef3ef);
}
.ticket-stub::before { top: -7px; }
.ticket-stub::after { bottom: -7px; }
.ticket-price {
  font-size: 16px;
  font-weight: 820;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ticket-price small {
  font-size: 11px;
  margin-left: 2px;
  font-weight: 700;
  opacity: 0.85;
}
.ticket-flight {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.7;
  letter-spacing: 0.04em;
}
.ticket-go {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.flight-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--mute);
}
.flight-3d-empty {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 8px;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(12, 60, 30, 0.18));
  animation: planeFloat 6s ease-in-out infinite;
}
.flight-empty .t { font-size: 14px; font-weight: 780; color: var(--ink); }
.flight-empty .s { margin-top: 4px; font-size: 12px; font-weight: 600; }

@keyframes planeFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .travel-3d, .flight-3d-empty, .ticket-card { animation: none; }
}

/* —————————————————— отели и подарочные карты —————————————————— */

.hub-hotels { background: linear-gradient(150deg, #1a3a4a 0%, #2a6a7a 55%, #1a5048 100%); }
.hub-gifts { background: linear-gradient(150deg, #3a1840 0%, #7a3a60 55%, #4a2048 100%); }
.svc-promo.hotels { background: linear-gradient(135deg, #0c3a4a, #1a6a5a); }
.svc-promo.gifts { background: linear-gradient(135deg, #2a1838, #6a3a58); }

.hotel-hero, .gifts-hero {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding-bottom: 28px;
}
.svc-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}
.hotel-hero { background: linear-gradient(165deg, #041820, #0a3a3a 50%, #0b4a2e); }
.gifts-hero { background: linear-gradient(165deg, #180818, #3a1a38 50%, #2a0a28); }
.hotel-hero .c-in, .gifts-hero .c-in { position: relative; z-index: 1; }

.hotel-city-field { margin: 0 0 8px; }
.hotel-picked {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 650;
  color: rgba(180, 230, 210, 0.75);
  text-align: left;
}
.hotel-dates {
  grid-template-columns: 1fr 1fr !important;
}
.hotel-list { display: grid; gap: 10px; }
.hotel-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hair);
  box-shadow: 0 8px 20px rgba(12, 40, 24, 0.07);
  cursor: pointer;
  animation: ticketIn 0.4s ease both;
}
.hotel-card:active { transform: scale(0.985); }
.hotel-photo {
  background: linear-gradient(145deg, #0a3d24, #1a7a4a) center/cover no-repeat;
  color: #C9F7D6;
  display: grid;
  place-items: center;
  min-height: 96px;
}
.hotel-body { padding: 12px 12px 12px 10px; display: grid; gap: 4px; align-content: center; }
.hotel-name { font-size: 13.5px; font-weight: 800; letter-spacing: -0.02em; }
.hotel-meta { font-size: 11.5px; font-weight: 650; color: var(--mute); }
.hotel-price { margin-top: 2px; font-size: 13px; font-weight: 800; color: var(--accent-deep); }
.hotel-sheet-photo {
  margin-top: 12px;
  height: 140px;
  border-radius: 16px;
  background: center/cover no-repeat #0a3d24;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gift-card {
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: 18px;
  padding: 10px;
  display: grid;
  gap: 8px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(12, 40, 24, 0.06);
  animation: ticketIn 0.4s ease both;
}
.gift-card:active { transform: scale(0.98); }
.gift-img {
  height: 72px;
  border-radius: 14px;
  background: linear-gradient(145deg, #2a1838, #6a3a58) center/cover no-repeat;
  display: grid;
  place-items: center;
  color: #F3E6F0;
}
.gift-title { font-size: 12.5px; font-weight: 800; line-height: 1.25; }
.gift-face { font-size: 11px; font-weight: 700; color: var(--mute); }
.face-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ————————————————————— устройства и сеансы ————————————————————— */

.cap-row .a {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent, #14924a);
  cursor: pointer;
}

.device-me {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 20px;
  color: #F3FBF5;
  background: linear-gradient(145deg, #0a3d24, #14924a);
  box-shadow: 0 14px 30px -18px rgba(10, 61, 36, 0.9);
}
.device-me-ic {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
}
.device-me-name { font-size: 15px; font-weight: 820; letter-spacing: -0.01em; }
.device-me-sub { font-size: 12px; font-weight: 640; opacity: 0.82; margin-top: 2px; }
.device-me-id {
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.58;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.device-row .right { font-size: 11.5px; font-weight: 700; }
.device-row.current .right { color: var(--accent, #14924a); }
.device-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
  color: var(--accent, #14924a);
  background: rgba(20, 146, 74, 0.14);
}

.btn.quiet[disabled] { opacity: 0.45; pointer-events: none; }
