/* Клипборса: светла/тъмна тема с еднакви токени; карти 16:10 с „телефон“ 9:16 */
:root {
  --bg: #F1F3F7;
  --surface: #FFFFFF;
  --ink: #12151B;
  --muted: #586172;
  --line: #DCE1E9;
  --pink: #D92A56;
  --pink-soft: #FCE4EB;
  --cyan: #0A8FA3;
  --cyan-soft: #DAF2F5;
  --gold: #A86A00;
  --gold-soft: #FBF0D6;
  --ok: #1D7F47;
  --ok-soft: #DDF3E6;
  --warn: #9A6410;
  --warn-soft: #FBEFD9;
  --bad: #B42318;
  --bad-soft: #FDE7E5;
  --shade: rgba(18, 21, 27, .55);
  --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1015; --surface: #161A21; --ink: #ECEFF4; --muted: #9BA4B3; --line: #2A303B;
    --pink: #FF5C82; --pink-soft: #3B1823; --cyan: #3FCCDD; --cyan-soft: #0F2F37;
    --gold: #F0B83C; --gold-soft: #33280E; --ok: #55C886; --ok-soft: #12301F;
    --warn: #E5AE52; --warn-soft: #33260F; --bad: #FF8A80; --bad-soft: #3A1614; --shade: rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* лек цветен ореол най-горе, за да не е фонът плосък */
body { margin: 0; color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(900px 420px at -5% -8%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 70%),
    radial-gradient(800px 420px at 105% -8%, color-mix(in srgb, var(--pink) 12%, transparent), transparent 70%),
    var(--bg);
  background-repeat: no-repeat; }
img { max-width: 100%; }
a { color: var(--cyan); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main.wrap { padding-block: 24px 56px; flex: 1; }
h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(26px, 4.6vw, 40px); }
h2 { font-size: 21px; }
h3 { margin: 0; font-size: 16px; }
p { margin: 0; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 13px; }
.lead { color: var(--muted); max-width: 62ch; margin-top: 6px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-row { display: flex; align-items: center; gap: 18px; padding-block: 10px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-size: 21px; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 24px; height: 32px; border-radius: 6px; background: linear-gradient(160deg, var(--cyan), var(--pink)); display: grid; place-items: center; color: #fff; font-size: 12px; }
.nav { display: flex; gap: 4px; flex-wrap: nowrap; }
.nav a, .nav-user a.link { padding: 7px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.nav-user .btn { white-space: nowrap; }
.nav a.on { background: var(--ink); color: var(--bg); }
.nav-user { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.coins { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.coin { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 3px var(--gold-soft); flex: none; }
.me-chip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 600; }
/* на по-тесен екран шапката остава на един ред; „Как работи“ е и долу в сайта */
@media (max-width: 900px) { .hide-md { display: none !important; } }
.top-row { flex-wrap: nowrap; }
/* долното меню е само за телефона */
.bottom-nav { display: none; }
@media (max-width: 640px) {
  /* на телефона горе остават само логото, кредитите и профилът; менюто е долу */
  .nav, .hide-sm { display: none !important; }
  .me-chip { padding: 3px; }
  .top-row { gap: 10px; flex-wrap: nowrap; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; border-radius: 12px; }
  .bottom-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .bottom-nav a.on { color: var(--pink); }
  .bottom-nav a.on svg { stroke-width: 2.4; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  /* категориите са на един ред, който се плъзга встрани, вместо на четири реда */
  main .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -4px; margin-right: -4px; padding: 2px 4px; }
  main .chips::-webkit-scrollbar { display: none; }
  main .chip { flex: none; }
  body .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
.btn { transition: transform .1s, filter .15s; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }

/* кнопки и форми */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; background: var(--ink); color: var(--bg); text-decoration: none; line-height: 1.2; }
.btn.pink { background: var(--pink); color: #fff; }
.btn.gold { background: var(--gold); color: #1A1200; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.armed { background: var(--warn); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
label { font-weight: 600; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="date"], select, textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); width: 100%; min-width: 0;
}
textarea { min-height: 84px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.checks { display: flex; gap: 8px; flex-wrap: wrap; }
.checks label, label.check { flex-direction: row; align-items: center; font-weight: 500; gap: 8px; }
.checks label { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
label.check { align-items: flex-start; }
label.check input { margin-top: 4px; }
.err { color: var(--bad); font-size: 14px; }
@media (max-width: 460px) { .two { grid-template-columns: 1fr; } }

/* начало */
.hero { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }

.top5 { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 22px; }
.top5-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 12px; }
.top5-head h2 { font-size: 18px; }
.top5-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.t5 { position: relative; border-radius: 12px; padding: 12px 12px 12px 44px; text-decoration: none; color: #fff; background: linear-gradient(150deg, var(--cyan), var(--pink)); min-height: 108px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.t5 .n { position: absolute; left: 12px; top: 10px; font-family: var(--display); font-size: 24px; opacity: .9; }
.t5 b { font-size: 15px; line-height: 1.25; }
.t5 span { font-size: 12px; opacity: .92; }
.t5 .r { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.t5.free { background: transparent; border: 2px dashed var(--line); color: var(--muted); }
.t5.free .n { color: var(--muted); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-weight: 500; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; min-width: 0; }
.card.tier-vip { border: 2px solid var(--gold); }
.card.tier-super { border: 2px solid var(--pink); }
@media (min-width: 720px) { .card.tier-super { grid-column: span 2; } .card.tier-super .thumb { aspect-ratio: 32 / 10; } }
.thumb { position: relative; aspect-ratio: 16 / 10; max-width: 100%; background: linear-gradient(160deg, var(--cyan), var(--pink)); color: #fff; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
/* картинката (нарисувана или качена) запълва цялата карта, а надписите са върху нея */
.thumb .art, .thumb .cover, .t5-bg .art, .t5-bg .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, transparent 32%, transparent 60%, rgba(0, 0, 0, .45) 100%); pointer-events: none; }
.thumb > span:not(.shade) { position: relative; }
.thumb > span.badge { position: absolute; top: 12px; right: 12px; }
.thumb .cat { align-self: flex-start; background: rgba(0, 0, 0, .38); backdrop-filter: blur(4px); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.thumb .plat-line { font-size: 12px; font-weight: 700; max-width: 80%; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.thumb .badge { position: absolute; }
@media (prefers-reduced-motion: no-preference) {
  .card .art, .card .cover { transition: transform .5s ease; }
  .card:hover .art, .card:hover .cover { transform: scale(1.05); }
}
.t5-bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.t5-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .25)); }
.t5 > :not(.t5-bg) { position: relative; }
.t5 { overflow: hidden; }

/* началната страница: три телефона с нарисувани кампании */
.home-hero { align-items: center; }
.home-hero > .stack { flex: 1 1 420px; max-width: 620px; }
.hero-art { position: relative; flex: 0 0 340px; height: 230px; display: none; }
@media (min-width: 900px) { .hero-art { display: block; } }
.mock-phone { position: absolute; width: 112px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; border: 5px solid var(--ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); background: var(--ink); }
.mock-phone .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-phone.p0 { left: 0; top: 30px; transform: rotate(-9deg); }
.mock-phone.p1 { left: 112px; top: 0; z-index: 2; transform: rotate(2deg); }
.mock-phone.p2 { left: 224px; top: 34px; transform: rotate(10deg); }
.mock-bar { position: absolute; left: 10px; right: 30px; bottom: 14px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .85); }
.mock-heart { position: absolute; right: 9px; bottom: 30px; color: #fff; font-size: 18px; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
@media (prefers-reduced-motion: no-preference) {
  .mock-phone { animation: float 6s ease-in-out infinite; }
  .mock-phone.p1 { animation-delay: -2s; }
  .mock-phone.p2 { animation-delay: -4s; }
  @keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
}
.badge { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; }
.badge.vip { background: var(--gold); color: #1A1200; }
.badge.super { background: #fff; color: #B3123D; }
.cbody { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cbody h3 { font-size: 16px; line-height: 1.3; }
.card-owner { font-size: 13px; gap: 6px; flex-wrap: wrap; }
.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 4px; font-size: 13px; }
.card-foot b { color: var(--ink); font-variant-numeric: tabular-nums; }
/* цената върху картинката */
.thumb > span.price-tag { align-self: flex-start; display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 11px; border-radius: 12px; background: rgba(255, 255, 255, .95); color: #12151B; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.price-tag b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1; }
.price-tag small { font-size: 11px; color: #586172; font-weight: 600; }
.card { transition: transform .15s, box-shadow .15s; }
.card:hover { box-shadow: 0 14px 30px rgba(18, 21, 27, .12); }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.section-head h2 { font-size: 22px; }
.who { color: var(--muted); font-size: 13px; }
.rate { font-family: var(--mono); font-weight: 700; font-size: 20px; color: var(--pink); font-variant-numeric: tabular-nums; }
.rate small { font-family: var(--body); font-weight: 500; font-size: 13px; color: var(--muted); }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; margin: 0; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--cyan); }
.plats { display: flex; gap: 6px; flex-wrap: wrap; }
.plat { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--cyan-soft); color: var(--cyan); font-weight: 600; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; grid-column: 1 / -1; }

/* кампания: голяма картинка със заглавието върху нея */
.c-hero { position: relative; overflow: hidden; border-radius: 22px; min-height: 300px; aspect-ratio: 21 / 8; max-width: 100%; padding: 18px 22px 22px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; margin-bottom: 16px; background: var(--ink); }
.c-hero > .art, .c-hero > .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, transparent 34%, transparent 45%, rgba(0, 0, 0, .78) 100%); }
.c-hero-top, .c-hero-body { position: relative; display: flex; gap: 10px; }
.c-hero-top { justify-content: space-between; align-items: flex-start; }
.c-hero-top .badge { position: static; }
.c-hero-body { flex-direction: column; gap: 12px; }
.c-hero h1 { color: #fff; font-size: clamp(28px, 5vw, 54px); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); max-width: 22ch; }
.glass { background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; }
.owner-chip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.owner-chip .avatar { border: 2px solid rgba(255, 255, 255, .7); }
@media (prefers-reduced-motion: no-preference) {
  .c-hero > .art { animation: drift 18s ease-in-out infinite alternate; transform-origin: 60% 50%; }
  @keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }
}
.c-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 760px) { .c-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .c-hero { aspect-ratio: auto; min-height: 260px; padding: 14px 16px 18px; } .c-stat b { font-size: 21px; } }
.c-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.c-stat b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; overflow-wrap: anywhere; }
.c-stat span { color: var(--muted); font-size: 13px; }
.c-stat .bar { margin-top: auto; }
.c-stat.hot { background: linear-gradient(135deg, var(--pink), #FF8A5C); border: 0; color: #fff; }
.c-stat.hot span { color: rgba(255, 255, 255, .88); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; overflow-wrap: anywhere; }
.checklist li::before { content: '✓'; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-weight: 800; font-size: 14px; }
/* стъпките: една под друга, а при широка колона в ред */
.detail-main { container-type: inline-size; }
.flowline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; counter-reset: st; }
.flowline li { counter-increment: st; display: flex; flex-direction: column; gap: 2px; position: relative; padding-left: 48px; min-height: 34px; font-size: 14px; }
.flowline li::before { content: counter(st); position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-family: var(--display); font-size: 15px; }
.flowline li:not(:last-child)::after { content: ''; position: absolute; top: 38px; left: 16px; width: 2px; bottom: -12px; background: var(--line); }
.flowline span { color: var(--muted); font-size: 13px; }
@container (min-width: 720px) {
  .flowline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .flowline li { padding: 44px 0 0; }
  .flowline li:not(:last-child)::after { top: 17px; left: 42px; right: -8px; width: auto; height: 2px; bottom: auto; }
}
.calc { background: linear-gradient(135deg, var(--cyan-soft), var(--pink-soft)); border: 0; }
.calc input[type="range"] { width: 100%; accent-color: var(--pink); }
.calc label { flex-direction: row; gap: 6px; align-items: baseline; }
.calc label b { font-family: var(--mono); }
/* в тясната дясна колона профилите са на два реда */
.side .net { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.side .net > a:first-child { grid-column: 1 / -1; }
.calc-out { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc-out b { font-family: var(--display); font-weight: 400; font-size: 42px; color: var(--pink); line-height: 1; }
.calc-out span { color: var(--muted); }
.owner-card h2 { font-size: 18px; }

/* разделите „Обява“ / „Кандидати“ при собственика */
.c-tabs { display: flex; gap: 6px; margin: 0 0 16px; padding: 6px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 14px; flex-wrap: wrap;
  position: sticky; top: calc(var(--top-h, 58px) + 8px); z-index: 15; box-shadow: 0 8px 24px rgba(18, 21, 27, .08); }
.c-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 700; color: var(--muted); text-decoration: none; }
.c-tabs a.on { background: var(--ink); color: var(--bg); }
.c-tabs .count { font-family: var(--mono); font-size: 13px; padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--ink); }
.c-tabs a.on .count { background: rgba(255, 255, 255, .2); color: inherit; }
.c-tabs .dot { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--pink); color: #fff; }
.c-tabs .dot.warn { background: var(--warn); }
.apps-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.apps-head h1 { font-size: clamp(22px, 3.5vw, 32px); }
.apps-thumb { position: relative; flex: none; width: 140px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--ink); }
.apps-thumb .art, .apps-thumb .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) { .apps-thumb { width: 96px; } }
.apps-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 760px) { .apps-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.apps-sum .stat.warn { border-color: var(--warn); background: var(--warn-soft); }
.code { font-family: var(--mono); font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; overflow-wrap: anywhere; }
.stripe-panel .list-rows > div { padding: 8px 0; }

/* страницата с кандидатите */
.owe-box { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.owe-box h2 { font-size: 22px; }
.owe-list { display: flex; flex-direction: column; gap: 8px; }
.owe-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; background: var(--surface); border-radius: 12px; padding: 8px 10px; }
.owe-row b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.owe-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.all-paid { background: var(--ok-soft); color: var(--ok); border-radius: 14px; padding: 12px 16px; font-weight: 700; margin-bottom: 8px; }
.apps-sec { margin-top: 22px; }
.cand-list, .workers { display: flex; flex-direction: column; gap: 10px; }
.cand { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.cand.vipc { border-color: var(--gold); }
.cand-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cand-main .hint b { color: var(--ink); }
.cand-msg { margin: 0; color: var(--ink); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cand-actions { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 560px) { .cand { grid-template-columns: minmax(0, 1fr); } .cand-actions { flex-direction: row; } .cand-actions .btn { flex: 1; } }
details.more > summary { cursor: pointer; color: var(--cyan); font-weight: 600; font-size: 14px; }
details.more[open] > summary { margin-bottom: 8px; }
/* при „Плати“ създателят застава под закачените шапка и раздели, а не под тях */
.worker { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; scroll-margin-top: calc(var(--top-h, 58px) + 84px); }
.worker.owes { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.worker > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; }
.worker > summary::-webkit-details-marker { display: none; }
.worker-name { display: flex; flex-direction: column; min-width: 0; }
.worker-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.worker-due { font-size: 14px; color: var(--warn); font-weight: 600; white-space: nowrap; }
.worker-due b { font-family: var(--mono); }
.chev { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 4px 4px; transition: transform .2s; }
.worker[open] .chev { transform: rotate(225deg); margin-bottom: -4px; }
.worker-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 560px) { .worker > summary { grid-template-columns: 38px minmax(0, 1fr) auto; } .worker > summary .pill, .worker > summary .worker-due, .worker > summary > .hint { grid-column: 2 / 4; } .chev { grid-row: 1; grid-column: 3; } }
.rej { margin-top: 22px; }
.rej-list { display: flex; flex-wrap: wrap; gap: 8px; }
.rej-list a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 3px; color: var(--muted); text-decoration: none; font-size: 14px; }

/* моите кампании в профила */
.my-camps { display: flex; flex-direction: column; gap: 10px; }
.my-camp { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--bg); }
.my-camp > .btn { grid-column: 1 / -1; }
.my-camp a { color: var(--ink); text-decoration: none; }
.my-camp-thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--ink); }
.my-camp-thumb .art, .my-camp-thumb .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) { .my-camp { grid-template-columns: 72px minmax(0, 1fr); } }

/* кампания */
.back { display: inline-block; margin-bottom: 14px; text-decoration: none; font-weight: 600; }
.detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.detail-main .thumb { border-radius: 14px; aspect-ratio: 21 / 9; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel h2 { font-size: 18px; }
.req { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; } }
.promo { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.promo-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.promo-item .price { font-family: var(--mono); font-weight: 700; }
.promo-item.vip { border-color: var(--gold); }
.promo-item.super { border-color: var(--pink); }
.contact { background: var(--ok-soft); color: var(--ink); border-radius: 10px; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.apps { display: flex; flex-direction: column; gap: 12px; }
.app-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.app-item.vipc { border-color: var(--gold); }
.clips { display: flex; flex-direction: column; gap: 8px; }
.clip { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.clip a { overflow-wrap: anywhere; }
.clip .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.stars { display: inline-flex; gap: 2px; }
.stars button { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--line); padding: 0 2px; }
.stars button.on { color: var(--gold); }

.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.pill.wait { background: var(--warn-soft); color: var(--warn); }
.pill.ok { background: var(--cyan-soft); color: var(--cyan); }
.pill.paid { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.vip { background: var(--gold-soft); color: var(--gold); }
.pill.super { background: var(--pink-soft); color: var(--pink); }

/* кредити */
.balance { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.balance b { font-family: var(--mono); font-size: 40px; font-variant-numeric: tabular-nums; line-height: 1; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pack { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pack.best { border: 2px solid var(--gold); }
.pack .cr { font-family: var(--display); font-size: 26px; }
.pack .eur { font-family: var(--mono); font-weight: 700; font-size: 18px; }
.pack .btn { margin-top: auto; }
.pricelist { display: flex; flex-direction: column; }
.pricelist div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pricelist div:last-child { border-bottom: 0; }
.pricelist b { font-family: var(--mono); white-space: nowrap; }

/* услуги за кредити */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .offers { grid-template-columns: 1fr; } }
.offer-meta { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 13px; font-family: var(--mono); }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.offer-vip { border-color: var(--gold); }
.offer-super { border-color: var(--pink); }
.offer-top5 { border-color: var(--cyan); }
.offer-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.offer-price { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.offer-price b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; }
.offer-price b.free { font-size: 24px; color: var(--ok); }
.offer-price span { font-weight: 600; }
.offer-price small { color: var(--muted); font-family: var(--mono); }
.offer-price em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--pink); }
.offer-vip .offer-price b { color: var(--gold); }
.offer-super .offer-price b { color: var(--pink); }
.offer-top5 .offer-price b { color: var(--cyan); }
/* малките схеми */
.mini { position: relative; height: 96px; padding: 12px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); }
.mini i { display: block; height: 12px; border-radius: 4px; background: var(--line); flex: none; }
.mini i.me { background: var(--surface); border: 2px solid var(--muted); height: 16px; }
.mini i.gold { background: var(--gold-soft); border: 2px solid var(--gold); height: 18px; }
.mini i.big { background: linear-gradient(120deg, var(--cyan), var(--pink)); height: 34px; border: 0; }
.mini-bump i.up { border-color: var(--cyan); }
.mini .arrow { position: absolute; right: 18px; top: 8px; font-size: 30px; font-weight: 800; color: var(--cyan); line-height: 1; }
.t5mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.t5mini b { height: 30px; border-radius: 6px; background: var(--line); color: var(--muted); font-size: 11px; display: grid; place-items: center; }
.t5mini b.on { background: linear-gradient(150deg, var(--cyan), var(--pink)); color: #fff; }
.mini-vipp i { margin-left: 22px; position: relative; overflow: visible; }
.mini-vipp i::before { content: ''; position: absolute; left: -22px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--line); }
.mini-vipp i.gold::before { background: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .offer { transition: transform .15s; }
  .offer:hover { transform: translateY(-2px); }
  .mini-bump .arrow { animation: nudge 1.6s ease-in-out infinite; }
  @keyframes nudge { 0%, 100% { transform: translateY(4px); } 50% { transform: translateY(-2px); } }
}

/* таблици */
.tablebox { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.plus { color: var(--ok); }
.minus { color: var(--bad); }

/* профил */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.profile-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(160deg, var(--cyan), var(--pink)); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 26px; flex: none; }
.avatar { object-fit: cover; overflow: hidden; }
.avatar.xs { width: 30px; height: 30px; border-radius: 50%; font-size: 13px; }
.avatar.sm { width: 38px; height: 38px; border-radius: 12px; font-size: 16px; }
.avatar.md { width: 56px; height: 56px; border-radius: 16px; font-size: 24px; }
.avatar.lg { width: 88px; height: 88px; border-radius: 24px; font-size: 36px; }
.avatar.xl { width: 128px; height: 128px; border-radius: 34px; font-size: 54px; border: 5px solid var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.avatar-edit { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.who-row { display: flex; align-items: center; gap: 10px; }

/* публичен профил */
.prof-hero { margin-bottom: 18px; }
.prof-cover { height: 150px; border-radius: 20px; background:
  radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .28), transparent 40%),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 22px, transparent 22px 64px),
  linear-gradient(120deg, var(--cyan), var(--pink)); }
.prof-head { display: flex; align-items: flex-end; gap: 18px; padding: 0 20px; margin-top: -64px; flex-wrap: wrap; }
/* името започва под корицата, само снимката се застъпва с нея */
.prof-id { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; margin-top: 72px; min-width: 0; }
.prof-meta { color: var(--muted); font-size: 14px; gap: 6px; }
.prof-head > .btn { margin-left: auto; margin-bottom: 8px; }
.prof-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.prof-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.prof-grid.solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
@media (max-width: 820px) { .prof-grid { grid-template-columns: minmax(0, 1fr); } .prof-head { margin-top: -48px; padding: 0 8px; } .avatar.xl { width: 100px; height: 100px; } }
@media (max-width: 560px) { .prof-cover { height: 110px; } .prof-id { margin-top: 0; width: 100%; } .prof-head > .btn { margin-left: 0; } }
.bio { white-space: pre-wrap; overflow-wrap: anywhere; }
.netcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.netcard { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.netcard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; }
.net-tiktok::before { background: linear-gradient(90deg, #25F4EE, #FE2C55); }
.net-instagram::before { background: linear-gradient(90deg, #FEDA75, #FA7E1E, #D62976, #962FBF); }
.net-youtube::before { background: #FF0000; }
.netcard-top { display: flex; flex-direction: column; }
.netcard-top span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.netcard-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.netcard-nums b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.netcard-nums span { color: var(--muted); font-size: 12px; }
.reviews { display: flex; flex-direction: column; gap: 10px; }
.review { background: var(--bg); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.stars-ro { color: var(--gold); letter-spacing: 2px; }
.stars-ro i { color: var(--line); font-style: normal; }
.grid.one { grid-template-columns: minmax(0, 1fr); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-family: var(--mono); font-size: 24px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.list-rows { display: flex; flex-direction: column; }
.list-rows a, .list-rows > div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.list-rows > :last-child { border-bottom: 0; }

/* как работи и текстове */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 18px 0 26px; padding: 0; list-style: none; }
.flow li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.tag { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.tag.adv { color: var(--pink); }
.tag.cr { color: var(--cyan); }
.text { max-width: 72ch; display: flex; flex-direction: column; gap: 12px; }
.text h2 { margin-top: 12px; }
.text ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.auth { max-width: 440px; margin: 10px auto 0; display: flex; flex-direction: column; gap: 16px; }

.foot { border-top: 1px solid var(--line); background: var(--surface); padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot-row { display: flex; gap: 16px; flex-wrap: wrap; padding-block: 16px; color: var(--muted); font-size: 14px; }
.foot-row a { color: var(--muted); }

.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.strength { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; }
.strength strong { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pill.tier { background: var(--ink); color: var(--bg); }
.nets { display: flex; flex-direction: column; gap: 6px; }
.net { display: grid; grid-template-columns: minmax(0, 1.6fr) auto auto auto; gap: 6px 12px; align-items: center; background: var(--bg); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.net a { overflow-wrap: anywhere; }
.net .num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 460px) { .net { grid-template-columns: 1fr 1fr; } }
.net-edit { border: 1px solid var(--line); border-radius: 12px; padding: 12px; gap: 10px; }
.net-edit legend { padding: 0 6px; margin: 0; }
/* плащане към създателя */
.pay-box { background: var(--ok-soft); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.pay-m { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--surface); border-radius: 10px; padding: 10px 12px; }
.pay-m > div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.pay-m .num { font-family: var(--mono); font-size: 13px; }
.pay-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; }
.pay-logo.rev { background: #191C1F; }
.pay-logo.pp { background: #003087; }
.pay-logo.bank { background: var(--cyan); }
.due { font-size: 14px; }
.due b { font-family: var(--mono); }
@media (max-width: 460px) { .pay-m { grid-template-columns: 34px minmax(0, 1fr); } .pay-m .btn { grid-column: 1 / -1; } }
.pay-edit .hint { margin-top: -4px; }
.tip { display: flex; flex-direction: column; gap: 4px; border-radius: 10px; padding: 12px; background: var(--cyan-soft); font-size: 14px; }
.tip.risky { background: var(--warn-soft); }
.tip.risky strong { color: var(--warn); }
.warn-text { color: var(--bad); font-weight: 600; }
.mt6 { margin-top: 6px; }
.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt22 { margin-top: 22px; }
.mb14 { margin-bottom: 14px; }
.mb18 { margin-bottom: 18px; }
input.w80 { width: 80px; flex: none; }
.narrow { max-width: 720px; }
.coin.big { width: 28px; height: 28px; box-shadow: inset 0 0 0 5px var(--gold-soft); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.toast.bad { background: var(--bad); color: #fff; }
@media (prefers-reduced-motion: no-preference) { .card { transition: transform .15s; } .card:hover { transform: translateY(-2px); } }
