/* Career Radar — мини-приложение (Telegram, ВКонтакте, MAX) */
:root {
  --bg: #07080f;
  --bg-2: #0d1020;
  --card: rgba(255, 255, 255, 0.05);
  --card-2: rgba(255, 255, 255, 0.085);
  --solid: #121628;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef0fa;
  --text-2: #b5bad1;
  --muted: #7e839c;
  --violet: #8b6cff;
  --blue: #4b8bff;
  --cyan: #19d3ff;
  --green: #2ee6a8;
  --amber: #ffbf47;
  --red: #ff5c7c;
  --accent: linear-gradient(135deg, #8b6cff 0%, #4b8bff 55%, #19d3ff 100%);
  --accent-soft: linear-gradient(135deg, rgba(139, 108, 255, 0.2), rgba(25, 211, 255, 0.12));
  --on-accent: #fff;
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8);
  --radius: 20px;
  --radius-sm: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --safe-t: max(env(safe-area-inset-top, 0px), var(--inset-t, 0px));
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--inset-b, 0px));
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f4fa;
  --bg-2: #e9ecf7;
  --card: #ffffff;
  --card-2: #f1f3fb;
  --solid: #ffffff;
  --line: rgba(20, 24, 60, 0.08);
  --line-2: rgba(20, 24, 60, 0.16);
  --text: #12152a;
  --text-2: #3d4363;
  --muted: #7a809c;
  --green: #0faa78;
  --amber: #c98a00;
  --red: #e0335a;
  --accent-soft: linear-gradient(135deg, rgba(139, 108, 255, 0.14), rgba(25, 211, 255, 0.1));
  --shadow: 0 14px 40px -24px rgba(30, 40, 90, 0.35);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- фон ---------- */
.bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; }
.glow.g1 { width: 420px; height: 420px; background: radial-gradient(circle, #5a3dff, transparent 65%); top: -200px; left: -120px; }
.glow.g2 { width: 380px; height: 380px; background: radial-gradient(circle, #0fb6ff, transparent 65%); top: 120px; right: -220px; opacity: 0.25; }
:root[data-theme="light"] .glow { opacity: 0.16; }

/* ---------- радар (знак) ---------- */
.radar { position: relative; border-radius: 50%; flex: none;
  background: radial-gradient(circle, rgba(25, 211, 255, 0.16), transparent 70%); }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(25, 211, 255, 0.35); }
.radar i:nth-child(2) { inset: 22%; border-color: rgba(139, 108, 255, 0.45); }
.radar i:nth-child(3) { inset: 42%; background: var(--cyan); border: 0; box-shadow: 0 0 12px var(--cyan); }
.radar b { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(25, 211, 255, 0.55), transparent 28%);
  animation: sweep 2.6s linear infinite; mask: radial-gradient(circle, #000 69%, transparent 70%); }
.radar.small { width: 28px; height: 28px; }
.radar.small i:nth-child(2) { inset: 38%; background: var(--cyan); border: 0; box-shadow: 0 0 8px var(--cyan); }
.radar.big { width: 120px; height: 120px; }
@keyframes sweep { to { transform: rotate(360deg); } }

/* ---------- загрузка ---------- */
.boot { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.boot-title { font: 700 20px/1.2 var(--display); letter-spacing: 0.01em; margin-top: 10px; }
.boot-sub { color: var(--muted); max-width: 320px; }
.boot .btn { margin-top: 6px; }

/* ---------- каркас ---------- */
.app { position: relative; z-index: 1; min-height: 100vh; padding-bottom: calc(76px + var(--safe-b)); }
.top { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line); padding-top: calc(12px + var(--safe-t)); }
.vk-mobile .top { padding-right: 104px; }
.top-title { flex: 1; font: 700 16px/1.2 var(--display); letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--card); margin-right: -2px; }
.plan-pill { padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--card-2); border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.plan-pill.paid { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.view { padding: 14px 16px 24px; max-width: 640px; margin: 0 auto; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 6px 10px calc(6px + var(--safe-b)); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 500; color: var(--muted); border-radius: 12px; transition: color 0.2s; }
.tabs button.on { color: var(--text); }
.tabs button.on svg { color: var(--cyan); }
:root[data-theme="light"] .tabs button.on svg { color: var(--blue); }
.app.wizard .tabs { display: none; }
.app.wizard { padding-bottom: 24px; }

/* ---------- общие блоки ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card + .card, .section + .section { margin-top: 12px; }
.section { margin-top: 18px; }
.h { font: 700 13px/1.2 var(--font); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 4px 10px; }
.card-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 12px; }
.mt-s { margin-top: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 14px; font-weight: 600; background: var(--card-2); border: 1px solid var(--line-2); transition: transform 0.12s, opacity 0.2s; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 10px 30px -12px rgba(75, 139, 255, 0.8); }
.btn.danger { color: var(--red); }
.btn.block { width: 100%; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 11px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn.busy { pointer-events: none; opacity: 0.75; }
.btn.busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--cyan); font-weight: 600; font-size: 14px; text-align: left; }
:root[data-theme="light"] .link { color: var(--blue); }

/* ---------- лента ---------- */
.hero { position: relative; overflow: hidden; background: var(--accent-soft); border: 1px solid var(--line-2); }
.hero .radar.mid { width: 64px; height: 64px; }
.hero-num { font: 700 32px/1 var(--display); letter-spacing: -0.01em; }
.hero-label { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.stat b { display: block; font-size: 17px; }
.stat span { font-size: 11px; color: var(--muted); }
.lock { margin-top: 12px; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--amber) 12%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); }
.lock-icon { font-size: 22px; }
.lock b { color: var(--amber); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.seg button { padding: 8px 6px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s; }
.seg button.on { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button em { font-style: normal; opacity: 0.6; margin-left: 4px; font-weight: 500; }

.list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.vac { display: flex; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  text-align: left; width: 100%; transition: transform 0.15s, opacity 0.3s, max-height 0.35s; animation: rise 0.35s both; }
.vac:active { transform: scale(0.99); }
.vac.gone { opacity: 0; transform: translateX(40px); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.ring { --p: 50; --c: var(--cyan); width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--solid); }
.ring span { position: relative; font-weight: 700; font-size: 14px; }
.ring.hot { --c: var(--green); }
.ring.warm { --c: var(--cyan); }
.ring.cool { --c: var(--violet); }
.ring.big { width: 64px; height: 64px; }
.ring.big span { font-size: 18px; }
.vac-title { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vac-sub { color: var(--muted); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--card-2); color: var(--text-2); border: 1px solid var(--line); max-width: 100%; }
.chip.money { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); }
.chip.ok { color: var(--cyan); }
:root[data-theme="light"] .chip.ok { color: var(--blue); }
.chip.miss { opacity: 0.7; text-decoration: line-through; text-decoration-color: var(--muted); }
.chip.tag { background: var(--accent-soft); color: var(--text); }
.mark { font-size: 13px; margin-left: auto; }

.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty .radar { margin: 0 auto 14px; width: 84px; height: 84px; }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }
.skeleton { height: 92px; border-radius: var(--radius); background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- шторка ---------- */
.sheet { position: fixed; inset: 0; z-index: 10; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); animation: fade 0.2s both; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-2); border-radius: 24px 24px 0 0; border-top: 1px solid var(--line-2);
  padding: 8px 18px calc(18px + var(--safe-b)); animation: up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) both; max-width: 640px; margin: 0 auto; }
:root[data-theme="light"] .sheet-panel { background: var(--bg); }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 14px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet h2 { font: 700 19px/1.3 var(--font); margin: 0; }
.why { margin-top: 14px; }
.why li { margin: 4px 0; color: var(--text-2); font-size: 14px; }
.why ul { padding-left: 18px; margin: 6px 0 0; }
.desc { white-space: pre-line; font-size: 14px; color: var(--text-2); max-height: 150px; overflow: hidden; position: relative; }
.desc.open { max-height: none; }
.desc:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: linear-gradient(transparent, var(--bg-2)); }
:root[data-theme="light"] .desc:not(.open)::after { background: linear-gradient(transparent, var(--bg)); }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text-2); }
.act .e { font-size: 20px; line-height: 1; }
.act.on { background: var(--accent-soft); border-color: var(--line-2); color: var(--text); }

/* ---------- формы ---------- */
.field { margin-top: 14px; }
.field:first-child { margin-top: 0; }
.label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.input, .textarea, .select { width: 100%; padding: 12px 14px; border-radius: 13px; background: var(--card-2); border: 1px solid var(--line); outline: none; transition: border-color 0.2s; }
.input:focus, .textarea:focus { border-color: var(--violet); }
.textarea { min-height: 150px; resize: vertical; line-height: 1.45; }
.chip-edit { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 13px; background: var(--card-2); border: 1px solid var(--line); }
.chip-edit .chip { background: var(--card); padding: 5px 6px 5px 10px; font-size: 13px; }
.chip-edit .chip button { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 15px; line-height: 1; }
.chip-edit input { flex: 1; min-width: 120px; border: 0; outline: 0; background: none; padding: 5px 6px; font-size: 14px; }
.range { width: 100%; margin: 10px 0 6px; accent-color: var(--cyan); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background 0.2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(20px); }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.stepper button { width: 34px; height: 34px; border-radius: 9px; font-size: 18px; font-weight: 600; background: var(--card); }
.stepper b { min-width: 52px; text-align: center; font-size: 14px; }
.opt-list { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: left; width: 100%; transition: border-color 0.2s, background 0.2s; }
.opt .e { font-size: 24px; }
.opt.on { border-color: var(--violet); background: var(--accent-soft); }
.opt small { display: block; color: var(--muted); font-size: 12.5px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.mess-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; }
.mess-icon.tg { background: linear-gradient(135deg, #2aabee, #229ed9); }
.mess-icon.vk { background: linear-gradient(135deg, #0077ff, #005ed1); }
.mess-icon.max { background: linear-gradient(135deg, #7b5cff, #b44cff); }

/* ---------- рынок ---------- */
.market { margin-top: 10px; }
.mbar { position: relative; height: 10px; border-radius: 6px; background: var(--card-2); margin: 26px 4px 26px; }
.mbar .iqr { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--accent); opacity: 0.85; }
.mbar .med { position: absolute; top: -5px; width: 3px; height: 20px; border-radius: 2px; background: var(--text); transform: translateX(-50%); }
.mbar .you { position: absolute; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); border: 3px solid var(--bg-2); transform: translate(-50%, 5px); }
.mbar .t { position: absolute; font-size: 11px; color: var(--muted); white-space: nowrap; transform: translateX(-50%); }
.mbar .t.up { bottom: 16px; }
.mbar .t.down { top: 16px; }
.mbar .t.med-t { color: var(--text); font-weight: 600; }
.money-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.money-opts button { padding: 8px 12px; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.money-opts button.on { border-color: var(--violet); background: var(--accent-soft); }

/* ---------- тарифы ---------- */
.plans { display: grid; gap: 10px; }
.plan { position: relative; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.plan.cur { border-color: var(--violet); background: var(--accent-soft); }
.plan-name { font: 700 15px/1.2 var(--display); }
.plan-price { font-weight: 700; font-size: 18px; }
.plan-price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.plan ul, .plan-feats { margin: 10px 0 0; padding: 0; list-style: none; }
.plan li, .plan-feats li { padding-left: 22px; position: relative; font-size: 13.5px; color: var(--text-2); margin: 5px 0; }
.plan li::before, .plan-feats li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 700; }
.badge { display: inline-block; margin-bottom: 8px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; }

.sub-card .big { font: 700 20px/1.2 var(--display); margin: 2px 0 4px; }
.periods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.period { position: relative; text-align: left; padding: 14px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line);
  transition: border-color 0.2s, background 0.2s; }
.period.on { border-color: var(--violet); background: var(--accent-soft); }
.period b { display: block; font-size: 18px; margin-top: 4px; }
.period span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.period .save { position: absolute; top: -9px; right: 10px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--green); color: #fff; }
.pay-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.stars-btn { background: linear-gradient(135deg, #ffb800, #ff8a00); color: #1b1200; border: none; }
.pay-wait { text-align: center; padding: 10px 0 4px; }
.pay-wait .radar { margin: 6px auto 16px; width: 96px; height: 96px; }
.pay-ok { text-align: center; padding: 14px 0 4px; }
.pay-ok .big-emoji { font-size: 54px; line-height: 1; animation: pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }
.history .list-row { padding: 10px 0; font-size: 14px; }
.history .st { font-size: 12px; color: var(--muted); }
.history .st.succeeded { color: var(--green); }

/* ---------- страница сервиса (обычный браузер) ---------- */
.landing { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 40px 16px 32px; }
.land-hero { text-align: center; }
.land-hero .radar { margin: 0 auto 18px; }
.land-hero h1 { font: 700 34px/1.15 var(--display); margin: 0; }
.land-lead { font-size: 17px; color: var(--text-2); max-width: 520px; margin: 12px auto 0; line-height: 1.5; }
.land-bots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.land-bots .btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.land-bots .mess-icon { width: 26px; height: 26px; border-radius: 8px; font-size: 10px; }
.land-section { margin-top: 40px; }
.land-section h2 { font: 700 20px/1.2 var(--display); margin: 0 0 14px; }
.land-steps { display: grid; gap: 10px; }
@media (min-width: 640px) { .land-steps, .land-section .plans { grid-template-columns: repeat(3, 1fr); } }
.land-num { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 700;
  background: var(--accent); color: #fff; margin-bottom: 10px; }
.land-foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2);
  display: grid; gap: 6px; text-align: center; }
.land-foot a { color: inherit; }

/* ---------- анкета ---------- */
.steps { display: flex; gap: 6px; margin: 2px 0 16px; }
.steps i { flex: 1; height: 4px; border-radius: 3px; background: var(--line-2); }
.steps i.on { background: var(--accent); }
.wiz-title { font: 700 22px/1.25 var(--display); margin: 4px 0 8px; letter-spacing: -0.01em; }
.wiz-sub { color: var(--text-2); margin-bottom: 16px; }
.wiz-foot { position: sticky; bottom: 0; padding: 14px 0 calc(6px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 30%); margin-top: 8px; }
.thinking { text-align: center; padding: 40px 10px; }
.thinking .radar { margin: 0 auto 18px; width: 110px; height: 110px; }
.thinking-lines { color: var(--text-2); min-height: 24px; transition: opacity 0.3s; }
.celebrate { text-align: center; padding: 30px 6px 10px; }
.celebrate .num { font: 700 56px/1 var(--display); background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

.code { font: 700 38px/1 var(--display); letter-spacing: 0.14em; text-align: center; padding: 20px 0 8px; }

/* ---------- уведомление ---------- */
.toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px);
  padding: 11px 16px; border-radius: 14px; background: var(--solid); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 500; animation: toast 0.25s both; text-align: center; }
.toast.err { border-color: color-mix(in srgb, var(--red) 60%, transparent); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
