/* ============================================================================
 * Cleafs Wallet — Program Landing Page (rebuild 0.9.138 wg Claude Design)
 *
 * Standalone CSS dla shortcode `[cleafs_wallet_program_landing]`.
 * Design: handoff bundle z Claude Design (claude.ai/design).
 *
 * Konwencja: prefiks `cwpl-` (Cleafs Wallet Program Landing) + scope `.cwpl-page`.
 * Plus Jakarta Sans jako font główny. Tokeny zaimportowane z designu.
 * ============================================================================ */

.cwpl-page {
    /* === Brand tokens (z designu) === */
    --cwpl-navy-900: #0e1a3a;
    --cwpl-navy-800: #14224a;
    --cwpl-navy-700: #1d2d5e;
    --cwpl-navy-600: #25366d;
    --cwpl-ink: #1a2547;
    --cwpl-ink-2: #3a4570;
    --cwpl-muted: #000000;
    --cwpl-muted-2: #aab2ca;
    --cwpl-bg: #f3f4fb;
    --cwpl-bg-2: #eef0fa;
    --cwpl-card: #ffffff;
    --cwpl-line: #e5e7f3;
    --cwpl-line-2: #d8dcec;
    --cwpl-yellow-300: #ffcc14;
    --cwpl-yellow-200: #ffe478;
    --cwpl-yellow-100: #fff3bd;
    --cwpl-yellow-50: #fffae0;
    --cwpl-pink-100: #f8e8f5;
    --cwpl-blue-100: #e6ecfb;
    --cwpl-blue-50: #eff3fc;
    --cwpl-green-500: #16a34a;
    --cwpl-red-500: #dc2626;
    --cwpl-shadow-sm: 0 2px 6px rgba(20, 30, 80, 0.04);
    --cwpl-shadow-md: 0 8px 24px rgba(20, 30, 80, 0.06);
    --cwpl-shadow-lg: 0 18px 50px rgba(20, 30, 80, 0.10);
    --cwpl-shadow-xl: 0 30px 80px rgba(20, 30, 80, 0.18);
    --cwpl-radius-sm: 8px;
    --cwpl-radius-md: 14px;
    --cwpl-radius-lg: 22px;
    --cwpl-radius-xl: 28px;
    --cwpl-radius-pill: 999px;

    /* Layout — page jest containerem z subtle yellow radial dots tła */
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--cwpl-ink);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 204, 20, 0.18) 0 6px, transparent 7px),
        radial-gradient(circle at 88% 24%, rgba(255, 204, 20, 0.14) 0 5px, transparent 6px),
        radial-gradient(circle at 18% 60%, rgba(255, 204, 20, 0.12) 0 4px, transparent 5px),
        radial-gradient(circle at 82% 78%, rgba(255, 204, 20, 0.16) 0 5px, transparent 6px),
        var(--cwpl-bg);
}

.cwpl-page * {
    box-sizing: border-box;
}

/* Theme override defense — niektóre motywy WP (Cleafs Theme, Storefront,
 * Astra Pro) wymuszają na każdym <button>:
 *   - margin-top: 15px (przesuwa toggle / tabs / faq)
 *   - text-transform: uppercase
 *   - padding: 8px 22px 9px
 *   - border: solid 3px transparent
 *   - font-weight: 700, font-size: 15px
 * Resetujemy to globalnie wewnątrz `.cwpl-page`. Konkretne marginesy naszych
 * przycisków (.cwpl-pvw-more-toggle z `margin: 16px auto 0 !important`,
 * .cwpl-rank-table-toggle .cwpl-btn z `margin: 0 auto`) zachowują pierwszeństwo
 * przez wyższą specyficzność. */
.cwpl-page button {
    margin: 0;
    text-transform: none;
    border: none;
    line-height: inherit;
    -webkit-appearance: none;
    appearance: none;
}

/* Reset markerów list — niektóre motywy (np. Storefront, Astra Pro) wymuszają
 * `list-style-type: decimal/disc` na `ol`/`ul` z wyższą specyficznością niż
 * nasze `list-style: none`, przez co markery „1./2./3./4." pojawiają się obok
 * naszych własnych numerków. Defensywny override `!important`. */
.cwpl-page ol,
.cwpl-page ul {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
}

.cwpl-page ol > li,
.cwpl-page ul > li {
    list-style: none !important;
}

.cwpl-page ol > li::marker,
.cwpl-page ul > li::marker,
.cwpl-page ol > li::before,
.cwpl-page ul > li::before {
    content: '' !important;
    display: none !important;
}

/* === Reveal animations === */
.cwpl-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.cwpl-reveal.is-shown {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .cwpl-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* === Section frame === */
.cwpl-section {
    /* Bez max-width — sekcja ciągnie się na pełną szerokość kontenera (motyw
     * z reguły wrapuje content w `.site-main` z własnym max-width, więc
     * limitowanie tutaj duplikuje constrain i powoduje nieoczekiwane white-space
     * na szerokich ekranach). */
    margin: 0 auto;
    padding: 96px 0 32px;
    position: relative;
}

.cwpl-section-narrow {
    /* Bez max-width — narrow variant traci sens limitowania, dziedziczy szerokość
     * z motywu/parent containera. */
}

.cwpl-section-wide {
    max-width: 1240px;
}

.cwpl-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.cwpl-section-eyebrow {
    display: inline-block;
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
    padding: 6px 14px;
    border-radius: var(--cwpl-radius-pill);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.cwpl-section-title {
    font-size: 44px;
    font-weight: 800;
    color: var(--cwpl-navy-900);
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    line-height: 1.15;
    /* `text-wrap: balance` rozkłada równomiernie linie nagłówka — zamiast pierwsza
     * linia długa, druga z jednym słowem (typowe na mobile gdy <mark> wciąga
     * resztę zdania w drugą linię). Browserowy support: Chrome 114+, Safari 17.5+,
     * Firefox 121+. Pozostałe motory dostają „normal" (visualnie tak samo jak
     * przed dodaniem). */
    text-wrap: balance;
}

.cwpl-section-title mark {
    background: var(--cwpl-yellow-300);
    padding: 2px 14px;
    border-radius: var(--cwpl-radius-sm);
    color: var(--cwpl-navy-900);
    /* Gdy <mark> łamie się na dwie/trzy linie (długie podkreślenia typu
     * „w jednym miejscu", „jeszcze jeden", „jasną nagrodą" na mobilnym
     * viewporcie), domyślnie box (padding + border-radius) jest cięty na połówki —
     * pierwsza linia ma zaokrąglenie tylko od lewej, druga tylko od prawej, a
     * padding jest jednolity po całym bloku → wyglądało jak źle przyklejona
     * naklejka. `box-decoration-break: clone` powiela cały wygląd na każdy
     * line-box, więc każda linia mark-u dostaje pełne zaokrąglenia + padding.
     * Wymaga `-webkit-` prefix dla Safari iOS. */
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.cwpl-section-lead {
    max-width: 640px;
    margin: 0 auto;
    color: var(--cwpl-muted);
    font-size: 17px;
    line-height: 1.65;
    text-wrap: pretty;
}

/* === Buttons === */
.cwpl-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--cwpl-radius-pill);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
    font-family: inherit;
}

.cwpl-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.cwpl-btn-primary {
    background: var(--cwpl-navy-900);
    color: white;
    box-shadow: 0 8px 20px rgba(14, 26, 58, 0.25);
}

.cwpl-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(14, 26, 58, 0.32);
    color: white;
}

.cwpl-btn-ghost {
    background: transparent;
    color: var(--cwpl-navy-900);
    border: 1.5px solid var(--cwpl-blue-100);
}

.cwpl-btn-ghost:hover {
    background: white;
    border-color: var(--cwpl-line-2);
    color: var(--cwpl-navy-900);
}

.cwpl-btn-ghost.is-active svg {
    transform: rotate(180deg);
}

.cwpl-btn-yellow {
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
    box-shadow: 0 8px 20px rgba(255, 204, 20, 0.4);
}

.cwpl-btn-yellow:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(255, 204, 20, 0.5);
    color: var(--cwpl-navy-900);
}

.cwpl-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cwpl-navy-900);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--cwpl-yellow-300);
    padding-bottom: 2px;
}

/* ============================================================================
 * HERO v2 (2-col + panel mockup po prawej)
 * ============================================================================ */

.cwpl-hero {
    padding-top: 56px;
    padding-bottom: 24px;
}

.cwpl-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
}

.cwpl-hero-text {
    text-align: left;
}

.cwpl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--cwpl-line);
    color: var(--cwpl-navy-900);
    padding: 8px 18px;
    border-radius: var(--cwpl-radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.cwpl-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cwpl-yellow-300);
}

.cwpl-hero-title {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--cwpl-navy-900);
    margin: 0 0 8px;
}

.cwpl-hero-title mark {
    background: var(--cwpl-yellow-300);
    padding: 0 12px;
    border-radius: 12px;
    color: var(--cwpl-navy-900);
}

.cwpl-hero-subtitle {
    font-size: 26px;
    font-weight: 700;
    color: var(--cwpl-navy-900);
    margin: 0 0 24px;
}

.cwpl-hero-lead {
    max-width: 480px;
    margin: 0;
    color: var(--cwpl-muted);
    font-size: 17px;
    line-height: 1.65;
}

.cwpl-hero-cta {
    margin-top: 32px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cwpl-hero-trust {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cwpl-muted);
    font-size: 14px;
}

.cwpl-hero-trust svg {
    color: var(--cwpl-green-500);
    flex-shrink: 0;
}

.cwpl-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.cwpl-hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 64px 0 0;
}

.cwpl-hero-metric {
    background: white;
    border: 1px solid var(--cwpl-line);
    border-radius: var(--cwpl-radius-md);
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--cwpl-shadow-sm);
    min-width: 0; /* flex item musi móc się skurczyć poniżej min-content */
}

.cwpl-hero-metric-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
    border-radius: var(--cwpl-radius-sm);
    display: grid;
    place-items: center;
}

.cwpl-hero-metric-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--cwpl-navy-900);
    line-height: 1;
    margin-right: auto;
    white-space: nowrap;
}

.cwpl-hero-metric-lbl {
    font-size: 12px;
    color: var(--cwpl-muted);
    line-height: 1.4;
    max-width: 110px;
}

/* ============================================================================
 * HERO PANEL MOCKUP (.cwpl-hp-mock — uproszczony, statyczny w hero)
 * ============================================================================ */

.cwpl-hp-mock {
    background: white;
    border-radius: var(--cwpl-radius-lg);
    box-shadow: var(--cwpl-shadow-xl);
    width: 100%;
    max-width: 460px;
    position: relative;
    border: 1px solid var(--cwpl-line);
    transform: rotate(-1deg);
}

.cwpl-hp-mock-chrome {
    background: var(--cwpl-bg-2);
    border-bottom: 1px solid var(--cwpl-line);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--cwpl-radius-lg) var(--cwpl-radius-lg) 0 0;
}

.cwpl-hp-mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.cwpl-hp-mock-url {
    margin-left: 12px;
    background: white;
    border: 1px solid var(--cwpl-line);
    padding: 4px 14px;
    border-radius: var(--cwpl-radius-pill);
    font-size: 11px;
    color: var(--cwpl-muted);
    font-family: ui-monospace, monospace;
}

.cwpl-hp-mock-body {
    padding: 24px;
}

.cwpl-hp-mock-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cwpl-hp-mock-greeting {
    margin-bottom: 18px;
}

.cwpl-hp-mock-eyebrow {
    font-size: 12px;
    color: var(--cwpl-muted);
    margin-bottom: 4px;
}

.cwpl-hp-mock-h {
    font-size: 18px;
    font-weight: 700;
    color: var(--cwpl-navy-900);
}

.cwpl-hp-mock-balance {
    background: linear-gradient(135deg, var(--cwpl-navy-900), var(--cwpl-navy-700));
    color: white;
    padding: 22px 20px;
    border-radius: var(--cwpl-radius-md);
    margin-bottom: 18px;
}

.cwpl-hp-mock-balance-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.cwpl-hp-mock-balance-num {
    font-size: 38px;
    font-weight: 800;
    color: var(--cwpl-yellow-300);
    line-height: 1;
}

.cwpl-hp-mock-balance-unit {
    font-size: 14px;
    color: var(--cwpl-muted-2);
}

.cwpl-hp-mock-balance-trend {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--cwpl-muted-2);
}

.cwpl-hp-mock-balance-trend svg {
    color: var(--cwpl-green-500);
}

.cwpl-hp-mock-rank {
    margin-bottom: 18px;
}

.cwpl-hp-mock-rank-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--cwpl-ink-2);
}

.cwpl-hp-mock-rank-pct {
    color: var(--cwpl-navy-900);
    font-weight: 700;
}

.cwpl-hp-mock-rank-bar {
    height: 8px;
    background: var(--cwpl-bg-2);
    border-radius: var(--cwpl-radius-pill);
    overflow: hidden;
}

.cwpl-hp-mock-rank-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cwpl-yellow-300), #ffb800);
    border-radius: var(--cwpl-radius-pill);
}

.cwpl-hp-mock-rank-meta {
    font-size: 11px;
    color: var(--cwpl-muted);
    margin-top: 6px;
}

.cwpl-hp-mock-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cwpl-hp-mock-tile {
    background: var(--cwpl-bg-2);
    border-radius: var(--cwpl-radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cwpl-hp-mock-tile-icon {
    width: 28px;
    height: 28px;
    background: var(--cwpl-navy-900);
    color: white;
    border-radius: 6px;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
}

.cwpl-hp-mock-tile-icon-yellow {
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
}

.cwpl-hp-mock-tile-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--cwpl-navy-900);
}

.cwpl-hp-mock-tile-label {
    font-size: 11px;
    color: var(--cwpl-muted);
}

.cwpl-hp-mock-notif {
    position: absolute;
    bottom: 36px;
    right: -36px;
    background: white;
    border-radius: var(--cwpl-radius-md);
    box-shadow: var(--cwpl-shadow-lg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--cwpl-line);
    transform: rotate(2deg);
    animation: cwpl-float-notif 3s ease-in-out infinite;
}

@keyframes cwpl-float-notif {
    0%, 100% { transform: rotate(2deg) translateY(0); }
    50% { transform: rotate(2deg) translateY(-6px); }
}

.cwpl-hp-mock-notif-icon {
    width: 32px;
    height: 32px;
    background: var(--cwpl-green-500);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.cwpl-hp-mock-notif strong {
    display: block;
    color: var(--cwpl-navy-900);
    font-size: 14px;
}

.cwpl-hp-mock-notif span {
    display: block;
    font-size: 11px;
    color: var(--cwpl-muted);
}

/* ============================================================================
 * SIDE RAIL (vertical sticky scrollspy z progress)
 * ============================================================================ */

.cwpl-siderail {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cwpl-siderail-progress {
    width: 2px;
    height: 220px;
    background: var(--cwpl-line);
    border-radius: 2px;
    position: relative;
}

.cwpl-siderail-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--cwpl-navy-900);
    border-radius: 2px;
    transition: height 0.1s linear;
}

.cwpl-siderail ul {
    padding: 0;
    margin: 0;
}

.cwpl-siderail-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    text-decoration: none;
    font-size: 12px;
    color: var(--cwpl-muted);
    transition: color 0.15s;
}

.cwpl-siderail-link:hover {
    color: var(--cwpl-navy-900);
}

.cwpl-siderail-link:hover .cwpl-siderail-label {
    opacity: 1;
    transform: translateX(0);
}

.cwpl-siderail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cwpl-line-2);
    transition: all 0.2s;
    flex-shrink: 0;
}

.cwpl-siderail-link.is-active .cwpl-siderail-dot {
    background: var(--cwpl-yellow-300);
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 4px rgba(255, 204, 20, 0.2);
}

.cwpl-siderail-link.is-active {
    color: var(--cwpl-navy-900);
    font-weight: 700;
}

.cwpl-siderail-label {
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.15s, transform 0.15s;
    white-space: nowrap;
}

.cwpl-siderail-link.is-active .cwpl-siderail-label {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1280px) {
    .cwpl-siderail { display: none; }
}

/* ============================================================================
 * STEPS (Jak zacząć)
 * ============================================================================ */

.cwpl-steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cwpl-step {
    background: white;
    border: 1px solid var(--cwpl-line);
    border-radius: var(--cwpl-radius-md);
    padding: 32px 80px 32px 32px;
    position: relative;
    box-shadow: var(--cwpl-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cwpl-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--cwpl-shadow-md);
}

.cwpl-step-num {
    position: absolute;
    top: -14px;
    left: -14px;
    width: 40px;
    height: 40px;
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
    font-weight: 800;
    font-size: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 3px solid var(--cwpl-bg);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 204, 20, 0.4);
}

.cwpl-step-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--cwpl-bg-2);
    color: var(--cwpl-navy-900);
    border-radius: var(--cwpl-radius-sm);
}

.cwpl-step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--cwpl-navy-900);
    margin: 0 0 10px;
}

.cwpl-step p {
    color: var(--cwpl-muted);
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================================================
 * PUNKTY VS PORTFEL
 * ============================================================================ */

.cwpl-pvw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cwpl-pvw-card {
    border-radius: var(--cwpl-radius-lg);
    padding: 32px;
    border: 1px solid var(--cwpl-line);
}

.cwpl-pvw-card-points {
    background: linear-gradient(180deg, var(--cwpl-yellow-50) 0%, #fffef5 100%);
    border-color: var(--cwpl-yellow-200);
}

.cwpl-pvw-card-wallet {
    background: linear-gradient(160deg, var(--cwpl-navy-900) 0%, var(--cwpl-navy-700) 100%);
    border-color: var(--cwpl-navy-700);
    color: white;
}

.cwpl-pvw-card-wallet .cwpl-pvw-card-title { color: white; }
.cwpl-pvw-card-wallet .cwpl-pvw-card-lead { color: rgba(255, 255, 255, 0.85); }
.cwpl-pvw-card-wallet .cwpl-pvw-card-tag { background: var(--cwpl-yellow-300); color: var(--cwpl-navy-900); }
.cwpl-pvw-card-wallet .cwpl-pvw-list-title { color: white; }
.cwpl-pvw-card-wallet .cwpl-pvw-list-desc { color: rgba(255, 255, 255, 0.7); }
.cwpl-pvw-card-wallet .cwpl-pvw-list-item { border-bottom-color: rgba(255, 255, 255, 0.1); }
.cwpl-pvw-card-wallet .cwpl-pvw-more-toggle { color: white; }
.cwpl-pvw-card-wallet .cwpl-pvw-list-secondary { border-top-color: rgba(255, 255, 255, 0.15); }
.cwpl-pvw-card-wallet .cwpl-pvw-list-secondary::before { color: rgba(255, 255, 255, 0.55); }

.cwpl-pvw-card-points .cwpl-pvw-list-icon {
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
}

.cwpl-pvw-card-wallet .cwpl-pvw-list-icon {
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
}

.cwpl-pvw-card-points .cwpl-pvw-card-icon {
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
}

.cwpl-pvw-card-wallet .cwpl-pvw-card-icon {
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
}

.cwpl-pvw-card header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.cwpl-pvw-card-icon {
    width: 48px;
    height: 48px;
    background: var(--cwpl-navy-900);
    color: white;
    border-radius: var(--cwpl-radius-md);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.cwpl-pvw-card-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--cwpl-navy-900);
    margin: 0;
    flex: 1;
    line-height: 1.15;
}

.cwpl-pvw-card-tag {
    background: var(--cwpl-navy-900);
    color: white;
    padding: 6px 14px;
    border-radius: var(--cwpl-radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cwpl-pvw-card-lead {
    margin: 18px 0 24px;
    color: var(--cwpl-navy-900);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.cwpl-pvw-list {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.cwpl-pvw-list-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px dashed rgba(20, 30, 80, 0.1);
}

.cwpl-pvw-list-item:last-child {
    border-bottom: none;
}

.cwpl-pvw-list-icon {
    width: 36px;
    height: 36px;
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
    border-radius: var(--cwpl-radius-sm);
    display: grid;
    place-items: center;
}

.cwpl-pvw-list-icon svg {
    width: 20px;
    height: 20px;
}

.cwpl-pvw-list-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cwpl-pvw-list-title {
    font-size: 15px;
    color: var(--cwpl-navy-900);
    font-weight: 600;
}

.cwpl-pvw-list-desc {
    font-size: 14px;
    color: var(--cwpl-ink-2);
    line-height: 1.55;
}

.cwpl-pvw-more-toggle {
    /* `display: flex` powoduje że button bierze 100% szerokości kontenera
     * (block-level flex container) — przez to `margin: auto` nie centruje wizualnie.
     * `width: fit-content` skraca do szerokości contentu, dzięki czemu auto-marginesy
     * faktycznie centrują button w karcie. `max-width: 100%` zabezpiecza przed overflow
     * gdy label po długim tłumaczeniu byłby szerszy niż karta. */
    margin: 16px auto 0 !important;
    width: fit-content;
    max-width: 100%;
    background: transparent !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--cwpl-navy-900);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 14px;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
    box-shadow: none !important;
}

/* Theme override defense — niektóre motywy (Astra, Storefront, GeneratePress)
 * nadpisują `button:not(:disabled):hover` białym tłem + niebieską ramką.
 * Wymuszamy nasz transparent look na każdym stanie. */
.cwpl-pvw-more-toggle:hover,
.cwpl-pvw-more-toggle:focus,
.cwpl-pvw-more-toggle:focus-visible,
.cwpl-pvw-more-toggle:active {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none;
    color: var(--cwpl-navy-900);
}

.cwpl-pvw-card-wallet .cwpl-pvw-more-toggle,
.cwpl-pvw-card-wallet .cwpl-pvw-more-toggle:hover,
.cwpl-pvw-card-wallet .cwpl-pvw-more-toggle:focus,
.cwpl-pvw-card-wallet .cwpl-pvw-more-toggle:focus-visible,
.cwpl-pvw-card-wallet .cwpl-pvw-more-toggle:active {
    color: white;
}

.cwpl-pvw-more-toggle svg {
    transition: transform 0.2s;
}

.cwpl-pvw-more-toggle.is-open svg {
    transform: rotate(180deg);
}

.cwpl-pvw-more-count {
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
    padding: 2px 8px;
    border-radius: var(--cwpl-radius-pill);
    font-size: 12px;
    font-weight: 700;
}

.cwpl-pvw-list-secondary {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(20, 30, 80, 0.15);
    position: relative;
}

.cwpl-pvw-list-secondary::before {
    content: 'Dodatkowe korzyści';
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--cwpl-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.cwpl-pvw-list-secondary .cwpl-pvw-list-item {
    grid-template-columns: 24px 1fr;
    gap: 10px;
    padding: 9px 0;
    border-bottom: none;
}

.cwpl-pvw-list-secondary .cwpl-pvw-list-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    opacity: 0.85;
}

.cwpl-pvw-list-secondary .cwpl-pvw-list-icon svg {
    width: 14px;
    height: 14px;
}

.cwpl-pvw-list-secondary .cwpl-pvw-list-title {
    font-size: 14px;
    font-weight: 600;
}

.cwpl-pvw-list-secondary .cwpl-pvw-list-desc {
    font-size: 13px;
    line-height: 1.5;
}

.cwpl-flow-diagram {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.cwpl-flow-step {
    background: white;
    border: 1px solid var(--cwpl-line);
    padding: 8px 16px;
    border-radius: var(--cwpl-radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--cwpl-navy-900);
}

.cwpl-flow-step-accent {
    background: var(--cwpl-yellow-300);
    border-color: var(--cwpl-yellow-300);
}

.cwpl-flow-arrow {
    color: var(--cwpl-muted-2);
    font-weight: 700;
}

.cwpl-pvw-card-wallet .cwpl-flow-step {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.cwpl-pvw-card-wallet .cwpl-flow-step-accent {
    background: var(--cwpl-yellow-300);
    border-color: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
}

.cwpl-pvw-card-wallet .cwpl-flow-arrow {
    color: rgba(255, 255, 255, 0.5);
}

/* Fee comparison bar (na dark wallet card) */
.cwpl-pvw-card-wallet .cwpl-fee-compare {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--cwpl-radius-md);
    padding: 22px;
    margin-top: 24px;
}

.cwpl-fee-compare-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.cwpl-fee-bar {
    display: grid;
    grid-template-columns: 130px 1fr 90px;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.cwpl-fee-bar:last-of-type {
    margin-bottom: 0;
}

.cwpl-fee-bar-label-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cwpl-fee-bar-label {
    font-weight: 700;
    color: white;
    font-size: 14px;
}

.cwpl-fee-bar-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

.cwpl-fee-bar-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--cwpl-radius-pill);
    overflow: hidden;
    position: relative;
}

.cwpl-fee-bar-fill {
    height: 100%;
    border-radius: var(--cwpl-radius-pill);
    transition: width 0.6s ease;
}

.cwpl-fee-bar-bad .cwpl-fee-bar-fill {
    background: linear-gradient(90deg, #f87171, #dc2626);
}

.cwpl-fee-bar-mid .cwpl-fee-bar-fill {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.cwpl-fee-bar-good .cwpl-fee-bar-fill {
    background: linear-gradient(90deg, #4ade80, #16a34a);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
}

.cwpl-fee-bar-amount {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: right;
    white-space: nowrap;
}

.cwpl-fee-bar-bad .cwpl-fee-bar-amount { color: #fca5a5; }
.cwpl-fee-bar-mid .cwpl-fee-bar-amount { color: #93c5fd; }
.cwpl-fee-bar-good .cwpl-fee-bar-label { color: var(--cwpl-yellow-300); font-weight: 800; }
.cwpl-fee-bar-good .cwpl-fee-bar-amount { color: var(--cwpl-yellow-300); font-size: 16px; }
.cwpl-fee-bar-good .cwpl-fee-bar-amount strong { font-size: 18px; }

.cwpl-fee-compare-foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

.cwpl-fee-compare-foot strong {
    color: var(--cwpl-yellow-300);
}

/* ============================================================================
 * BENTO (Earn — asymetryczny grid)
 * ============================================================================ */

.cwpl-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 16px;
}

.cwpl-bento-tile {
    background: white;
    border: 1px solid var(--cwpl-line);
    border-radius: var(--cwpl-radius-md);
    padding: 24px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Min-width 0 + overflow hidden zapobiega rozjeżdżaniu siatki gdy
     * wewnętrzny content (OrderSimulator, soon roadmap) ma elementy nowrap. */
    min-width: 0;
    overflow: hidden;
}

.cwpl-bento-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--cwpl-shadow-md);
}

.cwpl-bento-tile-lg {
    grid-column: span 2;
    grid-row: span 2;
    padding: 32px;
}

.cwpl-bento-tile-md {
    grid-column: span 2;
}

.cwpl-bento-tile-sm {
    grid-column: span 1;
}

.cwpl-bento-tile-hl {
    background: linear-gradient(135deg, var(--cwpl-navy-900), var(--cwpl-navy-700));
    color: white;
    border-color: var(--cwpl-navy-700);
}

.cwpl-bento-tile-hl .cwpl-bento-icon {
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
    width: 56px;
    height: 56px;
}

.cwpl-bento-icon {
    width: 44px;
    height: 44px;
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
    border-radius: var(--cwpl-radius-sm);
    display: grid;
    place-items: center;
    margin-bottom: 6px;
}

.cwpl-bento-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--cwpl-navy-900);
    margin: 0;
}

.cwpl-bento-tile-hl .cwpl-bento-title {
    color: white;
    font-size: 22px;
}

.cwpl-bento-desc {
    font-size: 14px;
    color: var(--cwpl-muted);
    margin: 0;
    line-height: 1.55;
}

.cwpl-bento-tile-hl .cwpl-bento-desc {
    color: var(--cwpl-muted-2);
    font-size: 16px;
}

.cwpl-bento-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
    padding: 4px 10px;
    border-radius: var(--cwpl-radius-pill);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Order simulator wewnątrz highlighted bento tile */
.cwpl-order-sim {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--cwpl-radius-md);
    padding: 18px;
}

.cwpl-order-sim-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.cwpl-order-sim-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cwpl-order-sim-amount {
    margin-left: auto;
    font-size: 22px;
    font-weight: 800;
    color: var(--cwpl-yellow-300);
    font-variant-numeric: tabular-nums;
}

.cwpl-order-sim-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cwpl-order-sim-row {
    display: grid;
    grid-template-columns: 1fr auto 16px auto;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--cwpl-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    transition: background 0.15s;
}

.cwpl-order-sim-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cwpl-order-sim-row.is-best {
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
    box-shadow: 0 0 16px rgba(255, 200, 0, 0.25);
}

.cwpl-order-sim-rank {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.cwpl-order-sim-row.is-best .cwpl-order-sim-rank {
    color: var(--cwpl-navy-900);
    font-weight: 700;
}

.cwpl-order-sim-cb {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.cwpl-order-sim-row.is-best .cwpl-order-sim-cb {
    color: var(--cwpl-navy-900);
}

.cwpl-order-sim-arrow {
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

.cwpl-order-sim-row.is-best .cwpl-order-sim-arrow {
    color: rgba(14, 26, 58, 0.5);
}

.cwpl-order-sim-pts {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--cwpl-yellow-300);
    white-space: nowrap;
}

.cwpl-order-sim-row.is-best .cwpl-order-sim-pts {
    color: var(--cwpl-navy-900);
    font-size: 14px;
}

.cwpl-order-sim-foot {
    margin-top: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.4;
}

/* Bento „Soon" tile (W planach) */
.cwpl-bento-tile-soon {
    grid-column: span 3;
    background: linear-gradient(135deg, var(--cwpl-yellow-50), #fffef5);
    border: 1px dashed var(--cwpl-yellow-200);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 24px 28px;
    gap: 18px;
}

.cwpl-bento-soon-tag {
    position: absolute;
    top: 14px;
    right: 16px;
    background: var(--cwpl-navy-900);
    color: var(--cwpl-yellow-300);
    padding: 5px 12px;
    border-radius: var(--cwpl-radius-pill);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cwpl-bento-soon-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 80px;
}

.cwpl-bento-soon-icon {
    width: 48px;
    height: 48px;
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
    border-radius: var(--cwpl-radius-md);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.cwpl-bento-tile-soon .cwpl-bento-title {
    font-size: 16px;
    margin-bottom: 4px;
}

.cwpl-bento-tile-soon .cwpl-bento-desc {
    font-size: 13px;
}

.cwpl-bento-soon-roadmap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cwpl-bento-roadmap-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 204, 20, 0.25);
    border-radius: var(--cwpl-radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cwpl-bento-roadmap-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cwpl-bento-roadmap-icon {
    width: 24px;
    height: 24px;
    background: var(--cwpl-navy-900);
    color: var(--cwpl-yellow-300);
    border-radius: 6px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.cwpl-bento-roadmap-name {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: var(--cwpl-navy-900);
}

.cwpl-bento-roadmap-status {
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--cwpl-radius-pill);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cwpl-bento-roadmap-status.is-progress {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.cwpl-bento-roadmap-status.is-planning {
    background: rgba(20, 30, 80, 0.08);
    color: var(--cwpl-ink-2);
}

.cwpl-bento-roadmap-bar {
    height: 4px;
    background: rgba(20, 30, 80, 0.08);
    border-radius: var(--cwpl-radius-pill);
    overflow: hidden;
}

.cwpl-bento-roadmap-bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--cwpl-yellow-300), #ffb800);
    border-radius: var(--cwpl-radius-pill);
}

.cwpl-bento-roadmap-desc {
    font-size: 12px;
    color: var(--cwpl-ink-2);
    line-height: 1.45;
}

@media (max-width: 980px) {
    .cwpl-bento-tile-soon { grid-column: span 2; }
    .cwpl-bento-soon-roadmap { grid-template-columns: 1fr; }
}

/* ============================================================================
 * FULL PANEL MOCK (sekcja Twoje konto)
 * ============================================================================ */

.cwpl-fp-mock {
    background: white;
    border-radius: var(--cwpl-radius-lg);
    box-shadow: var(--cwpl-shadow-xl);
    border: 1px solid var(--cwpl-line);
    overflow: hidden;
}

.cwpl-fp-mock-chrome {
    background: var(--cwpl-bg-2);
    border-bottom: 1px solid var(--cwpl-line);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cwpl-fp-mock-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 540px;
}

.cwpl-fp-mock-sidebar {
    background: var(--cwpl-bg-2);
    border-right: 1px solid var(--cwpl-line);
    padding: 24px 16px;
}

.cwpl-fp-mock-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--cwpl-navy-900);
    margin-bottom: 24px;
    font-size: 14px;
}

.cwpl-fp-mock-sidebar-mark {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #2d4ad6, #4a6df0);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(45, 74, 214, 0.3);
}

.cwpl-fp-mock-sidebar-mark-w {
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    color: white;
}

.cwpl-fp-mock-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cwpl-fp-mock-sidebar-item {
    padding: 10px 14px;
    border-radius: var(--cwpl-radius-sm);
    font-size: 13px;
    color: var(--cwpl-muted);
    cursor: pointer;
}

.cwpl-fp-mock-sidebar-item.is-active {
    background: white;
    color: var(--cwpl-navy-900);
    font-weight: 600;
    box-shadow: var(--cwpl-shadow-sm);
}

.cwpl-fp-mock-main {
    padding: 28px 32px;
}

.cwpl-fp-mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.cwpl-fp-mock-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--cwpl-navy-900);
    margin: 0;
}

.cwpl-fp-mock-tabs-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.cwpl-fp-mock-tabs-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
    padding: 4px 10px;
    border-radius: var(--cwpl-radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(255, 200, 0, 0.35);
    animation: cwpl-fp-hint-bob 2.4s ease-in-out infinite;
    position: relative;
    white-space: nowrap;
}

.cwpl-fp-mock-tabs-hint::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 18px;
    width: 8px;
    height: 8px;
    background: var(--cwpl-yellow-300);
    transform: rotate(45deg);
}

@keyframes cwpl-fp-hint-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.cwpl-fp-mock-tabs {
    display: flex;
    gap: 4px;
    background: var(--cwpl-bg-2);
    padding: 4px;
    border-radius: var(--cwpl-radius-pill);
}

.cwpl-fp-mock-tab {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: var(--cwpl-radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--cwpl-muted);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
}

.cwpl-fp-mock-tab:not(.is-active):hover {
    background: rgba(20, 30, 80, 0.06);
    color: var(--cwpl-navy-900);
}

.cwpl-fp-mock-tab.is-active {
    background: var(--cwpl-navy-900);
    color: white;
}

.cwpl-fp-tab {
    display: none;
}

.cwpl-fp-tab.is-active {
    display: block;
}

.cwpl-fp-balance-card {
    background: linear-gradient(135deg, var(--cwpl-navy-900), var(--cwpl-navy-700));
    color: white;
    border-radius: var(--cwpl-radius-md);
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}

.cwpl-fp-balance-label {
    font-size: 13px;
    color: var(--cwpl-muted-2);
    margin-bottom: 8px;
}

.cwpl-fp-balance-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.cwpl-fp-balance-value span {
    font-size: 44px;
    font-weight: 800;
    color: var(--cwpl-yellow-300);
    line-height: 1;
    white-space: nowrap;
}

.cwpl-fp-balance-value small {
    font-size: 16px;
    color: var(--cwpl-muted-2);
}

.cwpl-fp-balance-meta {
    font-size: 12px;
    color: var(--cwpl-muted-2);
    margin-top: 6px;
}

.cwpl-fp-balance-medal {
    text-align: center;
}

.cwpl-fp-balance-medal strong {
    display: block;
    font-size: 16px;
    margin-top: 8px;
}

.cwpl-fp-balance-medal span {
    display: block;
    font-size: 11px;
    color: var(--cwpl-yellow-300);
    font-weight: 700;
}

.cwpl-fp-rank-progress {
    margin-bottom: 28px;
}

.cwpl-fp-rank-progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--cwpl-ink-2);
    margin-bottom: 14px;
}

.cwpl-fp-rank-bar {
    position: relative;
    height: 8px;
    background: var(--cwpl-bg-2);
    border-radius: var(--cwpl-radius-pill);
    margin-bottom: 24px;
}

.cwpl-fp-rank-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--cwpl-yellow-300), #ffb800);
    border-radius: var(--cwpl-radius-pill);
}

.cwpl-fp-rank-tick {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid var(--cwpl-line-2);
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.cwpl-fp-rank-tick.is-passed {
    border-color: var(--cwpl-yellow-300);
}

.cwpl-fp-history h4 {
    font-size: 13px;
    color: var(--cwpl-muted);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.cwpl-fp-history ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cwpl-fp-history li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 10px 14px;
    background: var(--cwpl-bg-2);
    border-radius: var(--cwpl-radius-sm);
    font-size: 14px;
}

.cwpl-fp-history-amt { font-weight: 700; }
.cwpl-fp-history-plus { color: var(--cwpl-green-500); }
.cwpl-fp-history-minus { color: var(--cwpl-red-500); }
.cwpl-fp-history-desc { color: var(--cwpl-ink-2); }
.cwpl-fp-history-when { color: var(--cwpl-muted); font-size: 12px; }

.cwpl-fp-misje-summary {
    display: flex;
    gap: 32px;
    background: var(--cwpl-bg-2);
    padding: 16px 20px;
    border-radius: var(--cwpl-radius-md);
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--cwpl-ink-2);
}

.cwpl-fp-misje-summary strong {
    color: var(--cwpl-navy-900);
    font-weight: 800;
}

.cwpl-fp-misje-list {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cwpl-fp-misje-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    background: var(--cwpl-bg-2);
    border-radius: var(--cwpl-radius-sm);
}

.cwpl-fp-misje-icon {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--cwpl-navy-900);
    border-radius: var(--cwpl-radius-sm);
    display: grid;
    place-items: center;
}

.cwpl-fp-misje-info strong {
    display: block;
    color: var(--cwpl-navy-900);
    font-size: 14px;
    margin-bottom: 4px;
}

.cwpl-fp-misje-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--cwpl-muted);
}

.cwpl-fp-misje-progress-bar {
    flex: 1;
    height: 4px;
    background: white;
    border-radius: 2px;
    overflow: hidden;
}

.cwpl-fp-misje-progress-bar div {
    height: 100%;
    background: var(--cwpl-yellow-300);
}

.cwpl-fp-misje-reward {
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
    padding: 6px 12px;
    border-radius: var(--cwpl-radius-pill);
    font-size: 12px;
    font-weight: 700;
}

.cwpl-fp-nagrody-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cwpl-fp-nagroda {
    background: var(--cwpl-bg-2);
    border-radius: var(--cwpl-radius-md);
    padding: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.cwpl-fp-nagroda.is-locked { opacity: 0.5; }

.cwpl-fp-nagroda-icon {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--cwpl-navy-900);
    border-radius: var(--cwpl-radius-sm);
    display: grid;
    place-items: center;
    margin-bottom: 4px;
}

.cwpl-fp-nagroda strong {
    font-size: 14px;
    color: var(--cwpl-navy-900);
}

.cwpl-fp-nagroda-sub {
    font-size: 11px;
    color: var(--cwpl-muted);
}

.cwpl-fp-nagroda-cta {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.cwpl-fp-nagroda-cost {
    font-size: 13px;
    color: var(--cwpl-navy-900);
    font-weight: 700;
}

.cwpl-fp-nagroda-btn {
    background: var(--cwpl-bg);
    color: var(--cwpl-muted);
    border: none;
    padding: 6px 14px;
    border-radius: var(--cwpl-radius-pill);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cwpl-fp-nagroda-btn.is-avail {
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
}

/* ============================================================================
 * MISSIONS LIVE WIDGET
 * ============================================================================ */

.cwpl-ml-widget {
    background: white;
    border: 1px solid var(--cwpl-line);
    border-radius: var(--cwpl-radius-lg);
    box-shadow: var(--cwpl-shadow-md);
    margin-bottom: 40px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    min-width: 0;
}

.cwpl-ml-stats {
    background: linear-gradient(180deg, #fffef5 0%, white 100%);
    border-right: 1px solid var(--cwpl-line);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.cwpl-ml-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--cwpl-line);
    border-radius: var(--cwpl-radius-md);
    box-shadow: var(--cwpl-shadow-sm);
}

.cwpl-ml-stat-points {
    border-color: var(--cwpl-yellow-200);
    background: linear-gradient(135deg, var(--cwpl-yellow-50), white);
}

.cwpl-ml-stat-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cwpl-ml-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--cwpl-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cwpl-ml-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--cwpl-navy-900);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.cwpl-ml-stat-points .cwpl-ml-stat-value {
    background: linear-gradient(90deg, var(--cwpl-navy-900), #4d2d00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cwpl-ml-stat-sub {
    font-size: 12px;
    color: var(--cwpl-muted);
}

.cwpl-ml-pulse {
    position: relative;
    width: 10px;
    height: 10px;
    display: inline-block;
}

.cwpl-ml-pulse span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--cwpl-green-500);
}

.cwpl-ml-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--cwpl-green-500);
    animation: cwpl-ml-pulse 1.6s ease-out infinite;
}

.cwpl-ml-pulse-yellow span { background: var(--cwpl-yellow-300); }
.cwpl-ml-pulse-yellow::before { background: var(--cwpl-yellow-300); }

@keyframes cwpl-ml-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.6); opacity: 0; }
}

.cwpl-ml-feed {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    background: var(--cwpl-bg);
}

.cwpl-ml-feed-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cwpl-line);
}

.cwpl-ml-feed-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--cwpl-navy-900);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cwpl-ml-feed-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cwpl-red-500);
    animation: cwpl-ml-blink 1.2s ease-in-out infinite;
}

@keyframes cwpl-ml-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.cwpl-ml-feed-sub {
    font-size: 12px;
    color: var(--cwpl-muted);
}

.cwpl-ml-feed-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    min-height: 200px;
}

.cwpl-ml-feed-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: white;
    border: 1px solid var(--cwpl-line);
    border-radius: var(--cwpl-radius-sm);
    animation: cwpl-ml-slide-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    transition: background 0.6s ease, border-color 0.6s ease, opacity 0.6s ease;
}

.cwpl-ml-feed-row-pos-0 {
    border-color: var(--cwpl-yellow-200);
    background: linear-gradient(90deg, var(--cwpl-yellow-50), white);
}

.cwpl-ml-feed-row-pos-1 { opacity: 0.92; }
.cwpl-ml-feed-row-pos-2 { opacity: 0.78; }
.cwpl-ml-feed-row-pos-3 { opacity: 0.62; }
.cwpl-ml-feed-row-pos-4 { opacity: 0.45; }

@keyframes cwpl-ml-slide-in {
    0% { opacity: 0; transform: translateY(-24px) scale(0.98); }
    60% { opacity: 1; }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.cwpl-ml-feed-row-pos-0 .cwpl-ml-feed-icon {
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
}

.cwpl-ml-feed-icon {
    width: 36px;
    height: 36px;
    background: var(--cwpl-navy-900);
    color: var(--cwpl-yellow-300);
    border-radius: var(--cwpl-radius-sm);
    display: grid;
    place-items: center;
}

.cwpl-ml-feed-text {
    font-size: 13px;
    color: var(--cwpl-ink-2);
    line-height: 1.35;
}

.cwpl-ml-feed-text strong {
    color: var(--cwpl-navy-900);
    font-weight: 700;
}

.cwpl-ml-feed-city {
    color: var(--cwpl-muted);
}

.cwpl-ml-feed-mission {
    font-size: 12px;
    color: var(--cwpl-muted);
    margin-top: 2px;
}

.cwpl-ml-feed-reward {
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
    padding: 6px 12px;
    border-radius: var(--cwpl-radius-pill);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .cwpl-ml-widget { grid-template-columns: 1fr; }
    .cwpl-ml-stats { border-right: none; border-bottom: 1px solid var(--cwpl-line); flex-direction: row; flex-wrap: wrap; }
    .cwpl-ml-stat { flex: 1; min-width: 200px; }
}

/* === Missions categories (4 kafelki: zakupowe, codzienne, etc.) === */
.cwpl-missions-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 24px; /* separator od live widget powyżej (od 0.9.142) */
}

.cwpl-mc-card {
    background: white;
    border: 1px solid var(--cwpl-line);
    border-radius: var(--cwpl-radius-md);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--cwpl-shadow-sm);
    transition: transform 0.2s;
    /* Min-width 0 + overflow hidden — defensywny anti-overflow dla grid items */
    min-width: 0;
    overflow: hidden;
}

.cwpl-mc-card:hover {
    transform: translateY(-3px);
}

.cwpl-mc-card-icon {
    width: 48px;
    height: 48px;
    background: var(--cwpl-blue-50);
    color: var(--cwpl-navy-900);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
}

.cwpl-mc-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--cwpl-navy-900);
    margin: 0 0 8px;
}

.cwpl-mc-card p {
    font-size: 14px;
    color: var(--cwpl-muted);
    margin: 0;
    line-height: 1.55;
}

/* ============================================================================
 * RANKS LADDER v2 (drabinka pozioma + collapsible compare table)
 * ============================================================================ */

.cwpl-rank-ladder-v2 {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding-top: 16px;
}

.cwpl-rank-ladder-line {
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--cwpl-line-2), var(--cwpl-yellow-300));
    z-index: 0;
}

.cwpl-rank-rung {
    background: white;
    border: 1px solid var(--cwpl-line);
    border-radius: var(--cwpl-radius-md);
    padding: 20px 12px 16px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cwpl-rank-rung:hover {
    transform: translateY(-4px);
    box-shadow: var(--cwpl-shadow-md);
}

.cwpl-rank-rung.is-top {
    background: linear-gradient(180deg, var(--cwpl-yellow-50), white);
    border-color: var(--cwpl-yellow-300);
    box-shadow: 0 8px 28px rgba(255, 204, 20, 0.25);
}

.cwpl-rank-rung-medal {
    width: 64px;
    height: 64px;
    background: var(--cwpl-bg-2);
    border: 3px solid white;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    box-shadow: var(--cwpl-shadow-sm);
}

.cwpl-rank-rung.is-top .cwpl-rank-rung-medal {
    background: var(--cwpl-yellow-300);
    border-color: var(--cwpl-yellow-200);
}

.cwpl-rank-rung-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--cwpl-navy-900);
    margin-bottom: 2px;
}

.cwpl-rank-rung-thr {
    font-size: 11px;
    color: var(--cwpl-muted);
    margin-bottom: 12px;
}

.cwpl-rank-rung-cb {
    background: var(--cwpl-yellow-300);
    border-radius: var(--cwpl-radius-sm);
    padding: 8px 6px;
}

.cwpl-rank-rung-cb strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--cwpl-navy-900);
    line-height: 1;
}

.cwpl-rank-rung-cb span {
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: var(--cwpl-navy-900);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

.cwpl-rank-table-toggle {
    text-align: center;
    margin: 32px 0 0;
}

.cwpl-rank-table-toggle .cwpl-btn {
    margin: 0 auto;
}

.cwpl-rank-compare {
    margin-top: 24px;
    background: white;
    border: 1px solid var(--cwpl-line);
    border-radius: var(--cwpl-radius-lg);
    padding: 28px;
}

.cwpl-rank-compare-scroll {
    overflow-x: auto;
}

.cwpl-rank-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cwpl-rank-compare-table th,
.cwpl-rank-compare-table td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid var(--cwpl-line);
}

.cwpl-rank-compare-table thead th {
    font-weight: 600;
    color: var(--cwpl-navy-900);
    border-bottom: 2px solid var(--cwpl-line-2);
    padding-bottom: 16px;
}

.cwpl-rank-compare-table tbody th {
    text-align: left;
    font-weight: 600;
    color: var(--cwpl-ink-2);
}

.cwpl-rank-compare-table .cwpl-th-medal {
    display: block;
    margin: 0 auto 6px;
}

.cwpl-rank-compare-table .cwpl-th-name {
    display: block;
    font-size: 13px;
}

.cwpl-rank-compare-table .is-top {
    background: var(--cwpl-yellow-50);
}

.cwpl-rank-compare-table thead .is-top {
    border-bottom-color: var(--cwpl-yellow-300);
}

.cwpl-cell-muted {
    color: var(--cwpl-muted-2);
}

/* ============================================================================
 * BADGES TEASER (mała sekcja zamiast pełnej)
 * ============================================================================ */

.cwpl-badges-teaser {
    background: linear-gradient(135deg, var(--cwpl-yellow-50), #fffaeb);
    border: 1px solid var(--cwpl-yellow-200);
    border-radius: var(--cwpl-radius-lg);
    padding: 36px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: center;
}

.cwpl-badges-teaser-pill {
    display: inline-block;
    background: var(--cwpl-navy-900);
    color: white;
    padding: 5px 12px;
    border-radius: var(--cwpl-radius-pill);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.cwpl-badges-teaser-left h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--cwpl-navy-900);
    margin: 0 0 10px;
}

.cwpl-badges-teaser-left p {
    color: var(--cwpl-ink-2);
    margin: 0 0 18px;
    line-height: 1.6;
    font-size: 15px;
}

.cwpl-badges-teaser-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cwpl-badges-teaser-emoji {
    background: white;
    border: 1px solid var(--cwpl-line);
    border-radius: var(--cwpl-radius-md);
    display: grid;
    place-items: center;
    padding: 16px;
    font-size: 32px;
    filter: grayscale(0.3);
    transition: transform 0.3s, filter 0.3s;
}

.cwpl-badges-teaser-emoji:hover {
    transform: scale(1.1);
    filter: grayscale(0);
}

/* ============================================================================
 * CALCULATOR
 * ============================================================================ */

.cwpl-calc-widget {
    background: white;
    border: 1px solid var(--cwpl-line);
    border-radius: var(--cwpl-radius-lg);
    padding: 36px;
    box-shadow: var(--cwpl-shadow-sm);
}

.cwpl-calc-input-row {
    margin-bottom: 28px;
}

.cwpl-calc-input-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--cwpl-navy-900);
    margin-bottom: 14px;
}

.cwpl-calc-input-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

/* Suwak kalkulatora — agresywne nadpisanie globalnego CSS motywu (motyw daje
 * input[type="range"] padding 10px/14px, niebieski border 1px, border-radius
 * 15px, transition 0.3s — wszystko psuje nasz design). Wszystkie hard-resety
 * z !important, bo theme'owe reguły są zbyt szeroko zdefiniowane. */
input[type="range"].cwpl-calc-range,
.cwpl-calc-range {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: var(--cwpl-blue-100);
    height: 12px !important;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: var(--cwpl-radius-pill) !important;
    background-image: linear-gradient(to right, var(--cwpl-navy-900) var(--pct), transparent var(--pct));
    background-repeat: no-repeat;
    cursor: pointer;
    box-shadow: none !important;
    outline: none;
    transition: none !important;
    box-sizing: border-box !important;
    font-size: inherit;
    line-height: 1;
    display: block;
}

.cwpl-calc-range:focus,
.cwpl-calc-range:focus-visible,
.cwpl-calc-range:hover,
.cwpl-calc-range:active {
    background-color: var(--cwpl-blue-100) !important;
    border: 0 !important;
    outline: none;
    box-shadow: none !important;
}

/* Track — Webkit/Blink */
.cwpl-calc-range::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: var(--cwpl-radius-pill);
    background: transparent;
    border: 0;
}

/* Track — Firefox */
.cwpl-calc-range::-moz-range-track {
    height: 12px;
    border-radius: var(--cwpl-radius-pill);
    background: transparent;
    border: 0;
}

.cwpl-calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: var(--cwpl-yellow-300);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(20, 30, 80, 0.2);
    cursor: pointer;
    /* Center thumb na 12px track-u: (12 - 28) / 2 = -8px */
    margin-top: -8px;
}

.cwpl-calc-range::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: var(--cwpl-yellow-300);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(20, 30, 80, 0.2);
    cursor: pointer;
}

.cwpl-calc-output {
    background: var(--cwpl-navy-900);
    color: white;
    padding: 8px 18px;
    border-radius: var(--cwpl-radius-pill);
    font-weight: 700;
    font-size: 15px;
}

.cwpl-calc-results {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.cwpl-calc-result {
    background: var(--cwpl-bg-2);
    border: 1px solid var(--cwpl-line);
    border-radius: var(--cwpl-radius-md);
    padding: 18px 12px;
    text-align: center;
}

.cwpl-calc-result.is-top {
    background: var(--cwpl-yellow-50);
    border-color: var(--cwpl-yellow-300);
}

.cwpl-calc-result-medal {
    display: block;
    margin: 0 auto 8px;
}

.cwpl-calc-result-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--cwpl-navy-900);
}

.cwpl-calc-result-pct {
    display: block;
    font-size: 11px;
    color: var(--cwpl-muted);
    margin-bottom: 10px;
}

.cwpl-calc-result-points {
    display: block;
}

.cwpl-calc-result-points strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--cwpl-navy-900);
    line-height: 1;
}

.cwpl-calc-result-points span {
    font-size: 10px;
    color: var(--cwpl-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.cwpl-calc-disclaimer {
    font-size: 13px;
    color: var(--cwpl-muted);
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

/* ============================================================================
 * BENEFITS
 * ============================================================================ */

.cwpl-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cwpl-benefit-tile {
    background: white;
    border: 1px solid var(--cwpl-line);
    border-radius: var(--cwpl-radius-md);
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cwpl-benefit-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--cwpl-shadow-md);
}

.cwpl-benefit-tile-icon {
    width: 48px;
    height: 48px;
    background: var(--cwpl-navy-900);
    color: white;
    border-radius: var(--cwpl-radius-md);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.cwpl-benefit-tile h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--cwpl-navy-900);
    margin: 0 0 8px;
}

.cwpl-benefit-tile p {
    font-size: 14px;
    color: var(--cwpl-muted);
    margin: 0;
    line-height: 1.6;
}

/* ============================================================================
 * FAQ
 * ============================================================================ */

.cwpl-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cwpl-faq-item {
    background: white;
    border: 1px solid var(--cwpl-line);
    border-radius: var(--cwpl-radius-md);
    overflow: hidden;
    transition: box-shadow 0.15s;
}

.cwpl-faq-item.is-open {
    box-shadow: var(--cwpl-shadow-md);
}

.cwpl-faq-summary {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--cwpl-navy-900);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.cwpl-faq-summary svg {
    transition: transform 0.2s;
    flex-shrink: 0;
    color: var(--cwpl-muted);
}

.cwpl-faq-item.is-open .cwpl-faq-summary svg {
    transform: rotate(180deg);
}

.cwpl-faq-body {
    padding: 0 24px 22px;
    color: var(--cwpl-ink-2);
    font-size: 15px;
    line-height: 1.65;
}

.cwpl-faq-body strong {
    color: var(--cwpl-navy-900);
}

.cwpl-faq-body em {
    color: var(--cwpl-navy-900);
    font-style: normal;
    font-weight: 500;
    background: rgba(255, 204, 20, 0.2);
    padding: 1px 6px;
    border-radius: 4px;
}

/* ============================================================================
 * FINAL CTA
 * ============================================================================ */

.cwpl-final {
    /* Bez max-width — analogicznie jak .cwpl-section. */
    margin: 56px auto 0;
    padding: 0 0 96px;
}

.cwpl-final-card {
    background: linear-gradient(135deg, var(--cwpl-navy-900), var(--cwpl-navy-700));
    border-radius: var(--cwpl-radius-xl);
    padding: 64px 32px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cwpl-final-card-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cwpl-final-card-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cwpl-yellow-300);
    opacity: 0.5;
    animation: cwpl-float-dot 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.5s);
}

.cwpl-final-card-dot:nth-child(1) { top: 20%; left: 10%; }
.cwpl-final-card-dot:nth-child(2) { top: 70%; left: 18%; }
.cwpl-final-card-dot:nth-child(3) { top: 30%; right: 15%; }
.cwpl-final-card-dot:nth-child(4) { top: 80%; right: 22%; }
.cwpl-final-card-dot:nth-child(5) { top: 50%; left: 6%; }
.cwpl-final-card-dot:nth-child(6) { top: 15%; right: 8%; }

@keyframes cwpl-float-dot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.cwpl-final-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 14px;
    position: relative;
    color: white;
}

.cwpl-final-title mark {
    background: var(--cwpl-yellow-300);
    color: var(--cwpl-navy-900);
    padding: 0 12px;
    border-radius: 8px;
}

.cwpl-final-lead {
    max-width: 480px;
    /* !important — motyw wstrzykuje margin-top: 15px na elementach paragrafowych,
     * co rozjeżdża centrowanie + spacing pod tytułem CTA. */
    margin: 0 auto 28px !important;
    color: var(--cwpl-muted-2);
    font-size: 16px;
    line-height: 1.6;
    position: relative;
}

.cwpl-final-card .cwpl-btn {
    position: relative;
}

/* ============================================================================
 * RESPONSIVE
 * ============================================================================ */

@media (max-width: 980px) {
    .cwpl-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .cwpl-hero-visual { order: -1; }
    .cwpl-hero-text { text-align: center; }
    .cwpl-hero-lead { margin: 0 auto; }
    .cwpl-hero-cta { justify-content: center; }
    .cwpl-hero-trust { justify-content: center; }
    .cwpl-hero-title { font-size: 48px; }
    .cwpl-hero-subtitle { font-size: 22px; }
    .cwpl-section-title { font-size: 32px; }
    .cwpl-hero-metrics { grid-template-columns: 1fr 1fr; }
    .cwpl-steps-grid { grid-template-columns: 1fr; }
    .cwpl-pvw-grid { grid-template-columns: 1fr; }
    .cwpl-bento { grid-template-columns: repeat(2, 1fr); }
    .cwpl-bento-tile-lg, .cwpl-bento-tile-md { grid-column: span 2; }
    .cwpl-bento-tile-sm { grid-column: span 1; }
    .cwpl-missions-categories { grid-template-columns: 1fr 1fr; }
    .cwpl-rank-ladder-v2 { grid-template-columns: repeat(2, 1fr); }
    .cwpl-rank-ladder-line { display: none; }
    .cwpl-calc-results { grid-template-columns: repeat(2, 1fr); }
    .cwpl-benefits-grid { grid-template-columns: 1fr 1fr; }
    .cwpl-fp-mock-layout { grid-template-columns: 1fr; }
    .cwpl-fp-mock-sidebar { display: none; }
    .cwpl-fp-nagrody-grid { grid-template-columns: 1fr 1fr; }
    .cwpl-badges-teaser { grid-template-columns: 1fr; }
    .cwpl-hp-mock-notif { display: none; }
}

/* Smaller phones (<= 640px) — sekcje ciasne, padding zredukowany,
 * hero-metrics 1-col (2-col nie mieściły się przy 360px viewport). */
@media (max-width: 640px) {
    .cwpl-section {
        padding: 96px 0px 32px;
    }
    .cwpl-final {
        padding: 0 16px 64px;
    }
    .cwpl-hero {
        padding-top: 32px;
        padding-bottom: 16px;
    }
    .cwpl-hero-title { font-size: 38px; }
    .cwpl-hero-subtitle { font-size: 20px; }
    .cwpl-section-title { font-size: 28px; }
    /* Mobile mark — mniejsze poziome paddingi i tighter border-radius, żeby
     * wielolinijkowy <mark> mieścił się ładnie w wąskim viewporcie zamiast
     * generować pionowy szelf na każdej linii. */
    .cwpl-section-title mark {
        padding: 0 8px;
        border-radius: 6px;
    }
    .cwpl-hero-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 40px;
    }
    .cwpl-hero-metric {
        padding: 16px 14px;
        gap: 12px;
    }
    .cwpl-hero-metric-icon {
        width: 36px;
        height: 36px;
    }
    .cwpl-hero-metric-val {
        font-size: 18px;
    }
    .cwpl-hero-metric-lbl {
        max-width: none; /* na mobile label może zająć resztę szerokości */
    }
    .cwpl-bento { grid-template-columns: 1fr; gap: 12px; }
    .cwpl-bento-tile-lg, .cwpl-bento-tile-md, .cwpl-bento-tile-soon {
        grid-column: span 1;
    }
    .cwpl-bento-tile-lg {
        grid-row: span 1; /* na mobile nie span 2 (zostaje natural height) */
        padding: 24px 18px;
    }
    .cwpl-bento-tile { padding: 20px 18px; }
    .cwpl-bento-icon { width: 40px; height: 40px; }
    .cwpl-bento-tile-hl .cwpl-bento-icon { width: 48px; height: 48px; }
    .cwpl-bento-tile-hl .cwpl-bento-title { font-size: 19px; }
    .cwpl-bento-soon-head {
        padding-right: 0; /* desktop ma 80px na badge w prawym rogu, mobile = badge na górze */
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .cwpl-bento-tile-soon { padding: 20px 18px; }
    .cwpl-bento-soon-tag {
        position: static;
        align-self: flex-start;
        margin-bottom: 4px;
    }
    /* Order simulator wewnątrz hl tile — zmniejszone żeby nie rozjeżdżało */
    .cwpl-order-sim { padding: 14px; }
    .cwpl-order-sim-row {
        grid-template-columns: 1fr auto auto;
        gap: 8px;
        padding: 6px 10px;
        font-size: 12px;
    }
    .cwpl-order-sim-arrow { display: none; }
    .cwpl-order-sim-amount { font-size: 18px; }
    .cwpl-missions-categories { grid-template-columns: 1fr; }
    .cwpl-rank-ladder-v2 { grid-template-columns: 1fr; }
    .cwpl-calc-results { grid-template-columns: 1fr; }
    .cwpl-benefits-grid { grid-template-columns: 1fr; }
    .cwpl-fp-nagrody-grid { grid-template-columns: 1fr; }
    .cwpl-final-card { padding: 48px 20px; }
    .cwpl-final-title { font-size: 28px; }
    .cwpl-pvw-card { padding: 24px 18px; }
    .cwpl-step { padding: 28px 24px; }
    .cwpl-step-icon { display: none; } /* na mobile ikona w prawym rogu zabierała miejsce z tekstem */

    /* Missions section (live widget + categories) — mobile optimization (od 0.9.142) */
    .cwpl-ml-widget {
        margin-bottom: 28px;
    }
    .cwpl-ml-stats {
        padding: 16px;
        gap: 10px;
        flex-direction: column !important; /* override 980px row + flex-wrap */
    }
    .cwpl-ml-stat {
        padding: 12px 14px;
        min-width: 0 !important; /* override 980px min-width: 200px */
    }
    .cwpl-ml-stat-value {
        font-size: 24px;
    }
    .cwpl-ml-feed {
        padding: 16px;
    }
    .cwpl-ml-feed-row {
        grid-template-columns: 32px 1fr auto;
        gap: 10px;
        padding: 10px 12px;
    }
    .cwpl-ml-feed-icon {
        width: 32px;
        height: 32px;
    }
    .cwpl-ml-feed-icon svg {
        width: 16px;
        height: 16px;
    }
    .cwpl-ml-feed-text {
        font-size: 12px;
        min-width: 0;
    }
    .cwpl-ml-feed-mission {
        font-size: 11px;
    }
    .cwpl-ml-feed-reward {
        padding: 4px 8px;
        font-size: 11px;
    }
    /* Missions categories tiles */
    .cwpl-missions-categories {
        margin-top: 16px;
        gap: 12px;
    }
    .cwpl-mc-card {
        padding: 22px 18px;
    }
    .cwpl-mc-card-icon {
        width: 40px;
        height: 40px;
    }
    .cwpl-mc-card h3 {
        font-size: 15px;
    }
    .cwpl-mc-card p {
        font-size: 13px;
    }
}
