/* GBPromo UI 2.0 - nowe strony dynamiczne. Używa zmiennych motywu (jasny/ciemny). */
:root {
    --gbp-accent: #2563eb;
    --gbp-accent-d: #1d4ed8;
    --gbp-hot: #e11d48;
    --gbp-ok: #16a34a;
    --gbp-card: var(--color-bg-alt, #fff);
    --gbp-line: rgba(127, 127, 127, .18);
    --gbp-muted: var(--color-text-muted, #6b7280);
    --gbp-r: 14px;
}
[hidden] { display: none !important; }
.gbp-wrap { max-width: 1240px; margin: 0 auto; padding: 16px 16px 48px; color: var(--color-text, #111); }
.gbp-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--gbp-muted); }
.gbp-crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.gbp-crumbs a { color: inherit; text-decoration: none; }
.gbp-crumbs a:hover { color: var(--gbp-accent); }
.gbp-h1 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
.gbp-h2 { font-size: 21px; margin: 32px 0 14px; }
.gbp-muted, .gbp-aff { color: var(--gbp-muted); font-size: 13px; }
.gbp-center { text-align: center; }

/* przyciski */
.gbp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--gbp-accent); color: #fff !important; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.gbp-btn:hover { background: var(--gbp-accent-d); }
.gbp-btn:active { transform: scale(.98); }
.gbp-btn-ghost { background: transparent; color: var(--gbp-accent) !important; border: 2px solid var(--gbp-accent); }
.gbp-btn-ghost:hover { background: rgba(37, 99, 235, .08); }
.gbp-btn-small { padding: 7px 12px; font-size: 13px; }
.gbp-btn-go { width: 100%; }

/* kod kuponu: przycisk z "zaglądającą" końcówką kodu */
.gbp-code { position: relative; width: 100%; }
.gbp-code-reveal { position: relative; width: 100%; display: flex; align-items: stretch; border: 0; padding: 0; cursor: pointer; background: transparent; border-radius: 10px; overflow: hidden; font-weight: 700; }
.gbp-code-label { flex: 1; background: var(--gbp-hot); color: #fff; padding: 11px 14px; font-size: 15px; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); margin-right: -14px; z-index: 1; }
.gbp-code-peek { order: 2; min-width: 64px; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px 0 22px; border: 2px dashed var(--gbp-hot); border-left: 0; border-radius: 0 10px 10px 0; color: var(--gbp-hot); font-family: ui-monospace, monospace; letter-spacing: .08em; }
.gbp-code-peek::before { content: "•••"; opacity: .45; margin-right: 2px; }
.gbp-code-reveal:hover .gbp-code-label { background: #be123c; }
.gbp-code-open { display: flex; border: 2px dashed var(--gbp-hot); border-radius: 10px; overflow: hidden; }
.gbp-code-open code { flex: 1; padding: 10px 12px; font-size: 16px; font-weight: 800; letter-spacing: .06em; background: rgba(225, 29, 72, .06); color: var(--color-text, #111); text-align: center; user-select: all; }
.gbp-code-copy { border: 0; background: var(--gbp-hot); color: #fff; font-weight: 700; padding: 0 16px; cursor: pointer; }
.gbp-code-big .gbp-code-label { font-size: 17px; padding: 15px 18px; }
.gbp-code-big .gbp-code-open code { font-size: 20px; padding: 14px; }

/* siatka kart */
.gbp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gbp-card { background: var(--gbp-card); border: 1px solid var(--gbp-line); border-radius: var(--gbp-r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.gbp-card:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .09); transform: translateY(-2px); }
.gbp-card[hidden] { display: none; }
.gbp-card-img { position: relative; display: block; aspect-ratio: 1; background: #fff; }
.gbp-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.gbp-badge-disc { position: absolute; top: 10px; left: 10px; background: var(--gbp-hot); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 8px; border-radius: 8px; }
.gbp-badge-disc.big { font-size: 18px; padding: 6px 12px; }
.gbp-badge-wh { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, .92); color: #111; font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .08); }
.gbp-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gbp-card-title { font-size: 14px; line-height: 1.35; margin: 0; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.gbp-card-title a { color: inherit; text-decoration: none; }
.gbp-card-title a:hover { color: var(--gbp-accent); }
.gbp-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.gbp-price strong { font-size: 20px; color: var(--gbp-ok); }
.gbp-price s { color: var(--gbp-muted); font-size: 13px; }

/* produkt */
.gbp-pgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; background: var(--gbp-card); border: 1px solid var(--gbp-line); border-radius: 18px; padding: 24px; }
.gbp-pimg { position: relative; background: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; }
.gbp-pimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gbp-pinfo { display: flex; flex-direction: column; gap: 12px; }
.gbp-pbrand { font-weight: 700; color: var(--gbp-accent); text-decoration: none; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.gbp-fullname { color: var(--gbp-muted); font-size: 14px; margin: -4px 0 0; }
.gbp-pprice { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; padding: 14px 16px; background: rgba(22, 163, 74, .07); border-radius: 12px; }
.gbp-pprice small { display: block; font-size: 12px; color: var(--gbp-muted); }
.gbp-pprice strong { font-size: 32px; color: var(--gbp-ok); line-height: 1.1; }
.gbp-pprice s { font-size: 18px; color: var(--gbp-muted); }
.gbp-save { background: var(--gbp-ok); color: #fff; font-weight: 700; padding: 5px 10px; border-radius: 8px; font-size: 14px; }
.gbp-low30 { font-size: 13px; color: var(--gbp-muted); margin: -4px 0 0; }
.gbp-pmeta { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-size: 14px; }
.gbp-pmeta em { display: block; font-style: normal; color: var(--gbp-ok); font-size: 13px; margin-left: 22px; }
.gbp-share { align-self: flex-start; background: none; border: 1px solid var(--gbp-line); color: inherit; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 13px; }
.gbp-share:hover { border-color: var(--gbp-accent); color: var(--gbp-accent); }
.gbp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 28px; }
.gbp-main section { background: var(--gbp-card); border: 1px solid var(--gbp-line); border-radius: var(--gbp-r); padding: 20px 22px; margin-bottom: 18px; }
.gbp-main h2 { font-size: 19px; margin: 0 0 12px; }
.gbp-main p { line-height: 1.65; }
.gbp-specs dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.gbp-specs dt { color: var(--gbp-muted); }
.gbp-specs dd { margin: 0; font-weight: 600; }
.gbp-howto ol { margin: 0; padding-left: 20px; line-height: 1.7; }
.gbp-faq details { border-top: 1px solid var(--gbp-line); padding: 12px 0; }
.gbp-faq details:first-of-type { border-top: 0; }
.gbp-faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 24px; }
.gbp-faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 20px; color: var(--gbp-accent); }
.gbp-faq details[open] summary::after { content: "−"; }
.gbp-faq p { margin: 8px 0 0; color: var(--gbp-muted); }
.gbp-side > * { margin-bottom: 18px; }
.gbp-watch { background: var(--gbp-card); border: 1px solid var(--gbp-line); border-radius: var(--gbp-r); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.gbp-watch-row { display: flex; gap: 6px; }
.gbp-watch input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--gbp-line); border-radius: 10px; background: var(--color-bg, #fff); color: inherit; }
.gbp-watch-msg.ok { color: var(--gbp-ok); }
.gbp-watch-msg.err { color: var(--gbp-hot); }
.gbp-trust { list-style: none; margin: 0; padding: 16px; background: var(--gbp-card); border: 1px solid var(--gbp-line); border-radius: var(--gbp-r); display: grid; gap: 8px; font-size: 14px; }
.gbp-trust li { color: var(--gbp-ok); }

/* wygasły */
.gbp-expired { background: var(--gbp-card); border: 1px solid var(--gbp-line); border-left: 5px solid #f59e0b; border-radius: var(--gbp-r); padding: 22px; display: grid; gap: 10px; }
.gbp-expired h1 { font-size: 26px; margin: 0; }
.gbp-expired .gbp-watch { border: 0; padding: 0; max-width: 460px; }

/* sticky CTA (mobile) */
.gbp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--gbp-card); box-shadow: 0 -6px 20px rgba(0, 0, 0, .12); }
.gbp-sticky[hidden] { display: none; }
.gbp-sticky > span { white-space: nowrap; font-size: 14px; }
.gbp-sticky strong { color: var(--gbp-ok); font-size: 18px; }
.gbp-sticky .gbp-code, .gbp-sticky .gbp-btn { flex: 1; }
@media (min-width: 900px) { .gbp-sticky { display: none !important; } }

/* listingi */
.gbp-lhead { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.gbp-blogo { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 16px; border: 1px solid var(--gbp-line); padding: 8px; flex: none; }
.gbp-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.gbp-stats span { background: rgba(37, 99, 235, .09); color: var(--gbp-accent); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.gbp-stats span:nth-child(2) { background: rgba(225, 29, 72, .09); color: var(--gbp-hot); }
.gbp-intro { max-width: 860px; line-height: 1.6; margin: 0 0 6px; }
.gbp-sub { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.gbp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gbp-chip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 999px; background: var(--gbp-card); border: 1px solid var(--gbp-line); color: inherit; text-decoration: none; font-size: 14px; }
.gbp-chip span { color: var(--gbp-muted); font-size: 12px; }
.gbp-chip:hover { border-color: var(--gbp-accent); color: var(--gbp-accent); }
.gbp-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 4px 0 16px; padding: 10px 12px; background: var(--gbp-card); border: 1px solid var(--gbp-line); border-radius: 12px; font-size: 14px; }
.gbp-toolbar select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--gbp-line); background: var(--color-bg, #fff); color: inherit; }
.gbp-toolbar .gbp-share { margin-left: auto; align-self: center; }
.gbp-empty { background: var(--gbp-card); border: 1px solid var(--gbp-line); border-radius: var(--gbp-r); padding: 22px; }
.gbp-more .gbp-chips { margin-bottom: 8px; }
.gbp-search { display: flex; gap: 8px; max-width: 620px; margin: 18px 0; }
.gbp-search input { flex: 1; padding: 12px 14px; border: 1px solid var(--gbp-line); border-radius: 10px; font-size: 16px; }
.gbp-savebar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; font-size: 13px; }
.gbp-savebar[hidden] { display: none; }
.gbp-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; opacity: 0; transition: all .25s; z-index: 10000; }
.gbp-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
    .gbp-pgrid { grid-template-columns: 1fr; padding: 14px; gap: 16px; }
    .gbp-pimg { max-height: 360px; }
    .gbp-cols { grid-template-columns: 1fr; }
    .gbp-wrap { padding-bottom: 90px; }
}
@media (max-width: 520px) {
    .gbp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gbp-card-body { padding: 10px; }
    .gbp-price strong { font-size: 17px; }
    .gbp-code-label { font-size: 13px; padding: 10px; }
    .gbp-code-peek { min-width: 46px; padding-left: 18px; }
    .gbp-lhead { flex-direction: column; }
    .gbp-pprice strong { font-size: 28px; }
}
.dark-theme .gbp-card-img, .dark-theme .gbp-pimg, .dark-theme .gbp-blogo { background: #fff; }
.dark-theme .gbp-toast { background: #f3f4f6; color: #111; }

.gbp-dormant { border-left: 5px solid #f59e0b; display: grid; gap: 8px; }
.gbp-dormant .gbp-watch { border: 0; padding: 0; max-width: 480px; }
.gbp-past { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.gbp-past li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--gbp-card); border: 1px solid var(--gbp-line); border-radius: 10px; font-size: 14px; }
.gbp-past span { color: var(--gbp-muted); white-space: nowrap; }

/* ===== Strona główna 2.0: hero, kategorie, dół, stopka ===== */
.hero-section-new { background: radial-gradient(1200px 400px at 20% -10%, rgba(37,99,235,.55), transparent 60%), linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0f2747 100%); padding: 48px 24px 36px; }
.hero-title-new { font-size: clamp(26px, 4vw, 42px); letter-spacing: -.02em; line-height: 1.15; }
.hero-subtitle { max-width: 720px; margin-left: auto; margin-right: auto; }
.hero-stats { gap: clamp(16px, 5vw, 50px); flex-wrap: wrap; }
.gbp-hero-trust { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; font-size: 13px; }
.gbp-hero-trust > * { color: rgba(255,255,255,.9); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.gbp-hero-trust a:hover { background: rgba(255,255,255,.18); }
.gbp-home-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: -14px 0 34px; }
.gbp-home-cats a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 11px 12px; background: var(--gbp-card); border: 1px solid var(--gbp-line); border-radius: 12px; color: inherit; text-decoration: none; font-size: 14px; font-weight: 600; transition: border-color .15s, transform .15s; }
.gbp-home-cats a:hover { border-color: var(--gbp-accent); transform: translateY(-1px); }
.gbp-home-cats .i { font-size: 20px; }
.gbp-home-cats .l { line-height: 1.25; }
.gbp-home-cats .n { font-size: 12px; color: var(--gbp-muted); font-weight: 500; }
.gbp-home-bottom { padding-top: 0; }
.gbp-home-review { margin-top: 26px; display: flex; gap: 20px; align-items: center; justify-content: space-between; background: var(--gbp-card); border: 1px solid var(--gbp-line); border-left: 5px solid var(--gbp-ok); border-radius: var(--gbp-r); padding: 20px 22px; }
.gbp-home-review h2 { margin: 0 0 6px; font-size: 19px; }
.gbp-home-review p { margin: 0; color: var(--gbp-muted); line-height: 1.55; }
.gbp-home-review .gbp-btn { flex: none; }

/* stare karty strony głównej: ten sam przycisk kodu co w 2.0 */
.main-article .gbp-code { margin: 10px 0 8px; }
.main-article .gbp-code-label { font-size: 14px; }

/* stopka */
.gbp-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; text-align: left; padding: 8px 0 22px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 18px; }
.gbp-foot h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin: 0 0 10px; }
.gbp-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.gbp-foot a { color: inherit; opacity: .88; text-decoration: none; }
.gbp-foot a:hover { opacity: 1; text-decoration: underline; }
.gbp-foot-aff { font-size: 12px; opacity: .65; max-width: 900px; margin: 0 auto 14px; line-height: 1.5; text-align: center; }

/* strona opinii */
.gbp-rv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 16px 0; }
.gbp-rv-stats div { background: var(--gbp-card); border: 1px solid var(--gbp-line); border-radius: 12px; padding: 12px; text-align: center; }
.gbp-rv-stats strong { display: block; font-size: 22px; }
.gbp-rv-stats span { font-size: 12px; color: var(--gbp-muted); }
.gbp-verdict { background: rgba(22,163,74,.08); border-left: 5px solid var(--gbp-ok); padding: 14px 16px; border-radius: 10px; line-height: 1.6; max-width: 900px; }
.gbp-main ul, .gbp-main ol { line-height: 1.7; padding-left: 20px; }

@media (max-width: 760px) {
    .gbp-foot { grid-template-columns: 1fr 1fr; }
    .gbp-foot-col:last-child { grid-column: 1 / -1; }
    .gbp-home-review { flex-direction: column; align-items: flex-start; }
    .gbp-home-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -10px; }
    .hero-section-new { padding: 32px 16px 26px; }
}

/* krok 2 po odsłonięciu kodu: przejście przez nasz link (bez automatycznej nowej karty) */
.gbp-code-go { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--gbp-ok); color: #fff !important; text-decoration: none; line-height: 1.25; animation: gbpPulse 1.6s ease-out 2; }
.gbp-code-go:hover { background: #15803d; }
.gbp-code-go strong { grid-row: 1 / span 2; grid-column: 2; font-size: 15px; white-space: nowrap; }
.gbp-code-go span { grid-column: 1; font-size: 12px; }
.gbp-code-ok, .gbp-code-fail { font-weight: 700; font-size: 13px !important; }
.gbp-code-ok, .gbp-code-fail { display: none; }
.gbp-code.is-copied .gbp-code-ok { display: block; }
.gbp-code.copy-failed .gbp-code-fail { display: block; }
.gbp-code.copy-failed .gbp-code-go { background: var(--gbp-accent); }
.gbp-code.copy-failed .gbp-code-step { display: none; }
@keyframes gbpPulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.55); } 100% { box-shadow: 0 0 0 12px rgba(22,163,74,0); } }
.gbp-sticky .gbp-code-go { margin-top: 6px; }
.main-article .gbp-code-go strong { font-size: 14px; }
/* sekcja „jeszcze taniej” na stronie głównej */
.gbp-feat-head { text-align: left; }
.gbp-feat-head .section-title { margin-bottom: 6px; }
.gbp-feat-sub { margin: 0 0 4px; max-width: 820px; color: var(--gbp-muted); font-size: 15px; line-height: 1.5; }
