/* ==========================================================================
   WTYCZKA DONATE NOW - MODERN FINTECH THEME
   ========================================================================== */
.donate-bank {
    margin-top: 1rem;
    border-radius: 14px;
}

.donate-bank-heading {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

/* unified item system (dla IBAN i TITLE) */
.bank-item,
.bank-line {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
}

.bank-label,
.bank-item span,
.bank-line span {
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* VALUE BLOCK */
.bank-value,
.transfer-title,
.iban {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f7f7f7;

    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

/* COPY ACTION WRAPPER */
.copy-action {
    display: flex;
    justify-content: flex-start;
}

/* SINGLE CLEAN COPY BUTTON (gold system) */
.copy-btn {
    align-self: flex-start;

    border: none;
    border-radius: 8px;
    padding: 0.6rem 1rem;

    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    background: linear-gradient(90deg, #c49f47, #e8d39a, #c49f47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    box-shadow: inset 0 0 0 1px rgba(196, 159, 71, 0.25);
    transition: all .25s ease;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #c49f47 0%, #e8d39a 50%, #c49f47 100%);
    -webkit-text-fill-color: unset;
    color: #1a1a1a;

    box-shadow: 0 10px 25px -10px rgba(196, 159, 71, 0.55);
    transform: translateY(-2px);
}

/* NOTES */
.donate-bank-note {
    margin-top: 0.75rem;
    color: #555;
    font-size: 0.92rem;
}

.bank-hint {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #777;
}
:root {
    --tk-shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --tk-shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    --tk-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --tk-bg-input: #f8fafc;
    --tk-radius-card: 28px;
    --tk-radius-pill: 50px;
}

/* --- 1. Formularz Darowizny --- */
.donate-wrapper { margin: 3rem 0; font-family: system-ui, -apple-system, sans-serif; }
.donate-container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.donate-header { text-align: center; margin-bottom: 3rem; }
.donate-heading { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.02em; color: #0f172a; }
.donate-subheading { font-size: 1.125rem; max-width: 700px; margin: 0 auto; color: #64748b; line-height: 1.6; }

.donate-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width: 920px) { 
    .donate-grid { grid-template-columns: 1.3fr 0.7fr; gap: 3rem; align-items: start; } 
}

/* Sekcja lewa (główna akcja) */
.donate-left { background: #ffffff; padding: 2.5rem; border-radius: var(--tk-radius-card); box-shadow: var(--tk-shadow-soft); }

.donate-email { margin: 0 0 1.5rem 0; }
.donate-email label { display: block; font-weight: 700; margin-bottom: 0.5rem; color: #334155; }
.donate-email input { width: 100%; border: 2px solid transparent; background: var(--tk-bg-input); border-radius: 16px; padding: 1rem 1.25rem; font-size: 1rem; outline: none; transition: var(--tk-transition); color: #0f172a; box-sizing: border-box; }
.donate-email input:focus { background: #ffffff; border-color: var(--donate-accent, #1e90ff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--donate-accent) 15%, transparent); }

.donate-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
@media(max-width: 480px) { .donate-amounts { grid-template-columns: repeat(2, 1fr); } }

.amount-pill { border: 2px solid transparent; border-radius: var(--tk-radius-pill); padding: 1rem 0.5rem; background: var(--tk-bg-input); color: #475569; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: var(--tk-transition); text-align: center; }
.amount-pill:hover { background: #e2e8f0; transform: translateY(-2px); }
.amount-pill.is-active { background: var(--donate-accent, #1e90ff); color: #ffffff; box-shadow: 0 12px 24px -8px var(--donate-accent, #1e90ff); transform: translateY(-3px); }

.amount-custom { position: relative; grid-column: 1 / -1; }
@media(min-width: 480px) { .amount-custom { grid-column: span 2; } }
.amount-custom input { width: 100%; border: 2px solid transparent; background: var(--tk-bg-input); border-radius: var(--tk-radius-pill); padding: 1rem 3rem 1rem 1.5rem; font-size: 1.1rem; font-weight: 700; outline: none; transition: var(--tk-transition); box-sizing: border-box; color: #0f172a;}
.amount-custom input:focus { background: #ffffff; border-color: var(--donate-accent, #1e90ff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--donate-accent) 15%, transparent); }
.amount-suffix { position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); color: #64748b; font-weight: 800; pointer-events: none; }

.donate-summary { margin: 1.5rem 0; padding-top: 1.5rem; border-top: 1px dashed #e2e8f0; color: #475569; font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; }
.donate-summary .sum-amount { font-size: 1.5rem; color: #0f172a; font-weight: 900; }

.donate-submit { 
    position: relative;
    overflow: hidden;

    padding: 1.1rem 1.5rem; 
    border-radius: var(--tk-radius-pill); 
    border: none;

    background: linear-gradient(135deg, #c49f47 0%, #e8d39a 50%, #c49f47 100%);
    color: #1a1a1a;

    font-size: 1.125rem; 
    font-weight: 600; 
    cursor: pointer; 
    width: 100%;

    transition: var(--tk-transition);

    box-shadow:
        0 10px 25px -10px rgba(196, 159, 71, 0.55);
}

/* hover glow */
.donate-submit:hover { 
    transform: translateY(-3px); 
    box-shadow:
        0 18px 45px -12px rgba(196, 159, 71, 0.75),
        0 0 18px rgba(232, 211, 154, 0.35);
}

/* ACTIVE GOLD PARTICLES */
.donate-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.35) 0 2px, transparent 3px),
        radial-gradient(circle at 70% 60%, rgba(232, 211, 154, 0.4) 0 2px, transparent 3px),
        radial-gradient(circle at 40% 80%, rgba(196, 159, 71, 0.4) 0 2px, transparent 3px),
        radial-gradient(circle at 85% 20%, rgba(255,255,255,0.25) 0 1.5px, transparent 3px);

    opacity: 0;
    transform: scale(1);
    animation: gold-float 3.5s linear infinite;
    pointer-events: none;
}

/* subtle shine sweep */
.donate-submit::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );

    transform: skewX(-20deg);
    animation: shine-move 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gold-float {
    0% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-8px);
        opacity: 0.4;
    }
}

@keyframes shine-move {
    0% {
        left: -60%;
    }
    50% {
        left: 120%;
    }
    100% {
        left: 120%;
    }
}

.donate-submit:active { 
    transform: translateY(1px); 
    box-shadow: 0 6px 18px -8px rgba(196, 159, 71, 0.65);
}

.donate-note { font-size: 0.85rem; color: #94a3b8; margin: 1rem 0 0; text-align: center; }

/* Sekcja prawa (informacje) */
.donate-info { border: none; border-radius: var(--tk-radius-card); padding: 2.5rem; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); box-shadow: var(--tk-shadow-soft); height: 100%; box-sizing: border-box;}
.donate-info-heading { font-size: 1.25rem; font-weight: 600; margin: 0 0 1.25rem; color: #0f172a; }

.donate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.donate-list li { display: flex; flex-direction: column; font-size: 0.95rem; }
.donate-list li span { color: #64748b; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 0.2rem; }
.donate-list li strong { color: #1e293b; font-weight: 600; }
.donate-bank-heading { font-weight: 600; margin: 0 0 1rem; color: #0f172a; }
.bank-line { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 0.5rem; display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; transition: var(--tk-transition); }
.bank-line:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.bank-line span { display: none; } /* Ukrywamy etykiety, by było czyściej, kod mówi sam za siebie */
.bank-line code { background: transparent; border: none; padding: 0.5rem; font-family: ui-monospace, monospace; font-size: 0.9rem; color: #334155; font-weight: 600; overflow-wrap: anywhere; }
.copy-btn { 
    position: relative;
    overflow: hidden;

    border: none; 
    border-radius: 8px; 

    background: var(--tk-bg-input); 
    padding: 0.6rem 1rem; 
    cursor: pointer; 

    transition: var(--tk-transition); 
    font-weight: 700; 

    font-size: 0.65rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;

    /* GOLD TEXT */
    background: linear-gradient(90deg, #c49f47, #e8d39a, #c49f47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    box-shadow: inset 0 0 0 1px rgba(196, 159, 71, 0.25);
}

/* GOLD SHINE LAYER */
.copy-btn::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at 30% 40%, rgba(232, 211, 154, 0.35) 0 2px, transparent 3px),
        radial-gradient(circle at 70% 60%, rgba(196, 159, 71, 0.35) 0 2px, transparent 3px);

    opacity: 0.4;
    animation: copy-float 4s ease-in-out infinite;
    pointer-events: none;
}

/* SHINE SWEEP */
.copy-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 50%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );

    transform: skewX(-20deg);
    animation: copy-shine 3.8s ease-in-out infinite;
    pointer-events: none;
}

/* HOVER STATE */
.copy-btn:hover { 
    background: linear-gradient(135deg, #c49f47 0%, #e8d39a 50%, #c49f47 100%);
    color: #1a1a1a;

    -webkit-text-fill-color: unset;
    background-clip: unset;

    box-shadow:
        0 10px 25px -10px rgba(196, 159, 71, 0.55);
}

/* ANIMATIONS */
@keyframes copy-float {
    0% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-3px); opacity: 0.6; }
    100% { transform: translateY(0); opacity: 0.3; }
}

@keyframes copy-shine {
    0% { left: -70%; }
    50% { left: 120%; }
    100% { left: 120%; }
}

.donate-bank-note { margin-top: 1rem; color: #64748b; font-size: 0.9rem; line-height: 1.5; background: #f1f5f9; padding: 1rem; border-radius: 12px; }
.bank-hint { margin: 1.5rem 0 0; color: #94a3b8; font-size: 0.85rem; text-align: center; }

/* --- 2. Strona Dziękujemy (Thanks Shortcode) --- */
.tx-wrap { position: relative; margin: 2rem 0; font-family: system-ui, -apple-system, sans-serif; }
.tx-decor { width: 100%; height: 160px; display: block; border-radius: var(--tk-radius-card); overflow: hidden; }
.tx-card { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--tk-radius-card); margin-top: -80px; position: relative; z-index: 2; padding: 40px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.08); }
.tx-head { display: flex; gap: 24px; align-items: flex-start; }
@media (max-width: 640px) { .tx-head { flex-direction: column; align-items: center; text-align: center; } }

.tx-icon { flex: 0 0 100px; }
.tx-icon svg { width: 100%; height: auto; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); }
.tx-texts { min-width: 0; padding-top: 10px; }
.tx-badge { display: inline-block; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); padding: 0.35rem 0.8rem; border-radius: 50px; font-weight: 800; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.5rem; }
.tx-title { margin: 0 0 0.5rem; font-size: 2rem; line-height: 1.2; color: #0f172a; font-weight: 900; letter-spacing: -0.02em; }
.tx-lead { margin: 0; color: #475569; font-size: 1.1rem; line-height: 1.6; }

.tx-msg { margin-top: 1.5rem; color: #475569; padding: 1.5rem; background: #f8fafc; border-radius: 16px; border-left: 4px solid var(--accent); }
.tx-details { margin-top: 2rem; background: #f8fafc; padding: 1.5rem; border-radius: 16px; }
.tx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tx-list li { display: flex; flex-direction: column; gap: 0.25rem; }
.tx-list li span { color: #64748b; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; }
.tx-list strong { font-size: 1.1rem; color: #0f172a; }
.tx-list code { background: #ffffff; color: #334155; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0.3rem 0.6rem; font-size: 0.9rem; font-family: ui-monospace, monospace; display: inline-block; word-break: break-all; }

.tx-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
@media (max-width: 640px) { .tx-cta { justify-content: center; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: var(--tk-radius-pill); padding: 1rem 1.75rem; font-weight: 800; cursor: pointer; text-decoration: none; transition: var(--tk-transition); font-size: 1rem; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 25px -5px color-mix(in srgb, var(--accent) 50%, transparent); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px -5px color-mix(in srgb, var(--accent) 60%, transparent); filter: brightness(1.1); }
.btn-ghost { background: #f8fafc; color: #334155; border: 2px solid transparent; }
.btn-ghost:hover { background: #ffffff; color: var(--accent); border-color: var(--accent); box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05); transform: translateY(-3px); }
.btn-link { background: transparent; color: #64748b; padding: 1rem; }
.btn-link:hover { color: var(--accent); text-decoration: none; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.btn-mini { border-radius: 12px; padding: 0.6rem 1rem; background: #f1f5f9; color: #475569; font-size: 0.9rem; margin-top: 1rem; display: inline-block; font-weight: 700; text-decoration: none; transition: var(--tk-transition); }
.btn-mini:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.tx-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.tx-extra-card { background: #ffffff; border-radius: var(--tk-radius-card); padding: 2rem; box-shadow: var(--tk-shadow-soft); transition: var(--tk-transition); }
.tx-extra-card:hover { transform: translateY(-4px); box-shadow: var(--tk-shadow-hover); }
.tx-extra-card h3 { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 800; color: #0f172a; }
.tx-extra-card p, .tx-extra-card li { color: #64748b; line-height: 1.6; }
.tx-extra-card ul { padding-left: 1.25rem; margin-bottom: 0; }
.tx-extra-card li { margin-bottom: 0.5rem; }

/* --- 3. Karty Statystyk (Dashboard) --- */
.span-12 { display: flex; flex-wrap: wrap; gap: 24px; width: 100%; margin: 2rem 0; box-sizing: border-box; font-family: system-ui, -apple-system, sans-serif; }
.card-premium { flex: 1; min-width: 280px; box-sizing: border-box; }

.stat-card-premium {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 32px;
    border-radius: 28px !important; /* Wymuszenie nadpisania inline CSS */
    border-left: none !important; /* Pozbywamy się starej bocznej linii */
    box-shadow: var(--tk-shadow-soft);
    transition: var(--tk-transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Dekoracyjna kropka używająca koloru dziedziczonego z HTML */
.stat-card-premium::before {
    content: '';
    position: absolute;
    top: 32px;
    right: 32px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor; /* Użyje koloru czcionki elementu, jeśli nadany w PHP */
    opacity: 0.2;
}

.stat-card-premium:hover { transform: translateY(-6px); box-shadow: var(--tk-shadow-hover); }

.stat-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #64748b; font-weight: 800; margin-bottom: 12px; display: block; }
.stat-value { font-size: 2.5rem; font-weight: 900; color: #0f172a; line-height: 1; display: flex; align-items: flex-end; letter-spacing: -0.02em; }
.stat-value small { font-size: 1.1rem; font-weight: 700; color: #94a3b8; margin-left: 8px; margin-bottom: 4px; text-transform: uppercase; }

@media (max-width: 640px) {
    .span-12 { flex-direction: column; gap: 20px; }
    .card-premium { width: 100%; }
    .stat-card-premium { padding: 24px; }
}

/* --- 4. Tryb Ciemny (Dark Mode - Deep Space) --- */
@media (prefers-color-scheme: dark) {
    .donate-heading, .donate-info-heading, .donate-bank-heading, .tx-title, .tx-list strong, .tx-extra-card h3, .stat-value { color: #f8fafc; }
    .donate-subheading, .donate-list li span, .donate-bank-note, .bank-hint, .tx-lead, .tx-list li span, .tx-extra-card p, .tx-extra-card li, .stat-label { color: #94a3b8; }
    
    .donate-left, .donate-info, .tx-card, .tx-extra-card, .stat-card-premium { 
        background: #0f172a; 
        border: 1px solid #1e293b; 
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); 
    }
    .donate-info { background: linear-gradient(180deg, #0f172a 0%, #020617 100%); }
    .stat-card-premium { background: linear-gradient(145deg, #1e293b, #0f172a); }

    .donate-email input, .amount-custom input, .amount-pill, .btn-mini, .copy-btn { 
        background: #1e293b; color: #f8fafc; 
    }
    .donate-email input:focus, .amount-custom input:focus { background: #0f172a; }
    
    .amount-pill:hover, .btn-ghost:hover { background: #334155; }
    .donate-list li strong { color: #e2e8f0; }
    .donate-summary, .donate-bank { border-color: #334155; }
    .donate-summary .sum-amount { color: #f8fafc; }
    
    .bank-line { background: #0f172a; border-color: #1e293b; }
    .bank-line:hover { border-color: #475569; }
    .bank-line code { color: #e2e8f0; }
    .donate-bank-note { background: #1e293b; color: #cbd5e1; }

    .tx-msg, .tx-details { background: #1e293b; }
    .tx-list code { background: #0f172a; border-color: #334155; color: #e2e8f0; }
    .btn-ghost { background: #1e293b; color: #e2e8f0; }
    .btn-link { color: #94a3b8; }
}
.donate-secure-footer {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.donate-secure-footer .donate-note {
    margin: 0; /* Zerujemy domyślny margines */
}

.p24-logo {
    height: 32px; /* Kontroluje wielkość logo */
    width: auto;
    opacity: 0.6;
    transition: var(--tk-transition);
    user-select: none;
}

.p24-logo:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* Tryb ciemny dla logo */
@media (prefers-color-scheme: dark) {
    .p24-logo {
        filter: brightness(0) invert(1); /* Zmieni logo na białe, jeśli oryginalne jest czarne/kolorowe - usuń tę linijkę, jeśli masz specjalne jasne logo dla dark mode */
        opacity: 0.8;
    }
}