/* Zniżkomat — system wizualny.
   Czerwony = akcja i okazja (CTA, rabaty, aktywne elementy). Czarny = informacja. Biały = przestrzeń.
   Zielony tylko jako potwierdzenie sukcesu (np. „Kod skopiowany”). Inter w wagach 400/500/600/700.
   Zawsze jasny motyw (białe tło) – także gdy telefon lub komputer ma włączony tryb ciemny. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --surface-3: #ebebeb;
  --line: #ebebeb;
  --line-strong: #d9d9d9;
  --text: #111111;
  --text-2: #5c5c5c;
  --text-3: #8c8c8c;
  /* Czerwień marki. Odcień dobrany tak, żeby biały napis na przycisku był czytelny (kontrast AA). */
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --accent-ink: #ffffff;
  --accent-soft: #fef2f2;
  --accent-text: #c81e1e;
  /* Pomarańcz dla „Hot” i Black Friday – ma się odróżniać od czerwieni marki. */
  --hot: #ea580c;
  --hot-hover: #c2410c;
  --hot-ink: #ffffff;
  --hot-soft: #fff7ed;
  --hot-text: #c2410c;
  --success: #15803d;
  --success-soft: #f0fdf4;
  /* Kolory na ciemnym dymku powiadomienia (w trybie ciemnym dymek jest jasny). */
  --accent-inverse: #f87171;
  --success-inverse: #4ade80;
  --warn: #c81e1e;
  --warn-soft: #fef2f2;
  --heart: #dc2626;
  --switch-on: #dc2626;
  --switch-knob-on: #ffffff;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-2: 0 12px 32px -12px rgb(0 0 0 / 0.16), 0 2px 6px rgb(0 0 0 / 0.04);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --header-h: 64px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}


/* ---------- Podstawy ---------- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: "cv11";
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.muted { color: var(--text-2); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }

/* ---------- Nagłówek ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1280px;
  height: 58px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.searchbox.searchbox--header { display: none; }
.header-actions { display: none; margin-left: auto; gap: 4px; }

/* Zakładka „Black Friday” w nagłówku – widoczna od razu, także na telefonie. */
.header-bf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin-left: auto;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  background: var(--hot);
  color: var(--hot-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.header-bf .icon { width: 16px; height: 16px; }
.header-bf:hover, .header-bf.is-active { background: var(--hot-hover); }
.header-bf + .header-actions { margin-left: 4px; }

.header-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--text-2);
}

.header-btn .icon { width: 21px; height: 21px; }
.header-btn:hover, .header-btn.is-active { background: var(--surface-2); color: var(--text); }

.count-dot {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
}

/* ---------- Układ ---------- */

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.main { min-width: 0; padding: 16px 0 24px; }
.sidebar { display: none; }

.footer {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 24px 16px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
  display: grid;
  gap: 6px;
}

.footer strong { color: var(--text-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.footer-links a { color: var(--text-2); font-weight: 500; text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Strony informacyjne (O nas, Kontakt, Regulamin, Polityka prywatności) ---------- */

.doc { max-width: 760px; margin: 8px auto 0; }
.doc-head { margin-bottom: 24px; }
.doc-title { font-size: 28px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; }
.doc-lead { margin-top: 10px; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.doc-meta { margin-top: 10px; font-size: 13px; color: var(--text-3); }

.doc-toc {
  margin-bottom: 28px;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
}

.doc-toc > p { margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.doc-toc ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.9; }
.doc-toc a { color: var(--text); text-decoration: none; }
.doc-toc a:hover { color: var(--accent-text); text-decoration: underline; }

.doc-body { font-size: 15.5px; line-height: 1.65; }
.doc-body section { scroll-margin-top: calc(var(--header-h) + 16px); }
.doc-body h2 { margin: 32px 0 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.doc-body section:first-child h2 { margin-top: 0; }
.doc-body h3 { margin: 18px 0 4px; font-size: 16px; font-weight: 600; }
.doc-body p { margin: 0 0 12px; }
.doc-body ol, .doc-body ul { margin: 0 0 12px; padding-left: 22px; }
.doc-body li { margin-bottom: 6px; }
.doc-body li > ul { margin: 6px 0 0; }
.doc-body a:not(.btn) { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.doc-body a:not(.btn):hover { color: var(--accent-text); }
.doc-body code { font-family: var(--mono); font-size: 0.9em; }
.doc-body .steps { margin-bottom: 12px; padding: 0; }

.doc-checks { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.doc-checks li { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.doc-checks .icon { margin-top: 3px; width: 17px; height: 17px; color: var(--text); stroke-width: 2.4; }

.purpose { margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.purpose h3 { margin: 0 0 8px; }
.purpose dl { display: grid; margin: 0; font-size: 14.5px; }
.purpose dt { margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--text-3); }
.purpose dt:first-child { margin-top: 0; }
.purpose dd { margin: 0; }

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.contact-label { margin: 0 !important; font-size: 13px; color: var(--text-3); }
.contact-email { margin: 0 !important; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.contact-email a { text-decoration: none !important; }

/* ---------- Black Friday ---------- */

.bf-hero { display: grid; gap: 14px; }
.bf-hero .page-eyebrow { margin-bottom: 6px; }

.bf-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--hot);
  color: var(--hot-ink);
  font-size: 15px;
  font-weight: 700;
}

.bf-countdown .icon { width: 18px; height: 18px; }

.bf-soon { margin-top: 24px; padding: 22px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.bf-soon h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.bf-soon p { margin-top: 6px; color: var(--text-2); max-width: 62ch; }

.bf-faq { max-width: 760px; margin-top: 40px; }
.bf-faq .section-title { margin-bottom: 10px; }
.bf-qa { border-top: 1px solid var(--line); }
.bf-qa:last-child { border-bottom: 1px solid var(--line); }
.bf-qa summary { padding: 14px 0; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.bf-qa summary::-webkit-details-marker { display: none; }
.bf-qa summary::after { content: "+"; color: var(--text-3); font-weight: 700; }
.bf-qa[open] summary::after { content: "−"; }
.bf-qa p { padding: 0 0 16px; color: var(--text-2); line-height: 1.6; }

.bf-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--hot) 35%, transparent);
  background: var(--hot-soft);
  color: var(--hot-text);
  font-size: 15px;
  text-decoration: none;
}

.bf-banner span { flex: 1; min-width: 0; }
.bf-banner strong { font-weight: 700; }
.bf-banner:hover { background: color-mix(in srgb, var(--hot) 14%, var(--surface)); }

/* ---------- Dla sklepów ---------- */

.b2b { max-width: 960px; margin: 8px auto 0; }
.b2b-hero { max-width: 720px; margin-bottom: 28px; }
.b2b-hero > .btn { margin-top: 18px; }
.b2b-offers { display: grid; gap: 14px; }
.b2b-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.b2b-card h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.b2b-card .doc-checks { margin: 0; font-size: 15px; line-height: 1.5; }
.b2b-card code { font-family: var(--mono); font-size: 0.92em; font-weight: 600; }

.b2b-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.b2b-price { margin: 2px 0 14px; font-weight: 600; color: var(--accent-text); }
.b2b-body { max-width: 760px; margin-top: 36px; }
.b2b-body section + section { margin-top: 8px; }
.b2b-form { max-width: 760px; margin-top: 36px; scroll-margin-top: calc(var(--header-h) + 16px); }
.b2b-form-title { margin-bottom: 14px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.b2b-mail { margin-top: 14px; }
.b2b-mail a { color: var(--text); font-weight: 600; }

.b2b-done { display: flex; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: var(--success-soft); }
.b2b-done > .icon { width: 28px; height: 28px; color: var(--success); stroke-width: 2.4; }
.b2b-done h2 { font-size: 19px; font-weight: 700; }
.b2b-done p { margin-top: 4px; color: var(--text-2); }
.b2b-done a { color: var(--text); font-weight: 600; }

.b2b-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Panel sklepu */
.panel { max-width: 960px; margin: 8px auto 0; display: grid; gap: 16px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 4px; }
.panel-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.panel-card > h2 { margin-bottom: 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.panel-card > .muted.small { margin-bottom: 14px; }
.panel-table { overflow-x: auto; }
.panel-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.panel-table th { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-align: left; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.panel-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.panel-table .num { text-align: right; }
.panel code, .pay code { font-family: var(--mono); font-weight: 700; }
.panel-login { max-width: 420px; margin: 24px auto 0; }
.panel-login .pform { gap: 14px; }
.pform.pform--flat { padding: 0; border: 0; }
.quote { display: grid; align-content: end; gap: 2px; min-height: 44px; }
.quote-price { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.quote .bad { color: var(--accent-text); font-size: 14px; }
.order { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.order:first-of-type { border-top: 0; padding-top: 0; }
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.pay { margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); line-height: 1.6; }
.pay p + p { margin-top: 6px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--text-2); }
.tag--warn, .tag--red { background: var(--accent-soft); color: var(--accent-text); }
.tag--ok { background: var(--success-soft); color: var(--success); }

/* Formularz na stronie publicznej */
.pform { display: grid; gap: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.pform fieldset { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pform legend { margin-bottom: 10px; padding: 0; font-size: 15px; font-weight: 700; }
.pform-row { display: grid; gap: 12px; }
.pform label, .pform-field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.pform-label { font-size: 13.5px; font-weight: 500; color: var(--text-2); }

.pform input:not([type="checkbox"]),
.pform select,
.pform textarea {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: 15px;
  color: var(--text);
}

.pform textarea { height: auto; padding: 10px 12px; resize: vertical; }
.pform input:focus, .pform select:focus, .pform textarea:focus { outline: 0; border-color: var(--text-3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.pform-discount { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 8px; }
.pform .check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); }
.pform .check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.pform-note { font-size: 13px; line-height: 1.5; color: var(--text-3); }
.pform-note a { color: var(--text-2); font-weight: 500; }
.pform-errors { padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; }
.pform-errors ul { margin: 0; padding-left: 18px; }
.pform > .btn { justify-self: start; }
.beta-tag { display: inline-block; padding: 1px 7px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 1px; }
.report-fab {
  position: fixed;
  right: 14px;
  bottom: calc(80px + env(safe-area-inset-bottom));
  z-index: 28;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.28);
  transition: transform 0.25s ease, background 0.15s;
}
.report-fab .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.report-fab:hover { background: #2b2b2b; }
.report-fab .beta-tag { border-color: rgb(255 255 255 / 0.5); background: transparent; color: #fff; }
body[data-view="submit"] .report-fab, body[data-view="partnerpanel"] .report-fab, body[data-view="detail"] .report-fab { display: none; }
@media (max-width: 767px) { .report-fab.is-away { transform: translateY(calc(100% + 90px)); } }
@media (min-width: 768px) { .report-fab { right: 24px; bottom: 24px; } }
.store-report { margin-top: 4px; font-size: 13px; color: var(--text-3); }
.store-report a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.store-report a:hover { color: var(--accent-text); }
.submit { max-width: 640px; margin: 8px auto 0; display: grid; gap: 20px; }
.submit-head { display: grid; gap: 6px; }
.submit-head .page-sub { max-width: 62ch; }
.code-input { text-transform: uppercase; font-family: var(--mono); letter-spacing: 0.04em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.todo { padding: 0 4px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }

/* ---------- Wyszukiwarka ---------- */

.searchbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text-3);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.searchbox:focus-within { border-color: var(--text-3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }

.searchbox input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.searchbox input::placeholder { color: var(--text-3); }
.searchbox input::-webkit-search-cancel-button { cursor: pointer; }

.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  color: var(--text);
  text-align: left;
}

.suggest-label {
  padding: 10px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
}

.suggest-item > span:not(.merchant):not(.badge-discount):not(.suggest-icon) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-item small { color: var(--text-3); font-size: 12px; flex-shrink: 0; }
.suggest-item .icon { color: var(--text-3); }
.suggest-item:hover, .suggest-item.is-active { background: var(--surface-2); }
.suggest-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--text-2); flex-shrink: 0; }
.suggest-icon .icon { width: 15px; height: 15px; color: inherit; }
.suggest-all { margin-top: 4px; font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.suggest-empty { padding: 12px 10px; font-size: 14px; color: var(--text-2); }

/* ---------- Hero ---------- */

/* Niski pasek powitalny – tablica z kodami ma być widoczna od razu, bez przewijania. */
.hero {
  position: relative;
  margin-top: 4px;
  padding: 18px 16px 16px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
}

.hero-title {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero-title .hl { color: var(--accent); }

.hero-sub { margin: 6px 0 14px; color: var(--text-2); font-size: 14px; line-height: 1.45; max-width: 52ch; }

.searchbox--hero {
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border-color: var(--line);
  box-shadow: var(--shadow-1);
}

.searchbox--hero .icon { width: 20px; height: 20px; color: var(--text-2); }
.searchbox--hero input { font-size: 16px; }

/* ---------- Paski przewijane w bok ---------- */

.rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 4px 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex-shrink: 0; }
.cat-rail { margin-top: 16px; }

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 15px 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}

.cat-chip .icon { color: var(--text-2); }
.cat-chip:hover { border-color: var(--line-strong); }
.cat-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cat-chip.is-active .icon { color: inherit; }

/* ---------- Sekcje ---------- */

.section { margin-top: 32px; }
.section--tight { margin-top: 20px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-title .icon { width: 20px; height: 20px; color: var(--text-3); }
.section-sub { margin-top: 3px; font-size: 14px; color: var(--text-2); }
.section-sub a, .page-sub a { color: var(--text); font-weight: 600; }

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.section-link .icon { width: 16px; height: 16px; color: var(--text-3); }
.section-link:hover { text-decoration: underline; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 20px;
}

.page-head-main { display: flex; align-items: center; gap: 14px; }

.page-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.page-icon .icon { width: 26px; height: 26px; }

.page-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.page-title { font-size: 26px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; }
.page-sub { margin-top: 4px; color: var(--text-2); font-size: 15px; }

/* ---------- Karta kodu ---------- */
/* Kolejność czytania: sklep → ile oszczędzasz (duże, czerwone) → czego dotyczy → kod i termin → „Odbierz kod”. */

.deal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.deal-grid[aria-busy="true"] { pointer-events: none; }

.deal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  animation: deal-in 0.28s ease-out both;
}

.deal-grid > :nth-child(2) { animation-delay: 30ms; }
.deal-grid > :nth-child(3) { animation-delay: 60ms; }
.deal-grid > :nth-child(4) { animation-delay: 90ms; }
.deal-grid > :nth-child(5) { animation-delay: 120ms; }
.deal-grid > :nth-child(n + 6) { animation-delay: 150ms; }

@media (hover: hover) {
  .deal:not(.deal--skeleton):hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--line-strong); }
}

.deal-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.deal-link:focus-visible { outline-offset: 3px; border-radius: var(--r-lg); }

.deal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
}

.deal-store {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.deal-store .merchant { margin-right: 6px; }
.verified { display: inline-flex; color: var(--text); }
.verified .icon { width: 16px; height: 16px; }

.deal-discount {
  margin-top: 6px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--accent);
}

.deal-title {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-meta {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--text-2);
}

.deal-meta li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.deal-meta .icon { width: 15px; height: 15px; color: var(--text-3); }
.deal-meta .is-urgent, .deal-meta .is-urgent .icon { color: var(--accent-text); font-weight: 600; }

.deal-code {
  height: 28px;
  padding: 0 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.deal-code .mono { font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: 0.06em; text-transform: none; }

.deal-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.deal-actions .btn-primary { flex: 1; }

/* ---------- Monogramy sklepów ---------- */

.merchant {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.merchant--xs { width: 26px; height: 26px; border-radius: 8px; font-size: 10.5px; }
.merchant--sm { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.merchant--lg { width: 56px; height: 56px; border-radius: 16px; font-size: 19px; }
.merchant--xl { width: 72px; height: 72px; border-radius: 20px; font-size: 24px; }
.merchant--icon { background: var(--surface-2); color: var(--text-2); }
.merchant--logo { grid-template: 100% / 100%; box-sizing: border-box; padding: 4px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.merchant--logo.merchant--xs { padding: 3px; }
.merchant--logo.merchant--lg { padding: 7px; }
.merchant--logo.merchant--xl { padding: 9px; }
.merchant--logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; margin: auto; object-fit: contain; }


/* ---------- Odznaki ---------- */

.badge-discount {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.badge-discount--sm { height: 24px; padding: 0 7px; border-radius: 7px; font-size: 13px; flex-shrink: 0; }
.badge-discount--xl { height: auto; padding: 0; border-radius: 0; background: none; color: var(--accent); font-size: 44px; line-height: 1; letter-spacing: -0.035em; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.badge--hot { background: var(--hot); color: var(--hot-ink); }
.badge--new { background: var(--surface-2); color: var(--text); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--exclusive { background: var(--accent-soft); color: var(--accent-text); }

/* Płatne wyróżnienie – zawsze podpisane („Promowane”). */
.deal-sponsored { margin: -6px 0 -2px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.deal--promoted { border-color: var(--line-strong); }

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, color 0.15s;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn-sm { height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.btn-lg { height: 52px; border-radius: 14px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { opacity: 0.88; }
.danger { color: var(--warn); }

.follow.is-on { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.follow.is-on .icon { fill: currentColor; }

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .icon { width: 20px; height: 20px; }
.fav.is-on { color: var(--heart); border-color: color-mix(in srgb, var(--heart) 30%, var(--line)); }
.fav.is-on .icon { fill: currentColor; }
.fav.pop .icon { animation: heart-pop 0.38s ease-out; }

.copy-btn.is-done { background: var(--success); border-color: var(--success); color: #ffffff; }

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Filtry i sortowanie ---------- */

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.results-count { font-size: 14px; font-weight: 500; color: var(--text-2); }

.sort { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); }

.sort select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

/* Tablica na stronie głównej: zakładki sortowania nad siatką kodów. */
.board { margin-top: 18px; scroll-margin-top: calc(var(--header-h) + 12px); }

.board-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  box-shadow: inset 0 -1px var(--line);
}

.board-tabs {
  display: flex;
  gap: 22px;
  min-width: 0;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px;
  scrollbar-width: none;
}

.board-tabs::-webkit-scrollbar { display: none; }

.board-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 46px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.15s;
}

.board-tab .icon { width: 16px; height: 16px; }
.board-tab:hover { color: var(--text); }
.board-tab.is-on { color: var(--text); }

.board-tab.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.board-bar .results-count { display: none; flex-shrink: 0; }
.board-note { margin: -4px 0 12px; font-size: 13.5px; color: var(--text-2); }
.board-note a { color: var(--text); font-weight: 600; }

.deal-grid > .prompt { grid-column: 1 / -1; margin: 0; }

.more { display: flex; justify-content: center; margin-top: 20px; }

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px 14px;
  padding: 2px 16px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar { display: none; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 36px;
  padding: 0 13px 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.filter-chip .icon { width: 16px; height: 16px; color: var(--text-3); }
.filter-chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filter-chip.is-on .icon { color: inherit; }

/* ---------- Panel boczny ---------- */

.side-block { padding: 12px 0; }
.side-block + .side-block { border-top: 1px solid var(--line); }

.side-title {
  padding: 0 10px;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.side-title-row { display: flex; align-items: center; justify-content: space-between; padding-right: 10px; }
.side-title-row .side-title { margin: 0; }
.side-clear { border: 0; background: none; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.side-clear:hover { color: var(--text); text-decoration: underline; }

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.side-link > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link small { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.side-link .icon { color: var(--text-3); }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.is-active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.side-link.is-active .icon { color: var(--accent); }
.side-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); flex-shrink: 0; }
.side-store { height: 40px; }

.side-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.side-filter:hover { background: var(--surface-2); color: var(--text); }

.side-check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
}

.side-check .icon { width: 12px; height: 12px; stroke-width: 3; opacity: 0; }
.side-filter.is-on { color: var(--text); }
.side-filter.is-on .side-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.side-filter.is-on .side-check .icon { opacity: 1; }

/* ---------- Strona główna: dodatki ---------- */

.followed {
  margin-top: 20px;
  padding: 6px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.followed-title { display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; font-size: 13px; font-weight: 700; }
.followed-title .icon { color: var(--accent-text); width: 16px; height: 16px; }

.followed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  text-decoration: none;
}

.followed-row > span:not(.merchant) { flex: 1; min-width: 0; }
.followed-row .icon { color: var(--text-3); }
.followed-row:hover { background: var(--surface-2); }

.prompt {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%);
}

.prompt-head { display: flex; align-items: flex-start; gap: 12px; }
.prompt-head > div { flex: 1; }
.prompt-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.prompt-head p { margin-top: 2px; font-size: 14px; color: var(--text-2); }
.prompt-head .icon-btn { width: 36px; height: 36px; border: 0; background: transparent; }

.prompt-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
}

.prompt-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.prompt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pick .icon { width: 17px; height: 17px; color: var(--text-2); }
.pick:hover { border-color: var(--text-3); }
.pick[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pick[aria-pressed="true"] .icon { color: inherit; }

.pick-auto {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-chip {
  width: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  text-align: center;
}

.store-chip span:not(.merchant) { width: 100%; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-chip small { font-size: 12px; color: var(--text-3); }
.store-chip:hover { border-color: var(--line-strong); }

/* ---------- Listy sklepów ---------- */

.store-list { display: grid; gap: 8px; }

.store-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.store-row-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; }
.store-row-text { display: flex; flex-direction: column; min-width: 0; }
.store-row-text strong { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.store-row-text small { font-size: 13px; color: var(--text-3); }
.store-row-link:hover strong { text-decoration: underline; }

.store-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 8px 0 24px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.store-head .follow { grid-column: 1 / -1; }

/* ---------- Kategorie ---------- */

.cat-group { margin-top: 24px; }

.group-title {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

@media (hover: hover) {
  .cat-tile:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); border-color: var(--line-strong); }
}

.cat-tile-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--surface-2);
}

.cat-tile-icon .icon { width: 22px; height: 22px; }
.cat-tile-name { font-size: 15px; font-weight: 600; }
.cat-tile-count { font-size: 13px; color: var(--text-3); }

.cat-tile-on {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}

.cat-tile-on .icon { width: 14px; height: 14px; stroke-width: 2.6; }

/* ---------- Szczegóły promocji ---------- */

.detail { max-width: 1120px; margin: 0 auto; }

.detail-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px 0 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
}

.back-btn:hover { background: var(--surface-2); color: var(--text); }

.banner { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 500; }
.banner--warn { background: var(--warn-soft); color: var(--warn); }

.detail-grid { display: grid; gap: 12px; }

.detail-hero, .detail-section, .action-card {
  padding: 20px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.detail-merchant { display: flex; align-items: center; gap: 14px; }
.detail-merchant > div { display: grid; gap: 2px; }

.detail-store { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; text-decoration: none; }
.detail-store:hover { text-decoration: underline; }
.detail-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.detail-cat .icon { width: 15px; height: 15px; }
.detail-cat:hover { color: var(--text); }

.detail-title { margin: 10px 0 0; font-size: 26px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; }
.detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }

.action-card { display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-2); }

.action-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: -6px;
}

.code-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  transition: border-color 0.2s, background 0.2s;
}

.code-field.is-done { border-style: solid; border-color: var(--success); background: var(--success-soft); }

.code-value {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  user-select: all;
  overflow-wrap: anywhere;
}

.action-note { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-2); }
.action-note .icon { color: var(--success); }

.trust {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}

.trust li { display: flex; align-items: center; gap: 10px; }
.trust .icon { color: var(--text-3); }
.trust .is-ok { color: var(--text); font-weight: 500; }
.trust .is-ok .icon { color: var(--text); }
.trust .is-urgent, .trust .is-urgent .icon { color: var(--warn); }

.detail-rest { display: grid; gap: 12px; align-content: start; }
.detail-section h2 { margin-bottom: 14px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 12px; font-size: 15px; }

.steps li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
}

.facts { margin: 0; display: grid; }
.fact { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; padding-top: 0; }
.fact dt { font-size: 13px; font-weight: 500; color: var(--text-3); }
.fact dd { margin: 0; font-size: 15px; }
.fact dd a { font-weight: 600; }

.feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.feedback h2 { margin: 0; }
.feedback p { margin-top: 2px; font-size: 14px; color: var(--text-2); }
.feedback .feedback-stats { font-size: 13px; color: var(--text-3); }
.feedback-actions { display: flex; gap: 8px; }
.feedback.is-done { justify-content: flex-start; }

.feedback.is-done > .icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 50%;
  background: var(--success);
  color: #ffffff;
  stroke-width: 2.6;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.sticky-cta .btn { flex: 1; }
.sticky-cta .copy-btn { flex: 0 1 auto; }

body[data-view="detail"] .tabbar { display: none; }
body[data-view="detail"] { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.detail-skeleton { min-height: 240px; }

/* ---------- Wyszukiwanie ---------- */

.searchbox--page { height: 52px; margin: 14px 0 4px; border-radius: 14px; }
.searchbox--page input { font-size: 16px; }

.term-list { display: flex; flex-wrap: wrap; gap: 8px; }

.term {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.term .icon { width: 15px; height: 15px; color: var(--text-3); }
.term:hover { border-color: var(--line-strong); }

/* ---------- Ulubione ---------- */

.tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-2);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

.tab-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 11.5px;
  font-weight: 700;
}

.tab.is-active .tab-count { background: var(--accent); color: var(--accent-ink); }
.saved-more { margin-top: 16px; }

/* ---------- Profil ---------- */

.profile { max-width: 760px; margin: 0 auto; }
.profile-head { display: flex; align-items: center; gap: 16px; padding: 8px 0 20px; }
.profile-head-text { flex: 1; min-width: 0; }

.avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 24px;
  font-weight: 700;
}

.avatar--empty { background: var(--surface-2); color: var(--text-3); }
.avatar--empty .icon { width: 28px; height: 28px; }


.profile-name {
  width: 100%;
  margin-left: -8px;
  padding: 2px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.profile-name::placeholder { color: var(--text-3); }
.profile-name:hover, .profile-name:focus { background: var(--surface); outline: 1px solid var(--line); }

.card-section {
  margin-bottom: 12px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.card-section--plain { background: transparent; border: 0; padding: 8px 0; }
.card-section--plain .btn { margin-left: -12px; }

.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.card-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.card-head p { margin-top: 2px; font-size: 14px; color: var(--text-2); }

.count-pill { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 700; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

.picker-toggle summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.picker-toggle summary::-webkit-details-marker { display: none; }
.picker-toggle[open] summary .icon { transform: rotate(45deg); }
.picker-toggle summary .icon { transition: transform 0.2s; }

.picker { display: grid; gap: 16px; margin-top: 10px; }

.picker-label {
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.picker-items { display: flex; flex-wrap: wrap; gap: 8px; }

.switch { position: relative; display: inline-flex; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }

.switch-track {
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: 14px;
  background: var(--line-strong);
  transition: background 0.2s;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform 0.2s, background 0.2s;
}

.switch input:checked + .switch-track { background: var(--switch-on); }
.switch input:checked + .switch-track::after { transform: translateX(18px); background: var(--switch-knob-on); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  cursor: pointer;
}

.card-head + .toggle-row { border-top: 0; padding-top: 0; }

.activity { display: grid; gap: 10px; margin-bottom: 12px; }

.activity-row {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr 70px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.activity-name { display: flex; align-items: center; gap: 8px; font-weight: 500; min-width: 0; }
.activity-name .icon { width: 16px; height: 16px; color: var(--text-3); }

.bar { position: relative; height: 8px; border-radius: 999px; background: var(--surface-2); }
.bar > span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--accent); }
.bar > i { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--text); opacity: 0.35; }
.activity-status { font-size: 12px; color: var(--text-3); text-align: right; }

.suggestion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 14px;
}

.suggestion p { flex: 1; min-width: 160px; }
.suggestion > .icon { color: var(--accent-text); }

.blocked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0; }

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 8px 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.tag-chip .icon { width: 14px; height: 14px; }
.tag-chip:hover { border-color: var(--line-strong); color: var(--text); }

/* ---------- Stany: pusty, ładowanie ---------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 16px;
  text-align: center;
}

.empty-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
}

.empty-icon .icon { width: 26px; height: 26px; }
.empty h3 { font-size: 17px; font-weight: 700; }
.empty p { max-width: 38ch; font-size: 14px; color: var(--text-2); }
.empty .btn { margin-top: 8px; }

.deal--skeleton { animation: none; box-shadow: none; }
.sk {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.sk-row { display: flex; justify-content: space-between; background: none; animation: none; }
.sk-box { width: 44px; height: 44px; border-radius: 12px; }
.sk-pill { width: 64px; height: 32px; border-radius: 10px; }
.sk-line { height: 12px; }
.w40 { width: 40%; }
.w60 { width: 60%; }
.w80 { width: 80%; }
.sk-btn { height: 44px; border-radius: 12px; margin-top: 8px; }

/* ---------- Powiadomienia ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-2);
  transform: translateX(-50%);
}

.toast.is-in { animation: toast-in 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.toast .icon { stroke-width: 2.2; }
.toast[data-kind="check"] .icon { color: var(--success-inverse); }
.toast[data-kind="heart"] .icon { color: var(--accent-inverse); }
.toast span { min-width: 0; }
.toast button { flex-shrink: 0; margin-left: 4px; border: 0; background: none; padding: 0; color: var(--accent-inverse); font-weight: 700; }

/* ---------- Dolna nawigacja (telefon) ---------- */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
}

.tabbar a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0 8px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.tabbar .icon { width: 22px; height: 22px; padding: 4px 16px; box-sizing: content-box; border-radius: 999px; transition: background 0.2s; }
.tabbar a.is-active { color: var(--text); }
.tabbar a.is-active .icon { background: var(--accent); color: var(--accent-ink); stroke-width: 2.1; }
.tabbar .count-dot { top: 0; right: auto; left: calc(50% + 10px); }

/* ---------- Strona przejściowa (przekierowanie do sklepu) ---------- */

.redirect-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.redirect { max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.redirect h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.redirect p { color: var(--text-2); }
.redirect-note { max-width: 320px; font-size: 12.5px; color: var(--text-3) !important; }
.redirect-code strong { font-family: var(--mono); color: var(--text); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }

.redirect-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--surface-3);
  border-top-color: var(--accent-text);
  animation: spin 0.8s linear infinite;
}

/* ---------- Animacje ---------- */

@keyframes deal-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes heart-pop { 40% { transform: scale(1.3); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px) scale(0.98); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Większe ekrany ---------- */

@media (min-width: 600px) {
  .pform-row { grid-template-columns: 1fr 1fr; }
  .doc-toc ol { columns: 2; column-gap: 32px; }
  .purpose dl { grid-template-columns: 140px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; }
  .purpose dt { margin-top: 0; }
  .doc-title { font-size: 34px; }
  .deal-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact { grid-template-columns: 220px 1fr; gap: 16px; }
  .store-head { grid-template-columns: auto 1fr auto; }
  .store-head .follow { grid-column: auto; }
  .hero { padding: 22px 24px; }
  .hero-title { font-size: 30px; }
}

@media (min-width: 768px) {
  .b2b-offers { grid-template-columns: 1fr 1fr; }
  body { padding-bottom: 0; }
  body[data-view="detail"] { padding-bottom: 84px; }
  .tabbar { display: none; }
  .header-inner { padding: 0 24px; height: 64px; }
  .searchbox.searchbox--header { display: flex; flex: 1; max-width: 520px; height: 42px; }
  body[data-view="home"] .searchbox--header { visibility: hidden; }
  .header-actions { display: flex; }
  .shell { padding: 0 24px; }
  .footer { padding: 24px; }
  .toast { bottom: 24px; }
  .page-title { font-size: 30px; }
  .filter-row, .rail, .board-tabs { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .board-bar .results-count { display: block; }
  .detail-title { font-size: 32px; }
}

@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
  .has-sidebar .shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }

  .sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 8px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 16px);
    overflow-y: auto;
    padding: 16px 0 24px;
    margin-left: -10px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }

  .sidebar:hover { scrollbar-color: var(--line-strong) transparent; }
  .main { padding-top: 24px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); align-items: center; gap: 28px; padding: 24px 28px; }
  .hero-title { font-size: 32px; }
  .hero-sub { margin-bottom: 0; }
  .bf-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .bf-countdown { justify-self: end; }

  .detail-grid { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 32px; row-gap: 12px; }
  .detail-hero, .detail-rest { grid-column: 1; }
  .detail-aside { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
  body[data-view="detail"] { padding-bottom: 0; }
  .sticky-cta { display: none; }
}
