/* ============================================================
   Auth Forms — wspólne style dla login, passwordreminder,
   changepassword-new, index3
   ============================================================ */

/* ----- Typografia kart ----- */
.card-heading { font-size: 32px; }
@media (max-width: 767px) { .card-heading { font-size: 24px; } }

.card-subheading { font-size: 18px; margin-bottom: 32px; }
@media (max-width: 767px) { .card-subheading { font-size: 16px; } }

.text-gray-2 { color: #455A64; }

/* Treść zgód (field-checkbox) — motyw ma bazowo font-weight:500 na body, przez co
   akapity zgód wyglądały na pogrubione. Makiety chcą regularnej wagi. Reguła działa
   tylko w widokach ładujących ten plik (redesignowane), nie rusza pozostałych.
   Emfaza w treści zostaje: <b> (m.in. „Zaznacz wszystkie zgody", kwoty) i linki <a>. */
.form-check-label { font-weight: 400; }

/* ----- Kontener formularza ----- */
.container-form__login { max-width: 717px; width: 100%; }

.card { padding: 0 !important; border: 1px solid #F1F1F1 !important; }
.card-body { padding: 32px 48px !important; }
@media (max-width: 767px) { .card-body { padding: 24px !important; } }

/* ----- Floating labels ----- */
.float-input-wrap { position: relative; margin-top: 0.625rem; width: 100%; }

.float-input-wrap .form-control,
.float-input-wrap .form-select {
    color: var(--base-50);
    font-weight: 400 !important;
    font-size: 16px;
    padding: 16px 24px;
}

.float-input-wrap label.float-label {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    font-size: 1rem;
    line-height: 1;
    color: #6c757d;
    background: transparent;
    padding: 0 0.25rem;
    pointer-events: none;
    z-index: 2;
    margin: 0;
    transition: top 0.15s ease, left 0.15s ease, font-size 0.15s ease, color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
    max-width: calc(100% - 1.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400 !important;
}

.float-input-wrap label.float-label.float-up {
    top: 0;
    font-size: 12px;
    font-weight: 400;
    color: #637381;
    background: white;
}

/* ----- Autofill ----- */
.float-input-wrap .form-control:-webkit-autofill,
.float-input-wrap .form-control:-webkit-autofill:hover,
.float-input-wrap .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    box-shadow: 0 0 0px 1000px white inset;
    transition: background-color 5000s ease-in-out 0s;
}
.float-input-wrap .form-control:-webkit-autofill ~ label.float-label {
    top: 0;
    font-size: 12px;
    font-weight: 400;
    color: #637381;
    background: white;
}

/* ----- Walidacja ----- */
.form-control.is-invalid,
.form-select.is-invalid { background-image: none !important; }

.invalid-feedback {
    display: block !important;
    position: relative;
    padding: 0 0 0 22px !important;
    color: #C73434 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin-top: 16px !important;
    margin-bottom: 4px !important;
}
.invalid-feedback::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    background-image: url('img/invalid-message.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.float-input-wrap:has(.form-control.is-invalid) label.float-label,
.float-input-wrap:has(.form-select.is-invalid) label.float-label { color: #C73434; }

/* ----- Prefix telefonu (+48) ----- */
.phone-prefix {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 12px 0 14px;
    border-right: 1px solid #ced4da;
    color: var(--base-40);
    font-size: 1rem;
    pointer-events: none;
    z-index: 3;
}
.phone-input-wrap .form-control { padding-left: 68px; }
.phone-input-wrap label.float-label { left: 68px; }
.phone-input-wrap label.float-label.float-up { left: 24px; }
.phone-input-wrap:has(.form-control.is-invalid) .phone-prefix { color: #C73434; }

/* ----- Toggle hasła ----- */
.has-pass-toggle .form-control { padding-right: 48px; }
.has-pass-toggle:has(.form-control.is-invalid) .pass-toggle { filter: invert(23%) sepia(89%) saturate(1700%) hue-rotate(340deg) brightness(85%); }

/* ----- SMS code ----- */
.char { padding-top: 24px !important; padding-bottom: 24px !important; }
@media (max-width: 767px) { .char { padding-top: 6px !important; padding-bottom: 6px !important; } }
.pass-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 3;
    width: 20px;
    height: 20px;
    user-select: none;
}

/* ============================================================
   Verify — wybór metody weryfikacji (new/verify.php)
   ============================================================ */
.card.verify-card-express { border-color: #2FCA00 !important; overflow: visible !important; }

.verify-badge {
    position: absolute;
    top: -13px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2FCA00;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 6px;
    padding: 5px 12px 4px;
    z-index: 2;
    white-space: nowrap;
}

.verify-benefits {
    background: #F8F4FB;
    border-radius: 12px;
    padding: 16px 20px;
}
.verify-benefits p { font-weight: 400; color: var(--base-50); }

.verify-transfer-box {
    background: #F5F5F7;
    border-radius: 16px;
    padding: 16px;
}
.verify-field {
    position: relative;
    background: #fff;
    border: 1px solid #EDEDED;
    border-radius: 14px;
    padding: 14px 52px 12px 20px;
}
.verify-field + .verify-field { margin-top: 14px; }
.verify-field-label {
    position: absolute;
    top: -9px;
    left: 14px;
    background: #fff;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #637381;
    white-space: nowrap;
}
.verify-field-value {
    display: block;
    font-weight: 400;
    font-size: 15px;
    color: var(--base-50);
    word-break: break-word;
}
.verify-copy-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    line-height: 0;
}

.btn-outline-pill {
    background: #fff !important;
    border: 1px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    line-height: 150% !important;
    font-weight: 600 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}
.btn-outline-pill:hover { background: #FBF2FC !important; }

/* ============================================================
   Kontomatik — widget, oczekiwanie, wybór konta
   (new|instant|repeat|refinance30/kontomatik.php, account/accountslist.php ?xrequest)
   ============================================================ */
.verify-trust-row {
    display: flex;
    border-top: 1px solid #F1F1F1;
}
.verify-trust-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    font-size: 13px;
    font-weight: 400;
    color: var(--base-50);
}
.verify-trust-item + .verify-trust-item { border-left: 1px solid #F1F1F1; }

#formSetAccountNumber .selectAccount {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

@media (max-width: 767px) { .verify-accounts-submit { width: 100%; } }

/* fragment accountslist (?xrequest) wstrzykiwany w #waiting — card-header ma p-0, a .card wymusza padding 0 */
#waiting .container .card-header { padding: 32px 48px 0 !important; }
#waiting .container .card-body { padding-top: 12px !important; }
@media (max-width: 767px) {
    #waiting .container .card-header { padding: 24px 24px 0 !important; }
}

/* ============================================================
   Decision — wybór kwoty pożyczki (new|instant|repeat/decision*.php)
   ============================================================ */
.decision-accordion {
    border: 1px solid #E6E6E6;
    border-radius: 12px;
    background: #fff;
}
.decision-accordion summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 500;
    color: var(--color-primary-darker);
}
.decision-accordion summary::-webkit-details-marker { display: none; }
.decision-accordion .decision-chevron { margin-left: auto; flex-shrink: 0; transition: transform 0.15s ease; }
.decision-accordion[open] .decision-chevron { transform: rotate(180deg); }
.decision-acc-body { padding: 0 18px 16px; color: #6C757D; font-weight: 400; }
.decision-acc-body ul { padding-left: 18px; margin-bottom: 0; }
.decision-acc-body p:last-child { margin-bottom: 0; }

.offer-card {
    position: relative;
    border: 1px solid #E5D5EC;
    border-radius: 16px;
    padding: 20px 24px;
    background: #fff;
    cursor: pointer;
}
.offer-card--max { background: #F8F4FB; border-color: var(--color-primary); }
.offer-card--green { background: #F7FCF3; border-color: #2FCA00; }
.offer-card--single { background: #fff; border-color: #2FCA00; }

.offer-badge {
    position: absolute;
    top: -11px;
    right: 16px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 6px;
    padding: 4px 12px 3px;
    white-space: nowrap;
}
.offer-badge--green { background: #2FCA00; }

.offer-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.offer-amount {
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 12px;
}
.offer-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-weight: 400;
    font-size: 14px;
    color: var(--base-50);
    text-transform: uppercase;
    padding: 2px 0;
}
.offer-row .offer-row-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #9B8FA6;
}
.offer-row--total span:last-child { font-weight: 600; font-size: 16px; color: #1a1a1a; }
.offer-sep { border-top: 1px solid rgba(38, 0, 40, 0.08); margin: 10px 0; }

.decision-contact {
    background: #F8F4FB;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    font-weight: 400;
    color: var(--base-50);
}

/* CTA „Wybieram tę kwotę" w karcie oferty — dodawane JS-em (partials/decision-footer.php).
   Kolor per wariant karty; strzałka = biały znak na kółku w kolorze karty. */
.offer-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    color: #6C757D; /* domyślnie: karta bazowa („Jestem pewien…") */
}
.offer-card--max .offer-cta { color: var(--color-primary); }
.offer-card--green .offer-cta,
.offer-card--single .offer-cta { color: #2FCA00; }
.offer-cta-text { font-weight: 600; font-size: 15px; }
.offer-cta-arrow {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.offer-cta-arrow svg { stroke: #fff; display: block; }

/* Wizualnie oddzielona stopka „Zadzwoń" — dodawana JS-em, zastępuje starą .decision-contact */
.decision-callout-sep { border: 0; border-top: 1px solid rgba(38, 0, 40, 0.10); margin: 24px 0; }
.decision-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.decision-callout-info { font-weight: 400; color: var(--base-50); }
.decision-callout-info p { font-size: 15px; }
.decision-callout-hours { font-size: 13px; color: #9B8FA6; }

/* ============================================================
   Bundle — wybór pakietu (repeat|instant / bundle.php + bundlenew.php)
   Partiale: partials/bundle/redesign/*
   ============================================================ */
.bundle-eyebrow {
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-align: center;
}

/* ----- Karta pakietu ----- */
.bundle-card {
    position: relative;
    background: #fff;
    border: 1px solid #E8E8EA;
    border-radius: 20px;
    padding: 28px 22px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.bundle-card--popular { border: 2px solid #2FCA00; }

.bundle-badge {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #2FCA00;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 5px 12px 4px;
    border-radius: 0 18px 0 12px;
    white-space: nowrap;
}

.bundle-amount-label {
    text-align: center;
    font-weight: 500;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.bundle-amount-pill {
    background: linear-gradient(90deg, #45004A 0%, #8B0096 55%, #B913C6 100%);
    color: #fff;
    border-radius: 14px;
    text-align: center;
    padding: 14px 10px;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 0;
}
.bundle-installment {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--base-50);
    margin: 10px 0 0;
}
.bundle-pkg-name {
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #1a1a1a;
    margin: 14px 0 0;
}

/* ----- Lista korzyści ----- */
.bundle-benefits { list-style: none; padding: 0; margin: 20px 0 0; }
.bundle-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.35;
    color: #37474F;
}
.bundle-benefits li img { flex-shrink: 0; margin-top: 1px; }

/* ----- Opis pakietu z WP (bundlenew) — w miejscu listy korzyści ----- */
.bundle-descr-wrap {
    margin-top: 20px;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.35;
    color: #37474F;
}
.bundle-descr-wrap p:last-child { margin-bottom: 0; }
.bundle-descr-wrap ul { list-style: none; padding: 0; margin: 0; }
.bundle-descr-wrap li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}
.bundle-descr-wrap li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-image: url('img/tabler_circle-check-ico.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ----- Sekcje kroków (1. WYBIERZ PAKIET / 2. SPOSÓB PŁATNOŚCI) ----- */
.bundle-step {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #8A8A93;
    margin: 22px 0 10px;
}

.bundle-option {
    display: block;
    border: 1px solid #E8E8EA;
    border-radius: 14px;
    padding: 13px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #fff;
    text-align: left;
}
.bundle-option:has(input:checked) { border-color: var(--color-primary); }
.bundle-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
    margin: 0;
}
.bundle-option-row { display: flex; align-items: center; gap: 10px; }
.bundle-option-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}
.bundle-option-name { font-weight: 600; font-size: 14px; color: #1a1a1a; }
.bundle-option-price { font-weight: 400; font-size: 13px; color: #6C757D; }
.bundle-option-link {
    margin-left: auto;
    font-size: 12px;
    color: #6C757D;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    white-space: nowrap;
    flex-shrink: 0;
}
.bundle-option-link:hover { color: var(--color-primary); }
.bundle-option-sub {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #6C757D;
    margin: 2px 0 0;
}
.bundle-option-sub b { color: #1a1a1a; font-weight: 600; }

/* ----- Akordeon „Szczegóły Twojej pożyczki" ----- */
.bundle-details { margin-top: 22px; }
.bundle-details > summary {
    list-style: none;
    cursor: pointer;
    padding: 0;
}
.bundle-details > summary::-webkit-details-marker { display: none; }
.bundle-details-head {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #8A8A93;
    margin-bottom: 8px;
}
.bundle-details-head svg { margin-left: auto; transition: transform 0.15s ease; }
.bundle-details[open] .bundle-details-head svg { transform: rotate(180deg); }

.bundle-costs { background: #F7F7F9; padding: 12px 16px; }
.bundle-details:not([open]) .bundle-costs { border-radius: 12px; }
.bundle-details[open] .bundle-costs--head { border-radius: 12px 12px 0 0; padding-bottom: 6px; }
.bundle-costs--body { border-radius: 0 0 12px 12px; padding-top: 0; }

.bundle-cost-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 400;
    color: var(--base-50);
    padding: 3px 0;
}
.bundle-cost-row--total { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.bundle-cost-row--payout {
    font-weight: 600;
    color: #1a1a1a;
    border-top: 1px solid #E6E6EA;
    margin-top: 6px;
    padding-top: 8px;
}

/* ----- CTA ----- */
.bundle-cta { margin-top: auto; padding-top: 22px; }
.bundle-cta .btn { width: 100%; }

/* ===== Bundle redesign v2 (repeat): CTA „Pożyczam" u góry, cena pakietu po prawej,
   Kwota do wypłaty pod płatnością, nota w karcie Start ===== */
.bundle-pkg-name--top { margin: 2px 0 14px; }

.bundle-buy-btn {
    display: block;
    width: 100%;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    background: linear-gradient(90deg, #45004A 0%, #8B0096 55%, #B913C6 100%);
    color: #fff;
    border-radius: 14px;
    text-align: center;
    padding: 15px 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: filter 0.15s ease;
}
.bundle-buy-btn:hover { filter: brightness(1.06); }

/* CTA w kolumnie Pakiet Start — jasny wariant zamiast gradientu;
   padding -1px kompensuje ramkę, by przycisk miał tę samą wysokość co w Smart/Pro */
[data-section="standard"] .bundle-buy-btn {
    background: #F2F2F4;
    border: 1px solid #E4E4E8;
    color: #3A3A44;
    font-weight: 400;
    padding: 14px 11px;
}

.bundle-cta-note {
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    color: var(--base-50);
    margin: 10px 0 0;
}

/* Okres spłaty przeniesiony pod RRSO — lekkie odsunięcie */
.bundle-cost-row--period { margin-top: 4px; }

/* Wiersz „1. Wybierz pakiet" v2: cena po prawej, „Co zawiera?" pod nazwą */
.bundle-option-main--v2 { align-items: center; gap: 12px; }
.bundle-option-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}
.bundle-option-body .bundle-option-link { margin-left: 0; }
.bundle-option-main--v2 .bundle-option-price {
    margin-left: auto;
    align-self: center;
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Kwota do wypłaty pod sekcją płatności */
.bundle-payout {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #E6E6EA;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
}
.bundle-payout-val b { font-weight: 700; }

/* Instant: stała (nieklikana) pozycja „Potrąć z pożyczki" — brak wyboru sposobu płatności */
.bundle-option--static { display: flex; align-items: center; gap: 10px; border-color: var(--color-primary); cursor: default; }
.bundle-option-check { color: var(--color-primary); line-height: 0; flex-shrink: 0; }

/* Nota w karcie Start (bez pakietu) — dosunięta do dołu karty */
.bundle-standard-note {
    margin-top: auto;
    background: #F7F7F9;
    border-radius: 12px;
    padding: 16px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--base-50);
    text-align: left;
}

/* ----- Modal informacyjny o pakiecie ----- */
.modal-bg > div.bundle-info {
    max-width: 420px;
    width: calc(100% - 32px);
    height: fit-content;
    max-height: 85vh;
    overflow-y: auto;
    text-align: left;
    padding: 28px;
    border-radius: 18px;
}
.bundle-info-title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin: 0 0 14px; padding-right: 32px; }
.bundle-info-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none !important;
    background: none;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    line-height: 1;
    color: #1a1a1a !important;
    cursor: pointer;
}
.bundle-info-body { font-weight: 400; font-size: 14px; color: var(--base-50); }
.bundle-info-body p { margin-bottom: 12px; }
.bundle-info-body ul { list-style: none; padding: 0; margin: 16px 0 0; }
/* check przez ::before — treść listy bywa surowym HTML-em z WP, więc nie da się wstawić <img> */
.bundle-info-body li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    line-height: 1.35;
}
.bundle-info-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    background-image: url('img/tabler_circle-check-ico.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Modal zgód — układ przycisków wg makiety (główny + Anuluj pod spodem) */
.bundle-agreements-actions { padding: 8px 24px 20px; }
.bundle-agreements-actions .btn { width: 100%; }
.bundle-agreements-actions .btn + .btn { margin-top: 10px; }

/* ============================================================
   Update — wniosek o kolejną pożyczkę (repeat/update.php)
   Klasy .bundle-option* są tu współdzielone z sekcją Bundle (identyczny wygląd wiersza z radiem).
   ============================================================ */

/* ----- Panel boczny ----- */
.update-hello { font-size: 20px; font-weight: 600; color: #1a1a1a; margin-bottom: 20px; }
.update-nav { list-style: none; padding: 0; margin: 0; }
.update-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--base-50);
    font-weight: 400;
    font-size: 15px;
}
.update-nav a:hover { background: #F5F0F7; }
.update-nav .is-active a { background: #F3E4F7; color: var(--color-primary-dark); font-weight: 500; }
.update-nav .update-nav-logout { margin-top: 32px; }

/* ----- Karta sekcji ----- */
.update-title { font-size: 26px; font-weight: 700; color: #1a1a1a; margin-bottom: 20px; }
@media (max-width: 767px) { .update-title { font-size: 20px; } }

.update-card {
    background: #fff;
    border: 1px solid #F1F1F1;
    border-radius: 16px;
    margin-bottom: 20px;
}
.update-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid #F1F1F1;
}
.update-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.update-card__title { font-size: 17px; font-weight: 600; color: #1a1a1a; margin: 0; }
.update-card__body { padding: 24px; }
@media (max-width: 767px) {
    .update-card__head { padding: 16px; }
    .update-card__body { padding: 16px; }
}

/* ----- Kwota + suwak ----- */
.update-amount-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.update-amount-label { font-weight: 500; font-size: 15px; color: #1a1a1a; }
.update-amount-value { font-size: 26px; font-weight: 700; color: #1a1a1a; white-space: nowrap; }
.update-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 400;
    color: #9B8FA6;
    margin-top: 2px;
}

/* ----- Wiersze kosztów ----- */
.update-costs { margin-top: 18px; }
.update-cost-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 400;
    color: #8A8A93;
}
.update-cost-row span:last-child { color: #1a1a1a; text-align: right; }
.update-cost-row--strong { font-size: 14px; font-weight: 500; }
.update-cost-row--strong span:last-child { font-weight: 600; }

/* ----- Kod promocyjny ----- */
.update-promo { background: #FAF5FC; border-radius: 12px; margin-top: 18px; }
.update-promo > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-primary-dark);
}
.update-promo > summary::-webkit-details-marker { display: none; }
.update-promo .update-promo-chevron { margin-left: auto; transition: transform 0.15s ease; }
.update-promo[open] .update-promo-chevron { transform: rotate(180deg); }
.update-promo-body { padding: 0 16px 16px; }

.update-promo-applied {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F0FAEC;
    border: 1px solid #CDEBC2;
    border-radius: 10px;
    padding: 10px 14px;
}
.update-promo-code { font-weight: 600; font-size: 14px; color: #1a1a1a; }
.update-promo-note { font-size: 12px; font-weight: 400; color: #6C757D; }
.update-promo-remove {
    margin-left: auto;
    background: none;
    border: none;
    padding: 4px;
    line-height: 0;
    cursor: pointer;
    color: #6C757D;
}
.update-promo-error { color: #C73434; font-size: 13px; font-weight: 400; margin: 8px 0 0; }

/* spinner na czas przeliczania cennika — przycisk nie może się „zwijać" po podmianie treści */
#applyDiscount { min-width: 118px; }
.update-promo-remove .spinner-border-sm { width: 1rem; height: 1rem; border-width: 0.15em; }

/* mobile: input + „Zastosuj" w pionie, przycisk na całą szerokość (inaczej input się ściska) */
@media (max-width: 575px) {
    .update-promo-body .d-flex { flex-direction: column; }
    .update-promo-body .d-flex .btn { width: 100%; }
    #applyDiscount { min-width: 0; }
}

/* ----- Sekcja danych: przełącznik „Pokaż wszystkie dane" ----- */
.update-card__body .subheader { text-align: center; }
.update-card__body .subheader p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    margin-bottom: 0 !important;
}
.update-toggle-chevron { transition: transform 0.15s ease; }
.update-toggle-chevron.is-open { transform: rotate(180deg); }

/* ----- Rachunki bankowe ----- */
.update-bank-tag { font-size: 13px; font-weight: 400; color: var(--base-50); margin-left: auto; }
.update-add-account {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: var(--base-50);
}
.update-add-account input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 1px;
}
.update-add-account-hint { display: block; font-size: 12px; font-weight: 400; color: #6C757D; margin-top: 2px; }

/* ----- Zgody ----- */
.update-agreements-intro { font-size: 12px; font-weight: 400; color: #6C757D; margin-bottom: 16px; }

/* Wrappery ukrytych pól (pod „Pokaż wszystkie dane") są zawsze w DOM, a treść chowa
   wewnętrzny .hide-wrapper.d-none — bez tego ich marginesy rozpychały pustą przerwę.
   Po rozwinięciu .hide-wrapper traci d-none, selektor przestaje pasować i margines wraca. */
.update-card__body .row > div:has(> .hide-wrapper.d-none) { margin-bottom: 0 !important; }

/* ============================================================
   Moje numery kont (account/accountslist.php, tryb panelowy)
   Wiersze na bazie .bundle-option — nadpisujemy tylko tła wg makiety:
   niezaznaczony = szara pigułka bez ramki, zaznaczony = lila + fioletowa ramka.
   ============================================================ */
.account-option { background: #F7F7F9; border-color: transparent; }
.account-option:has(input:checked) { background: #FBF6FD; border-color: var(--color-primary); }

/* ============================================================
   Dane osobowe (account/daneosobowe.php)
   ============================================================ */
.data-field {
    position: relative;
    background: #EDEFF1;
    border-radius: 40px;
    padding: 14px 24px;
    margin-top: 9px;      /* miejsce na chip etykiety wystający ponad pole */
    margin-bottom: 18px;
}
/* etykieta jako chip nachodzący na górną krawędź pola (jak na makiecie) */
.data-field-label {
    position: absolute;
    top: -9px;
    left: 24px;
    background: #EDEFF1;
    border-radius: 4px;
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 400;
    color: #8A8A93;
    white-space: nowrap;
}
.data-field-value {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: var(--base-50);
    word-break: break-word;
}

.data-contact {
    background: #FAF5FC;
    border-radius: 16px;
    padding: 20px 24px;
}
.data-contact-row { display: flex; align-items: flex-start; gap: 12px; }
.data-contact-ico { flex-shrink: 0; margin-top: 2px; }
.data-contact p { font-weight: 400; font-size: 14px; color: var(--base-50); line-height: 1.45; }
.data-contact b { color: var(--color-primary-dark); font-weight: 600; }
.data-contact-hours {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #8A8A93;
    padding-left: 32px;
}

/* ============================================================
   Finish — sukces po złożeniu wniosku (new|repeat/finish.php)
   ============================================================ */
.finish-wrap { max-width: 600px; width: 100%; }

/* grafika ptaszka wycięta z makiety: img/success-check.png */
.finish-check-img { display: inline-block; margin-bottom: 14px; }
.finish-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.finish-lead { font-weight: 400; color: var(--base-50); margin-bottom: 16px; }

.finish-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    background: #F8F4FB;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}
.finish-info svg { flex-shrink: 0; margin-top: 1px; }
.finish-info b { font-weight: 700; }

.finish-desc { text-align: center; font-size: 13px; font-weight: 400; color: #6C757D; }

.finish-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--base-50);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    margin-top: 6px;
}
.finish-logout:hover { color: var(--color-primary); }

.finish-zpf {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    border-top: 1px solid #F1F1F1;
    margin-top: 24px;
    padding-top: 20px;
    font-size: 13px;
    font-weight: 400;
    color: var(--base-50);
}
.finish-zpf img { width: 96px; height: auto; flex-shrink: 0; }
.finish-zpf b { color: #1a1a1a; }
.finish-zpf a { color: var(--color-primary); font-weight: 600; }

/* ============================================================
   Zastrzeżony PESEL (account/restrictedpesel.php) — karta w stylu modala
   ============================================================ */
.pesel-wrap { max-width: 480px; width: 100%; }

.pesel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #1a1a1a;
    line-height: 0;
}
.pesel-close:hover { color: var(--color-primary); }

.pesel-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #FDF1E3;
    color: #E8930C;
    margin-bottom: 14px;
}

.pesel-title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin: 0 0 6px; }
.pesel-sub { font-weight: 400; color: var(--base-50); margin: 0 0 16px; }

.pesel-footer { font-size: 14px; font-weight: 400; color: var(--base-50); margin: 18px 0 0; }
.pesel-continue {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
}
.pesel-continue:hover { color: var(--color-primary-dark); }

/* ============================================================
   Instant finish — decyzja pozytywna, odblokuj wypłatę (instant/finish.php)
   ============================================================ */
.payout-hero {
    background: #F8F5FC;
    border-radius: 16px;
    padding: 24px 20px;
}
.payout-amount {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.15;
}

.payout-divider {
    position: relative;
    height: 1px;
    background: #EDEDF0;
    margin: 26px 0;
}
.payout-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #EDEDF0;
    border-radius: 8px;
    padding: 5px 7px;
    color: #8A8A93;
    line-height: 0;
}

.payout-due {
    background: #F5F5F7;
    border-radius: 12px;
    padding: 16px 20px;
}
.payout-due-label {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #8A8A93;
    margin: 0 0 2px;
}
