/* InstaHub — власна дизайн-система. Мобільна версія — основна. */
:root {
  --bg: #f5f4fa;
  --surface: #ffffff;
  --surface-2: #f0eef8;
  --ink: #17122b;
  --muted: #6c6788;
  --line: #e4e1ef;
  --brand: #5b2be0;
  --brand-2: #ff6a4d;
  --brand-ink: #ffffff;
  --brand-soft: #ece6ff;
  --ok: #12895a; --ok-bg: #e2f6ec;
  --run: #2563eb; --run-bg: #e3ecfe;
  --wait: #8a6a00; --wait-bg: #fbf1cf;
  --part: #b45309; --part-bg: #fdebd6;
  --bad: #c0283a; --bad-bg: #fde4e7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 18, 43, .05), 0 6px 24px rgba(23, 18, 43, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0b1d; --surface: #181329; --surface-2: #211b36; --ink: #efecf9; --muted: #a39dbd; --line: #2d2645;
    --brand: #8a63ff; --brand-soft: #2a2050;
    --ok: #4fd39a; --ok-bg: #12352a; --run: #7aa7ff; --run-bg: #1a2a4d; --wait: #f0cc5b; --wait-bg: #3a3116;
    --part: #ffae5c; --part-bg: #3d2812; --bad: #ff7a8a; --bad-bg: #3f1a22;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 750; margin-top: 1.6em; }
.h3, h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.2em; }
.card > .h3:first-child, .card > h2:first-child { margin-top: 0; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .9em; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; overflow-x: auto; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 6px; }
pre code { background: none; padding: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 28px 16px 40px; }
.narrow { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .6em; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* --- шапка --- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.topnav { display: none; gap: 4px; }
.topnav a { color: var(--muted); padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: .95rem; }
.topnav a:hover, .topnav a[aria-current] { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.balance-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); padding: 6px 6px 6px 12px; border-radius: 999px; font-size: .92rem; white-space: nowrap; }
.balance-pill .plus { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1rem; line-height: 1; }
.balance-pill:hover { text-decoration: none; border-color: var(--brand); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; }
.avatar:hover { text-decoration: none; }
@media (min-width: 860px) { .topnav { display: flex; } }

/* --- кнопки --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; color: var(--brand-ink); background: var(--brand); padding: 11px 18px; border-radius: 11px; line-height: 1.2; transition: transform .06s ease, filter .15s ease, background .15s; text-align: center; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); filter: none; }
.btn.google { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.lg { padding: 14px 22px; font-size: 1.05rem; border-radius: 13px; }
.btn.sm { padding: 8px 13px; font-size: .9rem; }
.btn.xs { padding: 5px 10px; font-size: .82rem; border-radius: 8px; }
.btn.block { width: 100%; }
.hero .btn:not(.ghost), .cta-band .btn { background: linear-gradient(120deg, var(--brand), #8c4dff 55%, var(--brand-2)); }

/* --- форми --- */
.form { display: grid; gap: 14px; align-content: start; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=time], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 13px; font-weight: 500; min-height: 46px;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.hint { font-weight: 400; font-size: .84rem; color: var(--muted); }
.inline-form { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.inline-form input { flex: 1 1 160px; width: auto; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-family: var(--mono); font-size: .88rem; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* --- картки й сітки --- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.grid-2 { display: grid; gap: 16px; }
.grid-2 > .card + .card { margin-top: 0; }
.grid-2.tight { gap: 12px; }
.grid-5 { display: grid; gap: 12px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-5 { grid-template-columns: repeat(5, 1fr); } }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 0; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-actions form { margin: 0; }
.empty { text-align: center; padding: 40px 20px; }

/* --- флеш --- */
.flashes { padding-top: 14px; display: grid; gap: 8px; }
.flash { padding: 12px 14px; border-radius: 11px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; white-space: pre-line; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.err { background: var(--bad-bg); color: var(--bad); }
.flash.info { background: var(--run-bg); color: var(--run); }
.card .flash { margin-bottom: 12px; }

/* --- бейджі й чипи --- */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.run { background: var(--run-bg); color: var(--run); }
.badge.wait { background: var(--wait-bg); color: var(--wait); }
.badge.part { background: var(--part-bg); color: var(--part); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--brand); text-decoration: none; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --- головна --- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 60%), radial-gradient(900px 600px at 0% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; gap: 32px; padding: 44px 16px 52px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.3rem); letter-spacing: -.035em; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.hero-facts { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; padding: 0; margin: 0; color: var(--muted); }
.hero-facts strong { color: var(--ink); font-size: 1.15rem; margin-right: 4px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.hero-trust li { font-size: .88rem; padding: 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.15fr .85fr; } }
.quick { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: 0 30px 80px rgba(60, 30, 140, .16); display: grid; gap: 12px; align-self: center; }
.qk-title { font-weight: 800; font-size: 1.05rem; }
.qk-nets { display: flex; flex-wrap: wrap; gap: 6px; }
.qk-nets .chip { font-size: .85rem; padding: 6px 11px; }
.qk-more { width: auto; padding: 6px 10px; border-radius: 999px; font-size: .85rem; }
.qk-lbl { display: grid; gap: 4px; font-size: .85rem; font-weight: 650; color: var(--muted); }
.qk-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; padding: 2px; }
.qk-total b { font-size: 1.3rem; color: var(--ink); }
.qk-note { margin: 0; text-align: center; }
.order-quick { max-width: 640px; margin: 0 auto; }
.quick [hidden] { display: none !important; }
.qk-row { display: flex; justify-content: space-between; align-items: center; }
.qk-block { display: grid; gap: 10px; }
.quick select, .quick textarea { width: 100%; }
.quick textarea { min-height: 96px; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); resize: vertical; }
.star-btn { border: 0; background: none; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 2px 4px; }
.star-btn.on, .star-btn:hover { color: #f5a524; }
#o-info { line-height: 1.4; }
/* статті й сторінки послуг */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.prose-page { max-width: 820px; }
.prose-head h1 { margin: .1em 0 .3em; }
.prose { font-size: 1.04rem; line-height: 1.7; }
.prose h2 { margin: 1.6em 0 .5em; font-size: 1.35rem; scroll-margin-top: 80px; }
.prose h3 { margin: 1.3em 0 .4em; font-size: 1.1rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose .tip { border-left: 3px solid var(--brand); background: var(--brand-soft); padding: 12px 14px; border-radius: 0 10px 10px 0; margin: 0 0 1em; }
.toc { margin: 8px 0 20px; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.faq { margin-top: 28px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.related { margin-top: 24px; }
.related h2 { font-size: 1.1rem; }
.related ul { padding-left: 18px; margin: 0; }
.related-grid { margin-top: 12px; }
.back { margin-top: 28px; }
.blog-cats { margin: 14px 0 18px; }
.blog-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.blog-card { display: grid; gap: 6px; color: var(--ink); text-decoration: none; align-content: start; }
.blog-card + .blog-card { margin-top: 0; }
.blog-card:hover { text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--brand), var(--shadow); }
.blog-card h2 { font-size: 1.08rem; margin: 0; }
.blog-card p { margin: 0; font-size: .92rem; }
.landing-offer { margin: 6px 0 22px; }
.lo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.lo-list { list-style: none; margin: 0 0 8px; padding: 0; }
.lo-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.lo-name { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .lo-list li { grid-template-columns: 1fr auto; } .lo-list li .muted { grid-column: 1; grid-row: 2; } }
.guides { margin-top: 18px; color: var(--muted); }
.guides summary { cursor: pointer; font-size: .92rem; }
.guides ul { margin: 8px 0 0; padding-left: 18px; }
.alerts-form .card + .card { margin-top: 16px; }
.alerts-form h2 { margin: 0 0 4px; font-size: 1.1rem; }
.alert-types { display: grid; gap: 10px; }
.alert-type { border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 12px; padding: 12px; display: grid; gap: 10px; }
.at-head { display: grid; gap: 2px; }
.at-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.at-row.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); font-weight: 500; }
.chip-check input { width: 16px; height: 16px; accent-color: var(--brand); }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 28px; }
.pre-small { white-space: pre-line; font-size: .85rem; max-width: 520px; }
.eta { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .9rem; }
.eta[hidden] { display: none; }
.eta-ico { font-size: 1.1rem; line-height: 1.3; }
.eta b { font-weight: 700; }
@media (max-width: 899px) { .quick { padding: 16px; border-radius: 18px; box-shadow: var(--shadow); } }
.net-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.net-card { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 46px; position: relative; color: var(--ink); box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s; }
.net-card:hover { transform: translateY(-2px); border-color: var(--brand); text-decoration: none; }
.net-name { font-weight: 750; font-size: 1.05rem; }
.net-dot { position: absolute; left: 16px; top: 19px; width: 18px; height: 18px; border-radius: 6px; background: var(--brand); }
.net-ig .net-dot { background: linear-gradient(45deg, #f9a03f, #e1306c 50%, #8a3ab9); }
.net-tt .net-dot { background: linear-gradient(45deg, #25f4ee, #111 50%, #fe2c55); }
.net-tg .net-dot { background: #27a6e5; }
.net-yt .net-dot { background: #ff2a2a; }
.net-fb .net-dot { background: #1877f2; }
.net-th .net-dot { background: #101010; }
.net-x .net-dot { background: #000; }
.net-sp .net-dot { background: #1db954; }
.net-tw .net-dot { background: #9146ff; }
.net-dc .net-dot { background: #5865f2; }
.net-li .net-dot { background: #0a66c2; }
.net-sc .net-dot { background: #f5d800; }
.net-wa .net-dot { background: #25d366; }
.net-kk .net-dot { background: #3fbf12; }
.net-scl .net-dot { background: #ff5500; }
.net-pin .net-dot { background: #e60023; }
.net-rd .net-dot { background: #ff4500; }
@media (max-width: 599px) {
  .net-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .net-card { padding: 12px 10px 12px 36px; }
  .net-dot { left: 11px; top: 15px; width: 16px; height: 16px; }
  .net-name { font-size: .95rem; }
  .net-card .small { font-size: .74rem; }
}
.net-th .net-dot, .net-x .net-dot { background: #222; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; padding: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 4px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: .95rem; }
/* «Як це працює» з ілюстраціями: 4 в ряд на широкому екрані, по 2 на планшеті, по одній на телефоні */
.steps-ill { grid-template-columns: 1fr; position: relative; }
@media (min-width: 560px) { .steps-ill { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps-ill { grid-template-columns: repeat(4, 1fr); } }
.steps-ill li { position: relative; padding-top: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.steps-ill li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.steps-ill li::before { position: absolute; top: 22px; left: 22px; z-index: 1; margin: 0; width: 28px; height: 28px; font-size: .85rem;
  background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ill { border-radius: calc(var(--radius) - 6px); background: var(--brand-soft); margin-bottom: 10px; display: grid; place-items: center; overflow: hidden; }
.ill svg { width: 100%; max-width: 220px; height: auto; display: block; }
.ill-f { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.ill-m { fill: var(--line); }
.ill-a { fill: var(--brand); opacity: .9; }
.ill-s { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ill-ok { fill: var(--ok, #16a34a); }
.ill-ok-s, .ill-btn-s { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ill-coin { fill: #f6c344; stroke: #e0a91b; stroke-width: 2; }
.ill-coin-t { fill: #7a5200; font: 800 17px/1 var(--font); }
.ill-dot { fill: var(--brand); opacity: .25; }
.ill-chart { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 140; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .steps-ill li:hover .ill-chart { animation: ill-draw 1.1s ease forwards; }
  .steps-ill li:hover .ill-bar { animation: ill-fill 1.1s ease forwards; transform-origin: 40px 72px; }
  .steps-ill li:hover .ill-btn { animation: ill-pulse .9s ease; transform-origin: 111px 62px; }
}
@keyframes ill-draw { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }
@keyframes ill-fill { from { transform: scaleX(.15); } to { transform: scaleX(1); } }
@keyframes ill-pulse { 50% { transform: scale(1.06); } }
.features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { padding: 18px; border-radius: var(--radius); background: var(--surface-2); }
.feature h3 { margin-top: 0; }
.feature p { color: var(--muted); margin: 0; }
.features-ill { grid-template-columns: 1fr; }
@media (min-width: 560px) { .features-ill { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features-ill { grid-template-columns: repeat(4, 1fr); } }
.features-ill .feature { background: var(--surface); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.features-ill .feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.features-ill .feature h3 { margin: 4px 0 6px; }
.ill-sm { margin-bottom: 12px; }
.ill-sm svg { max-width: 200px; }
.ill-dash { stroke-dasharray: 4 5; }
.ill-tg { fill: #229ED9; }
.ill-tg-s { fill: #fff; }
.ill-gift { fill: var(--brand); }
.ill-ribbon { fill: #f6c344; }
.ill-pct { fill: var(--brand); font: 800 22px/1 var(--font); opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  .features-ill .feature:hover .ill-s { animation: ill-pulse .9s ease; transform-box: fill-box; transform-origin: center; }
}
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.cta-band { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; margin: 10px auto 40px; padding: 36px 16px; }
.cta-band h2 { margin-top: 0; }

/* --- каталог --- */
.filters { display: grid; gap: 12px; margin-bottom: 16px; }
.filters .chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: thin; }
@media (min-width: 760px) { .filters .chips { flex-wrap: wrap; overflow: visible; } }
.svc-table { display: grid; gap: 10px; }
.svc-group h3 { margin: 18px 0 8px; font-size: 1rem; color: var(--muted); font-weight: 700; }
.svc-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.svc-row .nm { font-weight: 650; }
.svc-row .meta { grid-column: 1 / -1; font-size: .84rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.svc-row .pr { font-weight: 800; white-space: nowrap; text-align: right; }
.svc-row .pr small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.svc-row .act { grid-column: 1 / -1; }
@media (min-width: 760px) { .svc-row { grid-template-columns: 1fr 140px 130px; } .svc-row .meta { grid-column: 1; } .svc-row .act { grid-column: auto; grid-row: 1 / span 2; grid-column-start: 3; } }

/* --- оформлення замовлення --- */
.order-wrap { max-width: 860px; }
.hint.warn { color: var(--part); font-weight: 600; }
/* соцмережі — плитки з тематичним значком, без горизонтальної прокрутки */
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; min-width: 0; }
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-weight: 800; }
/* типи — плитки з ціною «від» і кількістю послуг */
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; min-width: 0; }
/* перемикач «1 допис / кілька / нові» */
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.seg[hidden] { display: none; }
.seg label { display: block; margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 8px 4px; border-radius: 9px; font-size: .84rem; font-weight: 650; cursor: pointer; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); }
.plan-steps-wrap summary { cursor: pointer; font-weight: 650; margin: 6px 0; }
.plan-card { margin-bottom: 12px; }
.of-auto { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); font-size: .9rem; }
.order-form { display: grid; gap: 14px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 0; border-top: 1px dashed var(--line); font-weight: 600; }
.total b { font-size: 1.7rem; letter-spacing: -.02em; }
.qty-presets .chip { font-size: .82rem; padding: 6px 11px; }
.svc-desc summary { cursor: pointer; font-weight: 650; }
.svc-desc div { white-space: pre-line; font-size: .92rem; color: var(--muted); margin-top: 8px; }

/* --- замовлення --- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search] { flex: 1 1 220px; width: auto; }
.toolbar select { width: auto; flex: 0 1 200px; }
.toolbar .chips { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; padding-bottom: 2px; }
.orders { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; min-width: 0; }
.order-card header { display: flex; align-items: center; gap: 10px; }
.order-card time { margin-left: auto; }
.oid { font-weight: 800; }
.o-name { font-weight: 650; }
.o-link { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0; }
.o-meta dt { font-size: .75rem; color: var(--muted); }
.o-meta dd { margin: 0; font-weight: 700; }
.order-card footer { display: flex; gap: 8px; flex-wrap: wrap; }
.order-card footer form { margin: 0; }
.pager { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }

/* --- баланс --- */
.balance-card .big { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: 2px 0 14px; }
.tiers { padding-left: 18px; margin: 0; }
.pay-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pay-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.pay-list form { margin: 0; }
.stats-row { display: flex; gap: 24px; margin-top: 16px; }
.stats-row div { display: grid; }
.stats-row b { font-size: 1.5rem; }

/* --- таблиці --- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table form { margin: 0; }
.table tr.dim td { opacity: .55; }
.table.compact td { padding: 7px 10px; }
.card .table-wrap, .card > .table { border: 0; }
.ellipsis { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 3px 0; display: flex; gap: 10px; justify-content: space-between; text-align: right; }
  .table td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: .82rem; text-align: left; }
  .ellipsis { max-width: none; }
}
.kv { display: grid; gap: 8px; margin: 0 0 16px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; word-break: break-all; }

/* --- адмінка --- */
.subnav { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 10px 14px; color: var(--muted); font-weight: 650; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a[aria-current] { color: var(--ink); border-color: var(--brand); text-decoration: none; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 2px; }
.kpi span { color: var(--muted); font-size: .85rem; }
.kpi b { font-size: 1.4rem; letter-spacing: -.02em; }
.kpi small { color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar i { display: block; width: 100%; min-height: 2px; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--brand-2))); border-radius: 5px 5px 2px 2px; }
.bar span { font-size: .7rem; color: var(--muted); }
.status-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.narrow-form { max-width: 620px; }
.promo-form { margin-bottom: 16px; }

/* --- auth --- */
.auth { display: grid; place-items: center; padding: 40px 16px 60px; }
.auth-card { width: 100%; max-width: 420px; display: grid; gap: 14px; }
.auth-card h1 { margin-bottom: 0; }

/* --- docs --- */
.docs h2 { font-size: 1.2rem; }

/* --- футер і таббар --- */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 90px; margin-top: 30px; }
.footer-in { display: grid; gap: 18px; margin-bottom: 14px; }
.footer nav { display: grid; gap: 6px; }
@media (min-width: 760px) { .footer { padding-bottom: 28px; } .footer-in { grid-template-columns: 1fr 1fr; } }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: grid; justify-items: center; gap: 2px; font-size: .72rem; font-weight: 650; color: var(--muted); padding: 4px 0; }
.tabbar a[aria-current] { color: var(--brand); }
.tabbar a:hover { text-decoration: none; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 860px) { .tabbar { display: none; } }
@media (max-width: 859px) { body:has(.tabbar) main { padding-bottom: 70px; } }

/* --- обрані, прогрес, рівні --- */
.star { color: var(--muted); cursor: pointer; font-size: 1.05rem; padding: 0 2px; }
.star.on { color: #f5a524; }
.star:hover { color: #f5a524; }
.pbar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 999px; transition: width .6s ease; }
.progress { display: grid; gap: 4px; }
.tier-box { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: var(--surface-2); margin: 0 0 16px; }
.tier-head b { color: var(--brand); }
.plan-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.plan-steps li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: .92rem; flex-wrap: wrap; }
.plan-steps li > span:first-child { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.plan-steps .hint { display: block; }
.wz-mode { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.wz-mode legend { font-weight: 700; font-size: .93rem; padding: 0 6px; }
.wz-opt { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.wz-opt input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.wz-opt > span { display: grid; gap: 2px; }
.wz-opt input:disabled + span { opacity: .55; }
.wz-avail { color: var(--brand); font-weight: 600; }
.wz-sub { margin-left: 28px; }
.wz-sub[hidden] { display: none; }
.wz-who { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); font-size: .9rem; }
.wz-who ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.msg { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); white-space: pre-line; }
.msg.admin { background: var(--brand-soft); }
.msg .meta { font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.thread { display: grid; gap: 10px; margin-bottom: 16px; }
.pack { display: grid; gap: 10px; }
.pack .price { font-size: 1.4rem; font-weight: 800; }
.pack .old { text-decoration: line-through; color: var(--muted); font-size: .95rem; margin-left: 6px; }
.packs-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.qr svg { width: 200px; height: 200px; }

/* --- адмінка: постачальники --- */
.prov-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-bottom: 10px; }
.prov-card { display: grid; gap: 10px; align-content: start; }
.prov-card + .prov-card { margin-top: 0; }
.prov-card header { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.prov-card header h2 { margin: 0; }
.prov-card.dim { opacity: .6; }
.prov-edit { width: 100%; }
.prov-edit summary { list-style: none; display: inline-flex; }
.prov-edit summary::-webkit-details-marker { display: none; }
.prov-edit[open] form { margin-top: 12px; }
.pb-filters { display: grid; gap: 12px; margin-bottom: 12px; }
.pb-filters .chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
@media (min-width: 760px) { .pb-filters .chips { flex-wrap: wrap; overflow: visible; } }
.pb-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.pb-row select { width: auto; flex: 1 1 220px; max-width: 100%; }
.pb-bar { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  justify-content: space-between; padding: 12px 16px; margin-bottom: 10px; }
.pb-markup { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.pb-markup input { width: 90px; min-height: 38px; padding: 6px 10px; }
.pb-list { display: grid; gap: 8px; }
.pb-item { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; font-weight: 500; }
.pb-item:hover { border-color: var(--brand); }
.pb-item:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pb-item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.pb-item.added { cursor: default; background: var(--surface-2); }
.pb-item.added:hover { border-color: var(--line); }
.pb-check { width: 20px; text-align: center; color: var(--ok); font-weight: 800; }
.pb-name { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.pb-meta { font-size: .82rem; color: var(--muted); }
.chip-mini { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .75rem; }
.pb-price { grid-column: 2; display: grid; gap: 1px; }
.pb-price small { color: var(--muted); font-size: .75rem; }
.pb-item .btn { grid-column: 2; justify-self: start; }
@media (min-width: 760px) {
  .pb-item { grid-template-columns: auto 1fr 170px; }
  .pb-price { grid-column: 3; text-align: right; }
  .pb-item.added { grid-template-columns: auto 1fr 170px auto; }
  .pb-item .btn { grid-column: 4; align-self: center; }
}
.pb-orig { font-size: .78rem; color: var(--muted); font-style: italic; }
.autopick { margin-bottom: 12px; } .autopick summary { cursor: pointer; } .autopick form { margin-top: 12px; align-items: center; }

/* --- мобільне меню --- */
.mnav { position: relative; }
.mnav summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  border: 1.5px solid var(--line); cursor: pointer; color: var(--ink); background: var(--surface); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mnav[open] summary { border-color: var(--brand); color: var(--brand); }
.mnav-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; display: grid; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(23, 18, 43, .18); z-index: 40; }
.mnav-panel a, .mnav-panel button { display: block; text-align: left; padding: 11px 12px; border-radius: 9px; color: var(--ink);
  font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; }
.mnav-panel a:hover, .mnav-panel button:hover { background: var(--surface-2); text-decoration: none; }
.mnav-install[hidden] { display: none; }
@media (min-width: 860px) { .mnav { display: none; } }

/* --- банер «встановити застосунок» --- */
.install-bar { position: fixed; left: 10px; right: 10px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 35;
  display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 40px rgba(23, 18, 43, .2); }
.install-bar[hidden] { display: none; }
.install-bar img { border-radius: 10px; }
.install-text { display: grid; font-size: .82rem; line-height: 1.3; }
.install-text span { color: var(--muted); }
.install-close { border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 6px; }
body:not(:has(.tabbar)) .install-bar { bottom: calc(12px + env(safe-area-inset-bottom)); }

/* --- телефон: зручні цілі для пальця, без вкладених прокруток --- */
@media (max-width: 859px) {
  .btn.sm { min-height: 40px; padding: 9px 14px; }
  .btn.xs { min-height: 36px; padding: 7px 12px; }
  .chip { min-height: 38px; display: inline-flex; align-items: center; }
  .page-head { align-items: flex-start; }
  .page-head h1 { width: 100%; }
  .section { padding-top: 20px; }
  .card { padding: 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi b { font-size: 1.15rem; }
  .row-actions { width: 100%; }
}
.qk-row label { font: inherit; color: inherit; }

/* --- прев'ю посту Telegram (Адмінка → Канал) --- */
.tg-preview { background: #8fb39b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1.6' fill='%23ffffff' fill-opacity='.25'/%3E%3C/svg%3E"); border-radius: 14px; padding: 18px; display: grid; gap: 4px; justify-items: start; }
.tg-bubble { background: #fff; color: #111; border-radius: 14px 14px 14px 4px; max-width: 100%; width: 100%; overflow: hidden; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.tg-media img, .tg-media video { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.tg-text { padding: 8px 12px 2px; font-size: .95rem; line-height: 1.4; white-space: normal; word-break: break-word; }
.tg-text a { color: #2481cc; }
.tg-text blockquote { margin: 4px 0; padding: 2px 8px; border-left: 3px solid #2481cc; background: #eef5fb; border-radius: 4px; }
.tg-text code { background: #f1f1f1; color: #c03; }
.tg-spoiler { background: #c8c8c8; color: transparent; border-radius: 3px; }
.tg-meta { font-size: .72rem; color: #8a9aa6; text-align: right; padding: 0 10px 6px; }
.tg-buttons { display: grid; gap: 4px; width: 100%; }
.tg-row { display: flex; gap: 4px; }
.tg-btn { flex: 1; text-align: center; background: rgba(0, 0, 0, .28); color: #fff; padding: 9px 8px; border-radius: 10px; font-size: .88rem; font-weight: 600; text-decoration: none; }
.tg-btn:hover { background: rgba(0, 0, 0, .38); text-decoration: none; }
textarea.mono { font-family: var(--mono); font-size: .88rem; line-height: 1.5; }
.ill-link { stroke-width: 2.4; }
