*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    background: #f0eeeb;
    min-height: 100vh;
    color: #222;
}

/* â”€â”€ Header â”€â”€ */
.donate-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.donate-header a.back {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}

.donate-header a.back:hover {
    color: #111;
}

.donate-header a.back svg {
    width: 18px;
    height: 18px;
}

.donate-header .logo img {
    height: 36px;
}

/* â”€â”€ Page layout â”€â”€ */
.donate-page {
    max-width: 520px;
    margin: 32px auto 60px;
    padding: 0 16px;
    overflow: visible;
}

/* â”€â”€ Campaign card â”€â”€ */
.campaign-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.campaign-card img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.campaign-card .info h2 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.campaign-card .info p {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* â”€â”€ Donation panel â”€â”€ */
.donation-panel {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    overflow: visible;
    max-width: 520px;
    margin: 32px auto 60px;
}

/* â”€â”€ Step â”€â”€ */
.step {
    display: block;
}

.step[hidden] {
    display: none;
}

/* â”€â”€ Amount step â”€â”€ */
.step-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
    overflow: visible;
    padding-top: 6px;
}

.pxm-amt {
    position: relative;
    padding: 14px 8px;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .15s ease;
    text-align: center;
    line-height: 1.2;
    overflow: visible;
}

.pxm-amt:hover:not(.active) {
    border-color: rgba(246, 166, 35, 0.65);
    background: #fffdfb;
}

/* Destaque do valor escolhido — alinhado ao CTA laranja */
.pxm-amt.active {
    background: linear-gradient(165deg, #fffaf3 0%, #ffefd9 55%, #ffe8c8 100%);
    border: 2px solid #f6a623;
    color: #7c2d12;
    font-weight: 800;
    letter-spacing: -0.02em;
    box-shadow:
        0 2px 8px rgba(246, 166, 35, 0.28),
        0 0 0 3px rgba(246, 166, 35, 0.14);
    transform: translateY(-1px);
}

.pxm-amt.active:hover {
    border-color: #e89410;
    box-shadow:
        0 3px 12px rgba(246, 166, 35, 0.35),
        0 0 0 3px rgba(246, 166, 35, 0.18);
}

.pxm-amt:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(36, 202, 104, 0.35);
}

.pxm-amt.active:focus-visible {
    box-shadow:
        0 2px 8px rgba(246, 166, 35, 0.28),
        0 0 0 3px rgba(246, 166, 35, 0.22);
}

.pxm-amt:has(.pxm-badge) {
    padding-top: 20px;
}

.pxm-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    margin-top: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(22, 101, 52, 0.25);
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
    width: max-content;
    min-width: max-content;
    max-width: none;
    box-sizing: border-box;
}

.pxm-amt.active .pxm-badge {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    border-color: #fff8f0;
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.35);
}

/* Custom amount */
.custom-amount-wrap {
    position: relative;
    margin-bottom: 14px;
}

.custom-amount-wrap .currency {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 700;
    color: #555;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.custom-amount-wrap .currency small {
    font-size: 10px;
    font-weight: 500;
    color: #888;
}

.custom-amount-input {
    width: 100%;
    padding: 14px 16px 14px 52px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    outline: none;
    transition: border-color .18s;
    appearance: textfield;
}

.custom-amount-input::-webkit-inner-spin-button,
.custom-amount-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.custom-amount-input:focus {
    border-color: #24ca68;
}

/* Social proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    color: #444;
}

.social-proof .avatar-stack {
    display: flex;
}

.social-proof .avatar-stack img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
    object-fit: cover;
}

.social-proof .avatar-stack img:first-child {
    margin-left: 0;
}

/* Donate button */
.btn-donate-now {
    width: 100%;
    padding: 16px;
    background: #f6a623;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .3px;
    transition: background .2s, transform .1s;
    margin-bottom: 12px;
}

.btn-donate-now:hover {
    background: #e09415;
}

.btn-donate-now:active {
    transform: scale(.98);
}

.legal-text {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}

.legal-text a {
    color: #555;
}

/* Security badges */
.security-badges {
    text-align: center;
}

.security-badges .secure-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
    font-weight: 600;
    margin-bottom: 10px;
}

.secure-line svg {
    color: #24ca68;
}

.card-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.card-icons img {
    height: 22px;
}

/* â”€â”€ Divider â”€â”€ */
.step-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 20px 0;
}

/* â”€â”€ Form step (dados / confirmaÃ§Ã£o) â”€â”€ */
.step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.step-header .back-step {
    width: 32px;
    height: 32px;
    border: 1.5px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: border-color .18s;
    flex-shrink: 0;
}

.step-header .back-step:hover {
    border-color: #111;
    color: #111;
}

.step-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.form-field {
    margin-bottom: 14px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.form-field input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color .18s;
    color: #111;
}

.form-field input:focus {
    border-color: #24ca68;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: #24ca68;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background .2s;
}

.btn-primary:hover {
    background: #1db85e;
}

.btn-secondary {
    width: 100%;
    padding: 13px;
    background: #fff;
    color: #555;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .18s;
}

.btn-secondary:hover {
    border-color: #aaa;
}

.privacy-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 12px;
}

/* â”€â”€ Loader step â”€â”€ */
#step-loader {
    text-align: center;
    padding: 40px 0;
}

.loader-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #24ca68;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loader-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.loader-sub {
    font-size: 14px;
    color: #666;
}

/* â”€â”€ Confirm step â”€â”€ */
.confirm-icon {
    width: 56px;
    height: 56px;
    background: #EFF6FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.confirm-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.confirm-sub {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #3B82F6;
    margin-bottom: 18px;
}

.confirm-data {
    background: #f8f9fa;
    padding: 18px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

.confirm-data .row {
    margin-bottom: 12px;
}

.confirm-data .row:last-child {
    margin-bottom: 0;
}

.confirm-data .row span {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}

.confirm-data .row strong {
    font-size: 15px;
    color: #111;
    display: block;
}

/* â”€â”€ QR step â”€â”€ */
#step-qr {
    text-align: center;
}

.pxm-head-page {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111;
}

.pxm-status {
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}

.pxm-valor {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

#pxm-timer {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.pxm-qrwrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

#pxm-qrc {
    width: 220px;
    height: 220px;
}

.pxm-copy-area {
    margin-top: 10px;
}

.pxm-copy-area.pxm-hidden {
    display: none;
}

.pxm-copy-area.pxm-visible {
    display: block;
}

.pxm-helper {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.pxm-input {
    width: 100%;
    padding: 11px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
    text-align: center;
    cursor: pointer;
}

.pxm-btn {
    width: 100%;
    padding: 14px;
    background: #24ca68;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background .2s;
}

.pxm-btn:hover {
    background: #1db85e;
}

.pxm-btn--ghost {
    background: #fff;
    color: #555;
    border: 1.5px solid #d1d5db;
}

.pxm-btn--ghost:hover {
    background: #f9fafb;
}

/* â”€â”€ Toast â”€â”€ */
.pxm-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    pointer-events: none;
    z-index: 9999;
}

.pxm-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* â”€â”€ Popup copied â”€â”€ */
#popup-copied {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 16px;
}

#popup-copied .box {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    max-width: 380px;
    width: 100%;
}

#popup-copied .ok {
    width: 100%;
    padding: 13px;
    background: #24ca68;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
}

/* â”€â”€ GoFundMe-style protection footer â”€â”€ */
.gfm-protection {
    text-align: center;
    margin-top: 20px;
    padding: 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.gfm-protection svg {
    color: #24ca68;
    margin-bottom: 6px;
}

.gfm-protection strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.gfm-protection p {
    font-size: 13px;
    color: #666;
}

@media (max-width: 480px) {
    .donate-page {
        margin-top: 16px;
    }

    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}