/* ==========================================================================
   BOOKFORGE Premium (2026-10-17) — warstwa nowego wyglądu. Ładowana PO style.css
   (inc/premium.php). Nie zmienia tokenów marki; dodaje hero kuźni, sekcje
   treści na stronie głównej, większe logo oraz dopracowanie strony produktu
   i Marketplace. Wycofanie: usuń wpis w inc/premium.php / functions.php.
   ========================================================================== */

/* ---------- Logo (przycięty plik logo-crop.svg, bez pustych marginesów) ---------- */
.bf-logo img { height: 56px; width: auto; max-width: 62vw; }
.bf-header.is-scrolled .bf-logo img { height: 46px; }
.bf-footer__inner img[alt="BOOKFORGE"] { height: 48px; width: auto; }
@media (max-width: 639px) {
  .bf-logo img { height: 34px; max-width: 44vw; }
  .bf-header.is-scrolled .bf-logo img { height: 32px; }
}

/* ---------- Hero kuźni ---------- */
.bf-fh {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(84vh, 780px); display: flex; align-items: center;
  background: #100e1a;
}
.bf-fh__wall {
  position: absolute; inset: -14% -6%; z-index: -3;
  display: flex; flex-direction: column; gap: 16px;
  transform: rotate(-6deg); opacity: .92;
}
.bf-fh__row { display: flex; gap: 16px; width: max-content; animation: bf-fh-move 110s linear infinite; will-change: transform; }
.bf-fh__row:nth-child(2) { animation-duration: 90s; animation-direction: reverse; margin-left: -80px; }
.bf-fh__row:nth-child(3) { animation-duration: 130s; margin-left: -40px; }
.bf-fh__row:nth-child(4) { animation-duration: 100s; animation-direction: reverse; margin-left: -120px; }
.bf-fh__row img {
  height: 190px; width: auto; aspect-ratio: 2 / 3; object-fit: cover; flex: none;
  border-radius: 5px; box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
}
@keyframes bf-fh-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* zaciemnienie: środek ciemny (czytelność tekstu), brzegi pokazują okładki */
.bf-fh::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 52% 60% at 50% 46%, rgba(16, 14, 26, .96) 22%, rgba(16, 14, 26, .6) 58%, rgba(16, 14, 26, .08) 100%),
    linear-gradient(180deg, rgba(16, 14, 26, .55) 0%, rgba(16, 14, 26, 0) 22%, rgba(16, 14, 26, 0) 74%, rgba(16, 14, 26, .9) 100%);
}
/* żar kuźni od dołu */
.bf-fh::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 100% at 50% 135%, rgba(255, 122, 69, .62), rgba(255, 95, 109, .22) 46%, transparent 72%);
  animation: bf-fh-glow 4.5s ease-in-out infinite alternate;
}
@keyframes bf-fh-glow { from { opacity: .72; } to { opacity: 1; } }
.bf-fh__sparks { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bf-fh__inner { position: relative; z-index: 1; text-align: center; max-width: 900px; padding-top: 72px; padding-bottom: 96px; }
.bf-fh__title {
  margin: 0 0 18px; font-family: var(--bf-font-display); font-weight: 700;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.04; letter-spacing: -.03em; color: #fff; text-wrap: balance;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}
.bf-fh__lead {
  margin: 0 auto 30px; max-width: 34em; color: #d9d5ec;
  font-family: Georgia, "Times New Roman", serif; font-size: clamp(17px, 2vw, 21px); line-height: 1.55;
}
.bf-fh__form {
  display: flex; gap: 10px; max-width: 660px; margin: 0 auto; padding: 10px;
  background: rgba(35, 32, 71, .92); border: 1px solid rgba(255, 182, 72, .55); border-radius: 999px;
  box-shadow: 0 22px 54px -22px rgba(255, 122, 69, .6); transition: box-shadow .4s, border-color .3s;
}
.bf-fh__form:focus-within { border-color: #ffb648; }
.bf-fh__form.is-hot { box-shadow: 0 0 44px 6px rgba(255, 122, 69, .6), 0 22px 54px -22px rgba(255, 122, 69, .8); }
.bf-fh__form input[type="text"] {
  flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 0 20px;
  font: 500 17px/1.2 var(--bf-font-body);
}
.bf-fh__form input[type="text"]::placeholder { color: #9d98bb; }
.bf-fh__form input[type="text"]:focus { outline: none; }
.bf-fh__form .bf-btn { flex: none; }
.bf-fh__note { margin: 14px 0 0; font-size: 13.5px; color: #c4bfdc; }
.bf-fh__paths { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 22px 0 0; padding: 0; }
.bf-fh__paths a {
  display: inline-block; padding: 9px 18px; border-radius: 999px; text-decoration: none; color: #fff; font-weight: 600; font-size: 14.5px;
  border: 1.5px solid rgba(255, 255, 255, .28); background: rgba(20, 18, 31, .55); transition: border-color .2s, color .2s;
}
.bf-fh__paths a:hover { border-color: #ffb648; color: #ffb648; }
.bf-fh__prices { margin: 22px 0 0; color: #cfcae6; font-size: 14.5px; }
.bf-fh__prices b { color: #fff; }
.bf-fh-rule { height: 3px; background: var(--bf-gradient-brand); box-shadow: 0 0 18px rgba(255, 122, 69, .7); }
@media (max-width: 640px) {
  .bf-fh { min-height: 640px; }
  .bf-fh__row img { height: 140px; }
  .bf-fh__inner { padding-top: 48px; padding-bottom: 64px; }
  .bf-fh__form { flex-wrap: wrap; border-radius: 24px; }
  .bf-fh__form input[type="text"] { flex-basis: 100%; padding: 12px 14px; }
  .bf-fh__form .bf-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-fh__row, .bf-fh::after { animation: none; }
}

/* ---------- Sekcje treści strony głównej ---------- */
.bf-fh-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; }
.bf-fh-book { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: start; }
.bf-fh-book__cover img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06); display: block; }
.bf-fh-book h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.bf-fh-book h3 a { color: inherit; text-decoration: none; }
.bf-fh-book h3 a:hover { color: var(--bf-blue); }
.bf-fh-book__meta { margin: 0 0 8px; font-size: 13px; color: var(--bf-text-400); }
.bf-fh-book__desc { margin: 0 0 10px; color: var(--bf-text-300); font-size: 15px; line-height: 1.55; }
.bf-fh-book__more { color: var(--bf-blue); font-weight: 700; font-size: 14px; text-decoration: none; }
.bf-fh-book__more:hover { text-decoration: underline; }
@media (max-width: 900px) { .bf-fh-books { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .bf-fh-book { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } }

.bf-fh-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.bf-fh-cat {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .14); color: var(--bf-text-50); text-decoration: none; font-weight: 600; font-size: 14.5px;
  transition: border-color .2s, color .2s;
}
.bf-fh-cat span { color: var(--bf-text-400); font-weight: 400; font-size: 13px; }
.bf-fh-cat:hover { border-color: var(--bf-blue); color: var(--bf-blue); }

.bf-fh-compare { width: 100%; border-collapse: collapse; margin-top: 8px; }
.bf-fh-compare th, .bf-fh-compare td { text-align: left; padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .1); vertical-align: top; font-size: 15px; }
.bf-fh-compare thead th { border-top: 0; color: var(--bf-text-400); font-size: 13.5px; }
.bf-fh-compare tbody th { font-weight: 700; color: var(--bf-text-50); white-space: nowrap; }
.bf-fh-compare td { color: var(--bf-text-300); }
.bf-fh-compare-wrap { overflow-x: auto; }

.bf-fh-faq { max-width: 820px; }
.bf-fh-faq details { border-top: 1px solid rgba(255, 255, 255, .12); }
.bf-fh-faq details:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.bf-fh-faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 17px; }
.bf-fh-faq summary::-webkit-details-marker { display: none; }
.bf-fh-faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 28px; font-weight: 400; color: var(--bf-indigo); transition: transform .2s; }
.bf-fh-faq details[open] summary::after { transform: rotate(45deg); }
.bf-fh-faq .a { padding: 0 0 22px; color: var(--bf-text-300); max-width: 62ch; line-height: 1.65; }
.bf-fh-about { max-width: 760px; }
.bf-fh-about p { color: var(--bf-text-300); font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.7; }

/* ---------- Strona produktu: tagi na górze, mocniejsze CTA ---------- */
.bf-product-single__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.bf-tag-badge { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; }
.bf-tag-badge:hover { border-color: var(--bf-blue); color: var(--bf-blue); }
.bf-product-single__generate-promo .bf-btn { padding: 15px 26px; font-weight: 700; box-shadow: 0 10px 32px -10px rgba(255, 122, 69, .85); }
.bf-product-single__generate-promo h3 { font-size: 20px; }
.bf-product-single__cover img { border-radius: 6px; }

/* ---------- Marketplace: zwijane tagi i baner „wykuj własny” ---------- */
.bf-mp-forge {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin: 0 0 24px; padding: 20px 24px; border-radius: var(--bf-radius);
  background: radial-gradient(120% 160% at 0% 0%, rgba(255, 122, 69, .22), rgba(26, 23, 48, 0) 60%), var(--bf-bg-900);
  border: 1px solid rgba(255, 95, 109, .4); box-shadow: 0 0 36px -6px rgba(255, 122, 69, .45);
}
.bf-mp-forge strong { display: block; font-size: 18px; }
.bf-mp-forge span { color: var(--bf-text-300); font-size: 14.5px; }
.bf-mp-tags { margin: 0 0 18px; }
.bf-mp-tags summary { cursor: pointer; font-weight: 600; color: var(--bf-text-300); font-size: 14px; list-style: none; }
.bf-mp-tags summary::-webkit-details-marker { display: none; }
.bf-mp-tags summary::before { content: "#"; color: var(--bf-indigo); margin-right: 6px; font-weight: 800; }
.bf-mp-tags[open] summary { margin-bottom: 12px; }

/* Wyższa swoistość dla linków (style.css ma reguły .bf-page a) */
.bf-page .bf-fh-book__more { color: var(--bf-blue); }
.bf-page .bf-fh-book h3 a { color: var(--bf-text-50); }
.bf-page .bf-fh-book h3 a:hover { color: var(--bf-blue); }
.bf-page .bf-fh-cat { color: var(--bf-text-50); }
.bf-page .bf-fh-cat:hover { color: var(--bf-blue); }
.bf-page .bf-fh__paths a { color: #fff; }
.bf-page .bf-fh__paths a:hover { color: #ffb648; }

/* ==========================================================================
   Marketplace v2 (2026-10-17) — płaskie okładki zamiast przechylonych 3D,
   tytuł pod okładką (nie na niej), opis, siatka na całą szerokość,
   kategorie jako pasek nad siatką zamiast długiego bocznego paska.
   Dotyczy wyłącznie publicznej karty .bf-ebook-card--link (Marketplace,
   „Podobne ebooki”); karty w Bibliotece/Moich ebookach bez zmian.
   ========================================================================== */
.bf-ebook-card--link { display: flex; flex-direction: column; background: none; border: 0; border-radius: 0; transition: transform .28s var(--bf-ease); }
.bf-ebook-card--link:hover { transform: translateY(-5px); border-color: transparent; }
.bf-ebook-card--link .bf-ebook-card__cover {
  perspective: none; aspect-ratio: 2 / 3; display: block; margin: 0 0 14px; overflow: hidden;
  background: var(--bf-bg-800); border-radius: 6px;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .07);
  transition: box-shadow .28s;
}
.bf-ebook-card--link:hover .bf-ebook-card__cover { box-shadow: 0 28px 46px -16px rgba(255, 122, 69, .5), 0 0 0 1px rgba(255, 182, 72, .55); }
.bf-ebook-card--link .bf-ebook-card__cover::before,
.bf-ebook-card--link .bf-ebook-card__cover::after,
.bf-ebook-card--link .bf-ebook-card__cover-inner::before,
.bf-ebook-card--link .bf-ebook-card__cover-inner::after { display: none; }
.bf-ebook-card--link .bf-ebook-card__cover-inner {
  transform: none !important; box-shadow: none; border-radius: 0; transition: transform .6s var(--bf-ease);
  background-size: cover; background-position: center;
}
.bf-ebook-card--link:hover .bf-ebook-card__cover-inner { transform: scale(1.045) !important; }
.bf-ebook-card--link .bf-ebook-card__cover-scrim,
.bf-ebook-card--link .bf-ebook-card__cover-title,
.bf-ebook-card--link .bf-ebook-card__cover-logo,
.bf-ebook-card--link .bf-ebook-card__full-topic { display: none !important; }
.bf-ebook-card--link .bf-ebook-card__body { padding: 0 2px; }
.bf-ebook-card--link .bf-ebook-card__title--clamp {
  margin: 0 0 6px; font-size: 15px; line-height: 1.35; font-weight: 700; color: var(--bf-text-50);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bf-ebook-card--link .bf-ebook-card__meta { margin: 0 0 8px; font-size: 12.5px; color: var(--bf-text-400); }
.bf-ebook-card__desc {
  margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--bf-text-300);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bf-ebook-card--link .bf-ebook-card__price { margin: 0; font-size: 17px; }
.bf-ebook-card--link .bf-ebook-card__details-link { margin-top: 8px; font-size: 13px; color: var(--bf-blue); }
.bf-ebook-card--link:hover .bf-ebook-card__details-link { text-decoration: underline; }
.bf-ebook-card--link .bf-ebook-card__badge { top: 10px; left: 10px; z-index: 2; }

/* siatka: tyle kolumn, ile się mieści */
.bf-ebook-grid.bf-ebook-grid--compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 40px 24px; }
@media (max-width: 460px) { .bf-ebook-grid.bf-ebook-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } }
.bf-marketplace-content .bf-ebook-card__body { padding: 0 2px; }
.bf-marketplace-content .bf-ebook-card__body h3 { font-size: 15px; }
.bf-marketplace-content .bf-ebook-card__price { font-size: 17px; }

/* kategorie: pasek nad siatką zamiast sticky bocznego paska */
.bf-section .bf-marketplace-layout { display: block !important; margin-top: 20px; }
.bf-marketplace-sidebar,
.bf-marketplace-sidebar.bf-marketplace-sidebar {
  position: static !important; max-height: none !important; overflow: visible !important; padding: 0 !important;
  display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 8px; margin: 0 0 26px;
}
.bf-marketplace-sidebar .bf-library-filter { flex: 0 0 auto; padding: 7px 14px; font-size: 13px; text-align: left; }
.bf-marketplace-sidebar .bf-library-filter.is-active { background: var(--bf-gradient-brand); border-color: transparent; color: #1d1a33; }
.bf-marketplace-sidebar .bf-library-filter.is-active .bf-library-filter__count { color: rgba(29, 26, 51, .7); }
.bf-library-search { max-width: 560px; margin-top: 4px; }

/* „Polecane” (karuzela): spokojniejsza ramka, bez migającego gradientu */
.bf-shelf--featured .bf-featured-carousel { animation: none; padding: 1px; background: rgba(255, 182, 72, .35); box-shadow: 0 20px 50px -26px rgba(255, 122, 69, .45); }
.bf-featured-carousel__track { background: var(--bf-bg-900); }
.bf-featured-spotlight__cover { aspect-ratio: 2 / 3; border-radius: 6px; }
.bf-marketplace-content .bf-shelf--featured { margin-bottom: 36px; }

/* ==========================================================================
   Skin v2 (2026-10-17) — spokojniejszy, mniej „generyczny AI” wygląd całej
   witryny poza hero: mniejsze zaokrąglenia, płaskie przyciski, brak
   poświat/migających gradientów/obracanych naklejek, jednolite powierzchnie
   z cienką ramką, nagłówki sekcji wyrównane do lewej, etykiety bez
   rozstrzelonych wersalików. Marka (kolory, logo, fonty) bez zmian.
   Hero kuźni (.bf-fh*), baner „Wykuj własny” i blok na stronie ebooka
   zachowują poświatę — to jedyne miejsca, gdzie ma być efekt.
   ========================================================================== */
:root { --bf-radius: 10px; }

/* przyciski */
.bf-btn { border-radius: 8px; font-weight: 700; transition: background-color .15s, border-color .15s, color .15s; }
.bf-btn:hover { transform: none; }
.bf-btn--primary { background: #ff8a3a; color: #1d1a33; }
.bf-btn--primary:hover { background: #ffa04f; opacity: 1; }
.bf-btn--secondary { border-color: rgba(255, 255, 255, .22); }
.bf-btn--secondary:hover { border-color: #ff8a3a; color: #ffb648; }
.bf-btn:focus-visible, .bf-field input:focus-visible, a:focus-visible { outline: 2px solid #ffb648; outline-offset: 2px; }
/* miejsca z efektem zostają przy gradiencie */
.bf-fh .bf-btn { border-radius: 999px; }
.bf-fh .bf-btn--primary,
.bf-product-single__generate-promo .bf-btn--primary,
.bf-mp-forge .bf-btn--primary { background: var(--bf-gradient-brand); }
.bf-fh .bf-btn--primary:hover,
.bf-product-single__generate-promo .bf-btn--primary:hover,
.bf-mp-forge .bf-btn--primary:hover { background: var(--bf-gradient-brand); opacity: .92; }

/* tekst z gradientem i migotanie -> zwykły akcent */
.bf-gradient-text { background: none !important; -webkit-text-fill-color: var(--bf-blue); color: var(--bf-blue); animation: none; }
.bf-glow-orb { display: none !important; }

/* plakietki i etykiety */
.bf-badge { background: transparent; border: 1px solid rgba(255, 255, 255, .2); color: var(--bf-text-300); border-radius: 6px; padding: 5px 12px; }
.bf-badge-new-pulse { transform: none; animation: none; box-shadow: none; font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; padding: 6px 14px; border-radius: 6px; margin-bottom: 12px; }
.bf-badge-soon-pulse { animation: none; box-shadow: none; }
.bf-eyebrow { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--bf-blue); }

/* nagłówki sekcji: do lewej */
.bf-section__heading { margin-left: 0; margin-right: auto; text-align: left; max-width: 760px; }
.bf-section__heading h2 { letter-spacing: -.02em; }

/* powierzchnie: jednolite, cienka ramka, bez poświat i unoszenia */
.bf-card, .bf-path-card, .bf-price-card, .bf-addon, .bf-dash-card, .bf-dash-stat, .bf-stats-card,
.bf-auth__card, .bf-form-section, .bf-product-single__price-box, .bf-marketplace-cta, .bf-trust-bar {
  background: var(--bf-bg-900); border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px; box-shadow: none;
}
.bf-card:hover, .bf-path-card:hover, .bf-price-card:hover, .bf-dash-card:hover {
  transform: none; background: var(--bf-bg-900); border-color: rgba(255, 255, 255, .24); box-shadow: none;
}
.bf-path-choice a.bf-path-card:nth-child(2) { border-color: rgba(255, 255, 255, .09); }
.bf-price-card--highlight { border-color: #ff8a3a; box-shadow: none; }
.bf-price-card__badge { background: #ff8a3a; color: #1d1a33; border-radius: 6px; letter-spacing: 0; }
.bf-card--solution, .bf-card--solution:hover { border-color: rgba(255, 255, 255, .09); }
.bf-persona-icon, .bf-dash-card__icon { border-radius: 8px; background: transparent; border-color: rgba(255, 255, 255, .16); }
.bf-persona-icon--brand { background: transparent; border-color: rgba(255, 138, 58, .6); color: var(--bf-blue); }
.bf-form-section__step { border-radius: 6px; background: #ff8a3a; color: #1d1a33; }
.bf-dash-card.bf-dash-card--sell { background: var(--bf-bg-900); border-color: #ff8a3a; }
.bf-dash-card.bf-dash-card--sell h3 { color: var(--bf-text-50); }
.bf-dash-card.bf-dash-card--sell p { color: var(--bf-text-300); }
.bf-dash-card.bf-dash-card--sell .bf-dash-card__icon { background: transparent; border-color: rgba(255, 138, 58, .6); color: var(--bf-blue); }
.bf-dash-card.bf-dash-card--sell:hover { filter: none; border-color: #ffa04f; box-shadow: none; }

/* sekcje CTA i logowanie: bez rozbłysku */
.bf-cta { background: var(--bf-bg-900); border-top: 1px solid rgba(255, 255, 255, .06); }
.bf-auth { background: var(--bf-bg-950); }

/* formularze */
.bf-field input[type="text"], .bf-field input[type="email"], .bf-field input[type="password"], .bf-field input[type="number"],
.bf-field select, .bf-field textarea, .bf-library-search input[type="search"] { border-radius: 8px; background: #15132a; border-color: rgba(255, 255, 255, .16); }
.bf-field input:focus, .bf-field select:focus, .bf-field textarea:focus { border-color: #ff8a3a; box-shadow: 0 0 0 3px rgba(255, 138, 58, .22); }
.bf-library-filter { border-radius: 8px; }
.bf-library-filter.is-active { background: rgba(255, 138, 58, .16); border-color: #ff8a3a; }

/* menu konta: aktywna pozycja jako belka z lewej, Generator jako jednolity przycisk */
.bf-account-nav__link { border-radius: 8px; }
.bf-account-nav__link.is-active { background: rgba(255, 255, 255, .06); box-shadow: inset 3px 0 0 #ff8a3a; }
.bf-account-nav__link.bf-account-nav__link--generator { background: #ff8a3a; color: #1d1a33; }
.bf-account-nav__link.bf-account-nav__link--generator .bf-account-nav__icon { color: #1d1a33; }
.bf-account-nav__link.bf-account-nav__link--generator:hover { filter: none; background: #ffa04f; }
.bf-account-nav__link.bf-account-nav__link--generator.is-active { box-shadow: inset 0 0 0 2px rgba(29, 26, 51, .35); }
.bf-account-sidebar__logo img, .bf-account-topbar .bf-logo img { height: 34px; width: auto; }

/* stopka */
.bf-footer { border-top: 1px solid rgba(255, 255, 255, .08); }

/* Skin v2 — dalszy ciąg: tła sekcji, kroki, FAQ, wywołania */
.bf-howitworks, #jak-to-wyglada, #cennik { background: var(--bf-bg-950); }
#jak-to-dziala-import, #marketplace-preview, #dla-kogo { background: var(--bf-bg-900); }

.bf-flow__marker { border-radius: 8px; width: 46px; height: 46px; background: transparent; border: 1.5px solid #ff8a3a; color: var(--bf-blue); font-size: 18px; }
.bf-flow__item:not(:last-child) .bf-flow__marker::after { background: rgba(255, 255, 255, .14); top: 46px; }
.bf-flow__tag { background: transparent; border: 1px solid rgba(255, 255, 255, .18); color: var(--bf-text-300); border-radius: 6px; }
.bf-feature-flow__icon { border-radius: 8px; }
.bf-feature-flow__item:hover .bf-feature-flow__icon { box-shadow: none; transform: none; border-color: rgba(255, 138, 58, .6); }

.bf-faq__item { background: var(--bf-bg-900); border-color: rgba(255, 255, 255, .1); border-radius: 10px; }
.bf-faq__item:hover { border-color: rgba(255, 255, 255, .28); }
.bf-faq__item[open] { border-color: #ff8a3a; box-shadow: none; }
.bf-faq__item summary::after { border-radius: 6px; background: transparent; border: 1.5px solid #ff8a3a; color: var(--bf-blue); }

.bf-secret-callout { box-shadow: none; border-color: rgba(255, 255, 255, .12); }
.bf-secret-callout__icon { border-radius: 10px; background: transparent; border: 1.5px solid #ff8a3a; color: var(--bf-blue); box-shadow: none; }

.bf-marketplace-cta { background: var(--bf-bg-900); }
.bf-marketplace-cta__icon { border-radius: 8px; background: transparent; border: 1.5px solid #ff8a3a; color: var(--bf-blue); box-shadow: none; }
.bf-trust-bar__item svg { color: var(--bf-blue); }
.bf-cta--sister-sites .bf-badge-new-pulse, .bf-cta--sister-sites .bf-badge-soon-pulse { border-radius: 6px; }

/* ==========================================================================
   Etap 5 (2026-10-17): galeria okładek, hero „Jak to działa”, tagi w Marketplace
   ========================================================================== */
/* iskry usunięte — zostaje sam żar */
.bf-fh__sparks { display: none; }

/* galeria 15 okładek na stronie głównej */
.bf-fh-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 20px; margin: 40px 0 8px; }
.bf-fh-gallery__item { display: block; text-decoration: none; color: inherit; }
.bf-fh-gallery__item img {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px;
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .07);
  transition: transform .28s var(--bf-ease), box-shadow .28s;
}
.bf-fh-gallery__item:hover img { transform: translateY(-5px); box-shadow: 0 26px 42px -16px rgba(255, 122, 69, .5), 0 0 0 1px rgba(255, 182, 72, .55); }
.bf-fh-gallery__item span { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--bf-text-300); }
.bf-fh-gallery__note { margin: 20px 0 36px; font-size: 14px; color: var(--bf-text-400); }
@media (max-width: 900px) { .bf-fh-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; } }
@media (max-width: 480px) { .bf-fh-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* hero strony „Jak to działa” */
.bf-jt-hero { position: relative; overflow: hidden; padding: 64px 0 72px; background: var(--bf-bg-950); }
.bf-jt-hero::before {
  content: ""; position: absolute; right: -8%; top: -20%; width: 62%; height: 150%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 122, 69, .26), rgba(255, 95, 109, .08) 60%, transparent 80%);
}
.bf-jt-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.bf-jt-hero__title { margin: 18px 0 0; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; letter-spacing: -.02em; max-width: 14em; }
.bf-jt-hero__lead { margin: 18px 0 0; max-width: 32em; color: var(--bf-text-300); font-size: 18px; line-height: 1.6; }
.bf-jt-hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; padding: 0; color: var(--bf-text-300); font-size: 15px; }
.bf-jt-hero__facts li { padding-left: 14px; border-left: 2px solid #ff8a3a; }
.bf-jt-hero__facts b { color: #fff; }
.bf-jt-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.bf-jt-hero__covers { position: relative; height: clamp(340px, 38vw, 480px); }
.bf-jt-hero__cover { position: absolute; width: 30%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 26px 46px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); }
.bf-jt-hero__cover--1 { left: 0; top: 12%; transform: rotate(-7deg); }
.bf-jt-hero__cover--2 { left: 22%; top: 0; transform: rotate(-2deg); z-index: 2; width: 33%; }
.bf-jt-hero__cover--3 { left: 47%; top: 9%; transform: rotate(5deg); z-index: 3; }
.bf-jt-hero__cover--4 { right: 0; top: 2%; transform: rotate(10deg); width: 26%; }
.bf-jt-hero__cover--5 { left: 8%; bottom: 0; transform: rotate(4deg); width: 26%; z-index: 4; }
.bf-jt-hero__cover--6 { left: 36%; bottom: -4%; transform: rotate(-4deg); width: 28%; z-index: 5; }
.bf-jt-hero__cover--7 { right: 4%; bottom: 2%; transform: rotate(7deg); width: 25%; z-index: 4; }
@media (max-width: 860px) {
  .bf-jt-hero { padding: 40px 0 48px; }
  .bf-jt-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .bf-jt-hero__covers { height: 330px; order: -1; }
}

/* tagi w Marketplace: widoczny blok */
.bf-mp-tags { margin: 0 0 22px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px; background: var(--bf-bg-900); }
.bf-mp-tags summary { font-size: 14px; font-weight: 700; color: var(--bf-text-50); cursor: default; }
.bf-mp-tags .bf-tag-badges { gap: 8px; }

/* Galeria: prawdziwe strony PDF (proporcje A4-ish 900:1273), nie okładki */
.bf-fh-gallery--pdf .bf-fh-gallery__item img { aspect-ratio: 900 / 1273; background: #fff; border-radius: 3px; object-fit: cover; }
.bf-fh-gallery--pdf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
@media (max-width: 900px) { .bf-fh-gallery--pdf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .bf-fh-gallery--pdf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* kolaż w „Jak to działa” ze stron PDF */
.bf-jt-hero__cover { aspect-ratio: 900 / 1273; border-radius: 3px; background: #fff; }

/* Zakładka „Technologie i finanse” w pokazie prawdziwych ebooków (id: tech) — odpowiednik reguł z style.css */
#bf-tab-tech:checked ~ .bf-showcase-tabs__nav label[for="bf-tab-tech"] { background: var(--bf-indigo); border-color: var(--bf-indigo); color: #fff; }
#bf-tab-tech:checked ~ .bf-showcase-tabs__panels #bf-panel-tech { display: block; }

/* ---------- 2026-10-20: strona produktu pod sprzedaż na telefonie ----------
   Cel: cena i "Kup" widoczne zaraz pod tytułem (opis i tagi niżej), baner
   "Wykuj własny" nie konkuruje z przyciskiem zakupu. Desktop (>=860px) bez zmian
   poza listą informacji pod przyciskiem. */
.bf-trust { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; line-height: 1.45; color: var(--bf-text-300); }
.bf-trust li { position: relative; padding-left: 20px; }
.bf-trust li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--bf-blue); font-weight: 700; }
.bf-product-single__cta-note a { color: var(--bf-text-300); text-decoration: underline; }

.bf-product-single__generate-promo--mobile { margin-top: 40px; }

@media (max-width: 859px) {
  .bf-product-single__info { display: flex; flex-direction: column; }
  .bf-product-single__info > .bf-badge { order: 0; align-self: flex-start; }
  .bf-product-single__info > h1 { order: 1; }
  .bf-product-single__info > .bf-product-single__price-row { order: 2; margin-top: 16px; }
  .bf-product-single__info > .bf-formats { order: 3; margin-top: 16px; }
  .bf-product-single__info > .bf-product-single__excerpt { order: 4; }
  .bf-product-single__info > .bf-product-single__tags { order: 5; margin-top: 16px; }
  .bf-product-single__price-row .bf-product-single__generate-promo { display: none; }
  .bf-product-single__price-box { width: 100%; }
  .bf-product-single__hero { gap: 20px; }
}
@media (min-width: 860px) {
  .bf-product-single__generate-promo--mobile { display: none; }
}

/* ---------- 2026-10-20: formularz zakupu bez konta ---------- */
.bf-guest-buy { margin: 0; }
.bf-guest-buy__label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; color: var(--bf-text-300); }
.bf-guest-buy__input { width: 100%; box-sizing: border-box; padding: 14px 14px; font-size: 16px; /* 16px = brak zoomu na iOS */ border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: var(--bf-text-50, #fff); }
.bf-guest-buy__input:focus { outline: none; border-color: var(--bf-blue); box-shadow: 0 0 0 3px rgba(255, 122, 69, .25); }
.bf-guest-buy__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
