/* Default Cyberpunk Styling for Donations */
.uz-cyber-form {
    background: rgba(0, 10, 20, 0.8);
    border: 1px solid var(--cyber-cyan);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    margin: 20px 0;
    max-width: 500px;
}

/* --- NEW DONATION FORM UI [VERSION 2.0] --- */
.uz-donations-wrap {
    max-width: 440px; /* Jeszcze bardziej zwężone dla lepszego efektu desktop */
    margin: 20px auto;
    padding: 2px;
    background: linear-gradient(135deg, var(--cyber-cyan) 0%, transparent 15%, transparent 85%, var(--cyber-magenta) 100%);
    position: relative;
}

.uzd-form-inner {
    background: rgba(10, 15, 20, 0.95);
    padding: 20px; /* Zmniejszono z 25px dla lepszego wypełnienia */
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.uzd-form-header {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    padding-bottom: 20px;
}

.uzd-form-header h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--cyber-cyan);
}

.uzd-status-line {
    font-family: monospace;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
}

/* SECTIONING */
.uzd-form-section {
    margin-bottom: 30px; /* Zmniejszono z 50px */
    position: relative;
}

.uzd-section-tag {
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 11px;
    font-family: monospace;
    color: var(--cyber-cyan);
    opacity: 0.7;
    letter-spacing: 1px;
}

.uzd-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.uzd-input-group label {
    font-size: 14px;
    font-weight: bold;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* INPUTS */
.uzd-input-wrapper {
    position: relative;
}

.uzd-input-wrapper input {
    width: 100% !important;
    background: rgba(255,255,255,0.03) !important;
    border: none !important;
    border-bottom: 2px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    padding: 15px 10px !important;
    font-size: 18px !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease !important;
}

.uzd-input-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyber-cyan);
    box-shadow: 0 0 10px var(--cyber-cyan);
    transition: width 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.uzd-input-wrapper input:focus + .uzd-input-bar {
    width: 100%;
}

.uzd-input-wrapper input:focus {
    outline: none !important;
    background: rgba(0, 242, 255, 0.05) !important;
}

/* PRESETS */
.uzd-amount-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.uzd-preset {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--cyber-cyan);
    padding: 15px;
    cursor: pointer;
    font-family: monospace;
    font-size: 18px;
    transition: all 0.3s;
    text-align: center;
}

.uzd-preset:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.uzd-preset.active {
    background: var(--cyber-cyan);
    color: #000;
    border-color: var(--cyber-cyan);
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* GENDER CARDS */
.uzd-gender-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.uzd-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 242, 255, 0.2);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.uzd-card .uzd-card-icon {
    font-size: 24px;
    opacity: 0.7;
}

.uzd-card .uzd-card-label {
    font-size: 11px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.uzd-card:hover {
    background: rgba(0, 242, 255, 0.08);
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.uzd-card.active {
    background: rgba(0, 242, 255, 0.15);
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3), inset 0 0 10px rgba(0, 242, 255, 0.2);
}

.uzd-card.active::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--cyber-cyan);
    box-shadow: 0 0 10px var(--cyber-cyan);
}

/* CLASS SELECT */
.uzd-class-select {
    width: 100%;
    background: rgba(10, 15, 20, 0.8);
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: #fff;
    padding: 12px 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300f2ff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
}

.uzd-class-select:focus {
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    background-color: rgba(0, 242, 255, 0.05);
}

.uzd-class-select option {
    background: #0a0f14;
    color: #fff;
    padding: 10px;
}

/* LEGAL CHECKBOXES - CLEANED UP */
.uzd-legal-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-left: 2px solid rgba(0, 242, 255, 0.2);
    background: transparent;
    transition: all 0.3s ease;
}

.uzd-legal-checkboxes.has-error {
    border-left-color: var(--cyber-magenta);
    background: rgba(255, 0, 85, 0.05);
    box-shadow: inset 5px 0 10px rgba(255, 0, 85, 0.1);
}

.uzd-checkbox-row {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: start;
    cursor: pointer;
}

.uzd-checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 3px 0 0 0;
    appearance: none;
    border: 2px solid var(--cyber-cyan);
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.uzd-checkbox-row input[type="checkbox"]:checked {
    background: var(--cyber-cyan);
}

.uzd-checkbox-row input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: #000;
    font-size: 16px;
    left: 2px;
    top: -2px;
}

.uzd-checkbox-row label {
    font-size: 15px;
    line-height: 1.5;
    color: #fff;
    cursor: pointer;
}

.uzd-sub-label {
    display: block;
    font-size: 12px;
    opacity: 0.6;
    margin-top: 5px;
    font-style: italic;
}

.uzd-checkbox-row label a {
    color: var(--cyber-cyan);
    text-decoration: underline;
}

/* SUB-CONSENT INDENTATION & DISABLED STATE */
.uzd-sub-consent,
#uz-modal-contribute .uzd-sub-consent,
.uz-modal-content .uzd-sub-consent {
    margin-left: 30px !important;
    display: block !important;
}

.uzd-checkbox-row input[type="checkbox"]:disabled,
.uzd-checkbox-row input[type="checkbox"]:disabled + label,
.uz-modal-content .uzd-sub-consent input:disabled,
.uz-modal-content .uzd-sub-consent input:disabled + label,
.uz-modal-content .uzd-sub-consent input:disabled ~ label {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    filter: grayscale(1) !important;
    transition: all 0.3s ease;
    pointer-events: none !important;
}

.uzd-checkbox-row input[type="checkbox"]:disabled {
    border-color: rgba(255, 255, 255, 0.2);
}

/* SUBMIT AREA */
.uzd-submit-area {
    margin-top: 5px; /* Minimalny odstęp */
    text-align: center;
}

.uz-btn-premium {
    width: 100%;
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff !important;
    background: linear-gradient(90deg, var(--cyber-magenta) 0%, #ff0055 100%) !important;
    border: none !important;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
}

.uz-btn-premium:hover {
    background: #ff0055 !important;
    background-image: linear-gradient(90deg, #ff0055 0%, #bc0271 100%) !important;
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.6);
    transform: scale(1.01);
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.uz-btn-premium:active {
    transform: scale(0.98);
}

/* FOOTER */
.uzd-form-footer {
    margin-top: 10px; /* Jeszcze mniejszy odstęp */
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.uzd-notice-box {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Zmniejszono z 15px */
}

.uzd-notice-box strong {
    color: var(--cyber-cyan);
}

.uzd-pl-stmt {
    color: var(--cyber-yellow) !important;
    border-left: 2px solid var(--cyber-magenta);
    padding-left: 15px;
    font-style: italic;
    font-size: 12px;
}

/* MESSAGES */
#uzd-message {
    margin-bottom: 25px;
    font-family: monospace;
    min-height: 20px;
}

#uzd-message.error {
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid var(--cyber-magenta);
    color: var(--cyber-magenta);
    padding: 15px;
    text-shadow: 0 0 5px var(--cyber-magenta);
}

#uzd-message.success {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--cyber-cyan);
    color: var(--cyber-cyan);
    padding: 15px;
}

/* MODAL UI REFINEMENTS */
.uz-modal-content {
    max-width: 480px !important; /* Drastyczne zmniejszenie na prośbę użytkownika */
    padding: 20px !important;
    max-height: 90vh;
    overflow-y: auto;
}

.uz-modal-content h3,
.uzd-form-header h3 {
    font-size: 20px !important;
    margin-bottom: 20px !important;
    word-break: break-all !important;
    line-height: 1.2 !important;
    letter-spacing: 1px !important;
}

.uz-modal-content .uz-form-group {
    margin-bottom: 12px !important; /* Zmniejszenie wysokości całego modala */
}

.uz-modal-content .uz-input {
    padding: 10px !important;
    font-size: 16px !important;
}

.uz-modal-content .uz-checkbox-group {
    margin-top: 5px !important;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .uz-donations-wrap {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    .uz-modal-content {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    .uzd-form-inner {
        padding: 10px !important;
    }
    .uzd-amount-presets {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
    }
    .uzd-preset {
        padding: 8px 4px !important;
        font-size: 13px !important;
    }
    .uzd-legal-checkboxes {
        padding: 10px 5px !important;
    }
    .uzd-checkbox-row label {
        font-size: 12px !important;
    }
    .uzd-submit-area {
        margin-top: 0 !important;
        padding: 10px !important;
    }
    .uz-btn-premium {
        padding: 12px !important;
        font-size: 16px !important;
        margin-bottom: 5px !important;
    }
    .uzd-notice-box {
        font-size: 11px !important;
        gap: 4px !important;
    }
}

/* --- CYBERPUNK LOADER --- */
.uzd-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: rgba(0, 10, 20, 0.5);
    border: 1px solid rgba(0, 242, 255, 0.1);
    margin: 20px auto;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.uzd-cyber-loader {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 242, 255, 0.05);
    border-top: 3px solid var(--cyber-cyan);
    border-right: 3px solid var(--cyber-cyan);
    border-radius: 50%;
    animation: uzd-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3), inset 0 0 10px rgba(0, 242, 255, 0.1);
    position: relative;
    z-index: 2;
}

.uzd-cyber-loader::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 2px solid rgba(255, 0, 85, 0.05);
    border-bottom: 3px solid var(--cyber-magenta);
    border-left: 3px solid var(--cyber-magenta);
    border-radius: 50%;
    animation: uzd-spin-reverse 1.8s linear infinite;
    opacity: 0.8;
}

.uzd-cyber-loader::after {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: uzd-pulse 2s ease-in-out infinite;
}

@keyframes uzd-spin {
    0% { transform: rotate(0deg); border-width: 3px; }
    50% { transform: rotate(180deg); border-width: 1px; }
    100% { transform: rotate(360deg); border-width: 3px; }
}

@keyframes uzd-spin-reverse {
    to { transform: rotate(-360deg); }
}

@keyframes uzd-pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.uzd-loader-text {
    margin-top: 35px;
    font-family: 'Orbitron', sans-serif;
    color: var(--cyber-cyan);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    font-weight: bold;
    animation: uzd-text-flicker 3s linear infinite;
}

.uzd-loader-subtext {
    margin-top: 15px;
    font-family: monospace;
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes uzd-text-flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% { opacity: 1; }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 0.4; text-shadow: none; }
}

