/* Lashspace Ai — мини-приложение. Цвета и приёмы — по прототипу в design/. */

/* ---------------------------------------------------------------- шрифты (локально) */
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url(fonts/oswald-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url(fonts/oswald-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url(fonts/oswald-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url(fonts/oswald-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url(fonts/oswald-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url(fonts/oswald-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url(fonts/nunito-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url(fonts/nunito-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url(fonts/nunito-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url(fonts/nunito-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url(fonts/nunito-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url(fonts/nunito-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url(fonts/nunito-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url(fonts/nunito-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Marck Script"; font-weight: 400; font-display: swap; src: url(fonts/marck-script-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Marck Script"; font-weight: 400; font-display: swap; src: url(fonts/marck-script-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------------------------------------------------------------- токены */
:root {
  --bg: #161616;
  --card: #1F1B1C;
  --card-2: #2A2426;
  --track: #2E2729;
  --accent: #E8488F;
  --btn: #D6006A;
  --grad-a: #5A2440;
  --grad-b: #863C5F;
  --powder: #F4AACE;
  --text: #F5F4EF;
  --text-2: #A8A2A4;
  --muted: #8E8789;
  --line: rgba(255, 255, 255, 0.08);
  --head: "Oswald", sans-serif;
  --script: "Marck Script", cursive;
  --body: "Nunito", sans-serif;
  /* Telegram задаёт --tg-*-safe-area-inset-* сам (Bot API 8.0+) */
  --safe-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: max(var(--tg-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom, 0px));
  --nav-h: 68px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--body);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg.i { width: 22px; height: 22px; flex: none; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-top: var(--safe-top); }
.screen { padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 24px); }
.screen[hidden] { display: none; }

/* ---------------------------------------------------------------- типографика */
.h1 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 34px; letter-spacing: 0.02em; line-height: 1; text-transform: uppercase; }
.h2 { margin: 26px 20px 12px; font-family: var(--head); font-weight: 600; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; }
.script { font-family: var(--script); color: var(--accent); line-height: 0.8; transform: rotate(-6deg); display: inline-block; }
.lead { margin: 10px 0 0; font-size: 15px; line-height: 1.4; color: var(--text-2); }
.sub { font-size: 13px; color: var(--text-2); line-height: 1.35; }
.pink { color: var(--powder); font-weight: 700; }
.screen-head { padding: 24px 20px 0; }
.title-row { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- общие элементы */
.card { background: var(--card); border-radius: 22px; }
.grad { background: linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 100%); }
.badge-new { padding: 3px 8px; border-radius: 999px; background: var(--btn); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; }
.hex {
  flex: none; width: 44px; height: 48px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: rgba(232, 72, 143, 0.18); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 700; font-size: 16px;
}
.coin {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFD3E6 0%, var(--accent) 45%, #8E0F4A 100%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), 0 2px 8px rgba(232,72,143,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 700; font-size: 13px; color: #fff;
}
.chev { width: 18px; height: 18px; color: var(--muted); flex: none; }

/* пилюля с кругом-иконкой */
.pill {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 6px 6px 6px 22px; border: 0; border-radius: 999px;
  font-weight: 800; font-size: 16px;
}
.pill .dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.pill-white { background: #fff; color: var(--bg); }
.pill-white .dot { background: var(--btn); color: #fff; }
.pill-pink { background: var(--btn); color: #fff; width: 100%; min-height: 58px; padding-left: 24px; }
.pill-pink .dot { width: 46px; height: 46px; background: #fff; color: var(--btn); }
.pill-big-label { font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; }
.pill-col { display: flex; flex-direction: column; align-items: flex-start; }
.pill-col small { font-size: 12px; font-weight: 700; }
/* оплата и монтаж пока не работают — кнопки приглушены, тап показывает «скоро» */
.pill[aria-disabled="true"] { background: var(--card-2); color: var(--text-2); cursor: default; }
.pill[aria-disabled="true"] .dot { background: var(--track); color: var(--text-2); }

.btn-outline {
  width: 100%; min-height: 46px; margin-top: 12px; border-radius: 999px;
  border: 1px solid rgba(232,72,143,0.6); background: transparent; color: var(--powder);
  font-weight: 800; font-size: 14px;
}
.btn-outline:disabled { opacity: 0.55; cursor: default; }

/* чипы и сегменты */
.chips { display: flex; gap: 8px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16); background: transparent;
  font-size: 14px; font-weight: 800;
}
.chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.chip.sq { border-radius: 12px; padding: 0 6px; font-size: 13px; }
.seg { display: grid; padding: 3px; border-radius: 14px; background: var(--bg); }
.seg button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 44px; border: 0; border-radius: 12px; background: transparent; font-weight: 800; font-size: 14px;
}
.seg button[aria-pressed="true"] { background: var(--btn); color: #fff; }
.seg small { font-size: 12px; font-weight: 600; opacity: 0.85; }

/* переключатель */
.switch {
  flex: none; width: 52px; height: 32px; padding: 3px; border: 0; border-radius: 999px;
  background: #3A3335; display: flex; align-items: center; justify-content: flex-start;
}
.switch::after { content: ""; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.switch[aria-checked="true"] { background: var(--btn); justify-content: flex-end; }

/* ---------------------------------------------------------------- шапка «Агент» */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 6px; }
.logo { display: flex; align-items: flex-end; gap: 2px; }
.logo b { font-family: var(--head); font-weight: 700; font-size: 24px; letter-spacing: 0.04em; line-height: 1; }
.logo .script { font-size: 34px; transform: rotate(-8deg); margin-left: 2px; }
.balance {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px 6px 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-weight: 800;
}
.balance .plus { width: 22px; height: 22px; border-radius: 50%; background: var(--btn); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }

.hero { margin: 14px 16px 0; border-radius: 26px; padding: 22px 20px 20px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,211,230,0.55) 0%, rgba(232,72,143,0.35) 40%, rgba(214,0,106,0) 70%);
}
.tag-glass { display: inline-block; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.18); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: #fff; }
.hero h1 { margin: 14px 0 0; font-family: var(--head); font-weight: 700; font-size: 32px; line-height: 1.02; text-transform: uppercase; color: #fff; position: relative; }
.hero .script { font-size: 46px; line-height: 0.9; color: var(--powder); transform: rotate(-4deg); margin: 2px 0 0 4px; }
.hero p { margin: 12px 0 18px; font-size: 15px; line-height: 1.4; color: #F5E6EC; max-width: 280px; position: relative; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 16px; position: relative; text-align: left; border: 0; }
.tile .badge-new { position: absolute; top: 12px; right: 12px; }
.tile b { font-weight: 800; font-size: 16px; }

/* ---------------------------------------------------------------- «Возможности» */
.progress { margin: 18px 16px 0; padding: 18px; border: 1px solid rgba(232,72,143,0.25); }
.progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.progress-head h2 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
.bar { margin-top: 12px; height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--btn), var(--powder)); }
.list { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 0; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: var(--card); width: 100%; border: 0; text-align: left; }
.row .hex { width: 46px; height: 50px; }
.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.row-cat { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; }

/* ---------------------------------------------------------------- «Чат» */
.chat { display: flex; flex-direction: column; min-height: 100vh; padding-bottom: 0; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 16px 16px 8px; }
.chat-head .h1 { font-size: 24px; letter-spacing: 0.04em; }
.chat-head .script { font-size: 26px; }
.models { padding: 8px 16px 4px; }
.model {
  flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 52px; padding: 10px 14px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
}
.model b { font-weight: 800; font-size: 14px; white-space: nowrap; }
.model small { font-size: 11px; font-weight: 700; opacity: 0.85; white-space: nowrap; }
.model[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.model-note { margin: 6px 16px 0; font-size: 12px; color: var(--text-2); }
.messages { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 16px; }
.day { align-self: center; font-size: 12px; color: var(--text-2); padding: 4px 10px; border-radius: 999px; background: var(--card); }
.msg { max-width: 86%; padding: 14px 16px; font-size: 15px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; max-width: 80%; border-radius: 20px 20px 6px 20px; background: var(--btn); color: #fff; }
.msg.ai { align-self: flex-start; border-radius: 20px 20px 20px 6px; background: var(--card); }
.msg-wrap { align-self: flex-start; max-width: 86%; display: flex; flex-direction: column; gap: 4px; }
.msg-wrap .msg { max-width: 100%; }
.msg-meta { padding: 0 8px; font-size: 11px; color: var(--muted); }
.msg b, .msg strong { font-weight: 800; }
.msg .md-h { display: inline-block; margin-top: 4px; font-size: 16px; }
.msg code { padding: 1px 5px; border-radius: 6px; background: var(--bg); font-size: 13px; }
.msg pre {
  margin: 4px 0; padding: 10px 12px; border-radius: 12px; background: var(--bg);
  white-space: pre; overflow-x: auto; font-size: 13px; line-height: 1.4;
}
.msg blockquote { margin: 4px 0; padding: 2px 0 2px 10px; border-left: 3px solid var(--accent); color: var(--text-2); }
.msg hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.msg a { color: var(--powder); text-decoration: underline; }
.msg.err { border: 1px solid rgba(232,72,143,0.4); }
.msg .retry { margin-top: 10px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--btn); color: #fff; font-weight: 800; font-size: 14px; }
.typing { display: inline-flex; gap: 5px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.empty-chat { margin: 24px 8px 0; text-align: center; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.empty-chat b { display: block; margin-bottom: 6px; color: var(--text); font-size: 17px; }
.load-older { align-self: center; min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text-2); font-size: 13px; font-weight: 700; }
.chat-title { margin: -2px 16px 0; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-btn { width: 38px; height: 38px; color: var(--text); }
.composer {
  position: sticky; bottom: 0; display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px calc(12px + var(--safe-bottom)); background: var(--card); border-top: 1px solid var(--line);
}
.round { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.round.grey { background: var(--card-2); }
.round.pink { background: var(--btn); color: #fff; }
.field {
  flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1); background: var(--bg); font-size: 15px;
}
textarea.field { padding: 11px 16px; line-height: 20px; max-height: 140px; resize: none; overflow-y: auto; }

/* ---------------------------------------------------------------- диалоги */
.h2-row { display: flex; align-items: baseline; justify-content: space-between; margin-right: 20px; }
.h2-link { font-size: 14px; font-weight: 800; color: var(--accent); }
.dlg-list { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.dlg { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--card); width: 100%; border: 0; text-align: left; color: var(--text); }
.dlg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dlg-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlg-last { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlg .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlg.current { box-shadow: inset 0 0 0 1px rgba(232,72,143,0.5); }
.dlg-row { display: flex; align-items: center; gap: 6px; }
.dlg-row .dlg { flex: 1; min-width: 0; }
.dlg-more { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.hist { margin: 0 16px; padding: 4px 16px; border-radius: 20px; background: var(--card); }
.hist-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.hist-row:first-child { border-top: 0; }
.hist-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hist-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-amount { flex: none; font-weight: 800; font-size: 15px; }
.hist-amount.plus { color: var(--powder); }
.dlg-edit { display: flex; gap: 8px; padding: 8px; border-radius: 18px; background: var(--card); }
.dlg-edit .field { height: 40px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- «Монтаж» */
.upload {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 26px 16px 22px; border-radius: 24px; border: 1.5px dashed rgba(232,72,143,0.6); background: rgba(232,72,143,0.06);
}
.upload .round { width: 56px; height: 56px; }
.upload b { font-weight: 800; font-size: 17px; }
.file-card { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; }
.btn-link { border: 0; background: none; color: var(--accent); font-weight: 800; font-size: 14px; padding: 8px 4px; }
.job-card { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 16px; }
.job-card.err { box-shadow: inset 0 0 0 1px rgba(232,72,143,0.5); }
.bar { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--grad-b), var(--accent)); transition: width .3s; }
.styles { gap: 10px; }
.style-card {
  flex: none; width: 118px; display: flex; flex-direction: column; align-items: center;
  padding: 6px; border-radius: 20px; background: var(--card); border: 2px solid transparent;
}
.style-card[aria-pressed="true"] { border-color: var(--accent); }
.style-card .shot {
  width: 100%; height: 150px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #3A2230 0%, var(--grad-a) 55%, var(--grad-b) 100%);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 22px;
}
.style-card b { font-weight: 800; font-size: 14px; padding: 8px 0 2px; }
.panel { margin: 16px 16px 0; padding: 18px; }
.panel h2 { margin: 0 0 14px; font-family: var(--head); font-weight: 600; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; }
.label { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.preview {
  height: 92px; border-radius: 16px; margin-bottom: 16px; overflow: hidden;
  background: linear-gradient(160deg, #3A2230 0%, var(--grad-a) 60%, var(--grad-b) 100%);
  display: flex; align-items: center; justify-content: center;
}
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); }
.swatch[aria-pressed="true"] { border-color: var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.toggle-row { display: flex; align-items: center; gap: 10px; min-height: 56px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row.soon .switch { opacity: 0.45; }
.badge-soon { padding: 2px 8px; border-radius: 999px; background: var(--card-2); color: var(--text-2); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; }
.help { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid rgba(232,72,143,0.5); background: transparent; color: var(--accent); font-weight: 800; font-size: 14px; }
.wish {
  width: 100%; padding: 14px 16px; border-radius: 18px; resize: none;
  border: 1px solid rgba(255,255,255,0.1); background: var(--card); font-size: 15px; line-height: 1.4;
}

/* ---------------------------------------------------------------- «Токены» */
.bal-card { margin: 18px 16px 0; position: relative; border-radius: 26px; padding: 22px 20px; overflow: hidden; min-height: 180px; }
.bal-num { font-family: var(--head); font-weight: 700; font-size: 64px; line-height: 1; color: #fff; }
.bal-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 12px; border-radius: 14px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); font-size: 13px; font-weight: 700; color: #fff;
}
.bal-note[hidden] { display: none; }
.big-coin {
  position: absolute; right: -14px; top: 26px; width: 128px; height: 128px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFE3EF 0%, var(--powder) 22%, var(--accent) 52%, #8E0F4A 100%);
  box-shadow: inset -8px -10px 18px rgba(0,0,0,0.3), 0 12px 30px rgba(214,0,106,0.45);
  display: flex; align-items: center; justify-content: center; transform: rotate(-12deg);
}
.big-coin span {
  width: 92px; height: 92px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 700; font-size: 46px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.pack {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 68px;
  border-radius: 20px; background: var(--card); border: 2px solid transparent; text-align: left;
}
.pack[aria-checked="true"] { border-color: var(--accent); }
.radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #6E6668; }
.pack[aria-checked="true"] .radio { border: 7px solid var(--accent); background: #fff; }
.pack-amount { font-family: var(--head); font-weight: 700; font-size: 22px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 4px; border: 0; background: transparent; font-weight: 700; font-size: 15px; text-align: left;
}
.faq-q .plus {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(232,72,143,0.16); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; line-height: 1; transition: transform .2s;
}
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-a { margin: 0 4px 16px; font-size: 14px; line-height: 1.45; color: var(--text-2); }

/* ---------------------------------------------------------------- нижнее меню */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  max-width: 480px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  height: calc(var(--nav-h) + var(--safe-bottom)); padding: 8px 8px calc(8px + var(--safe-bottom));
  background: var(--card); border-top: 1px solid rgba(255,255,255,0.06);
}
.nav[hidden] { display: none; }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 800; }

/* ---------------------------------------------------------------- тост */
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px); z-index: 20;
  max-width: 448px; margin: 0 auto; padding: 14px 16px; border-radius: 16px;
  background: #2E2729; border: 1px solid rgba(232,72,143,0.4); font-size: 14px; line-height: 1.4;
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.on { opacity: 1; transform: none; }
