/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/fonts/manrope-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/fonts/manrope-latin.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: #090D12;
  --panel: #10171F;
  --raise: #162029;
  --line: #1D2935;
  --line-2: #2B3B4A;
  --ink: #EAF0F6;
  --ink-2: #B9C6D2;
  --muted: #80949F;
  --accent: #3DD4BD;
  --accent-2: #8DA8FF;
  --glow: 0 0 0 1px rgba(61,212,189,.35), 0 8px 30px -10px rgba(61,212,189,.35);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px -18px rgba(0,0,0,.8);
  --accent-ink: #04201C;
  --accent-soft: rgba(60, 198, 178, .12);
  --amber: #F0B84A;
  --danger: #F28B7B;
  --danger-soft: rgba(242, 139, 123, .1);
  --bar-off: #243442;
  --data: #8DA8FF; --lead: #F0B84A; --saas: #CF9FF0;
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 1;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- горна лента ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(10, 15, 20, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.bar-in { max-width: 1120px; margin: 0 auto; height: 60px; padding: 0 20px;
  display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand svg, .login-mark { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.brand .dot, .login-mark .dot { fill: var(--amber); stroke: none; }
.sections { display: flex; gap: 4px; height: 100%; }
.sections a { display: flex; align-items: center; padding: 0 12px; text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: 14px; position: relative; }
.sections a:hover { color: var(--ink); }
.sections a[aria-current="page"] { color: var(--ink); }
.sections a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent); }
.out { margin-left: auto; }
.sweep { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; display: none; }
.sweep::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: sweep 1.6s ease-in-out infinite; }
body[data-busy="1"] .sweep { display: block; }
@keyframes sweep { from { left: -30%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .sweep::after { animation: none; left: 0; width: 100%; opacity: .5; } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px 80px; }

/* ---------- заглавие на раздела ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.lede { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.status { margin: 16px 0 0; color: var(--ink-2); font-size: 14px; }
.alert { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius); background: var(--danger-soft);
  color: var(--danger); border: 1px solid rgba(242, 139, 123, .25); font-size: 14px; }

/* ---------- бутони ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 9px; border: 1px solid var(--line-2); background: var(--raise); color: var(--ink);
  font-weight: 650; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #3A4D5D; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; filter: none; }
.ghost.sm { min-height: 34px; padding: 0 12px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }

/* ---------- пазарен пулс ---------- */
.pulse { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; margin-top: 24px; }
.pulse-col { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.pulse h2 { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.pulse h2 small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; margin-top: 2px; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.rank li { display: grid; grid-template-columns: 110px 1fr 64px; align-items: center; gap: 12px; font-size: 14px; }
.rk-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.rk-bar { height: 8px; border-radius: 4px; background: var(--bar-off); overflow: hidden; }
.rk-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.rk-val { text-align: right; font-weight: 650; }
.tbl-wrap { overflow-x: auto; }
table.mini { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mini th { text-align: right; color: var(--muted); font-weight: 600; padding: 0 0 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mini th:first-child, .mini td:first-child { text-align: left; padding-left: 0; }
.mini td { padding: 8px 0 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.mini td:first-child { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.mini tr:last-child td { border-bottom: 0; }
.mini .bad { color: var(--danger); font-weight: 650; }
.mini a { text-decoration: none; color: var(--ink); }
.mini a:hover { color: var(--accent); }

/* ---------- табове ---------- */
.tabs { display: flex; gap: 6px; margin: 28px 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 12px 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px;
  white-space: nowrap; position: relative; }
.tabs a b { margin-left: 4px; font-weight: 700; color: var(--muted); background: var(--raise); border-radius: 6px; padding: 1px 7px; font-size: 12.5px; }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"] b { color: var(--accent); background: var(--accent-soft); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); }

/* ---------- списък ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.row { border-bottom: 1px solid var(--line); transition: opacity .25s; }
.row.gone { opacity: 0; }
summary { list-style: none; cursor: pointer; display: flex; gap: 20px; align-items: center; padding: 18px 4px; }
summary::-webkit-details-marker { display: none; }
summary:hover .r-title { color: #fff; }
.r-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.r-title { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.r-kind { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.t-apify_actor .r-kind { color: var(--data); } .t-lead_gen .r-kind { color: var(--lead); } .t-micro_saas .r-kind { color: var(--saas); }
.r-sub { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
details[open] .r-sub { -webkit-line-clamp: unset; }
.r-side { display: flex; align-items: center; gap: 10px; flex: none; }
.r-score { font-weight: 800; font-size: 16px; min-width: 30px; text-align: right; }
.sig { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.sig i { width: 5px; border-radius: 1.5px; background: var(--bar-off); }
.sig i:nth-child(1) { height: 6px; } .sig i:nth-child(2) { height: 9px; } .sig i:nth-child(3) { height: 13px; }
.sig i:nth-child(4) { height: 16px; } .sig i:nth-child(5) { height: 20px; }
.sig i.on { background: var(--accent); }

.body { padding: 0 4px 24px; }
.body h3 { margin: 18px 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.body p { margin: 0; color: var(--ink-2); max-width: 66ch; }
.grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
.facts { margin: 18px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { background: var(--panel); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.facts dt { color: var(--muted); font-size: 13.5px; }
.facts dd { margin: 0; font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 10px; text-align: right; }
.seg { display: inline-block; width: 64px; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) calc(var(--v) * 10%), var(--bar-off) 0); }
blockquote { margin: 8px 0 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--line-2); color: var(--muted); font-style: italic; }
.files { display: flex; flex-wrap: wrap; gap: 6px; }
.files code { font-size: 12.5px; background: var(--raise); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; color: var(--ink-2); }
.note-line { margin: 0 0 4px !important; padding: 9px 12px; border-radius: 8px; background: var(--raise); border: 1px solid var(--line); font-size: 14px; }
.note-line.warn { color: var(--danger); background: var(--danger-soft); border-color: rgba(242, 139, 123, .25); }
.note-line.live { color: var(--accent); background: var(--accent-soft); border-color: rgba(60, 198, 178, .25); }
.next { margin-top: 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.next h3 { margin-top: 0; }
.next ol { margin: 6px 0 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.empty { padding: 56px 8px; max-width: 520px; }
.empty h2 { margin: 0 0 6px; font-size: 19px; }
.empty p { margin: 0; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; text-align: center; z-index: 20; }
.toast.show { opacity: 1; }

/* ---------- вход ---------- */
.login { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.login form { width: min(100%, 360px); }
.login-mark { width: 40px; height: 40px; margin-bottom: 18px; }
.login h1 { font-size: 34px; }
.login p { color: var(--muted); margin: 6px 0 24px; }
.login input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--ink); font: inherit; font-size: 16px; }
.login input:focus { outline: none; border-color: var(--accent); }
.login .btn { margin-top: 12px; min-height: 48px; }
.err { color: var(--danger); margin: 10px 0 0 !important; font-size: 14px; }

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  .bar-in { gap: 14px; padding: 0 16px; }
  .brand span { display: none; }
  .sections a { padding: 0 8px; }
  .wrap { padding: 20px 16px 72px; }
  .head { flex-direction: column; align-items: stretch; }
  .head .btn { width: 100%; }
  h1 { font-size: 26px; }
  .pulse, .grid { grid-template-columns: 1fr; }
  .grid { gap: 0; }
  .rank li { grid-template-columns: 92px 1fr 56px; }
  summary { gap: 14px; padding: 16px 0; }
  .body { padding: 0 0 22px; }
  .r-sub { -webkit-line-clamp: 2; }
  .actions .btn { flex: 1 1 140px; }
  .mini td:first-child { max-width: 150px; }
}

.sample { margin: 6px 0 0; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  font: 12.5px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--ink-2); max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; }

/* ---------- продажби ---------- */
.sales { margin-top: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.sales-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sales h2 { margin: 0; font-size: 15px; font-weight: 700; }
.sm-btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 14px 0 0; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.kpis > div { background: var(--raise); padding: 12px 14px; }
.kpis dt { color: var(--muted); font-size: 12.5px; }
.kpis dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sales-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.sales-note a { color: var(--accent); }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

.assets { margin-top: 16px; }
.assets td:first-child { max-width: 340px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 3px var(--accent-soft); }
.auto-h { margin: 18px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.autos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.autos li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); }

/* ---------- моите актори ---------- */
.acards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.acard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.acard header { display: flex; gap: 12px; align-items: center; }
.acard header img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.acard h2 { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.acard h2 a { text-decoration: none; }
.acard h2 a:hover { color: var(--accent); }
.acard header p { margin: 2px 0 0; font-size: 13px; }
.acard h3 { margin: 16px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.acard .facts { margin-top: 14px; }
.delta { font-size: 12.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--raise); color: var(--muted); }
.delta.up { color: var(--accent); background: var(--accent-soft); }
.delta.down { color: var(--danger); background: var(--danger-soft); }
.kpis dd small.delta { font-size: 12px; vertical-align: middle; }
.rankpos { font-size: 16px; color: var(--amber); }
.good { color: var(--accent) !important; }
.bad { color: var(--danger); font-weight: 650; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: 14px; }
.spark i { flex: 1; min-height: 2px; background: var(--accent); opacity: .75; border-radius: 2px 2px 0 0; }
.kw { margin-top: 16px; display: grid; gap: 6px; }
.kw label { font-size: 12.5px; color: var(--muted); }
.kw div { display: flex; gap: 8px; }
.kw input { flex: 1; min-width: 0; min-height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--raise); color: var(--ink); font: inherit; font-size: 14px; }
.kw input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sales-head span { display: flex; gap: 8px; }
@media (max-width: 860px) { .acards { grid-template-columns: 1fr; } }

/* ---------- поръчки ---------- */
.panel { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.panel > summary { padding: 14px 0; }
.gform { display: grid; gap: 12px; padding: 0 0 18px; }
.gform label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.gform input, .gform textarea, .proposal, .price-edit input { width: 100%; min-height: 38px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--raise); color: var(--ink); font: inherit; font-size: 14px; }
.gform textarea, .proposal { resize: vertical; line-height: 1.5; }
.gform input:focus, .gform textarea:focus, .proposal:focus, .price-edit input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gform .check { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; }
.gform .check input { width: 18px; min-height: 18px; accent-color: var(--accent); }
.gform .btn { justify-self: start; }
.proposal { margin-top: 6px; }
.price-edit { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.price-edit input { width: 110px; }
.r-price { font-weight: 750; font-size: 14.5px; color: var(--amber); white-space: nowrap; }
.plat-freelancer { color: #8DA8FF !important; } .plat-upwork { color: #7BD389 !important; }
.desc { white-space: pre-line; max-height: 260px; overflow: auto; }
@media (max-width: 760px) { .gform .two { grid-template-columns: 1fr; } .r-price { display: none; } }

/* ---------- поръчки: карти, удобни за телефон ---------- */
.chips { display: flex; gap: 8px; margin: 16px 0 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips > div { flex: 0 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.chips dt { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.chips dd { margin: 2px 0 0; font-size: 17px; font-weight: 800; }
.tabs.sticky { position: sticky; top: calc(60px + env(safe-area-inset-top, 0px)); z-index: 5; background: var(--bg); margin-top: 18px; }
.gcards { display: grid; gap: 12px; margin-top: 14px; }
.gcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; min-width: 0;
  transition: opacity .25s, transform .25s; scroll-margin-top: 120px; }
.gcard.gone { opacity: 0; transform: translateX(24px); }
.gcard.done { border-color: var(--accent); }
.gcard header { display: flex; align-items: center; gap: 10px; }
.gcard .meta { font-size: 12.5px; font-weight: 650; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score { flex: 0 0 auto; min-width: 40px; text-align: center; font-weight: 800; font-size: 15px; padding: 3px 8px; border-radius: 8px;
  background: var(--raise); color: var(--ink-2); }
.score.s7, .score.s8, .score.s9, .score.s10 { background: var(--accent-soft); color: var(--accent); }
.score.s6 { background: rgba(240, 184, 74, .12); color: var(--amber); }
.gcard h2 { margin: 8px 0 0; font-size: 16.5px; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; overflow-wrap: anywhere; }
.gcard .sum { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.gcard .line { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.gcard .line b { color: var(--amber); font-size: 15px; }
.gcard .risk { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.gcard .note-line { margin: 8px 0 0 !important; }
.gcard .send { margin-top: 12px; min-height: 50px; font-size: 15.5px; font-weight: 750; }
.send.counting { background: var(--amber); border-color: var(--amber); color: #2A1C00; }
.send.sent { background: var(--raise); border-color: var(--accent); color: var(--accent); opacity: 1; }
.gcard .more { margin-top: 10px; border-top: 1px solid var(--line); }
.gcard .more > summary { padding: 10px 0 2px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); cursor: pointer; display: block; }
.gcard .more > summary::after { content: " ▾"; color: var(--muted); }
.gcard .more[open] > summary::after { content: " ▴"; }
.gcard .more h3 { margin: 14px 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.gcard .proposal { width: 100%; min-height: 160px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--raise); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.5; resize: vertical; }
.gcard .edits { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.gcard .edits label { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.gcard .edits input { width: 96px; min-height: 42px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--raise); color: var(--ink); font: inherit; font-size: 16px; }
.rewrite { display: flex; gap: 8px; margin-top: 10px; }
.rewrite input { flex: 1; min-width: 0; min-height: 42px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--raise); color: var(--ink); font: inherit; font-size: 15px; }
.gcard .actions { margin-top: 10px; gap: 8px; }
.gcard .actions .btn { flex: 1 1 0; min-height: 40px; font-size: 14px; }
.gcard .facts { margin-top: 12px; }

/* ---------- асистент ---------- */
.chat { display: grid; gap: 10px; margin-top: 16px; padding-bottom: 8px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.msg p { margin: 0; white-space: pre-line; }
.msg p + p { margin-top: 6px; }
.msg.me { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg.bot { justify-self: start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.typing p { color: var(--muted); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }
.msg .did { font-size: 13.5px; color: var(--accent); }
.msg .did.warn { color: var(--danger); }
.confirm { margin-top: 10px; display: grid; gap: 8px; padding: 10px; border-radius: 10px; background: var(--raise); }
.confirm b { font-size: 14px; }
.confirm .send { min-height: 46px; }
.suggest { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 14px; padding-bottom: 2px; }
.suggest::-webkit-scrollbar { display: none; }
.suggest button { flex: 0 0 auto; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); border-radius: 999px;
  padding: 8px 12px; font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.ask { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); margin-top: 10px; display: flex; align-items: flex-end; gap: 8px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 6px; z-index: 6; }
.ask textarea { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px;
  padding: 9px 8px; resize: none; max-height: 140px; outline: none; line-height: 1.4; }
.ask button { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; border: 0; display: grid; place-items: center; cursor: pointer; }
.ask .go { background: var(--accent); color: var(--accent-ink); }
.ask .mic { background: var(--raise); color: var(--ink-2); }
.ask .mic.on { background: var(--danger); color: #fff; }
.ask svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-head { align-items: center; }
.chat-head .ghost.sm { width: auto !important; }

/* ---------- долна навигация (телефон) ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .sections { display: none; }
  .bar-in { justify-content: space-between; height: 52px; }
  .brand span { display: inline; }
  .tabs.sticky { top: calc(52px + env(safe-area-inset-top, 0px)); }
  .wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .dock { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: rgba(10, 15, 20, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .dock a { display: grid; justify-items: center; gap: 3px; padding: 4px 0; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 650; }
  .dock svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dock a[aria-current="page"] { color: var(--accent); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .ask { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  .head .btn.sm-btn { width: 100%; min-height: 42px; }
  .msg { max-width: 94%; }
}

/* ---------- пари, проекти ---------- */
.money { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 10px; padding: 6px 12px; border-radius: 999px;
  text-decoration: none; color: var(--ink); background: var(--accent-soft); border: 1px solid rgba(60, 198, 178, .3); white-space: nowrap; }
.money svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.money b { color: var(--accent); font-size: 15px; }
.money small { color: var(--muted); font-size: 12px; }
.money[aria-current="page"] { border-color: var(--accent); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber);
  color: #2A1C00; font-style: normal; font-size: 11px; font-weight: 800; margin-left: 4px; }
.dock a { position: relative; }
.dock .badge { position: absolute; top: 0; left: 55%; margin: 0; }
.pill { flex: 0 0 auto; font-size: 12px; font-weight: 750; padding: 3px 9px; border-radius: 999px; background: var(--raise); color: var(--ink-2); }
.st-offered .pill, .st-funded .pill { background: rgba(240, 184, 74, .15); color: var(--amber); }
.st-paid .pill { background: var(--accent-soft); color: var(--accent); }
.st-offered, .st-funded { border-color: rgba(240, 184, 74, .45); }
.next-step { margin-top: 10px; display: grid; gap: 10px; }
.next-step p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.row2 { display: flex; gap: 8px; flex-wrap: wrap; }
.row2 .btn { flex: 1 1 140px; }
.next-step .wide { min-height: 50px; font-size: 15.5px; font-weight: 750; }
.paid { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.paid label { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.paid input { width: 110px; min-height: 42px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--raise); color: var(--ink); font: inherit; font-size: 16px; }
.link { border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; cursor: pointer; padding: 0 4px; }
.link.danger { color: var(--danger); }
.files { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.files a { color: var(--ink); overflow-wrap: anywhere; }
.files small { color: var(--muted); }
.upload { cursor: pointer; }
.bigmoney { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.bigmoney > div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.bigmoney span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 650; }
.bigmoney b { display: block; margin-top: 4px; font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.bigmoney .muted-b { color: var(--ink-2); }
.sub-h { margin: 26px 0 8px; font-size: 15px; color: var(--muted); }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ledger li { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--panel); padding: 12px 14px; font-size: 14px; }
.ledger li > span:first-child, .ledger li > a { min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.ledger .src { color: var(--muted); font-weight: 650; margin-right: 6px; }
.gform select { width: 100%; min-height: 38px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--raise); color: var(--ink); font: inherit; font-size: 14px; }
@media (max-width: 760px) {
  .money small { display: none; }
  .money { margin-right: 6px; padding: 6px 10px; }
  .bigmoney { grid-template-columns: 1fr 1fr; }
  .bigmoney > div:first-child { grid-column: 1 / -1; }
  .bigmoney b { font-size: 24px; }
  .dock a { font-size: 10.5px; }
  .dock svg { width: 22px; height: 22px; }
  .gform input, .gform select, .gform textarea { font-size: 16px; }
}

.report > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.report .learn { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.report .ledger { margin-bottom: 16px; }
.report .ledger a { color: var(--ink); text-decoration: none; }

.award { margin: 8px 0 0; font-size: 13.5px; font-weight: 650; padding: 6px 10px; border-radius: 8px; background: var(--raise); color: var(--ink-2); display: inline-block; }
.aw-pending, .aw-awarded { background: var(--accent-soft); color: var(--accent); }
.aw-rejected, .aw-revoked, .aw-lost { color: var(--muted); }
.alerts { max-width: 1120px; margin: 0 auto; padding: 10px 20px 0; display: grid; gap: 8px; }
.alerts div { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 14px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid rgba(60, 198, 178, .35); font-weight: 650; }
.alerts a { color: var(--ink); text-decoration: none; flex: 1; }
.alerts button { border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; }
@media (max-width: 760px) { .alerts { padding: 10px 16px 0; } }

.gear { display: none; color: var(--muted); }
.gear svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.netline { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.netline a { color: var(--accent); }
.panel.set { padding: 16px 18px 18px; }
.panel.set h2 { margin: 0 0 10px; font-size: 17px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel.set p { font-size: 14px; line-height: 1.5; }
.pill.ok { background: var(--accent-soft); color: var(--accent); }
.steps { margin: 0 0 14px; padding-left: 20px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.steps code { background: var(--raise); padding: 1px 6px; border-radius: 5px; }
.two-in { display: flex; gap: 8px; }
.small { font-size: 13px; }
@media (max-width: 760px) { .gear { display: inline-flex; margin-right: 6px; } }

/* ---------- табло: по една карта на бизнес ---------- */
.bizgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 14px 0 18px; }
.biz { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; transition: border-color .15s, transform .15s; }
.biz:hover { border-color: var(--line-2); transform: translateY(-1px); }
.biz header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.biz h2 { font-size: 14px; font-weight: 700; margin: 0; color: var(--ink-2); }
.biz .big { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.biz .big small { font-size: 13px; font-weight: 500; color: var(--muted); }
.biz .line { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.biz .line.delta.up { color: var(--accent); }
.biz .biz-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--muted); }
.dot.ok { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dot.warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(240,184,74,.15); }
.dot.bad { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.todo.calm { border-color: var(--line); }
.todo.calm h2 { color: var(--accent); }
details.fold > summary { list-style: none; cursor: pointer; }
details.fold > summary h2 { display: inline; }
details.fold > summary::after { content: " ▾"; color: var(--muted); }
details.fold[open] > summary::after { content: " ▴"; }
.ledger li b { margin-left: auto; padding-left: 12px; }
.more-nav { position: relative; }
.more-nav { align-self: center; }
.more-nav > summary { list-style: none; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; line-height: 60px; padding: 0 12px; }
.more-nav > div a { padding: 9px 10px !important; }
.more-nav > summary:hover { color: var(--ink); }
.more-nav > summary::-webkit-details-marker { display: none; }
.more-nav[open] > div { position: absolute; top: 52px; right: 0; background: var(--raise); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 6px; min-width: 170px; display: flex; flex-direction: column; z-index: 20; }
.more-nav > div a { padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.more-nav > div a:hover { background: var(--panel); }
.conn { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 6px; }
.conn span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.conn .dot { display: inline-block; }
details.panel.set > summary h2 { margin: 0; }
.bigmoney { grid-template-columns: 1fr 1fr !important; }

/* =================== v11: модерно табло =================== */
body { background:
  radial-gradient(1200px 500px at 85% -10%, rgba(60,198,178,.10), transparent 60%),
  radial-gradient(900px 420px at -10% 10%, rgba(141,168,255,.08), transparent 60%), var(--bg); background-attachment: fixed; }
.panel { background: linear-gradient(180deg, rgba(22,32,42,.85), rgba(17,24,32,.85)); backdrop-filter: blur(6px); }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 26px 0 18px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(26px, 4vw, 36px); margin: 2px 0 6px; letter-spacing: -.02em;
  background: linear-gradient(90deg, #fff, #9FE7DC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; background: rgba(17,24,32,.7); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(60,198,178,.6); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(60,198,178,.55); } 70% { box-shadow: 0 0 0 9px rgba(60,198,178,0); } 100% { box-shadow: 0 0 0 0 rgba(60,198,178,0); } }

.kpis-x { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kx { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 46px;
  background: linear-gradient(160deg, rgba(30,42,53,.9), rgba(17,24,32,.9)); }
.kx-name { display: block; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.kx-val { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.kx-delta { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.kx-delta.up { color: var(--accent); } .kx-delta.down { color: var(--danger); }
.kx-delta small { color: var(--muted); font-weight: 500; }
.kx-spark { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; opacity: .9; }
.spark-svg { width: 100%; height: 100%; display: block; }

.duo { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.duo .panel { margin-top: 0; }
.hbars { display: grid; gap: 14px; margin: 6px 0 12px; }
.hb-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 650; }
.hb-top i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.hb-top b { font-size: 20px; }
.hb-track { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.hb-track > div { height: 100%; border-radius: 99px; transition: width .8s ease; }
.hb small { color: var(--muted); font-size: 12px; }

.ctabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ctabs input { position: absolute; opacity: 0; pointer-events: none; }
.ctabs label { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--muted); padding: 6px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; }
.ctabs input:checked + label { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.cpane { display: none; width: 100%; margin-top: 10px; }
#ct-views:checked ~ .cpane[data-for="ct-views"], #ct-api:checked ~ .cpane[data-for="ct-api"],
#ct-rapid:checked ~ .cpane[data-for="ct-rapid"], #ct-gigs:checked ~ .cpane[data-for="ct-gigs"] { display: block; }
.chart { width: 100%; height: 190px; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart text.peak { fill: var(--ink); font-weight: 700; font-size: 12px; }
.chart-empty { height: 190px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13.5px;
  border: 1px dashed var(--line-2); border-radius: 12px; padding: 0 20px; }

.topv { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.topv li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10,15,20,.4); }
.topv a { text-decoration: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topv a:hover { color: var(--accent); }
.topv b { font-size: 15px; }
.src { font-size: 10.5px; font-weight: 800; padding: 3px 6px; border-radius: 6px; color: #fff; }
.src.yt { background: #FF4E45; } .src.ig { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); } .src.tt { background: linear-gradient(45deg, #25F4EE, #000 55%, #FE2C55); }

.autolist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.autolist > div { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; row-gap: 2px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10,15,20,.35); }
.autolist .dot { grid-row: span 2; }
.autolist b { font-size: 14px; } .autolist span { font-size: 12.5px; color: var(--muted); }

.mini-ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mi { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 12px; background: rgba(10,15,20,.35); transition: border-color .15s; }
.mi:hover { border-color: var(--accent); }
.mi b { display: block; font-size: 14px; } .mi small { color: var(--muted); font-size: 12px; }
.more-link { float: right; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.ring text { fill: var(--ink); font-size: 15px; font-weight: 800; font-family: Manrope, system-ui, sans-serif; }

/* ---------- Идеи ---------- */
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin: 14px 0 30px; }
.idea { border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  background: linear-gradient(165deg, rgba(30,42,53,.92), rgba(15,21,28,.92)); transition: transform .2s, opacity .4s; display: flex; flex-direction: column; }
.idea:hover { border-color: var(--line-2); }
.idea.leaving { opacity: 0; transform: scale(.97); }
.idea header { display: flex; gap: 14px; align-items: center; }
.idea h2 { margin: 0; font-size: 17px; line-height: 1.3; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tag { font-size: 11.5px; font-weight: 650; padding: 3px 8px; border-radius: 999px; background: var(--raise); color: var(--ink-2); border: 1px solid var(--line-2); }
.tag.new { color: var(--amber); border-color: rgba(240,184,74,.4); }
.tag.k-api { color: var(--accent); } .tag.k-content { color: #FF8A80; } .tag.k-service { color: var(--amber); } .tag.k-marketplace { color: var(--saas); }
.pitch { margin: 14px 0 6px; font-size: 14.5px; color: var(--ink); }
.niche { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.scores { display: grid; gap: 6px; margin-bottom: 10px; }
.sc { display: grid; grid-template-columns: 130px 1fr 22px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.sc-track { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.sc-track > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #8DA8FF); }
.sc b { text-align: right; }
.steps-check { margin: 8px 0 12px; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); }
.steps-check li { margin: 4px 0; }
.idea-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }

@media (max-width: 900px) {
  .kpis-x { grid-template-columns: 1fr 1fr; }
  .duo, .autolist, .mini-ideas { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .kx-val { font-size: 24px; }
  .ideas { grid-template-columns: 1fr; }
  .sc { grid-template-columns: 110px 1fr 20px; }
}
.ring { flex: none; }
.idea header .ring { width: 64px; height: 64px; }
.mi .ring { width: 48px; height: 48px; }

/* =================== v12: подредено табло =================== */
.sec-h { margin: 26px 0 10px; font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sec-h .more-link { text-transform: none; letter-spacing: 0; }
.panel.pad { padding: 16px 18px 18px; min-width: 0; }
.panel.pad h2 { margin: 0 0 12px; font-size: 17px; }

.todo-x { margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(240,184,74,.35);
  background: linear-gradient(135deg, rgba(240,184,74,.10), rgba(17,24,32,.6)); }
.todo-x h2 { margin: 0 0 8px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.todo-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 99px; background: var(--amber); color: #2A1C00; font-size: 14px; font-weight: 800; }
.todo-x ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.todo-x li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; text-decoration: none;
  background: rgba(10,15,20,.45); border: 1px solid var(--line); font-size: 14px; }
.todo-x li a:hover { border-color: var(--amber); }
.todo-x li i { font-style: normal; color: var(--amber); font-weight: 800; }
.todo-x.calm { border-color: rgba(60,198,178,.3); background: linear-gradient(135deg, rgba(60,198,178,.08), rgba(17,24,32,.6)); }
.todo-x.calm h2 { color: var(--accent); margin: 0; }
.todo-x.calm p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.plats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plat { --c: var(--accent); display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; min-width: 0;
  border: 1px solid var(--line); border-top: 3px solid var(--c); background: linear-gradient(170deg, rgba(30,42,53,.9), rgba(15,21,28,.9)); }
.plat.yt { --c: #FF4E45; } .plat.ig { --c: #E1306C; } .plat.tt { --c: #25F4EE; }
.plat header { display: flex; align-items: center; gap: 10px; }
.plat header b { flex: 1; font-size: 15px; }
.plat-views b { font-size: 32px; font-weight: 800; letter-spacing: -.02em; display: block; line-height: 1.1; }
.plat-views span { font-size: 12.5px; color: var(--muted); }
.plat-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.plat-bar > div { height: 100%; background: var(--c); border-radius: 99px; }
.plat-stats { margin: 0; display: flex; gap: 8px; }
.plat-stats > div { flex: 1; padding: 8px 10px; border-radius: 10px; background: rgba(10,15,20,.45); border: 1px solid var(--line); }
.plat-stats dt { font-size: 11.5px; color: var(--muted); }
.plat-stats dd { margin: 2px 0 0; font-size: 17px; font-weight: 750; }
.plat-best { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; background: rgba(10,15,20,.45);
  border: 1px solid var(--line); min-width: 0; }
a.plat-best:hover { border-color: var(--c); }
.plat-best small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 650; }
.plat-best span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; margin-top: 3px; }
.plat-note { margin: auto 0 0; font-size: 12.5px; color: var(--muted); }

.duo { margin-top: 16px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rank li { display: flex; gap: 12px; align-items: center; min-width: 0; }
.rank-n { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--raise);
  font-weight: 800; font-size: 13px; color: var(--ink-2); }
.rank li:first-child .rank-n { background: var(--amber); color: #2A1C00; }
.rank-body { flex: 1; min-width: 0; }
.rank-body > a { display: block; text-decoration: none; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-body > a:hover { color: var(--accent); }
.rank-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.rank-meta b { font-size: 13.5px; min-width: 44px; text-align: right; }
.rank-bar { flex: 1; height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; }
.rank-bar > div { height: 100%; border-radius: 99px; }
.rank-bar .yt { background: #FF4E45; } .rank-bar .ig { background: #E1306C; } .rank-bar .tt { background: #25F4EE; }

.cr-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cr-sum > div { padding: 10px 12px; border-radius: 12px; background: rgba(10,15,20,.45); border: 1px solid var(--line); }
.cr-sum b { display: block; font-size: 22px; font-weight: 800; }
.cr-sum span { font-size: 12px; color: var(--muted); }
.cr-h { margin: 14px 0 8px; font-size: 14px; color: var(--amber); }
.cr-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.cr-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(10,15,20,.4); min-width: 0; }
.cr-list li > a:not(.btn) { flex: 1; min-width: 0; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.cr-list li b { min-width: 36px; text-align: right; }
.fold { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.fold > summary { cursor: pointer; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.fold > summary:hover { color: var(--accent); }
.cr-table { width: 100%; margin: 8px 0; }

.bzgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
@media (max-width: 900px) { .bzgrid { grid-template-columns: 1fr 1fr; } }
.bz { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 12px 14px; border-radius: 14px;
  text-decoration: none; border: 1px solid var(--line); background: linear-gradient(170deg, rgba(30,42,53,.8), rgba(15,21,28,.8)); transition: border-color .15s; }
.bz:hover { border-color: var(--accent); }
.bz span { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.bz b { grid-column: 1 / -1; font-size: 22px; font-weight: 800; margin-top: 6px; }
.bz b.txt { font-size: 14px; font-weight: 700; }
.bz small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.kpis-x { margin-bottom: 0; }

@media (max-width: 900px) {
  .plats { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .cr-sum { grid-template-columns: 1fr 1fr; }
}


/* =================== v13: по-чист и по-жив интерфейс =================== */
html { scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg); }
::selection { background: rgba(61,212,189,.3); }
body { background:
  radial-gradient(1100px 520px at 90% -12%, rgba(61,212,189,.13), transparent 60%),
  radial-gradient(900px 480px at -10% 8%, rgba(141,168,255,.10), transparent 60%),
  radial-gradient(700px 400px at 50% 110%, rgba(240,184,74,.05), transparent 60%), var(--bg); }
main.wrap { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main.wrap { animation: none; } }

/* горна лента: стъкло + меко сияние по ръба */
.bar { background: rgba(9,13,18,.78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255,255,255,.06); box-shadow: 0 1px 0 rgba(61,212,189,.08); }
.brand span { background: linear-gradient(90deg, #fff, #9FE7DC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand svg { filter: drop-shadow(0 0 6px rgba(61,212,189,.45)); }
.sections { gap: 2px; align-items: center; }
.sections a { height: 36px; padding: 0 13px; border-radius: 999px; transition: background .15s, color .15s; }
.sections a:hover { background: rgba(255,255,255,.05); }
.sections a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.sections a[aria-current="page"]::after { display: none; }
.more-nav > summary { line-height: 36px; border-radius: 999px; }
.more-nav > summary:hover { background: rgba(255,255,255,.05); }
.more-nav[open] > div { top: 46px; box-shadow: var(--shadow), 0 20px 50px -20px rgba(0,0,0,.9); border-radius: 14px; padding: 8px; min-width: 200px; }
.money { border-color: rgba(61,212,189,.35); box-shadow: 0 0 0 0 rgba(61,212,189,0); transition: box-shadow .2s, border-color .2s; }
.money:hover { box-shadow: var(--glow); }

/* бутони */
.btn { transition: transform .12s, border-color .15s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(135deg, #4BE0C9, #2FB8A3); border-color: transparent; box-shadow: 0 6px 18px -8px rgba(61,212,189,.7); }
.btn.primary:hover { filter: brightness(1.05); box-shadow: 0 10px 24px -8px rgba(61,212,189,.8); }
.btn[disabled]:hover { transform: none; box-shadow: none; }
.ghost.sm:hover { color: var(--ink); border-color: var(--line-2); }

/* карти: едно и също усещане навсякъде */
.panel, .pulse-col, .sales, .acard, .kx, .plat, .idea, .gcard, .bz, .biz, .todo-x, .chips > div, .bigmoney > div {
  box-shadow: var(--shadow); transition: border-color .18s, box-shadow .18s, transform .18s; }
.panel:hover, .pulse-col:hover, .sales:hover, .acard:hover, .kx:hover, .plat:hover, .idea:hover, .gcard:hover, .bigmoney > div:hover { border-color: rgba(255,255,255,.12); }
.bz:hover, .biz:hover, .mi:hover, .todo-x li a:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.kx { border-radius: 18px; }
.kx::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: .7; }
.kx-val { font-size: 32px; background: linear-gradient(90deg, #fff, #CFE7E2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plat { border-radius: 18px; }
.todo-x { border-radius: 18px; }
.sec-h { display: flex; align-items: center; gap: 10px; }
.sec-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.sec-h .more-link { float: none; order: 3; }

/* табове и списъци */
.tabs a { border-radius: 10px 10px 0 0; transition: color .15s, background .15s; }
.tabs a:hover { color: var(--ink); background: rgba(255,255,255,.03); }
.tabs a[aria-current="page"]::after { height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; }
.row { transition: opacity .25s, background .15s; }
.row:hover { background: rgba(255,255,255,.02); }
.score.s7, .score.s8, .score.s9, .score.s10 { box-shadow: inset 0 0 0 1px rgba(61,212,189,.3); }
.rk-bar i, .hb-track > div, .plat-bar > div, .sc-track > div { background-image: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.rank-bar .yt, .rank-bar .ig, .rank-bar .tt { background-image: none; }

/* полета */
input, textarea, select { transition: border-color .15s, box-shadow .15s; }
.login input:focus, .gform input:focus, .gform textarea:focus, .gform select:focus, .proposal:focus, .kw input:focus,
.gcard .proposal:focus, .gcard .edits input:focus, .rewrite input:focus, .price-edit input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,212,189,.18); }

/* известия */
.toast { background: linear-gradient(135deg, #1A2630, #10171F); color: var(--ink); border: 1px solid rgba(61,212,189,.4);
  box-shadow: 0 16px 40px -14px rgba(0,0,0,.9), 0 0 0 3px rgba(61,212,189,.08); transform: translateX(-50%) translateY(8px); transition: opacity .2s, transform .2s; }
.toast.show { transform: translateX(-50%) translateY(0); }
.alerts div { box-shadow: var(--shadow); }

/* вход */
.login-body { background:
  radial-gradient(700px 420px at 20% 10%, rgba(61,212,189,.16), transparent 60%),
  radial-gradient(600px 400px at 85% 90%, rgba(141,168,255,.14), transparent 60%), var(--bg); }
.login form { padding: 30px 28px 28px; border-radius: 22px; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(170deg, rgba(22,32,41,.85), rgba(13,19,26,.85)); backdrop-filter: blur(14px); box-shadow: var(--shadow), 0 30px 80px -30px rgba(0,0,0,.9);
  animation: rise .4s ease both; }
.login-mark { filter: drop-shadow(0 0 10px rgba(61,212,189,.5)); }
.login h1 { background: linear-gradient(90deg, #fff, #9FE7DC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login input { background: rgba(9,13,18,.6); border-radius: 12px; }
.login .btn { border-radius: 12px; }

/* телефон */
@media (max-width: 760px) {
  .dock { background: rgba(9,13,18,.86); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-top-color: rgba(255,255,255,.06); }
  .dock a { border-radius: 12px; margin: 0 2px; transition: background .15s, color .15s; }
  .dock a[aria-current="page"] { background: var(--accent-soft); }
  .dock a[aria-current="page"] svg { filter: drop-shadow(0 0 6px rgba(61,212,189,.5)); }
  .bz:hover, .biz:hover, .mi:hover, .todo-x li a:hover { transform: none; }
}

/* ---------- v13: страница „Моите API“ ---------- */
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero .lede { margin-top: 4px; }
.api-kpis { grid-template-columns: repeat(4, 1fr); margin: 4px 0 18px; }
.api-kpis .kx { padding-bottom: 16px; }
.api-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.chipset { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 650; transition: all .15s; }
.chip b { color: var(--muted); font-weight: 700; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip.on b { color: var(--accent); }
.chip .dot { width: 8px; height: 8px; box-shadow: none; }
.sortsel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sortsel select { min-height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--raise); color: var(--ink); font: inherit; font-size: 13.5px; }
.acards.v13 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; margin-top: 0; }
.acards.v13 .acard { border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(165deg, rgba(30,42,53,.9), rgba(15,21,28,.9)); }
.acards.v13 .acard[hidden] { display: none; }
.acards.v13 header { align-items: flex-start; }
.acards.v13 header img, .aph { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.aph { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04201C; font-weight: 800; font-size: 18px; }
.ahead { flex: 1; min-width: 0; }
.acards.v13 h2 { font-size: 15.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acards.v13 header p { font-size: 12.5px; margin-top: 4px; }
.state { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: var(--raise); color: var(--ink-2); white-space: nowrap; }
.state .dot { width: 7px; height: 7px; box-shadow: none; }
.state.ok { color: var(--accent); background: var(--accent-soft); }
.state.warn { color: var(--amber); background: rgba(240,184,74,.12); }
.state.bad { color: var(--danger); background: var(--danger-soft); }
.state.young { color: var(--accent-2); background: rgba(141,168,255,.12); }
.dot.young { background: var(--accent-2); }
.astats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.astats > div { display: grid; gap: 1px; padding: 9px 10px; border-radius: 12px; background: rgba(10,15,20,.45); border: 1px solid var(--line); min-width: 0; }
.astats span { font-size: 11px; color: var(--muted); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.astats b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.astats b.rankpos { font-size: 19px; }
.astats small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.astats small.delta { padding: 0; background: none; }
.acards.v13 .spark { margin: 0; height: 32px; opacity: .85; }
.acards.v13 .spark i { background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.diag { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; padding-left: 10px; border-left: 2px solid var(--line-2); }
.diag.ok { border-color: var(--accent); } .diag.warn { border-color: var(--amber); } .diag.bad { border-color: var(--danger); } .diag.young { border-color: var(--accent-2); }
.acards.v13 .fold { margin-top: auto; padding-top: 10px; }
.acards.v13 .mini { margin-top: 8px; }
.empty-filter { padding: 30px 0; text-align: center; }
.report { margin-top: 18px; }
@media (max-width: 900px) { .api-kpis { grid-template-columns: 1fr 1fr; } .acards.v13 { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .astats { grid-template-columns: 1fr 1fr; } .api-kpis .kx-val { font-size: 24px; } }
