/* WEBAPP (21.11.2026): стиль владельца — тёмно-синий фон, синие кнопки, карточки монет. */
:root {
  --bg: #0a1330; --bg2: #0f1b42; --card: #14224f; --card2: #1b2c63; --line: rgba(140,165,230,.16);
  --text: #eaf0ff; --hint: #8d9cc8; --blue: #2f7bff; --blue2: #1f63e0; --blue-soft: rgba(47,123,255,.16);
  --ok: #2fcf7a; --warn: #f4b13d; --err: #ff6070;
  /* WEBAPP_THEME: всё, что различается у тёмной и светлой темы */
  --glass: rgba(20,34,79,.72); --glass2: rgba(27,44,99,.78); --seg: rgba(15,27,66,.75);
  --accent: #a9c8ff; --accent2: #cfe0ff; --link: #8fb8ff; --badge: #9cc0ff;
  --tabs-bg: rgba(10,19,48,.88); --tab-on: #fff; --toast: #22356f; --toast-text: #fff;
  --drop: rgba(140,165,230,.4); --spin: rgba(255,255,255,.25);
  --overlay: linear-gradient(180deg, rgba(8,15,40,.45) 0%, rgba(8,15,40,.25) 45%, rgba(8,15,40,.08) 80%, rgba(8,15,40,0) 100%);  /* BG_CLEARER: фон заметнее (2-й шаг) */
  --safe-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --tabs-h: 62px;
  /* WEBAPP_COLORS (21.11.2026): цвета монет и статусов (main / -soft фон / -line рамка) */
  --c-ltc: #b4cdff; --c-ltc-soft: rgba(150,185,255,.18); --c-ltc-line: rgba(170,200,255,.42);
  --c-btc: #ffa53a; --c-btc-soft: rgba(255,153,30,.18); --c-btc-line: rgba(255,165,58,.45);
  --c-bnb: #f3c242; --c-bnb-soft: rgba(243,186,47,.17); --c-bnb-line: rgba(243,194,66,.45);
  --c-xmr: #ff7f2a; --c-xmr-soft: rgba(255,110,20,.18); --c-xmr-line: rgba(255,127,42,.45);
  --c-usdt: #2fd3a0; --c-usdt-soft: rgba(38,197,154,.17); --c-usdt-line: rgba(47,211,160,.42);
  --c-def: #8fb0ff; --c-def-soft: rgba(111,155,255,.17); --c-def-line: rgba(143,176,255,.42);
  --violet: #b59bff; --violet-soft: rgba(160,130,255,.17);
  --ok-soft: rgba(47,207,122,.16); --err-soft: rgba(255,96,112,.16); --warn-soft: rgba(244,177,61,.16);
  --shine: rgba(255,255,255,.07); --shadow: 0 10px 30px rgba(0,0,10,.28); --on-blue: #fff;
  --btn-grad: linear-gradient(135deg, #3d8cff 0%, #2f7bff 45%, #2060e6 100%);
  --btn-off-bg: #24345a; --btn-off-text: #fff; --btn-off-line: rgba(143,176,255,.55);   /* BTN_OFF_VISIBLE */
}
:root[data-theme="light"] {
  --bg: #eef3ff; --bg2: #ffffff; --card: #ffffff; --card2: #e6eeff; --line: rgba(40,70,150,.14);
  --text: #0f1b3d; --hint: #5b6b93; --blue: #2f7bff; --blue2: #1f63e0; --blue-soft: rgba(47,123,255,.12);
  --ok: #17a65d; --warn: #c98a12; --err: #e0384b;
  --glass: rgba(255,255,255,.82); --glass2: rgba(255,255,255,.88); --seg: rgba(255,255,255,.75);
  --accent: #1f5fd6; --accent2: #1a4fb4; --link: #1f63e0; --badge: #1f63e0;
  --tabs-bg: rgba(255,255,255,.9); --tab-on: #1f63e0; --toast: #1f2d55; --toast-text: #fff;
  --drop: rgba(40,70,150,.3); --spin: rgba(255,255,255,.4);
  --overlay: linear-gradient(180deg, rgba(238,243,255,.88) 0%, rgba(238,243,255,.80) 50%, rgba(238,243,255,.66) 100%);  /* BG_LIGHT_CLEAN: ночное фото в светлой теме — мягко, без «мути» */
  --c-ltc: #4a6aa6; --c-ltc-soft: rgba(74,106,166,.11); --c-ltc-line: rgba(74,106,166,.32);
  --c-btc: #dd7400; --c-btc-soft: rgba(247,147,26,.13); --c-btc-line: rgba(221,116,0,.34);
  --c-bnb: #b88400; --c-bnb-soft: rgba(243,186,47,.18); --c-bnb-line: rgba(184,132,0,.34);
  --c-xmr: #db5a06; --c-xmr-soft: rgba(242,104,34,.12); --c-xmr-line: rgba(219,90,6,.32);
  --c-usdt: #0f9a70; --c-usdt-soft: rgba(38,161,123,.12); --c-usdt-line: rgba(15,154,112,.32);
  --c-def: #2f6fe0; --c-def-soft: rgba(47,111,224,.10); --c-def-line: rgba(47,111,224,.30);
  --violet: #6b45d8; --violet-soft: rgba(107,69,216,.11);
  --ok-soft: rgba(23,166,93,.12); --err-soft: rgba(224,56,75,.11); --warn-soft: rgba(201,138,18,.13);
  --shine: rgba(255,255,255,.6); --shadow: 0 8px 24px rgba(30,60,140,.12); --on-blue: #fff;
  --btn-grad: linear-gradient(135deg, #3d8cff 0%, #2f7bff 45%, #2060e6 100%);
  --btn-off-bg: #c3d4f5; --btn-off-text: #000; --btn-off-line: rgba(31,95,214,.45);   /* BTN_OFF_VISIBLE */
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; background: transparent; color: var(--text); }
/* Фон (21.11.2026, выбор владельца): ночная Земля с МКС, огни городов — фото NASA iss064e037541
   (public domain, images.nasa.gov), обрезано под телефон 900×1800. Тёмная заливка — для читаемости. */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; }
body::before { background: var(--bg) url("bg.webp?v=3") center center / cover no-repeat; }  /* BG_DENOISE: ?v= — сбросить суточный кэш картинки */
body::after { background: var(--overlay); }
body { font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Segoe UI", Arial, sans-serif;
  min-height: var(--tg-viewport-stable-height, 100vh); overscroll-behavior-y: none; }
#app { max-width: 560px; margin: 0 auto;
  padding: calc(var(--safe-top) + 10px) 16px calc(var(--tabs-h) + var(--safe-bottom) + 20px); }
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.brand { font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 8px; letter-spacing: .2px; }
.logo { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, #3b8bff, #1c4fd0); font-size: 16px; }
.hint { color: var(--hint); font-size: 13px; }
.center { text-align: center; padding: 40px 10px; }
h2 { font-size: 20px; margin: 4px 0 12px; }
h3 { font-size: 16px; margin: 16px 0 8px; }
.card { background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.seg { display: flex; background: var(--seg); border-radius: 14px; padding: 4px; margin-bottom: 14px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--hint); padding: 10px 6px; border-radius: 11px;
  font: inherit; font-size: 15px; font-weight: 600; }
.seg button.on { background: var(--blue); color: #fff; }
.coins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.coin { background: linear-gradient(160deg, var(--glass2), var(--glass)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; text-align: left; color: var(--text); font: inherit; min-height: 96px; display: flex;
  flex-direction: column; justify-content: space-between; gap: 10px; }
.coin:active { transform: scale(.98); }
.coin .nm { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.coin .badge { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px;
  font-weight: 800; background: var(--blue-soft); color: var(--badge); flex: none; }
.coin .rt { font-size: 14px; color: var(--hint); }
.coin .rt b { font-size: 15px; color: var(--text); }
.coin.off { opacity: .5; }
.btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 15px; font: inherit; font-size: 16px; font-weight: 600;
  background: var(--blue); color: #fff; margin-top: 10px; text-align: center; text-decoration: none; }
.btn:active { background: var(--blue2); }
.btn[disabled] { opacity: .55; }
.btn.ghost { background: var(--blue-soft); color: var(--accent); }
.btn.danger { background: rgba(255,96,112,.14); color: #ff8f9b; }
.btn.small { padding: 11px; font-size: 14px; margin-top: 8px; }
label.f { display: block; color: var(--hint); font-size: 13px; margin: 14px 0 6px; }
input.in, textarea.in { width: 100%; background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; font: inherit; font-size: 16px; outline: none; }
input.in:focus, textarea.in:focus { border-color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--bg2); color: var(--text); border-radius: 12px; padding: 9px 12px;
  font: inherit; font-size: 14px; }
.chip.on { border-color: var(--blue); background: var(--blue-soft); color: var(--accent2); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--hint); flex: none; }
.kv .v { text-align: right; word-break: break-all; font-weight: 600; }
.big { font-size: 26px; font-weight: 800; letter-spacing: .2px; }
.err { color: var(--err); font-size: 14px; margin-top: 8px; }
.err:empty { display: none; }
.note { color: var(--hint); font-size: 13px; margin-top: 8px; }
.screen-html { line-height: 1.5; }
.screen-html code { background: var(--bg2); padding: 1px 5px; border-radius: 6px; word-break: break-all; }
.screen-html a { color: var(--link); }
.steps { display: flex; gap: 4px; margin: 12px 0 4px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--bg2); }
.steps i.on { background: var(--blue); }
.steps i.done { background: var(--ok); }
.st { display: inline-block; padding: 4px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; background: var(--blue-soft); color: var(--accent); }
.st.ok { background: rgba(47,207,122,.15); color: var(--ok); }
.st.bad { background: rgba(255,96,112,.15); color: var(--err); }
.st.wait { background: rgba(244,177,61,.14); color: var(--warn); }
.req { background: var(--bg2); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.req .val { flex: 1; font-size: 18px; font-weight: 700; word-break: break-all; }
.copy { border: 0; background: var(--blue-soft); color: var(--accent); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; flex: none; }
.o { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.spin { width: 18px; height: 18px; border: 2px solid var(--spin); border-top-color: #fff; border-radius: 50%;
  display: inline-block; animation: sp .8s linear infinite; vertical-align: -3px; margin-right: 6px; }
@keyframes sp { to { transform: rotate(360deg); } }
.drop { border: 1.5px dashed var(--drop); border-radius: 16px; padding: 16px; text-align: center; color: var(--hint); margin-top: 10px; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--tabs-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 6px 8px calc(6px + var(--safe-bottom)); z-index: 5; }
.tabs button { flex: 1; border: 0; background: transparent; color: var(--hint); font: inherit; font-size: 12px; display: flex;
  flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; position: relative; }
.tabs button .ico { font-size: 21px; line-height: 1.1; filter: grayscale(.7); opacity: .8; }
.tabs button.on { color: var(--tab-on); }
.tabs button.on .ico { filter: none; opacity: 1; }
.tabs .dot { position: absolute; top: 2px; right: calc(50% - 20px); width: 8px; height: 8px; border-radius: 50%; background: var(--err); display: none; }
.tabs .dot.on { display: block; }
.chat { display: flex; flex-direction: column; gap: 8px; min-height: 160px; margin-bottom: 10px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; }
.msg.in { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.msg.out { align-self: flex-start; background: var(--card2); border-bottom-left-radius: 5px; }
.msg .t { display: block; font-size: 11px; opacity: .65; margin-top: 3px; text-align: right; }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 50px; max-height: 140px; resize: none; }
.composer .btn { width: auto; margin: 0; padding: 14px 16px; flex: none; }
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabs-h) + var(--safe-bottom) + 12px); max-width: 528px; margin: 0 auto;
  background: var(--toast); color: var(--toast-text); border-radius: 14px; padding: 12px 14px; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; z-index: 9; white-space: pre-line; }
#toast.on { opacity: 1; transform: none; }
body.solo .tabs { display: none; }

/* ===== WEBAPP_COLORS + WEBAPP_ICONS (21.11.2026, просьба владельца «всё цветное, значки как в боте») =====
   Цвет монеты — класс acc-<монета> задаёт --acc/--acc-soft/--acc-line из переменных темы.
   Значки — .ci (картинка премиум-эмодзи из бота или буква монеты, если значка нет). */
.acc-ltc { --acc: var(--c-ltc); --acc-soft: var(--c-ltc-soft); --acc-line: var(--c-ltc-line); }
.acc-btc { --acc: var(--c-btc); --acc-soft: var(--c-btc-soft); --acc-line: var(--c-btc-line); }
.acc-bnb { --acc: var(--c-bnb); --acc-soft: var(--c-bnb-soft); --acc-line: var(--c-bnb-line); }
.acc-xmr { --acc: var(--c-xmr); --acc-soft: var(--c-xmr-soft); --acc-line: var(--c-xmr-line); }
.acc-usdt { --acc: var(--c-usdt); --acc-soft: var(--c-usdt-soft); --acc-line: var(--c-usdt-line); }
.acc-def { --acc: var(--c-def); --acc-soft: var(--c-def-soft); --acc-line: var(--c-def-line); }

.ci { width: 32px; height: 32px; flex: none; display: inline-grid; place-items: center; border-radius: 50%;
  font-size: 11px; font-weight: 800; letter-spacing: .2px; color: var(--acc, var(--badge));
  background: var(--acc-soft, var(--blue-soft)); border: 1px solid var(--acc-line, var(--line)); overflow: hidden; }
.ci.has { background: transparent; border-color: transparent; border-radius: 0; }
.ci img, .ci video { width: 100%; height: 100%; object-fit: contain; display: block; }
.ci.emo { background: transparent; border-color: transparent; font-size: 20px; font-weight: 400; }
.ci.emo:empty { display: none; }
.ci.sm { width: 22px; height: 22px; font-size: 9px; }
.ci.sm.emo { font-size: 16px; }
.ci.lg { width: 44px; height: 44px; font-size: 13px; }
.ci.xl { width: 64px; height: 64px; font-size: 16px; }

/* шапка и вкладки */
.logo { background: var(--btn-grad); color: var(--on-blue); box-shadow: 0 4px 14px rgba(47,123,255,.35); }
.tabs button .ico { display: inline-grid; place-items: center; width: 26px; height: 26px; }
.tabs button .ico.has { filter: saturate(.35); opacity: .7; }
.tabs button .ico img, .tabs button .ico video { width: 24px; height: 24px; object-fit: contain; display: block; }
.tabs button.on .ico, :root[data-theme="light"] .tabs button.on .ico { filter: none; opacity: 1; }
.tabs button.on::after { content: ""; position: absolute; top: -6px; left: 30%; right: 30%; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--blue); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s, color .2s; }
.seg button.on { background: var(--btn-grad); color: var(--on-blue); box-shadow: 0 4px 12px rgba(47,123,255,.3); }

/* кнопки: синие остаются, с мягким градиентом */
.btn { background: var(--btn-grad); color: var(--on-blue); box-shadow: 0 6px 18px rgba(47,123,255,.28);
  transition: transform .12s, filter .15s, opacity .15s; }
.btn:active { background: var(--btn-grad); transform: scale(.985); filter: brightness(.93); }
.btn.ghost { background: var(--blue-soft); color: var(--accent); box-shadow: none; }
.btn.danger, :root[data-theme="light"] .btn.danger { background: var(--err-soft); color: var(--err); box-shadow: none; }
/* BTN_OFF_VISIBLE (22.11.2026, владелец по скрину «Продолжить плохо видно и в тёмной, и в светлой»): неактивная
   кнопка — НЕпрозрачная (раньше opacity .55 — сквозь неё просвечивал фон), своя заливка и рамка, текст чёрный/белый */
.btn[disabled], .btn:disabled { opacity: 1; background: var(--btn-off-bg); color: var(--btn-off-text);
  box-shadow: inset 0 0 0 1.5px var(--btn-off-line); filter: none; transform: none; cursor: default; }

/* карточки монет */
.coin { position: relative; overflow: hidden; border-color: var(--acc-line, var(--line));
  background: radial-gradient(120% 90% at 100% 0%, var(--acc-soft) 0%, transparent 60%),
              linear-gradient(160deg, var(--glass2), var(--glass));
  box-shadow: var(--shadow); min-height: 112px; transition: transform .12s, border-color .2s; }
.coin::after { content: ""; position: absolute; right: -26px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: var(--acc-soft); pointer-events: none; }
.coin .nm { gap: 10px; position: relative; z-index: 1; min-width: 0; }
.coin .nm .tt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; overflow-wrap: anywhere; }
.coin .nm .tt small { font-size: 11px; font-weight: 600; color: var(--acc); letter-spacing: .3px; }
.coin .rt { position: relative; z-index: 1; }
.coin .rt b { color: var(--acc); font-size: 16px; }
.coin .rt div { font-size: 11px; }
.coin.skel { background: linear-gradient(100deg, var(--glass) 30%, var(--glass2) 50%, var(--glass) 70%);
  background-size: 300% 100%; animation: shim 1.3s ease-in-out infinite; border-color: var(--line); box-shadow: none; }
.coin.skel::after { display: none; }
@keyframes shim { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* герой экрана монеты / заявки */
.hero { display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; }
.hero h2 { margin: 0; }
.hero > div { min-width: 0; }
.hero .sub { color: var(--hint); font-size: 13px; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px;
  font-weight: 600; background: var(--acc-soft, var(--blue-soft)); color: var(--acc, var(--accent));
  border: 1px solid var(--acc-line, var(--line)); }
.card.acc { border-color: var(--acc-line);
  background: radial-gradient(130% 100% at 100% 0%, var(--acc-soft) 0%, transparent 55%), var(--glass); }
.acc-t { color: var(--acc); }
.sum { text-align: center; padding: 18px 14px; }
.sum .ci { margin: 0 auto 8px; }
.sum .big { font-size: 28px; overflow-wrap: anywhere; }

/* способы оплаты — плитки со значком из бота */
.pm { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 10px; padding: 13px 14px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--glass); color: var(--text); font: inherit;
  font-size: 15px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--shadow); transition: transform .12s, border-color .2s; }
.pm:active { transform: scale(.985); border-color: var(--blue); }
.pm[disabled] { opacity: .55; }
.pm .lb { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pm .chev { color: var(--blue); font-size: 22px; line-height: 1; flex: none; }
.pm .ci { width: 34px; height: 34px; }
.pm .ci.emo { font-size: 22px; }
.pm.link { border-style: dashed; box-shadow: none; }

/* статусы */
.st { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 10px; border-radius: 999px;
  font-size: 12.5px; line-height: 1.25; background: var(--blue-soft); color: var(--accent); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.bad { background: var(--err-soft); color: var(--err); }
.st.wait { background: var(--warn-soft); color: var(--warn); }
.st.send { background: var(--violet-soft); color: var(--violet); }
.st.live::before { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.o { cursor: pointer; }
.o .ol { display: flex; align-items: center; gap: 10px; min-width: 0; }
.o .ol > div { min-width: 0; }
.ohead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ohead h2 { margin: 0; flex: 1; min-width: 0; }

/* прогресс заявки */
.stepper { display: flex; margin: 16px 0 8px; }
.stp { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative;
  font-size: 10.5px; color: var(--hint); text-align: center; }
.stp::before { content: ""; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.stp:first-child::before { display: none; }
.stp.done::before, .stp.on::before { background: var(--ok); }
.stp .dt { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--bg2); border: 2px solid var(--line); color: var(--hint); }
.stp.done .dt { background: var(--ok); border-color: var(--ok); color: var(--on-blue); }
.stp.on { color: var(--text); font-weight: 600; }
.stp.on .dt { background: var(--blue); border-color: var(--blue); color: var(--on-blue); animation: ring 1.8s ease-out infinite; }
.stp span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(47,123,255,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(47,123,255,0); } }

/* итог */
.done-ico { width: 64px; height: 64px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-items: center;
  font-size: 30px; background: var(--ok-soft); color: var(--ok); animation: pop .45s cubic-bezier(.2,1.4,.4,1) both; }
.done-ico.bad { background: var(--err-soft); color: var(--err); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* появление экранов */
#view > * { animation: rise .3s ease-out both; }
#view > *:nth-child(2) { animation-delay: .04s; }
#view > *:nth-child(3) { animation-delay: .08s; }
#view > *:nth-child(n+4) { animation-delay: .12s; }
.coins > .coin { animation: rise .35s ease-out both; }
.coins > .coin:nth-child(2) { animation-delay: .05s; }
.coins > .coin:nth-child(3) { animation-delay: .1s; }
.coins > .coin:nth-child(n+4) { animation-delay: .15s; }
.coins > .coin.skel { animation: shim 1.3s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.kv .v { min-width: 0; }

/* WEBAPP_THEME: кнопка темы в шапке */
.topr { display: flex; align-items: center; gap: 10px; }
.themebtn { border: 1px solid var(--line); background: var(--glass); color: var(--text); border-radius: 11px;
  width: 36px; height: 36px; font-size: 17px; line-height: 1; padding: 0; }
:root[data-theme="light"] .msg.out { background: #ffffff; border: 1px solid var(--line); }
:root[data-theme="light"] .tabs button .ico { filter: grayscale(.5); }
:root[data-theme="light"] .btn.danger { color: var(--err); }

/* CABINET (WEBAPP_CABINET, 21.11.2026): вкладка «👤 Кабинет» (cabinet.js). Только переменные темы. */
.cab-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin-right: 8px;
  background: var(--blue-soft); color: var(--badge); font-weight: 800; font-size: 13px; vertical-align: middle; }
.cab-bal .kv .k { display: flex; align-items: center; color: var(--text); font-weight: 600; }
.cab-na { color: var(--warn); font-weight: 500; font-size: 14px; }
.cab-total .v { color: var(--text); }
.cab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.cab-tile { background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; display: flex;
  flex-direction: column; align-items: flex-start; gap: 6px; min-height: 78px; text-align: left; }
.cab-tile:active { transform: scale(.98); }
.cab-tico { font-size: 22px; line-height: 1; }
.cab-addr { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; font-weight: 600; word-break: break-all; }
.req .val.cab-addr { font-size: 14px; }
.cab-qrbtn { margin-top: 10px; }
.cab-qr { display: block; width: 190px; max-width: 70%; height: auto; margin: 12px auto 0; border-radius: 12px; image-rendering: pixelated; }
.cab-chips { margin-top: 8px; }
.cab-op .k { color: var(--text); }
.cab-op .hint { font-weight: 400; }
.cab-link { cursor: pointer; }
.cab-link .k { color: var(--link); }
.cab-nav { display: flex; gap: 8px; }
.cab-nav .btn { flex: 1; }
/* PAYOUT_TXID_APP: хэш выплаты на экране выполненной заявки */
.txbox { text-align: left; margin: 12px 0 4px; }
.txbox .val.tx { font-size: 13px; font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
/* CAB_ICONS: значки монет в кабинете — как в боте */
.cab-bal .cab-ci { margin-right: 10px; }
.seg button .cab-ci { margin: 0; }
/* WEBAPP_AVATAR: аватарка бота вместо буквы «S» */
.logo.has { background: transparent; overflow: hidden; border-radius: 50%; }
.logo.has img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* WEBAPP_BANK_ICONS: логотипы банков на выборе «с какого банка оплата» */
.chips .chip.bank { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px 8px 9px; }
.chip.bank .ci.sm { width: 22px; height: 22px; }
.chip.bank .ci:not(.has) { display: none; }
/* BANK_WARN (21.11.2026, просьба владельца): «платите только с выбранного банка» — жирно,
   цвет основного текста (светлая тема — чёрный, тёмная — белый) */
.bank-warn { color: var(--text); font-weight: 700; font-size: 14px; line-height: 1.4; margin-top: 10px;
  padding: 10px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }
/* SUPPORT_UI (21.11.2026, просьба владельца по скрину): чат поддержки */
.msg { box-shadow: 0 2px 10px rgba(0,0,0,.12); font-size: 15px; line-height: 1.4; }
.msg .who { display: block; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.msg .tx { display: block; }
.msg.out { background: var(--glass2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); color: var(--text); }
.sup-empty { padding: 22px 16px; }
.sup-empty .sup-ico { font-size: 34px; margin-bottom: 6px; }
.sup-empty .sup-t { font-weight: 700; font-size: 16px; margin-bottom: 6px; color: var(--text); }
.composer { position: sticky; bottom: calc(var(--tabs-h) + var(--safe-bottom) + 8px); z-index: 3; align-items: flex-end;
  padding: 6px; border-radius: 22px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.composer textarea.in { background: transparent; border: 0; color: var(--text); caret-color: var(--blue); font-size: 16px;
  font-weight: 500; min-height: 44px; max-height: 140px; padding: 11px 10px; line-height: 1.4; overflow-y: auto; }
.composer textarea.in::placeholder { color: var(--hint); opacity: 1; }
.composer textarea.in:focus { border: 0; }
.composer .send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 18px; display: grid; place-items: center; padding: 0 0 0 2px; }
.composer .send:active { background: var(--blue2); transform: scale(.95); }
.composer .send[disabled] { opacity: .5; }
.tg-link { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 10px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--glass); color: var(--hint); font: inherit; font-size: 14px; text-align: left; }
.tg-link b { color: var(--link); font-weight: 700; }
.tg-link .arr { margin-left: auto; color: var(--link); font-size: 20px; line-height: 1; }
/* SUPPORT_TICKS: ✓ доставлено, ✓✓ прочитано */
.msg .t .tk { margin-left: 4px; font-size: 12px; letter-spacing: -2px; }
.msg.in .t .tk.read { color: #bfe3ff; font-weight: 700; }
/* SELL (WEBAPP_SELL, 21.11.2026): «Продать» (sell.js). Только переменные темы. */
.sell-addr { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; font-weight: 600; word-break: break-all; }
.req .val.sell-addr { font-size: 14px; }
textarea.in.sell-card { resize: vertical; min-height: 64px; font: inherit; }
.sell-tx { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sell-res { margin-top: 10px; background: var(--glass2); border-color: var(--line); }

/* BG_CLEARER (21.11.2026, просьба владельца: «заставку чётче — её совсем плохо видно»): заливка поверх
   фото слабее; чтобы текст читался — заголовки с лёгкой тенью, стекло карточек чуть плотнее. */
:root { --glass: rgba(16,28,68,.78); --glass2: rgba(24,40,92,.84); }
:root[data-theme="light"] { --glass: rgba(255,255,255,.94); --glass2: rgba(255,255,255,.96); }
#view > h2, #view > h3, .top .brand { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
:root[data-theme="light"] #view > h2, :root[data-theme="light"] #view > h3, :root[data-theme="light"] .top .brand { text-shadow: none; }
#view > .hint, #view > .note, #view > label.f, .top .hint { text-shadow: 0 1px 6px rgba(0,0,0,.55); }
:root[data-theme="light"] #view > .hint, :root[data-theme="light"] #view > .note, :root[data-theme="light"] #view > label.f, :root[data-theme="light"] .top .hint { text-shadow: none; }
/* EXTRAS — WEBAPP_EXTRAS (21.11.2026): промокод, AML-проверка, «🎁 Акции» (extras.js); только переменные темы */
.ext-akc-row { display: flex; justify-content: flex-end; margin: -4px 0 10px; }
.chip.ext-akc { background: var(--warn-soft); border-color: var(--warn); color: var(--text); font-weight: 600; }
.ext-akc-card { line-height: 1.5; }
.ext-promo { margin-top: 4px; }
.ext-promo-form { margin-top: 8px; }
.ext-promo-form .btn { margin-top: 8px; }
.ext-promo-on { background: var(--ok-soft); border: 1px solid var(--ok); color: var(--text); border-radius: 14px;
  padding: 11px 14px; margin: 8px 0; font-weight: 600; text-align: center; }
.cab-tile.ext-aml-tile { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 10px; }
.ext-st { display: inline-block; background: var(--blue-soft); color: var(--accent2); border-radius: 10px; padding: 3px 9px;
  font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.ext-check { cursor: default; }
.ext-check.ext-link { cursor: pointer; }
.ext-check .ext-st { margin-bottom: 0; }
.ext-ch-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.ext-more { color: var(--link); font-size: 14px; margin-top: 6px; }
.req .val.ext-addr { font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
/* SWAP (WEBAPP_SWAP, 21.11.2026): «Swap» крипта ↔ крипта (swap.js). Только переменные темы. */
.sw-title { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.sw-title h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sw-coin { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; min-width: 0;
  background: linear-gradient(160deg, var(--glass2), var(--glass)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--acc-line, var(--line)); border-radius: 16px; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; }
.sw-coin .sw-nm { max-width: 100%;  /* аудит 22.11: имя монеты — свой класс (последним теперь идёт «≈ курс») */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-coin:active { transform: scale(.97); }
.sw-side { display: flex; align-items: center; gap: 12px; }
.sw-units button { font-size: 13px; padding: 10px 4px; }
.sw-extra { margin: -4px 0 2px; text-align: right; }
.sw-addr { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; font-weight: 600; word-break: break-all; }
.req .val.sw-addr { font-size: 14px; }
.sw-warn { background: var(--warn-soft); border-color: var(--warn-soft); color: var(--text); font-size: 13.5px; margin: 10px 0 0; padding: 12px 14px; }
.sw-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sw-wait .note { flex-basis: 100%; margin-top: 2px; }
.sw-timer { color: var(--warn); font-weight: 600; }
.sw-adm { color: var(--warn); margin-top: 0; }

/* BG_LIGHT_CLEAN (21.11.2026, владелец по скрину: «намудрил с цветом — всё размыто»): в светлой
   теме ночное фото под плотной светлой заливкой, карточки почти белые и без размытия под ними —
   текст чёткий. Тёмная тема — как была (фото хорошо видно). */
:root[data-theme="light"] .card, :root[data-theme="light"] .coin, :root[data-theme="light"] .seg,
:root[data-theme="light"] .composer, :root[data-theme="light"] .msg.out { -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-theme="light"] .card, :root[data-theme="light"] .coin { box-shadow: 0 2px 12px rgba(20,40,100,.08); }

/* CRISP_UI (21.11.2026, владелец по скринам: «всё смыто — должно быть чётко видно, возможно из-за фона»).
   1) Светлая тема — БЕЗ фото: чистый светлый фон (ночное фото под заливкой давало серую муть).
   2) Вторичные кнопки (ghost) — плотные, с рамкой и ярким текстом в обеих темах (были почти прозрачные).
   3) Подсказки и подписи вне карточек — плашкой, а не голым текстом поверх картинки.
   4) Карточки монет в светлой теме — белые, цвет монеты — полоской сверху и текстом, без бледных разводов. */
/* BG_LIGHT_DAY (21.11.2026, владелец: «в светлой пропала картинка»): своя ДНЕВНАЯ картинка — Земля
   с МКС днём, облака (NASA iss020e047807, public domain), под светло-голубой заливкой. */
:root[data-theme="light"] body::before { background: #e9f0ff url("bg_light.webp?v=2") center center / cover no-repeat; filter: none; transform: none; }
:root[data-theme="light"] body::after { background: linear-gradient(180deg, rgba(228,238,255,.78) 0%, rgba(232,241,255,.55) 40%, rgba(238,244,255,.30) 100%); }

.btn.ghost, .btn.ghost.small { background: var(--card); color: var(--accent); border: 1.5px solid var(--blue);
  box-shadow: 0 2px 10px rgba(0,0,0,.12); font-weight: 700; }
:root[data-theme="light"] .btn.ghost { background: #ffffff; color: #1f5fd6; box-shadow: 0 2px 10px rgba(20,40,100,.08); }
.btn.ghost:active { background: var(--card2); }

#view > .hint, #view > .note { background: var(--glass); border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 12px; color: var(--text); opacity: 1; text-shadow: none; }
:root[data-theme="light"] #view > .hint, :root[data-theme="light"] #view > .note { background: #ffffff; color: #3d4a6b; }

:root[data-theme="light"] .coin { background: #ffffff; border: 1px solid var(--acc-line, var(--line));
  box-shadow: 0 2px 12px rgba(20,40,100,.08); }
:root[data-theme="light"] .coin::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--acc, var(--blue)); }
:root[data-theme="light"] .coin::after { opacity: .45; }
:root[data-theme="light"] .card.acc { background: #ffffff; }

/* CRISP_DARK (21.11.2026, владелец по скрину: «светлая нормально, тёмная — не очень, сделай тоже
   чётко»): тёмная тема как светлая — плотные карточки без просвечивания фото (backdrop-filter выкл.),
   цвет монеты полоской сверху, подписи светлее; фото видно только вокруг карточек. */
:root:not([data-theme="light"]) {
  --card-solid: #14214a; --card-solid2: #182858; --hint: #a9b6dc; --line: rgba(150,175,240,.22);
  --glass: #14214a; --glass2: #182858; --seg: rgba(14,24,58,.94); --tabs-bg: rgba(10,18,44,.97);
}
:root:not([data-theme="light"]) .card, :root:not([data-theme="light"]) .coin, :root:not([data-theme="light"]) .seg,
:root:not([data-theme="light"]) .composer, :root:not([data-theme="light"]) .msg.out,
:root:not([data-theme="light"]) #view > .hint, :root:not([data-theme="light"]) #view > .note {
  -webkit-backdrop-filter: none; backdrop-filter: none; }
:root:not([data-theme="light"]) .coin { background: var(--card-solid); border: 1px solid var(--acc-line, var(--line));
  box-shadow: 0 4px 16px rgba(0,0,0,.35); }
:root:not([data-theme="light"]) .coin::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--acc, var(--blue)); }
:root:not([data-theme="light"]) .coin::after { opacity: .35; }
:root:not([data-theme="light"]) .card { background: var(--card-solid); box-shadow: 0 4px 16px rgba(0,0,0,.30); }
:root:not([data-theme="light"]) .card.acc { background: var(--card-solid); }
:root:not([data-theme="light"]) .coin .rt, :root:not([data-theme="light"]) .hint { color: var(--hint); }
:root:not([data-theme="light"]) .btn.ghost { background: var(--card-solid2); }

/* READABLE_SMALL (21.11.2026, владелец по скринам: «мелкие надписи плохо видно в обеих темах»).
   Пояснения и подписи — крупнее и контрастнее; вне карточек — всегда на плашке; мелкие кнопки — жирнее. */
:root { --hint-strong: #c9d3f0; }
:root[data-theme="light"] { --hint-strong: #33405f; }
:root:not([data-theme="light"]) { --hint-strong: #c9d3f0; }
.note, .hint { font-size: 14px; line-height: 1.45; color: var(--hint-strong); }
.coin .rt, .kv .k, label.f { color: var(--hint-strong); }
label.f { font-size: 14px; font-weight: 600; }
.top .hint { font-size: 13px; }
/* подписи, которые лежат не на карточке (прямо на фоне), — на плашке */
.note:not(.card *):not(.coin *):not(.composer *):not(.req *):not(.kv *):not(.msg *):not(.btn *):not(.top *):not(.bank-warn),
.hint:not(.card *):not(.coin *):not(.composer *):not(.req *):not(.kv *):not(.msg *):not(.btn *):not(.top *):not(.chip *) {
  background: var(--card-solid, var(--glass)); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; text-shadow: none; }
:root[data-theme="light"] .note:not(.card *):not(.coin *):not(.composer *):not(.req *):not(.kv *):not(.msg *):not(.btn *):not(.top *):not(.bank-warn),
:root[data-theme="light"] .hint:not(.card *):not(.coin *):not(.composer *):not(.req *):not(.kv *):not(.msg *):not(.btn *):not(.top *):not(.chip *) {
  background: #ffffff; }
.copy { font-size: 14px; font-weight: 700; padding: 9px 12px; }
:root:not([data-theme="light"]) .copy { background: rgba(80,130,255,.22); color: #cfe0ff; }
:root[data-theme="light"] .copy { background: #e3edff; color: #1a4fb4; }

/* TEXT_BW (21.11.2026, владелец: «мелкие надписи везде плохо видно — в светлой теме прям чёрным,
   в тёмной белым»): ВЕСЬ текст, включая подсказки и подписи, — чистый чёрный / белый, без серых.
   Цветными остаются только акценты (ссылки, цены монет, статусы, кнопки). */
:root[data-theme="light"] { --text: #000000; --hint: #000000; --hint-strong: #000000; }
:root:not([data-theme="light"]) { --text: #ffffff; --hint: #ffffff; --hint-strong: #ffffff; }
.note, .hint, .coin .rt, .kv .k, label.f, .msg .t, .tabs button, .seg button { color: var(--text); opacity: 1; }
.tabs button { opacity: .75; }
.tabs button.on { opacity: 1; }
.seg button.on { color: #ffffff; }
.composer textarea.in::placeholder, input.in::placeholder { color: var(--text); opacity: .55; }
.msg.in, .msg.in .t, .msg.in .tx { color: #ffffff; }
/* TEXT_BW: самые мелкие подписи — не меньше 12–14 px */
.hero .sub { font-size: 14px; }
.msg .t { font-size: 12px; }
.stp { font-size: 12px; font-weight: 600; }
.coin .nm .tt small { font-size: 12.5px; font-weight: 700; }
.coin .rt div { font-size: 13px; color: var(--text); }
/* SWAP_ALL_LISTED: монета временно недоступна у сервиса обмена */
.sw-coin.sw-off { opacity: .45; filter: grayscale(1); }
.sw-coin .sw-off-t { display: block; font-size: 12px; }   /* правило: текст ≥ 12px, без полупрозрачности */
/* COIN_SVG: плоские круглые логотипы монет (стиль ff.io) — без подложки */
.ci.coinsvg { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
.ci.coinsvg img { width: 100%; height: 100%; display: block; object-fit: contain; }
/* EXCH_HISTORY: «🔁 История обменов» в кабинете */
.ex-list { padding: 4px 14px; }
.ex-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ex-row:last-child { border-bottom: 0; }
.ex-main { min-width: 0; flex: 1; }
.ex-t { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; color: var(--text); }
.ex-row .st { flex: none; max-width: 46%; text-align: center; white-space: normal; font-size: 12.5px; }
/* EXCH_DETAIL: строка истории нажимается */
.ex-click { cursor: pointer; }
.ex-click:active { opacity: .6; }
.ex-go { flex: none; font-size: 22px; line-height: 1; color: var(--text); margin-left: -4px; }
.ex-kv { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ex-kv:last-child { border-bottom: 0; }
.ex-kv .k { font-size: 13px; margin-bottom: 6px; color: var(--text); }
.ex-txl { font-weight: 700; margin-bottom: 8px; color: var(--text); }
.ex-head-t { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
/* EMOJI_LOTTIE: анимированный премиум-эмодзи (lottie-плеер рисует svg) */
.ci .lt, .ico .lt { display: block; width: 100%; height: 100%; }
.tabs button .ico .lt { width: 24px; height: 24px; }
.lt svg { display: block; }
/* EMOJI_SPIN: неподвижная МОНЕТА поворачивается, как монета (поворот 1,6 с + пауза 0,9 с).
   Класс coinspin, НЕ spin: .spin — крутилка загрузки (быстрое вращение кружком), было совпадение имён. */
/* COIN_SLOW (22.11.2026): как видео-эмодзи монет — оборот 2,4 с + пауза 0,6 с */
@keyframes sb-spin { 0% { transform: perspective(200px) rotateY(0); } 80%, 100% { transform: perspective(200px) rotateY(360deg); } }
.coinspin > img { animation: sb-spin 3s ease-in-out infinite; backface-visibility: visible; }
/* EXCH_SPIN (22.11.2026): значок «Обмен»/«Swap» без видео — оборот по кругу 2,4 с, пауза (цикл 3 с). */
@keyframes sb-turn { 0% { transform: rotate(0); } 80%, 100% { transform: rotate(360deg); } }
.exspin > img { animation: sb-turn 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .coinspin > img, .exspin > img { animation: none; } }

/* LABEL_PLATE (22.11.2026, владелец по скрину покупки USDT: «почётче — чтоб было видно мелкие надписи»):
   подписи над полями (label.f), лежащие прямо на фото, — на плашке, как подсказки (CRISP_UI); внутри карточек — как были.
   Плашка с курсом под заголовком (.pill) — непрозрачная, текст крупнее. Обе темы. */
label.f:not(.card *) { display: inline-block; background: var(--glass); border: 1px solid var(--line);
  border-radius: 10px; padding: 5px 10px; font-size: 14px; font-weight: 700; text-shadow: none; }
:root[data-theme="light"] label.f:not(.card *) { background: #ffffff; }
.pill { font-size: 13.5px; font-weight: 700; background: var(--glass); }
:root[data-theme="light"] .pill { background: #ffffff; }

/* DANGER_SOLID (22.11.2026, владелец по скрину «Способ оплаты»: «Отменить очень плохо видно» — обе темы):
   кнопка-отмена (.btn.danger) — НЕпрозрачная (была err-soft: сквозь неё просвечивало фото), с красной рамкой. */
.btn.danger, :root[data-theme="light"] .btn.danger { opacity: 1; font-weight: 700; box-shadow: none; }
:root[data-theme="light"] .btn.danger { background: #ffffff; color: #c4162b; border: 1.5px solid #e0384b; }
:root:not([data-theme="light"]) .btn.danger { background: #5a1a26; color: #ffffff; border: 1.5px solid #ff6070; }

/* BONUS_PARTY (22.11.2026): салют бонусного обмена поверх экрана */
.party { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.party .pp { position: absolute; top: -48px; animation-name: sb-fall; animation-timing-function: cubic-bezier(.25,.6,.45,1);
  animation-fill-mode: forwards; will-change: transform; }
@keyframes sb-fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 85% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: 0; } }
.party-t { position: absolute; left: 50%; top: 38%; transform: translateX(-50%); padding: 12px 18px; border-radius: 16px;
  font-weight: 800; font-size: 17px; text-align: center; white-space: nowrap; animation: sb-pop 4.4s ease forwards;
  background: #ffffff; color: #000000; border: 2px solid #f2a900; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
:root:not([data-theme="light"]) .party-t { background: #1b2a52; color: #ffffff; }
@keyframes sb-pop { 0% { opacity: 0; transform: translateX(-50%) scale(.6); } 10% { opacity: 1; transform: translateX(-50%) scale(1.06); }
  16%, 80% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) scale(.95); } }

/* DARK_CRISP (22.11.2026, владелец: «в тёмной теме какая-то рябь, плохо видно, всё нечётко»). После CRISP_DARK
   карточки уже плотные, но: (1) вокруг них внизу фото шло почти без заливки — огни городов и облака «рябили»
   за текстом; (2) у плиток кабинета, способов оплаты, монет Swap, нижнего меню оставалось размытие фото под
   ними (backdrop-filter); (3) у заголовков и подписей — размытая тень 6–8 px, буквы выглядели нечёткими.
   Теперь: заливка поверх фото плотнее книзу (сверху фото видно, как было), размытие выключено везде,
   тень текста — тонкая и чёткая. Только тёмная тема; светлая не меняется. */
:root:not([data-theme="light"]) {
  --overlay: linear-gradient(180deg, rgba(8,15,40,.52) 0%, rgba(8,15,40,.64) 35%, rgba(8,15,40,.76) 65%, rgba(8,15,40,.82) 100%);  /* BG_SMOOTH 23.11: чуть плотнее */
}
:root:not([data-theme="light"]) .cab-tile, :root:not([data-theme="light"]) .pm, :root:not([data-theme="light"]) .sw-coin,
:root:not([data-theme="light"]) .tabs {
  -webkit-backdrop-filter: none; backdrop-filter: none; }
:root:not([data-theme="light"]) .cab-tile, :root:not([data-theme="light"]) .pm, :root:not([data-theme="light"]) .sw-coin {
  background: var(--card-solid); }
:root:not([data-theme="light"]) #view > h2, :root:not([data-theme="light"]) #view > h3, :root:not([data-theme="light"]) .top .brand,
:root:not([data-theme="light"]) #view > .hint, :root:not([data-theme="light"]) #view > .note,
:root:not([data-theme="light"]) #view > label.f, :root:not([data-theme="light"]) .top .hint {
  text-shadow: 0 1px 1px rgba(0,0,0,.6); }
/* SWAP_TILE_RATE (22.11.2026): «≈ курс ₽» под монетой на плитке Swap — мельче названия, но чётко (≥12px, без серого) */
.sw-coin .sw-rate { display: block; max-width: 100%; font-size: 12px; font-weight: 600; color: var(--text); opacity: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -2px; }
/* USDT_NET_COLORS (22.11.2026, просьба владельца): USDT по сети — TRC20 красный, BEP20 жёлтый (как BNB),
   ERC20 синий. Swap — плитки и карточки (acc-trc/acc-bep/acc-erc), покупка — кнопки выбора сети (net-*).
   Цвет заметный: рамка 2px и подпись цветом; выбранная сеть — заливка. Обе темы. */
:root { --c-trc: #ff5c6c; --c-trc-soft: rgba(255,80,96,.17); --c-trc-line: rgba(255,92,108,.75);
  --c-erc: #5c9dff; --c-erc-soft: rgba(70,140,255,.17); --c-erc-line: rgba(92,157,255,.75); --c-bep-line: rgba(243,194,66,.8); }
:root[data-theme="light"] { --c-trc: #d8283c; --c-trc-soft: rgba(216,40,60,.10); --c-trc-line: rgba(216,40,60,.6);
  --c-erc: #1f63e0; --c-erc-soft: rgba(31,99,224,.10); --c-erc-line: rgba(31,99,224,.6); --c-bep-line: rgba(184,132,0,.65); }
.acc-trc, .net-trc { --acc: var(--c-trc); --acc-soft: var(--c-trc-soft); --acc-line: var(--c-trc-line); }
.acc-bep, .net-bep { --acc: var(--c-bnb); --acc-soft: var(--c-bnb-soft); --acc-line: var(--c-bep-line); }
.acc-erc, .net-erc { --acc: var(--c-erc); --acc-soft: var(--c-erc-soft); --acc-line: var(--c-erc-line); }
.sw-coin.acc-trc, .sw-coin.acc-bep, .sw-coin.acc-erc { border-width: 2px; border-color: var(--acc-line); }
.sw-coin.acc-trc > span, .sw-coin.acc-bep > span, .sw-coin.acc-erc > span { color: var(--acc); }
.chip.net-trc, .chip.net-bep, .chip.net-erc { border: 2px solid var(--acc-line); color: var(--acc); background: var(--acc-soft); font-weight: 700; }
.chip.net-trc.on, .chip.net-bep.on, .chip.net-erc.on { background: var(--acc); border-color: var(--acc); color: #fff; }
.chip.net-bep.on { color: #000; }
/* USDT_NET_ICON (22.11.2026, владелец: «не изменилось» — имелся в виду цвет САМОЙ монеты USDT, у всех сетей
   она зелёная): значок USDT перекрашивается фильтром по сети — TRC20 красный, BEP20 жёлтый, ERC20 синий.
   Действует в Swap (плитки, карточки) и в кнопках выбора сети нет значка — там цвет кнопки (net-*). */
.acc-trc [data-ico="USDT"] > img, .acc-trc [data-ico="USDT"] > video, .acc-trc [data-ico="USDT"] .lt,
.net-trc [data-ico="USDT"] > img, .net-trc [data-ico="USDT"] > video, .net-trc [data-ico="USDT"] .lt { filter: hue-rotate(198deg) saturate(1.9) brightness(.95); }
.acc-bep [data-ico="USDT"] > img, .acc-bep [data-ico="USDT"] > video, .acc-bep [data-ico="USDT"] .lt,
.net-bep [data-ico="USDT"] > img, .net-bep [data-ico="USDT"] > video, .net-bep [data-ico="USDT"] .lt { filter: hue-rotate(-120deg) saturate(1.6) brightness(1.35); }
.acc-erc [data-ico="USDT"] > img, .acc-erc [data-ico="USDT"] > video, .acc-erc [data-ico="USDT"] .lt,
.net-erc [data-ico="USDT"] > img, .net-erc [data-ico="USDT"] > video, .net-erc [data-ico="USDT"] .lt { filter: hue-rotate(58deg) saturate(1.3) brightness(1.1); }
/* USDT_NET_COLORS: сети на карточке USDT в «Купить» — каждая своим цветом (а не цветом монеты) */
.coin .nm .tt small.nets { color: var(--text); }
.coin .nm .tt small.nets > span { color: var(--acc); font-weight: 700; }

/* аудит 22.11: в светлой теме жёлтый BEP20 (#b88400) на светлом фоне — контраст ~3:1; текст — тёмнее (≈ 6:1) */
:root[data-theme="light"] .chip.net-bep:not(.on), :root[data-theme="light"] small.nets > span.net-bep { color: #6b4a00; }
/* CLOUD_STATUS_APP: облачка в статусах заявки (как в боте) */
.cloud { display: inline-grid; place-items: center; flex: none; line-height: 1; }
.cloud img { width: 100%; height: 100%; display: block; object-fit: contain; }
.cloud.sm { width: 30px; height: 30px; font-size: 22px; }
.cloud.md { width: 52px; height: 52px; font-size: 34px; }
.cloud.lg { width: 84px; height: 84px; font-size: 52px; margin: 0 auto 8px; display: grid; }
.strow { display: flex; align-items: center; gap: 12px; }
.strow-t { flex: 1; min-width: 0; }
.strow-t .note { margin-top: 4px; }
.cl-h { display: flex; align-items: center; gap: 8px; }
/* AMOUNT_LAYOUT: введённая сумма — жирная, чёрная (светлая тема) / ярко-белая (тёмная); лимиты — подсказкой в поле */
input.in.amt { font-weight: 700; font-size: 19px; color: #fff; }
:root[data-theme="light"] input.in.amt { color: #0b0f17; }
input.in.amt::placeholder { font-weight: 700; font-size: 16px; opacity: 1; color: #5a6684; }
:root:not([data-theme="light"]) input.in.amt::placeholder { color: #b9c6ea; }
/* GLASS_TILES (23.11.2026, просьба владельца по скринам «Купить» и «Swap»): плитки монет — полупрозрачные
   (фон виден сквозь них), весь текст на них — яркий и жирный, с тонкой тенью для чёткости. Обе темы.
   Последним блоком — перекрывает CRISP_DARK/светлые сплошные плитки только для .coin и .sw-coin. */
:root[data-theme="light"] .coin, :root[data-theme="light"] .sw-coin {
  background: rgba(255,255,255,.50); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(20,40,100,.10); }
:root:not([data-theme="light"]) .coin, :root:not([data-theme="light"]) .sw-coin {
  background: rgba(14,24,60,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0,0,0,.30); }
.coin .nm, .coin .rt, .coin .rt div, .coin .rt b, .coin .nm .tt small, .sw-coin .sw-nm, .sw-coin .sw-rate {
  font-weight: 800; opacity: 1; }
:root[data-theme="light"] .coin .nm, :root[data-theme="light"] .coin .rt, :root[data-theme="light"] .coin .rt div,
:root[data-theme="light"] .sw-coin, :root[data-theme="light"] .sw-coin .sw-rate {
  color: #070b14; text-shadow: 0 1px 2px rgba(255,255,255,.9); }
:root:not([data-theme="light"]) .coin .nm, :root:not([data-theme="light"]) .coin .rt, :root:not([data-theme="light"]) .coin .rt div,
:root:not([data-theme="light"]) .sw-coin, :root:not([data-theme="light"]) .sw-coin .sw-rate {
  color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
:root[data-theme="light"] .coin .rt b, :root[data-theme="light"] .coin .nm .tt small { text-shadow: 0 1px 2px rgba(255,255,255,.9); }
:root:not([data-theme="light"]) .coin .rt b, :root:not([data-theme="light"]) .coin .nm .tt small { text-shadow: 0 1px 3px rgba(0,0,0,.85); filter: brightness(1.25); }
.coin .rt b { font-size: 17px; }
.sw-coin .sw-rate { font-size: 13px; }
/* COIN_FRAMES (23.11.2026, просьба владельца «рамочка под цвет монеты, как у USDT TRC20, у всех и на главной;
   ещё прозрачнее»): у каждой монеты свой цвет (acc-*), рамка плитки 2px цветом монеты — Swap и главная
   (покупка/продажа). Прозрачность плиток выше, чем в GLASS_TILES. */
:root { --c-eth: #8fa4ff; --c-eth-soft: rgba(143,164,255,0.17); --c-eth-line: rgba(143,164,255,0.75); --c-sol: #3ee6a4; --c-sol-soft: rgba(62,230,164,0.17); --c-sol-line: rgba(62,230,164,0.75); --c-trx: #ff5a5f; --c-trx-soft: rgba(255,90,95,0.17); --c-trx-line: rgba(255,90,95,0.75); --c-ton: #3fb6ff; --c-ton-soft: rgba(63,182,255,0.17); --c-ton-line: rgba(63,182,255,0.75); --c-bch: #9fd65f; --c-bch-soft: rgba(159,214,95,0.17); --c-bch-line: rgba(159,214,95,0.75); --c-dash: #3fa9ff; --c-dash-soft: rgba(63,169,255,0.17); --c-dash-line: rgba(63,169,255,0.75); --c-zec: #f6c447; --c-zec-soft: rgba(246,196,71,0.17); --c-zec-line: rgba(246,196,71,0.75); --c-usdc: #5c9dff; --c-usdc-soft: rgba(92,157,255,0.17); --c-usdc-line: rgba(92,157,255,0.75); --c-doge: #e0c45a; --c-doge-soft: rgba(224,196,90,0.17); --c-doge-line: rgba(224,196,90,0.75); }
:root[data-theme="light"] { --c-eth: #4f63d2; --c-eth-soft: rgba(79,99,210,0.1); --c-eth-line: rgba(79,99,210,0.6); --c-sol: #0e9f6a; --c-sol-soft: rgba(14,159,106,0.1); --c-sol-line: rgba(14,159,106,0.6); --c-trx: #d81f26; --c-trx-soft: rgba(216,31,38,0.1); --c-trx-line: rgba(216,31,38,0.6); --c-ton: #0088cc; --c-ton-soft: rgba(0,136,204,0.1); --c-ton-line: rgba(0,136,204,0.6); --c-bch: #5f9e1c; --c-bch-soft: rgba(95,158,28,0.1); --c-bch-line: rgba(95,158,28,0.6); --c-dash: #0071c5; --c-dash-soft: rgba(0,113,197,0.1); --c-dash-line: rgba(0,113,197,0.6); --c-zec: #b9860c; --c-zec-soft: rgba(185,134,12,0.1); --c-zec-line: rgba(185,134,12,0.6); --c-usdc: #2775ca; --c-usdc-soft: rgba(39,117,202,0.1); --c-usdc-line: rgba(39,117,202,0.6); --c-doge: #a8892a; --c-doge-soft: rgba(168,137,42,0.1); --c-doge-line: rgba(168,137,42,0.6); }
.acc-eth { --acc: var(--c-eth); --acc-soft: var(--c-eth-soft); --acc-line: var(--c-eth-line); }
.acc-sol { --acc: var(--c-sol); --acc-soft: var(--c-sol-soft); --acc-line: var(--c-sol-line); }
.acc-trx { --acc: var(--c-trx); --acc-soft: var(--c-trx-soft); --acc-line: var(--c-trx-line); }
.acc-ton { --acc: var(--c-ton); --acc-soft: var(--c-ton-soft); --acc-line: var(--c-ton-line); }
.acc-bch { --acc: var(--c-bch); --acc-soft: var(--c-bch-soft); --acc-line: var(--c-bch-line); }
.acc-dash { --acc: var(--c-dash); --acc-soft: var(--c-dash-soft); --acc-line: var(--c-dash-line); }
.acc-zec { --acc: var(--c-zec); --acc-soft: var(--c-zec-soft); --acc-line: var(--c-zec-line); }
.acc-usdc { --acc: var(--c-usdc); --acc-soft: var(--c-usdc-soft); --acc-line: var(--c-usdc-line); }
.acc-doge { --acc: var(--c-doge); --acc-soft: var(--c-doge-soft); --acc-line: var(--c-doge-line); }
:root[data-theme] .coin, :root[data-theme] .sw-coin { border: 2px solid var(--acc-line, var(--line)); border: 2px solid color-mix(in srgb, var(--acc, #5c9dff) 78%, transparent); }
:root[data-theme="light"] .coin, :root[data-theme="light"] .sw-coin { background: rgba(255,255,255,.30);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
:root:not([data-theme="light"]) .coin, :root:not([data-theme="light"]) .sw-coin { background: rgba(14,24,60,.28);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
/* WARN_READABLE (23.11.2026, владелец: «Проверьте сеть… — в светлой теме плохо видно»): предупреждение Swap —
   плотный светло-жёлтый фон, рамка и тёмно-коричневый жирный текст (светлая); в тёмной — плотный тёмно-янтарный. */
:root[data-theme="light"] .sw-warn { background: #fff3cf; border: 1.5px solid #e9b949; color: #4a3200; font-weight: 700;
  -webkit-backdrop-filter: none; backdrop-filter: none; text-shadow: none; }
:root:not([data-theme="light"]) .sw-warn { background: #3a2c0a; border: 1.5px solid #c99a2e; color: #ffe7a8; font-weight: 700;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
/* AVATAR_TOP (23.11.2026): аватар клиента справа — тот же размер и уровень, что логотип слева (.logo);
   без фото — первая буква на синем. Ник рядом — жирнее и ярче. */
.logo.ava { font-weight: 800; font-size: 15px; flex: none; }
.logo.ava.has { border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.top .topr #hello { font-weight: 700; font-size: 14px; color: var(--text); opacity: 1; }
:root[data-theme="light"] .top .topr #hello { color: #0b0f17; }
:root:not([data-theme="light"]) .top .topr #hello { color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
/* REPLACE_SYNC_EMOJI: значок вместо 🔄 в тексте — по высоте строки */
img.xsync { width: 1.35em; height: 1.35em; vertical-align: -0.33em; display: inline-block; object-fit: contain; }

