/* Inter (Google Fonts) — лежит у нас, без запросов к сторонним доменам */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/inter-cyrillic.woff2?v=2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/inter-latin.woff2?v=2") 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;
}

/* Фирменная палитра AdRadar — графит и зелёный, одинаковая в светлой и тёмной теме Telegram
   (как баннеры и шапка бота, design/BRAND.md) */
:root {
  --bg: #121816;
  --bg2: #0b0f0e;
  --card: #151c1a;
  --text: #e8f0ec;
  --hint: #8fa69c;
  --link: #1fe08a;
  --accent: #1fe08a;
  --accent-text: #0b0f0e;
  --sep: rgba(143, 166, 156, .18);
  --soft: rgba(31, 224, 138, .12);
  --radius: 16px;
  --t-s: #ffb547; --t-a: #1fe08a; --t-b: #4aa3ff; --t-c: #a585ff; --t-d: #ff6b6b;
  color-scheme: dark;
}
html, body { background: radial-gradient(140% 60% at 50% -10%, #10261d 0%, #0b0f0e 60%) fixed, #0b0f0e; }
.card, .tile, .hero, .tabs, .src-head, .chip { border: 1px solid rgba(31, 224, 138, .07); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; color: var(--text); }
body { font: 15px/1.45 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ---------- иконки ---------- */
.ic { width: 1.05em; height: 1.05em; flex: none; display: block; }
.lab { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.lab > span { min-width: 0; }
.hero-kicker .lab { gap: 6px; }
.empty-icon .ic { width: 44px; height: 44px; margin: 0 auto; color: var(--hint); stroke-width: 1.5; }
.chev .ic { width: 20px; height: 20px; }
.trust-ic .ic { width: 16px; height: 16px; margin-top: 2px; }
.trust-fact.good .trust-ic { color: var(--t-a); }
.trust-fact.neutral .trust-ic { color: var(--hint); }
.why-toggle, .trust-more { display: inline-flex; align-items: center; gap: 4px; }
.why-point-t .ic { color: var(--link); }
.why > b .ic { color: #e0a100; }
.score .lab { gap: 4px; }
.score { display: inline-flex; gap: 10px; }
.ghost .lock .ic { width: 18px; height: 18px; color: var(--hint); }
.btn .lab { justify-content: center; }
#app { max-width: 720px; overflow-x: clip; margin: 0 auto; padding: 12px 12px calc(28px + env(safe-area-inset-bottom)); }
body.has-main #app { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
a { color: var(--link); text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

/* ---------- шапка ---------- */
.hero { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.hero-kicker { color: var(--hint); font-size: 13px; }
.hero-title { font-size: 20px; font-weight: 700; margin: 2px 0 10px; letter-spacing: -0.2px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stat { background: var(--bg2); border-radius: 12px; padding: 8px 6px; text-align: center; min-height: 54px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.stat b { display: block; font-size: 17px; }
.stat span { color: var(--hint); font-size: 11px; }
.stat.s b { color: var(--t-s); } .stat.a b { color: var(--t-a); } .stat.b b { color: var(--t-b); }

/* ---------- источник: lolz или биржа ---------- */
.src { font-size: 10px; font-weight: 800; letter-spacing: .6px; padding: 3px 7px; border-radius: 6px; flex: none; }
.src.src-lolz { color: #1fe08a; background: color-mix(in srgb, #1fe08a 14%, transparent); }
.src.src-ex { color: #4aa3ff; background: color-mix(in srgb, #4aa3ff 14%, transparent); }
.src-head { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: var(--radius);
  padding: 12px 14px; margin: 16px 0 10px; border-left: 4px solid; }
.src-head.src-lolz { border-left-color: #1fe08a; }
.src-head.src-ex { border-left-color: #4aa3ff; }
.src-head .src { font-size: 11px; padding: 4px 8px; }
.src-title { font-weight: 700; font-size: 16px; }
.src-sub { color: var(--hint); font-size: 12px; margin-top: 1px; }
.hero-sub { margin: 0; color: var(--hint); font-size: 13px; }
.src-note-t { font-weight: 700; font-size: 15px; }
.src-note-t .ic { color: var(--link); }
.src-note-x { margin: 6px 0 0; color: var(--hint); font-size: 14px; }
.src-note .actions { margin-top: 10px; }
.test-banner { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left;
  font-weight: 600; color: var(--link); padding: 12px 14px; }

/* ---------- вкладки lolz / биржи ---------- */
.tabs { display: flex; gap: 4px; background: var(--card); border-radius: 12px; padding: 4px; margin-bottom: 10px; }
.tab { flex: 1; padding: 9px 8px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--hint); }
.tab.on { background: var(--accent); color: var(--accent-text); }
.ex-terms { margin-top: 8px; }

/* ---------- фильтры ---------- */
.toolbar { position: sticky; top: 0; z-index: 5; background: var(--bg2); padding: 6px 0 8px; margin: 0 -12px;
  padding-left: 12px; padding-right: 12px; }
.search { width: 100%; border: 0; outline: 0; background: var(--card); color: var(--text); border-radius: 12px;
  padding: 10px 12px; font: inherit; margin-bottom: 8px; }
.search::placeholder { color: var(--hint); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--card); font-size: 13px; white-space: nowrap; }
.chip.on { background: var(--accent); color: var(--accent-text); }
.sortbar { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; color: var(--hint);
  font-size: 13px; }
.sortbar select { background: transparent; color: var(--link); border: 0; font: inherit; outline: 0; }

/* ---------- карточка ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
  animation: rise .25s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.tier { font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 8px; color: #0b0f0e; letter-spacing: .3px; }
.tier.S { background: var(--t-s); } .tier.A { background: var(--t-a); } .tier.B { background: var(--t-b); }
.tier.C { background: var(--t-c); } .tier.D { background: var(--t-d); } .tier.none { background: var(--hint); }
.score { font-size: 12px; color: var(--hint); }
.badge-new { font-size: 11px; font-weight: 700; color: var(--t-a); }
.badge-closed { font-size: 11px; font-weight: 700; color: var(--t-d); }
.fb-note { font-weight: 600; font-style: normal; color: var(--t-a); }
.card-title { font-weight: 650; font-size: 16px; line-height: 1.3; margin-bottom: 6px; word-break: break-word; }
.meta { color: var(--hint); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
.prices { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.price { background: var(--soft); color: var(--link); font-weight: 600; font-size: 13px; padding: 3px 9px; border-radius: 8px; }
.seller { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pill { font-size: 12px; padding: 3px 8px; border-radius: 8px; background: var(--bg2); }
.pill.warn { color: var(--t-d); }
.pill.good { color: var(--t-a); }
.why { background: var(--bg2); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.why b { display: block; font-size: 12px; color: var(--hint); font-weight: 600; margin-bottom: 2px; }
.why-toggle { display: inline-flex; margin-top: 8px; color: var(--link); font-weight: 600; font-size: 13px; padding: 0; }
.why-full { margin-top: 10px; border-top: 1px solid var(--sep); padding-top: 4px; }
.why-point { padding: 7px 0; }
.why-point + .why-point { border-top: 1px dashed var(--sep); }
.why-point-t { font-size: 12px; font-weight: 700; color: var(--hint); margin-bottom: 2px; }
.why-point-x { font-size: 14px; }
.trust { margin-top: 8px; background: var(--bg2); border-radius: 12px; padding: 10px 12px; }
.trust-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; text-align: left; padding: 0; }
.trust-badge { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 8px; }
.trust-badge.good { color: var(--t-a); background: color-mix(in srgb, var(--t-a) 14%, transparent); }
.trust-badge.mid { color: var(--t-b); background: color-mix(in srgb, var(--t-b) 14%, transparent); }
.trust-badge.risk { color: var(--t-d); background: color-mix(in srgb, var(--t-d) 14%, transparent); }
.trust-more { color: var(--link); font-weight: 600; font-size: 13px; }
.trust-body { margin-top: 8px; border-top: 1px solid var(--sep); padding-top: 6px; }
.trust-fact { display: flex; gap: 8px; font-size: 14px; padding: 4px 0; }
.trust-fact.warn { color: var(--t-d); }
.trust-ic { flex: none; width: 18px; text-align: center; }
.trust-sub { font-size: 12px; font-weight: 700; color: var(--hint); margin: 10px 0 4px; }
.review { padding: 6px 0; }
.review + .review { border-top: 1px dashed var(--sep); }
.review-meta { font-size: 12px; color: var(--hint); }
.review-text { font-size: 14px; font-style: italic; word-break: break-word; }
.note { color: var(--hint); font-size: 13px; margin-top: 8px; font-style: italic; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; text-align: center; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14px;
  background: var(--soft); color: var(--link); }
.btn.primary { background: var(--accent); color: var(--accent-text); }

/* ---------- закрытые карточки: данных нет вообще, только тир ---------- */
.locked-head { text-align: center; padding: 18px 12px 6px; }
.locked-head h3 { margin: 0 0 4px; font-size: 18px; }
.locked-head p { margin: 0; color: var(--hint); font-size: 14px; }
.card.ghost { position: relative; overflow: hidden; user-select: none; pointer-events: none; }
.ghost .bar { height: 12px; border-radius: 6px; background: var(--bg2); margin: 8px 0; filter: blur(1.5px); }
.ghost .bar.w90 { width: 90%; height: 16px; } .ghost .bar.w60 { width: 60%; } .ghost .bar.w75 { width: 75%; }
.ghost .bar.w40 { width: 40%; }
.ghost .lock { position: absolute; right: 14px; top: 12px; font-size: 18px; opacity: .7; }
.more { text-align: center; color: var(--hint); font-size: 13px; padding: 4px 0 12px; }

/* ---------- списки и состояния ---------- */
.proj { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; }
.proj-title { font-weight: 600; }
.proj-sub { color: var(--hint); font-size: 13px; }
.chev { color: var(--hint); font-size: 20px; }
.empty { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 44px; }
.empty-title { margin: 10px 0 6px; font-size: 19px; }
.empty-text { color: var(--hint); margin: 0; }
.loader { display: flex; justify-content: center; gap: 6px; padding: 80px 0; }
.loader span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1s infinite ease-in-out; }
.loader span:nth-child(2) { animation-delay: .15s; } .loader span:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }
.pay-hint { text-align: center; color: var(--hint); font-size: 13px; margin: 6px 0 14px; }
.fallback-pay { display: block; width: 100%; margin: 6px 0 14px; padding: 14px; }

/* «Показать ещё» под топом подборки */
.more-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; margin: 4px 0 12px;
  background: var(--card); color: var(--link); }
.more-sub { font-size: 12px; font-weight: 500; color: var(--hint); }
/* «Написать рекламный пост» */
.post-btn { background: var(--soft); color: var(--link); }
/* нижний лист с текстом поста */
body.no-scroll { overflow: hidden; }
.sheet-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; }
.sheet { width: 100%; max-height: 85vh; overflow-y: auto; background: var(--bg); border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.sheet-head { font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.sheet-hint { color: var(--hint); font-size: 13px; margin: 10px 0 0; text-align: center; }
.post-text { white-space: pre-wrap; background: var(--bg2); border-radius: 12px; padding: 12px; font-size: 14px;
  user-select: text; -webkit-user-select: text; }

/* ---------- маркет ---------- */
.market-note { margin: 0 0 10px; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.field-label { font-weight: 600; font-size: 14px; }
.field-hint { color: var(--hint); font-size: 13px; }
.field-hint .actions { margin-top: 8px; }
.post-input { width: 100%; min-height: 96px; resize: vertical; font: inherit; line-height: 1.4; padding: 10px 12px; }
.deal-times { flex-wrap: wrap; row-gap: 4px; }
.deal-status { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--link); }
.deal-status.deal-completed { background: color-mix(in srgb, var(--t-a) 15%, transparent); color: var(--t-a); }
.deal-status.deal-disputed, .deal-status.deal-refunded { background: color-mix(in srgb, var(--t-d) 15%, transparent); color: var(--t-d); }
.btn:disabled { opacity: .5; cursor: default; }
.card .chip { background: var(--bg2); }
.card .chip.on { background: var(--accent); color: var(--accent-text); }
.card .search { background: var(--bg2); }
.post-box .lab { font-weight: 600; color: var(--t-a); }
.post-preview { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); white-space: pre-wrap; font-size: 14px; max-height: 180px; overflow: hidden; }
.stats.mk { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }

/* «почему подборка платная» под закрытыми площадками */
.locked-why { color: var(--hint); font-size: 13px; margin-top: 6px; }

/* ---------- главная: фирменная карточка AdRadar (одинаковая в светлой и тёмной теме) ---------- */
.brand { position: relative; overflow: hidden; border-radius: var(--radius); padding: 20px 18px 16px; margin-bottom: 10px;
  color: #e8f0ec; background: radial-gradient(120% 140% at 0% 0%, #12392a 0%, #0b0f0e 55%), #0b0f0e; }
.brand::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid rgba(31, 224, 138, .25); box-shadow: 0 0 0 28px rgba(31, 224, 138, .05), 0 0 0 56px rgba(31, 224, 138, .03); }
.brand-name { font-size: 30px; font-weight: 800; letter-spacing: -0.6px; line-height: 1; }
.brand-accent { color: #1fe08a; text-shadow: 0 0 18px rgba(31, 224, 138, .45); }
.brand-sub { color: #a0b6ad; font-size: 14px; margin: 6px 0 16px; }
.brand-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; z-index: 1; }
.brand-fig { background: rgba(255, 255, 255, .05); border: 1px solid rgba(31, 224, 138, .18); border-radius: 12px; padding: 9px 8px; }
.brand-fig b { display: block; font-size: 18px; font-weight: 800; color: #fff; }
.brand-fig span { color: #a0b6ad; font-size: 11px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.tile { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--card); border-radius: 14px;
  padding: 12px; min-width: 0; }
.tile-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--soft); color: var(--accent); }
.tile-ic .ic { width: 18px; height: 18px; }
.tile-t { display: flex; flex-direction: column; min-width: 0; }
.tile-t b { font-size: 14px; line-height: 1.25; }
.tile-t span { color: var(--hint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.main { background: #1fe08a; color: #0b0f0e; }
.tile.main .tile-ic { background: rgba(11, 15, 14, .12); color: #0b0f0e; }
.tile.main .tile-t span { color: rgba(11, 15, 14, .7); }
.section-head { font-size: 13px; font-weight: 700; color: var(--hint); text-transform: uppercase; letter-spacing: .6px;
  margin: 0 4px 8px; }

/* ---------- баланс и пополнение ---------- */
.section-head.gap { margin-top: 18px; }
.method { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; }
.method.on { border-color: rgba(31, 224, 138, .55); background: color-mix(in srgb, #1fe08a 6%, var(--card)); }
.radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--hint); }
.radio.on { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--card); background: var(--accent); }
.coins { margin: -2px 0 12px; }
.tx { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--sep);
  font-size: 14px; color: var(--hint); }
.tx b { color: var(--text); } .tx b.plus { color: var(--t-a); }
.loader.inline { padding: 14px 0 4px; justify-content: flex-start; }

/* ---------- кнопка «наверх» ---------- */
.to-top { position: fixed; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 20; width: 44px; height: 44px;
  border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .2s, transform .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top .ic { width: 22px; height: 22px; }
.toolbar { box-shadow: 0 8px 12px -10px rgba(0, 0, 0, .8); }

/* ---------- карточка площадки в маркете: явная цена ---------- */
.lz-prices { margin-top: 10px; background: var(--bg2); border: 1px solid var(--sep); border-radius: 14px; padding: 6px; }
.lz-one { display: flex; align-items: baseline; gap: 10px; padding: 6px 8px; }
.lz-one b { font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; }
.lz-one span { color: var(--hint); font-size: 13px; }
.lz-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 8px; border-radius: 10px; }
.lz-opt + .lz-opt { border-top: 1px solid var(--sep); }
.lz-opt.on { background: var(--soft); }
.lz-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--hint); }
.lz-opt.on .lz-dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg2); }
.lz-l { flex: 1; min-width: 0; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.lz-opt b { flex: none; font-size: 15px; font-weight: 800; color: var(--accent); }
.lz-ask { padding: 8px; color: var(--text); font-size: 14px; }
.lz-foot { margin: 6px 2px 0; color: var(--hint); font-size: 12px; }
.card.lz .card-title { margin-top: 2px; }
.teaser-lock { margin-top: 10px; color: var(--hint); font-size: 13px; }
.teaser-lock svg { color: var(--accent); }
.lz-aud { margin-top: 6px; color: var(--text); font-size: 14px; font-weight: 600; }
.lz-aud svg { color: var(--accent); }
.card.lz.picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cart { padding: 4px 14px; }
.cart-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.cart-row + .cart-row { border-top: 1px solid var(--sep); }
.cart-main { flex: 1; min-width: 0; }
.cart-t { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.cart-o { color: var(--hint); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.cart-p { flex: none; font-size: 15px; font-weight: 800; color: var(--accent); }
.cart-del { flex: none; display: inline-flex; padding: 6px; border-radius: 8px; color: var(--hint); }
.cart-total { font-weight: 700; }
.cart-total span { flex: 1; }
.cart-total b { font-size: 18px; font-weight: 800; color: var(--accent); }
.lz-social { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--t-s); }

/* ---------- главная (макет 17.10): шапка с балансом, карточка «следующий шаг», быстрые действия, проекты ---------- */
.h-top { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 2px; }
.h-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.3px; }
.h-logo b { color: var(--accent); font-weight: 800; }
.h-radar { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent);
  box-shadow: 0 0 14px rgba(31, 224, 138, .45); }
.h-radar::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px solid rgba(31, 224, 138, .55); }
.h-radar::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--accent);
  transform-origin: 0 50%; animation: h-sweep 3.2s linear infinite; }
@keyframes h-sweep { to { transform: rotate(360deg); } }
.h-bal { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 700;
  color: var(--text); background: var(--card); border: 1px solid rgba(31, 224, 138, .14); }
.h-bal-plus { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-text); }
.h-proof { margin: 2px 0 16px 40px; font-size: 12.5px; color: var(--hint); }
.h-proof b { color: var(--text); font-weight: 600; }

.h-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 18px 18px 16px; margin-bottom: 16px;
  background: linear-gradient(160deg, #173326 0%, #101a15 55%, #0f1512 100%); border: 1px solid rgba(31, 224, 138, .28);
  box-shadow: 0 10px 30px -12px rgba(31, 224, 138, .35); }
.h-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  pointer-events: none; background: repeating-radial-gradient(circle, rgba(31, 224, 138, .14) 0 1px, transparent 1px 22px); }
.h-kick { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .6px; }
.h-kick span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.h-hero h1 { font-size: 21px; line-height: 1.2; margin: 8px 0 4px; letter-spacing: -.2px; position: relative; }
.h-hero p { margin: 0; color: #a9bcb4; font-size: 13.5px; position: relative; }
.h-tiers { display: flex; gap: 6px; margin: 14px 0 2px; position: relative; }
.h-tier { flex: 1; text-align: center; padding: 8px 4px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .06); }
.h-tier b { display: block; font-size: 19px; } .h-tier span { font-size: 11px; color: var(--hint); }
.h-tier-S b { color: var(--t-s); } .h-tier-A b { color: var(--t-a); } .h-tier-B b { color: var(--t-b); }
.h-tier-free { border-color: rgba(31, 224, 138, .4); } .h-tier-free b { color: var(--accent); }
.h-cta { position: relative; display: block; width: 100%; margin-top: 14px; padding: 13px; border: 0; border-radius: 14px;
  font-family: inherit; font-size: 15.5px; font-weight: 700; color: var(--accent-text); background: var(--accent);
  box-shadow: 0 6px 18px -6px rgba(31, 224, 138, .7); }
.h-cta:active, .h-q:active, .h-p:active, .h-sell:active { transform: scale(.98); }
.h-foot { position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: var(--hint); }
.h-foot b { color: var(--text); }
.h-all { background: none; border: 0; padding: 0; color: var(--accent); font-family: inherit; font-size: 12.5px; font-weight: 600; }
.h-hero .loader.inline { position: relative; margin: 12px 0 0; }

.h-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.h-q { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px 12px; border-radius: 18px;
  color: var(--text); background: var(--card); border: 1px solid rgba(31, 224, 138, .10); font-family: inherit; }
.h-q-ic { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 13px;
  color: var(--accent); background: var(--soft); font-size: 21px; }
.h-q.amber .h-q-ic { color: var(--t-s); background: rgba(255, 181, 71, .12); }
.h-q b { font-size: 13.5px; } .h-q > span:last-child { font-size: 11.5px; color: var(--hint); }

.h-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 10px; }
.h-head b { font-size: 16px; } .h-head span { font-size: 12.5px; color: var(--hint); }
.h-p { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin-bottom: 8px; text-align: left;
  color: var(--text); background: var(--card); border: 1px solid rgba(31, 224, 138, .10); border-radius: 16px; font-family: inherit; }
.h-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 800; font-size: 15px; }
.h-p-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.h-p-mid b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-p-mid span { font-size: 12px; color: var(--hint); }
.h-chip { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.h-av-test, .h-chip-test { color: var(--accent); background: rgba(31, 224, 138, .14); }
.h-av-open, .h-chip-open { color: var(--t-b); background: rgba(74, 163, 255, .14); }
.h-av-run, .h-chip-run { color: var(--t-s); background: rgba(255, 181, 71, .13); }
.h-av-none, .h-chip-none { color: var(--hint); background: rgba(255, 255, 255, .07); }

.h-sell { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 14px; text-align: left;
  border-radius: 18px; font-family: inherit; color: var(--text);
  background: linear-gradient(120deg, rgba(255, 181, 71, .13), rgba(255, 181, 71, .03)); border: 1px solid rgba(255, 181, 71, .25); }
.h-sell-e { font-size: 24px; } .h-sell-t { display: flex; flex-direction: column; }
.h-sell-t b { font-size: 14px; } .h-sell-t span { font-size: 12px; color: #c9b48f; }
.h-sell-go { margin-left: auto; color: var(--t-s); font-size: 20px; }
.h-tk { margin-top: 12px; background: linear-gradient(120deg, rgba(31, 224, 138, .16), rgba(31, 224, 138, .04));
  border-color: rgba(31, 224, 138, .35); }
.h-tk .h-sell-t span { color: var(--hint); }
/* партнёрский баннер на главной (asyncc.click) */
.h-promo { display: block; width: 100%; margin-top: 16px; padding: 0; border: 1px solid rgba(64, 224, 255, .25);
  border-radius: 18px; overflow: hidden; background: #0a0c1e; cursor: pointer; aspect-ratio: 1080 / 460; }
.h-promo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.h-promo:active { transform: scale(.98); }
.tk-note { margin-top: 12px; }
/* медиаплан (25.10) */
.plan-budget .card-sub { color: var(--hint); font-size: 13px; margin: 4px 0 10px; line-height: 1.4; }
.plan-own { display: flex; gap: 8px; margin-top: 10px; }
.plan-own .search { flex: 1; min-width: 0; }
.plan-own .btn { flex: none; }
.plan-wave-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 2px 8px; }
.plan-wave-sum { font-size: 17px; }
.plan-price { margin-left: auto; font-size: 15px; }
.plan-ptext { color: var(--hint); font-size: 13px; margin-top: 4px; }
.plan-row.masked .card-title { color: var(--hint); }
.plan-lists { margin-top: 14px; flex-wrap: wrap; }
.plan-wait { text-align: center; padding: 22px 16px; }
.plan-wait .loader.inline { justify-content: center; margin-bottom: 10px; }
.plan-wait .card-sub { color: var(--hint); font-size: 13px; margin-top: 6px; line-height: 1.45; }
.plan-stats .stat span { font-size: 10.5px; }
.masked-title { display: flex; align-items: center; gap: 6px; color: var(--hint); }
.masked-title .ic { width: 15px; height: 15px; }
.plan-row.masked { opacity: .92; }
.plan-row.masked .plan-price b { color: var(--text); }
.card-thread { color: var(--hint); font-size: 12px; margin: -2px 0 6px; overflow-wrap: anywhere; }
.weak-box { border-color: rgba(255, 181, 71, .35); }
.weak-top { color: #ffb547; font-weight: 700; margin-bottom: 6px; }
.weak-box p { font-size: 14px; line-height: 1.45; margin: 6px 0; }
.weak-box .weak-hint { color: var(--hint); font-size: 13px; }
.weak-anyway { margin-top: 8px; width: 100%; }
.tk-note .card-sub { color: var(--hint); font-size: 13px; margin-top: 4px; line-height: 1.4; }
.tk-proj { font-weight: 700; }
.tk-sum { margin-top: 8px; }
.card .search[type=number] { margin-top: 8px; }

/* ---------- блок оплаты под заголовком теста (18.10): цена и что откроется по этому проекту ---------- */
.paywall { padding: 16px; margin-bottom: 12px; border: 1px solid rgba(31, 224, 138, .35) !important;
  background: linear-gradient(180deg, rgba(31, 224, 138, .08), rgba(31, 224, 138, .02)), var(--card); }
.pw-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pw-kick { font-weight: 700; font-size: 15px; }
.pw-price { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.pw-price s { color: var(--hint); font-size: 14px; }
.pw-price b { color: var(--accent); font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.pw-off { background: var(--t-s); color: var(--accent-text); font-size: 12px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.pw-found { margin: 8px 0 10px; color: var(--hint); font-size: 13px; }
.pw-what-t { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.pw-what { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.pw-what li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.pw-what li .ic { color: var(--accent); margin-top: 2px; }
.pw-btn { width: 100%; }

/* ---------- загрузка с преимуществами подбора (18.10) ---------- */
.pitch { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 12px; }
.pitch-t { font-size: 17px; font-weight: 700; }
.pitch-line { margin: 0; max-width: 300px; color: var(--hint); font-size: 14px; min-height: 42px; animation: pitch-in .4s ease; }
@keyframes pitch-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* PRO-медиаплан (27.10) */
.pro-badge { display: inline-block; background: var(--accent); color: var(--accent-text); font-size: 11px; font-weight: 800;
  letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; vertical-align: middle; }
.pro-offer { border-color: rgba(255, 181, 71, .45) !important; }
.pro-offer .pw-kick { display: flex; align-items: center; gap: 6px; }
.pro-card { padding: 16px; margin-bottom: 12px; display: grid; gap: 10px; border: 1px solid rgba(31, 224, 138, .35); }
.pro-card .actions { margin-top: 0; }
.chip.pro-bad { background: rgba(255, 107, 107, .16); color: var(--t-d); }
.chip.pro-warn { background: rgba(255, 181, 71, .16); color: var(--t-s); }
.chip.pro-good { background: rgba(31, 224, 138, .14); color: var(--accent); }
.pro-box { margin-top: 8px; display: grid; gap: 8px; }
.pro-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.pro-stats div { background: var(--bg2); border-radius: 8px; padding: 5px 8px; display: grid; }
.pro-stats b { font-size: 14px; }
.pro-stats span { color: var(--hint); font-size: 11px; }
.pro-flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pro-flags li { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; padding: 5px 8px; border-radius: 8px; background: var(--bg2); }
.pro-flags .ic { flex: none; margin-top: 1px; width: 15px; height: 15px; }
.pro-box.lv-ok .pro-flags li { color: var(--accent); background: rgba(31, 224, 138, .1); }
.pro-box.lv-warn .pro-flags li { color: var(--t-s); background: rgba(255, 181, 71, .12); }
.pro-box.lv-bad .pro-flags li { color: var(--t-d); background: rgba(255, 107, 107, .12); }
.pro-wait { display: flex; gap: 6px; align-items: center; color: var(--hint); font-size: 13px; }
.pro-h { font-size: 12px; color: var(--hint); margin-bottom: 4px; }
.pro-alts { display: grid; gap: 4px; }
.pro-alt { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; border: 0;
  background: var(--bg2); color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.pro-alt.cheaper b { color: var(--accent); }
.pro-alt:disabled { cursor: default; }
.pro-net { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--t-s); padding: 6px 8px;
  border-radius: 8px; background: rgba(255, 181, 71, .1); }
.pro-net .ic { flex: none; width: 15px; height: 15px; margin-top: 1px; }

/* старый проект без бюджета — крупная подсказка над выбором суммы */
.plan-hint { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(31, 224, 138, .12); border: 1px solid rgba(31, 224, 138, .35); color: var(--text);
  font-size: 17px; font-weight: 700; line-height: 1.3; }
.plan-hint .ic { flex: none; width: 22px; height: 22px; color: var(--accent); }

.project-name-editor { margin: -4px 0 12px; padding: 0 12px; color: var(--muted, #91a69d); }
.project-name-editor summary { cursor: pointer; font-size: 12px; padding: 6px 0; }
.project-name-input { box-sizing: border-box; width: 100%; margin: 8px 0; padding: 12px; border: 1px solid #294537; border-radius: 10px; background: #142019; color: #eef4f1; font: inherit; }
.project-name-editor .btn { margin: 4px 0; }
.project-name-editor > span { display: block; font-size: 12px; }

.project-title-box { display: flex; align-items: flex-start; gap: 10px; }
.project-title-box > .hero-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.project-rename { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #294537; border-radius: 10px; background: transparent; color: #91a69d; cursor: pointer; }
.project-rename svg { width: 19px; height: 19px; }
.project-rename:hover, .project-rename:focus-visible { color: #00d990; border-color: currentColor; }
.project-title-form { width: 100%; min-width: 0; }
.project-rename-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.project-rename-note { display: block; font-size: 12px; margin-top: 8px; }

.plan-row.plan-not-purchased {border:1px solid #37b887;box-shadow:0 0 12px rgba(55,184,135,.25);}
.plan-row.plan-purchased {border:1px solid #f06470;box-shadow:0 0 12px rgba(240,100,112,.25);}
.plan-row[hidden] {display:none !important;}
.purchase-toggle {margin:10px 0;}
.plan-purchased .purchase-toggle {color:#f06470;}
.purchase-badge {color:#37b887;font-weight:700;margin-bottom:10px;}
.purchase-label {display:flex;align-items:center;gap:10px;padding:12px 0;}
.plan-tools textarea {width:100%;min-height:72px;box-sizing:border-box;}
