/* 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: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-card { display: none; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.15fr .85fr; } .hero-card { display: block; } }
.mock-order { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px rgba(60, 30, 140, .18); transform: rotate(1.5deg); display: grid; gap: 12px; }
.mock-row { display: flex; gap: 6px; }
.mock-field { border: 1.5px solid var(--line); border-radius: 11px; padding: 12px; color: var(--muted); font-size: .95rem; }
.mock-field.qty, .mock-total { display: flex; justify-content: space-between; }
.mock-total { font-size: 1.05rem; padding: 6px 2px; }
.mock-btn { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; text-align: center; padding: 13px; border-radius: 12px; font-weight: 700; }
.mock-status { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.mock-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--run); box-shadow: 0 0 0 5px var(--run-bg); }
.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, .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; }
.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; }
.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-layout { display: grid; gap: 16px; align-items: start; }
@media (min-width: 960px) { .order-layout { grid-template-columns: 1.2fr .8fr; } .order-form { position: sticky; top: 76px; } }
.step-title { display: flex; align-items: center; gap: 10px; font-weight: 750; margin: 18px 0 10px; }
.step-title:first-child { margin-top: 0; }
.step-title span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: .85rem; }
.svc-pick { display: grid; gap: 8px; margin-top: 10px; max-height: 520px; overflow-y: auto; padding: 2px; }
.svc-opt { text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.svc-opt:hover { border-color: var(--brand); }
.svc-opt[aria-selected=true] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.svc-opt b { font-weight: 800; white-space: nowrap; }
.svc-opt .sub { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); }
.order-form { display: grid; gap: 14px; }
.selected-svc { padding: 12px; border-radius: 11px; background: var(--surface-2); font-size: .95rem; }
.selected-svc strong { display: block; color: var(--ink); }
.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; }
.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; }
