/* wmigiem.pl – arkusz stylów sklepu */
:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --ink: #18181b;
  --muted: #5f6068;
  --line: #e4e3dd;
  --brand: #2b4acb;
  --brand-dark: #1f379c;
  --brand-soft: #e9edfc;
  --accent: #e8a33d;
  --ok: #1d7a4f;   --ok-soft: #e3f4ea;
  --warn: #9a6400; --warn-soft: #fbf0d9;
  --bad: #b3261e;  --bad-soft: #fbe5e3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(24,24,27,.06), 0 8px 24px rgba(24,24,27,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--brand-soft); padding: .1em .4em; border-radius: 6px; font-size: .92em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

/* ---- przyciski ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; border-radius: 10px; border: 1.5px solid var(--brand); background: var(--brand); color: #fff; font: 600 1rem var(--font); cursor: pointer; transition: background .15s, transform .15s; text-decoration: none !important; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light:hover { background: var(--brand-soft); border-color: var(--brand-soft); }
.btn-small { padding: .45em .9em; font-size: .9rem; }
.btn-block { width: 100%; margin-top: .6em; }
.link { font-weight: 600; }

/* ---- nagłówek ---- */
.topbar { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55em; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none !important; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.nav { display: flex; align-items: center; gap: 1.6em; }
.nav a { color: var(--ink); font-weight: 500; }
.nav a.active { color: var(--brand); }
.nav .btn-ghost { color: var(--brand); }
.nav-toggle, .nav-burger { display: none; }

/* ---- komunikaty ---- */
.flashes { padding-top: 20px; }
.alert { padding: .85em 1.1em; border-radius: 10px; margin-bottom: 1em; border: 1px solid transparent; }
.alert-success { background: var(--ok-soft); color: var(--ok); border-color: #bfe3cd; }
.alert-error { background: var(--bad-soft); color: var(--bad); border-color: #f3c3be; }
.alert-info { background: var(--brand-soft); color: var(--brand-dark); border-color: #cdd6f7; }

/* ---- hero ---- */
.hero { padding: 72px 0 64px; background: radial-gradient(1200px 400px at 85% 0%, var(--brand-soft), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: 1em; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
.accent { color: var(--brand); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.6em 0 1.2em; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.4em; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: .4em; }
.hero-visual { position: relative; min-height: 340px; }
.mock { position: absolute; inset: 0 40px 40px 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; z-index: 2; }
.mock-back { inset: 40px 0 0 40px; z-index: 1; opacity: .7; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-hero { height: 110px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), #6d83e6); }
.mock-hero.alt { background: linear-gradient(135deg, var(--accent), #f2c98a); }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-row span { height: 56px; border-radius: 8px; background: var(--brand-soft); }
.mock-lines { display: grid; gap: 8px; }
.mock-lines span { height: 9px; border-radius: 5px; background: var(--line); }
.mock-lines .short { width: 60%; }

/* ---- sekcje ---- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin-bottom: 1em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; flex-wrap: wrap; margin-bottom: 1.2em; }
.section-head .section-title, .section-head .page-title { margin-bottom: 0; }
.page-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.sub-title { font-size: 1.2rem; margin: 2em 0 .8em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; margin-bottom: 1em; }
.step h3 { font-size: 1.15rem; }

/* ---- karty szablonów ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; text-decoration: none !important; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 3 / 2; background: var(--brand-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { width: 100%; height: 100%; min-height: 180px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand) 0%, #7187e8 100%); color: #fff; font-weight: 800; font-size: 1.5rem; padding: 1em; text-align: center; }
.card-placeholder.big { aspect-ratio: 3 / 2; border-radius: var(--radius); font-size: 2.2rem; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.2rem; margin: .5em 0 .35em; }
.card-body p { font-size: .95rem; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); background: var(--brand-soft); padding: .25em .7em; border-radius: 99px; align-self: flex-start; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 1.4em 0 1.6em; }
.chip { padding: .45em 1em; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); font-size: .92rem; font-weight: 500; text-decoration: none !important; }
.chip:hover { border-color: var(--brand); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---- karta szablonu ---- */
.crumbs { color: var(--muted); font-size: .9rem; margin-bottom: 1.4em; }
.product { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.product-media img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.product-buy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 92px; }
.product-buy h1 { font-size: 1.9rem; margin-top: .4em; }
.price { font-size: 2rem; font-weight: 800; margin: .4em 0 .2em; }
.price small { font-size: .85rem; font-weight: 400; }
.facts { list-style: none; padding: 0; margin: 1.4em 0 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 1em; padding: .6em 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.facts span { color: var(--muted); }
.facts strong { text-align: right; font-weight: 600; }
.product-details { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 48px; }
.product-details h2 { font-size: 1.3rem; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: .45em 0 .45em 1.8em; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.prose h2 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 1.3em; }

/* ---- formularze ---- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.auth { max-width: 480px; }
.auth.wide { max-width: 820px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 1em; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], textarea, select {
  display: block; width: 100%; margin-top: .35em; padding: .75em .9em; border: 1.5px solid var(--line); border-radius: 10px; font: 400 1rem var(--font); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input:disabled { background: var(--bg); color: var(--muted); }
input[type=file] { display: block; margin-top: .5em; font-size: .9rem; }
.check { display: flex; gap: .7em; align-items: flex-start; font-weight: 400; }
.check input { margin-top: .3em; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.thumb { max-width: 180px; margin-top: .6em; border-radius: 8px; border: 1px solid var(--line); }
.form-wide { max-width: 900px; }

.checkout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.summary h2 { font-size: 1.2rem; }
.summary-item { display: flex; flex-direction: column; padding: 1em 0; border-bottom: 1px solid var(--line); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1em; font-size: 1.1rem; }
.summary-total strong { font-size: 1.5rem; }

.checklist { list-style: none; padding: 0; columns: 2; margin-bottom: 1.5em; }
.checklist li { padding: .2em 0; }
.checklist .ok { color: var(--ok); }
.checklist .bad { color: var(--bad); font-weight: 600; }

/* ---- konto ---- */
.list { display: grid; gap: 16px; }
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.list-item h3 { font-size: 1.2rem; margin-bottom: .2em; }
.list-item p { margin-bottom: .3em; }
.key code { font-size: 1rem; letter-spacing: .04em; }

.big-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1em; font-size: 2.4rem; font-weight: 800; }
.big-icon.ok { background: var(--ok-soft); color: var(--ok); }
.big-icon.bad { background: var(--bad-soft); color: var(--bad); }
.big-icon.wait { background: var(--brand-soft); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid #c7d1f6; border-top-color: var(--brand); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- tabele / panel ---- */
.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, .table td { padding: .8em 1em; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg); }
.table tr:last-child td { border-bottom: 0; }
.table form { margin: 0; }
.badge { display: inline-block; padding: .2em .7em; border-radius: 99px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.admin .section { padding-top: 32px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs a { padding: .7em 1.1em; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none !important; }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat span { display: block; color: var(--muted); font-size: .85rem; }
.stat strong { font-size: 1.6rem; font-weight: 800; }
.search input { margin: 0; min-width: 260px; }

/* ---- FAQ / CTA / stopka ---- */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; position: relative; padding-right: 2em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--brand); }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); padding-bottom: 6px; }
.cta-band { background: var(--brand); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.footer { padding: 48px 0 32px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-links { display: flex; gap: 1.4em; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--muted); }
.footer p { margin-top: .8em; }

/* ---- responsywność ---- */
@media (max-width: 900px) {
  .hero-inner, .product, .product-details, .checkout { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .product-buy { position: static; }
}
@media (max-width: 720px) {
  .nav-burger { display: block; width: 40px; height: 40px; position: relative; cursor: pointer; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { position: absolute; left: 9px; width: 22px; height: 2px; background: var(--ink); content: ""; }
  .nav-burger span { top: 19px; }
  .nav-burger span::before { top: -7px; left: 0; }
  .nav-burger span::after { top: 7px; left: 0; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav a { padding: .8em 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .8em; border: 1.5px solid var(--brand); }
  .nav-toggle:checked ~ .nav { display: flex; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .list-item { flex-direction: column; align-items: flex-start; }
  .panel { padding: 22px; }
  .section { padding: 44px 0; }
  .hero { padding: 44px 0; }
  .checklist { columns: 1; }
  .search input { min-width: 0; }
}

/* zamówienie: typ kupującego, faktura */
.choice { border: 0; padding: 0; margin: 0 0 1em; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice legend { font-weight: 600; font-size: .92rem; margin-bottom: .5em; padding: 0; }
.radio { display: flex; gap: .7em; align-items: flex-start; margin: 0; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; }
.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio input { margin-top: .25em; accent-color: var(--brand); }
.radio b { display: block; }
.radio small { color: var(--muted); }
.check small { font-weight: 400; }
.invoice-fields { margin-top: .2em; }
@media (max-width: 720px) { .choice { grid-template-columns: 1fr; } }

/* faktura */
.invoice-doc { background: #fff; color: #111; max-width: 820px; margin: 0 auto; padding: 48px 52px; border: 1px solid var(--line); border-radius: 6px; font-size: .95rem; }
.invoice-doc h1 { font-size: 1.6rem; margin-bottom: .2em; }
.inv-meta { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; color: #444; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.inv-parties h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #666; margin-bottom: .4em; }
.inv-parties p { white-space: pre-line; margin: 0; }
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.inv-table th, .inv-table td { border: 1px solid #ccc; padding: 8px 10px; text-align: left; }
.inv-table th { background: #f4f4f4; font-size: .82rem; }
.inv-table .num { text-align: right; white-space: nowrap; }
.inv-total { text-align: right; font-size: 1.15rem; margin: 0 0 18px; }
.inv-note { border-top: 1px solid #ddd; padding-top: 14px; color: #333; font-size: .9rem; }
.inv-actions { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
@media print { .topbar, .footer, .inv-actions, .flashes, #pv-bar { display: none !important; } body { background: #fff; } .invoice-doc { border: 0; padding: 0; } .section { padding: 0; } }
@media (max-width: 720px) { .invoice-doc { padding: 24px 18px; } .inv-parties { grid-template-columns: 1fr; } }

/* księgowość */
.meter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 10px; }
.meter-head { display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap; align-items: baseline; }
.meter-head strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.bar { height: 12px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.bar.warn span { background: #d89a18; }
.bar.bad span { background: var(--bad); }
.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.quarters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
.quarters .meter { padding: 14px 16px; }
.quarters .meter strong { font-size: 1.05rem; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.info-box { background: var(--brand-soft); border-radius: var(--radius); padding: 18px 22px; color: var(--ink); font-size: .93rem; }
.info-box ul { margin: .4em 0 0; padding-left: 1.2em; }
@media (max-width: 900px) { .meters { grid-template-columns: 1fr; } .quarters { grid-template-columns: 1fr 1fr; } }
.inv-req summary { cursor: pointer; color: var(--brand); font-weight: 600; white-space: nowrap; }
.inv-req form { margin-top: 10px; min-width: 240px; }
.inv-req label { margin-bottom: .6em; font-size: .85rem; }
.inv-req input { padding: .5em .7em; }
.filters select { width: auto; display: inline-block; margin: 0; padding: .45em .8em; }
.filters form, form.filters { align-items: center; }
.right-link { text-align: right; margin: -.6em 0 .4em; }

/* pakiety */
.pkgs { display: grid; gap: 10px; margin: 1em 0 .4em; }
.pkg { display: grid; gap: 4px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none !important; transition: border-color .15s, background .15s; }
.pkg:hover, .pkg:focus-visible { border-color: var(--brand); background: var(--brand-soft); }
.pkg-hl { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pkg-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pkg-top em { font-style: normal; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); background: var(--brand-soft); border-radius: 99px; padding: .2em .6em; }
.pkg-desc { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.pkg-price { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 1.2rem; margin-top: 4px; }
.pkg-go { font-size: .85rem; font-weight: 700; color: var(--brand); }
.summary-pkgs { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-pkg { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 9px; color: var(--ink); text-decoration: none !important; font-size: .93rem; }
.summary-pkg.active { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.inline-svc { margin-top: 4px; }
.inline-svc .badge { border: 0; cursor: pointer; font-family: inherit; }
.card-foot small { font-weight: 500; }
.pkg-admin { display: grid; gap: 16px; }
.pkg-admin fieldset { border: 1px solid var(--line); margin: 0; }
.pkg-flags { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.pkg-flags .check { margin: 0; }

/* Dlaczego wmigiem */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.why-item b { font-size: 1.08rem; }
.why-item p { color: var(--muted); margin: .4em 0 0; }
.faq-group { font-size: 1.2rem; margin: 1.6em 0 .7em; }
.lead { font-size: 1.08rem; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* Asystent */
.asystent { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50; font-size: .95rem; }
.as-toggle { display: flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: 99px; padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 10px 28px rgba(31,55,156,.35); }
.as-toggle span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--brand); font-weight: 900; }
.asystent.open .as-toggle { display: none; }
.as-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(24,24,27,.22); display: flex; flex-direction: column; overflow: hidden; }
.as-panel[hidden] { display: none; }
.as-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--brand); color: #fff; }
.as-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.as-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.as-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; line-height: 1.45; }
.as-bot { background: var(--brand-soft); align-self: flex-start; border-bottom-left-radius: 4px; }
.as-me { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.as-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; max-height: 96px; overflow-y: auto; }
.as-chip { border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; color: var(--ink); }
.as-chip:hover { border-color: var(--brand); color: var(--brand); }
.as-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.as-input { flex: 1; border: 1px solid var(--line); border-radius: 99px; padding: 10px 14px; font: inherit; min-width: 0; }
.as-send { border: 0; background: var(--brand); color: #fff; border-radius: 50%; width: 42px; height: 42px; cursor: pointer; font-size: 1rem; }
@media print { .asystent { display: none; } }

/* ===== Wygląd 2.0: logo, hero, animacje ===== */
.ico { width: 1em; height: 1em; vertical-align: -0.14em; flex: none; }
.logo { gap: .6em; letter-spacing: -.02em; }
.logo-svg { width: 36px; height: 36px; flex: none; transition: transform .3s cubic-bezier(.2,.8,.2,1.4); }
.logo:hover .logo-svg { transform: rotate(-8deg) scale(1.06); }
.logo-dot { color: var(--accent); }
.topbar { transition: box-shadow .25s, background .25s; }
.topbar.scrolled { box-shadow: 0 6px 24px rgba(24,24,27,.07); background: rgba(255,255,255,.97); }
.btn { transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(43,74,203,.22); }
.btn:active { transform: translateY(0); }
.btn-ghost:hover { box-shadow: none; }
.btn-lg { padding: .95em 1.6em; font-size: 1.05rem; border-radius: 12px; }
.btn .ico { transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }

.hero { position: relative; overflow: hidden; padding: 88px 0 96px; background: linear-gradient(180deg, #f3f5fd 0%, var(--bg) 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #c9d3fb; top: -180px; right: -120px; }
.b2 { width: 380px; height: 380px; background: #fbe3bd; bottom: -160px; left: 30%; animation-delay: -6s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(-40px,30px) scale(1.08); } }
.hero-inner { position: relative; grid-template-columns: 1fr 1fr; gap: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: .45em; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: .35em .9em; font-size: .85rem; letter-spacing: .02em; text-transform: none; color: var(--brand); font-weight: 700; box-shadow: 0 2px 8px rgba(24,24,27,.04); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; margin: .45em 0 .4em; }
.hero .accent { background: linear-gradient(90deg, var(--brand), #7a5cff, var(--accent), var(--brand)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 300% 0; } }
.hero .lead { font-size: 1.15rem; color: #44465a; max-width: 34em; }
.hero-points { gap: 1.2em; }
.hero-points li::before { content: none; }
.hero-points li { display: inline-flex; align-items: center; gap: .4em; color: #44465a; }
.hero-points .ico { color: var(--ok); }
.hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; } .hero-copy > *:nth-child(3) { animation-delay: .16s; } .hero-copy > *:nth-child(4) { animation-delay: .24s; } .hero-copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-visual { min-height: 440px; perspective: 1400px; }
.shot { position: absolute; margin: 0; width: 78%; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid rgba(24,24,27,.08); box-shadow: 0 30px 60px rgba(25,32,80,.18), 0 6px 16px rgba(25,32,80,.08); animation: float 7s ease-in-out infinite, pop .9s cubic-bezier(.2,.7,.2,1) both; }
.shot img { display: block; width: 100%; height: auto; }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #eef0f6; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd3df; }
.shot-bar b { margin-left: 8px; font: 500 11px var(--font); color: #6b7080; background: #fff; border-radius: 6px; padding: 2px 10px; }
.shot-1 { top: 0; left: 0; z-index: 1; --r: -3deg; animation-delay: 0s, 0s; }
.shot-2 { top: 120px; right: 0; z-index: 3; --r: 2.5deg; animation-delay: -2.3s, .15s; }
.shot-3 { top: 250px; left: 8%; z-index: 2; width: 62%; --r: -1.5deg; animation-delay: -4.6s, .3s; }
@keyframes float { 0%,100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(var(--r)) translateY(-10px); } }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }
.badge-float { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: .45em; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: .55em 1em; font-weight: 700; font-size: .9rem; box-shadow: 0 12px 30px rgba(24,24,27,.12); animation: float 6s ease-in-out infinite; --r: 0deg; }
.badge-float .ico { color: var(--brand); }
.bf-1 { top: 70px; right: -6px; animation-delay: -1s; }
.bf-2 { bottom: 10px; right: 20px; animation-delay: -3s; }
.bf-2 .ico { color: var(--accent); }

.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding: 22px 0; color: #44465a; font-weight: 600; }
.trust-inner span { display: inline-flex; align-items: center; gap: .5em; }
.trust-inner .ico { color: var(--brand); width: 1.2em; height: 1.2em; }

.step { position: relative; transition: transform .25s, box-shadow .25s, border-color .25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4daf5; }
.step-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), #6f86ec); color: #fff; font-size: 1.5rem; margin-bottom: 18px; box-shadow: 0 10px 22px rgba(43,74,203,.25); }
.step .step-num { position: absolute; top: 24px; right: 24px; margin: 0; width: 30px; height: 30px; font-size: .9rem; }
.why-item { transition: transform .25s, box-shadow .25s; }
.why-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 1.25rem; margin-bottom: 12px; }
.card { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(25,32,80,.14); }
.card-img img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img img { transform: scale(1.05); }
.faq { transition: border-color .2s, box-shadow .2s; }
.faq:hover { border-color: #d4daf5; }
.faq[open] { box-shadow: var(--shadow); }
.faq summary::after { transition: transform .2s; }
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, #3c5be0 55%, #6a54e8 100%); }

/* Pojawianie się przy przewijaniu */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover { transform: translateY(-6px); }
.js .step.reveal.in:hover { transform: translateY(-4px); }

@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: block; min-height: 300px; margin-top: 8px; }
  .shot-2 { top: 70px; } .shot-3 { top: 150px; }
  .bf-1 { top: 10px; } .bf-2 { bottom: -10px; }
  .trust-inner { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.hero h1 .accent{white-space:nowrap}

/* ===================== Logowanie i rejestracja ===================== */
.auth-page { padding: 48px 0 72px; background: radial-gradient(900px 420px at 10% 0%, var(--brand-soft), transparent 70%); }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 1040px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 80px rgba(24,24,27,.10); overflow: hidden; padding: 0; }
.auth-side { position: relative; color: #fff; background: linear-gradient(150deg, #2b4acb 0%, #3b2fa8 60%, #1d2a7a 100%); padding: 44px 40px; overflow: hidden; }
.auth-side::before, .auth-side::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); }
.auth-side::before { width: 320px; height: 320px; right: -120px; top: -120px; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
.auth-side::after { width: 260px; height: 260px; left: -80px; bottom: -110px; background: radial-gradient(circle, rgba(232,163,61,.35), transparent 70%); }
.auth-side-in { position: relative; z-index: 1; }
.auth-logo .logo-text { color: #fff; font-weight: 800; font-size: 1.15rem; }
.auth-logo { display: inline-flex; align-items: center; gap: .55em; }
.auth-logo .logo-svg rect { fill: #fff; } .auth-logo .logo-svg path { fill: #2b4acb; }
.auth-side h2 { font-size: 1.9rem; font-weight: 800; margin: 1.4em 0 1em; letter-spacing: -.02em; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.auth-points li { display: flex; gap: 14px; align-items: flex-start; }
.auth-points li > .ico { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.14); }
.auth-points b { display: block; font-size: 1rem; }
.auth-points span { color: rgba(255,255,255,.82); font-size: .92rem; line-height: 1.45; }
.auth-main { padding: 44px 48px 32px; display: flex; flex-direction: column; justify-content: center; }
.auth-card h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .25em; }
.auth-card > .muted { margin-bottom: 1.6em; }
.auth-form label { margin-bottom: .35em; }
.auth-form .check { margin: .4em 0 .6em; font-size: .92rem; }
.auth-form .check a { font-weight: 600; }
.input-ico { position: relative; margin-bottom: 1.1em; }
.input-ico > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.input-ico input { padding-left: 2.6em; margin-top: 0; }
.input-ico.has-error input, .check.has-error { border-color: var(--bad); color: var(--bad); }
.label-row { display: flex; justify-content: space-between; margin: -.4em 0 -1.5em; position: relative; z-index: 1; }
.pass-wrap { position: relative; margin-bottom: .5em; }
.pass-wrap input { margin-top: 0; padding-right: 3em; }
.pass-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 8px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.pass-eye:hover { color: var(--brand); background: var(--brand-soft); }
.pass-eye .ico { width: 20px; height: 20px; }
.caps-hint { color: var(--warn); font-size: .85rem; margin: 0 0 .6em; display: flex; align-items: center; gap: .4em; }
.pw-meter { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: .3em 0 .4em; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--bad); transition: width .25s, background .25s; }
.pw-meter[data-s="2"] span { background: #d89a18; } .pw-meter[data-s="3"] span { background: #5aa33a; } .pw-meter[data-s="4"] span { background: var(--ok); }
.pw-label { margin-bottom: 1em; }
.auth-alt { margin-top: 1.4em; padding-top: 1.2em; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.auth-alt a { font-weight: 700; }
.auth-safe { display: flex; align-items: center; gap: .5em; margin: 1.6em 0 0; }
.auth-done { text-align: center; }
.done-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin-bottom: 1em; }
.done-ico .ico { width: 30px; height: 30px; }
.alert .ico { vertical-align: -3px; margin-right: .2em; }
@media (max-width: 860px) {
  .auth-page { padding: 20px 0 48px; }
  .auth-grid { grid-template-columns: 1fr; border-radius: 18px; }
  .auth-side { padding: 26px 24px; }
  .auth-side h2 { font-size: 1.35rem; margin: 1em 0 .2em; }
  .auth-points { display: none; }
  .auth-main { padding: 28px 22px 24px; }
}

/* ===================== Panel klienta i panel sprzedawcy ===================== */
.dash { padding: 32px 0 64px; }
.dash-grid { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; max-width: 1240px; }
.dash-side { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 12px; }
.dash-user { display: flex; gap: 12px; align-items: center; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); }
.dash-user b { display: block; line-height: 1.25; font-size: .95rem; }
.dash-user small { display: block; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; line-height: 1.3; }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), #7a5cff); font-size: .95rem; }
.avatar.sm { width: 34px; height: 34px; border-radius: 10px; font-size: .8rem; }
.dash-nav, .dash-side-foot { display: grid; gap: 2px; }
.dash-nav a, .dash-side-foot a { display: flex; align-items: center; gap: 12px; padding: .62em .8em; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .95rem; text-decoration: none !important; transition: background .15s, color .15s; }
.dash-nav a .ico, .dash-side-foot a .ico { width: 19px; height: 19px; color: var(--muted); flex: none; transition: color .15s; }
.dash-nav a:hover, .dash-side-foot a:hover { background: var(--bg); }
.dash-nav a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.dash-nav a.active .ico { color: var(--brand); }
.dash-nav em { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 700; background: var(--accent); color: #fff; border-radius: 99px; padding: .1em .55em; }
.dash-side-foot { border-top: 1px solid var(--line); padding-top: 10px; }
.dash-side-foot a { font-size: .88rem; color: var(--muted); }
.dash-main { min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.dash-kicker { margin: 0 0 .2em; color: var(--muted); font-size: .9rem; font-weight: 500; }
.dash-main .section-head { margin-top: 1.4em; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.search-box { position: relative; }
.search-box .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { margin: 0; padding-left: 2.4em; min-width: 280px; background: var(--surface); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; display: grid; gap: 2px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.tile-ico .ico { width: 20px; height: 20px; }
.tile-label { color: var(--muted); font-size: .85rem; }
.tile strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile small { color: var(--muted); font-size: .8rem; }
.tile small .up { color: var(--ok); font-weight: 700; } .tile small .down { color: var(--bad); font-weight: 700; }
.tile-ok .tile-ico { background: var(--ok-soft); color: var(--ok); }
.tile-warn .tile-ico { background: var(--warn-soft); color: var(--warn); }

.card-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; min-width: 0; }
.card-box h2 { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: .5em; margin-bottom: 1em; }
.card-box h2 .ico { color: var(--brand); }
.box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
.box-head h2 { margin-bottom: .8em; }
.top-gap { margin-top: 1.6em; }
.dash-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 14px; }

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: #c9c8c1; stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; }
.chart .bar { fill: var(--brand); transition: fill .15s; }
.chart .bar-g:hover .hit, .chart .bar-g:focus .hit { fill: rgba(43,74,203,.06); }
.chart .bar-g:hover .bar, .chart .bar-g:focus .bar { fill: var(--brand-dark); }
.chart .bar-g { outline: none; }
.chart-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: #fff; font-size: .82rem; padding: .45em .7em; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }
.chart-table { margin-top: .6em; }
.chart-table summary { cursor: pointer; }
.chart-table .table { margin-top: .6em; }

.limit strong { font-size: 1.4rem; font-weight: 800; }
.progress { height: 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; margin: .5em 0 .6em; }
.progress span { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.progress.warn span { background: #d89a18; } .progress.bad span { background: var(--bad); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rank li { position: relative; display: flex; justify-content: space-between; font-size: .9rem; padding-bottom: 7px; }
.rank li i { position: absolute; left: 0; bottom: 0; height: 4px; border-radius: 99px; background: var(--brand); min-width: 4px; }
.rank li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 99px; background: var(--bg); z-index: -1; }
.rank b { font-variant-numeric: tabular-nums; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.feed-ico.paid { background: var(--ok-soft); color: var(--ok); }
.feed-ico.pending, .feed-ico.todo { background: var(--warn-soft); color: var(--warn); }
.feed-ico.failed, .feed-ico.cancelled { background: var(--bad-soft); color: var(--bad); }
.feed-main { flex: 1; min-width: 0; }
.feed-main b { display: block; font-size: .93rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-main small { color: var(--muted); font-size: .8rem; }
.feed-amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.all-done { display: flex; align-items: center; gap: .6em; color: var(--ok); background: var(--ok-soft); border-radius: 12px; padding: 14px 16px; font-weight: 600; }

.who { display: flex; align-items: center; gap: 10px; }
.who b { display: block; font-weight: 600; } .who small { color: var(--muted); font-size: .82rem; }
.thumb { width: 56px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.right { text-align: right; }
.badge { display: inline-flex; align-items: center; gap: .3em; }
.badge .ico { width: 13px; height: 13px; }
.badge-soft { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge-info { background: var(--brand-soft); color: var(--brand-dark); }
.warn-text { color: var(--warn); }

/* panel klienta */
.notice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; margin-bottom: 14px; border: 1px solid; }
.notice > .ico { flex: none; width: 22px; height: 22px; }
.notice > div { flex: 1; font-size: .93rem; }
.notice-warn { background: var(--warn-soft); border-color: #f0dcb0; color: #6d4a00; }
.lic-list { display: grid; gap: 14px; }
.lic { display: grid; grid-template-columns: 170px 1fr auto; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; transition: box-shadow .2s, transform .2s; }
.lic:hover { box-shadow: var(--shadow); }
.lic-img { aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); border: 1px solid var(--line); }
.lic-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lic-img .ico { width: 34px; height: 34px; }
.lic-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: .25em; }
.lic-top h2 { font-size: 1.2rem; font-weight: 800; margin: 0 4px 0 0; }
.lic-body p { margin-bottom: .6em; }
.key-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 8px 10px 8px 14px; }
.key-label { display: inline-flex; align-items: center; gap: .4em; font-size: .85rem; color: var(--muted); font-weight: 600; }
.key-row code { background: none; font-size: 1rem; font-weight: 700; letter-spacing: .04em; padding: 0; color: var(--ink); }
.key-row .btn { margin-left: auto; }
.lic-actions { display: grid; gap: 8px; justify-items: stretch; min-width: 170px; }
.empty-state { text-align: center; background: var(--surface); border: 1px dashed #cfcec6; border-radius: 18px; padding: 52px 24px; }
.empty-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.empty-ico .ico { width: 30px; height: 30px; }
.empty-state p { max-width: 460px; margin: 0 auto 1.4em; }
.help-strip { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: var(--brand-soft); }
.help-strip > div { display: flex; gap: 12px; align-items: center; } .help-strip > div > .ico { color: var(--brand); width: 22px; height: 22px; flex: none; }
.order-list { display: grid; gap: 10px; }
.order { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.order-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.order p { margin: .2em 0 0; }
.order-amount { font-weight: 800; font-variant-numeric: tabular-nums; }
.order-inv { text-align: right; }
.inv-req summary { list-style: none; } .inv-req summary::-webkit-details-marker { display: none; }
.inv-form { text-align: left; margin-top: 10px; background: var(--bg); padding: 14px; border-radius: 12px; min-width: 280px; }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.set-grid .card-box form > .btn { margin-top: .4em; }
.devices { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.devices li { display: flex; gap: 12px; align-items: center; }
.devices li > .ico { width: 20px; height: 20px; color: var(--muted); }
.devices b { display: block; font-size: .92rem; } .devices small { color: var(--muted); font-size: .8rem; }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .dash-row, .set-grid { grid-template-columns: 1fr; }
  .lic { grid-template-columns: 130px 1fr; }
  .lic-actions { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 860px) {
  .dash { padding-top: 16px; }
  .dash-grid { grid-template-columns: 1fr; gap: 16px; }
  .dash-side { position: static; padding: 8px; border-radius: 14px; }
  .dash-user { display: none; }
  .dash-nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .dash-nav a { white-space: nowrap; padding: .55em .8em; font-size: .9rem; }
  .dash-side-foot { display: none; }
  .search-box input { min-width: 0; width: 100%; }
  .search-box { width: 100%; }
}
@media (max-width: 560px) {
  .tiles { gap: 10px; }
  .tile { padding: 14px; } .tile strong { font-size: 1.25rem; }
  .lic { grid-template-columns: 1fr; }
  .order { grid-template-columns: 1fr auto; } .order-inv { grid-column: 1 / -1; text-align: left; }
  .key-row .btn { margin-left: 0; }
}
.caps-hint[hidden], [hidden] { display: none !important; }
.tile { align-content: start; } .chart .ax { font-size: 12px; }
.table code { white-space: nowrap; }
.lic-actions .btn { white-space: nowrap; }
@media (max-width: 560px) { .lic-actions { grid-template-columns: 1fr 1fr; } .lic-actions .btn:first-child, .lic-actions .btn:last-child { grid-column: 1 / -1; } }
.dash-row { align-items: start; }
.notice-info { background: var(--brand-soft); border-color: #cdd6f7; color: var(--brand-dark); } .notice form { margin: 0; } .catalog-box { margin-bottom: 18px; }
.trust-inner { justify-content: center; gap: 10px 12px; }
.trust-inner a { display: inline-flex; align-items: center; gap: .5em; padding: .45em .9em; border-radius: 99px; color: #44465a; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.trust-inner a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.trust-inner a .ico { color: var(--brand); width: 1.2em; height: 1.2em; }
