.apoio-page {
    min-height: calc(100vh - 12rem);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1rem 4rem;
    background: linear-gradient(160deg, #fff7ed 0%, #f0fdf4 45%, #fef2f2 100%);
}

.apoio-card {
    width: 100%;
    max-width: 34rem;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.apoio-card-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.75rem 1.75rem 0.5rem;
}

.apoio-logo {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
    border-radius: 9999px;
    border: 3px solid #facc15;
    background: #fff;
    flex-shrink: 0;
}

.apoio-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a5c4a;
    margin: 0 0 0.25rem;
}

.apoio-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.apoio-lead {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.55;
}

.apoio-form {
    padding: 1.25rem 1.75rem 1.75rem;
}

.apoio-fieldset {
    border: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.apoio-fieldset legend {
    font-weight: 700;
    font-size: 0.9rem;
    color: #111827;
    margin-bottom: 0.75rem;
}

.apoio-optional {
    font-weight: 500;
    color: #9ca3af;
    font-size: 0.8rem;
}

.apoio-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.apoio-presets--hidden {
    display: none;
}

.apoio-preset {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.apoio-preset:hover {
    border-color: #1a5c4a;
    color: #1a5c4a;
}

.apoio-preset.is-selected {
    background: #1a5c4a;
    border-color: #1a5c4a;
    color: #fff;
}

.apoio-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

.apoio-label + .apoio-input {
    margin-bottom: 0.85rem;
}

.apoio-amount-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.apoio-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.65rem;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    color: #111827;
    background: #fff;
}

.apoio-input:focus {
    outline: 2px solid rgba(26, 92, 74, 0.35);
    border-color: #1a5c4a;
}

.apoio-currency-toggle {
    display: inline-flex;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f9fafb;
}

.apoio-currency-btn {
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.65rem 0.9rem;
    cursor: pointer;
}

.apoio-currency-btn.is-active {
    background: #c8102e;
    color: #fff;
}

.apoio-hint {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.apoio-error {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.875rem;
}

.apoio-error.hidden {
    display: none;
}

.apoio-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 9999px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    background: linear-gradient(135deg, #facc15 0%, #fbbf24 100%);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.35);
}

.apoio-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(250, 204, 21, 0.45);
}

.apoio-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.apoio-footer-note {
    margin: 1rem 0 0;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.5;
}

/* Página de agradecimento */
.apoio-card--thanks {
    text-align: center;
    padding: 2rem 1.75rem 2.25rem;
}

.apoio-card--thanks h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.75rem;
}

.apoio-lead--center {
    text-align: center;
    max-width: 28rem;
    margin: 0 auto 1.5rem;
}

.apoio-thanks-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 9999px;
    background: #ecfdf5;
    color: #1a5c4a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
}

.apoio-thanks-details {
    display: none;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    max-width: 20rem;
}

.apoio-thanks-details--visible {
    display: block;
}

.apoio-thanks-amount {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a5c4a;
}

.apoio-thanks-ref {
    margin: 0;
    font-size: 0.8125rem;
    color: #6b7280;
}

.apoio-thanks-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.apoio-submit--secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    box-shadow: none;
}

.apoio-submit--secondary:hover {
    background: #f9fafb;
    box-shadow: none;
    transform: translateY(-1px);
}

/* Confirmação na página (fora do modal de pagamento) */
.apoio-confirm-panel {
    padding: 0 1.75rem 1.75rem;
}

.apoio-confirm-panel.hidden {
    display: none;
}

.apoio-confirm-panel-title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}

.apoio-confirm-panel-lead {
    margin: 0 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.apoio-confirm-panel-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.apoio-confirm-panel-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.apoio-confirm-panel-amount {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #1a5c4a;
    line-height: 1.15;
}

.apoio-confirm-panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
}

.apoio-confirm-panel-row.hidden {
    display: none;
}

.apoio-confirm-panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.apoio-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border-radius: 0.65rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.apoio-modal-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.apoio-modal-btn--ghost {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

.apoio-modal-btn--ghost:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.apoio-modal-btn--primary {
    border: none;
    background: #1a5c4a;
    color: #fff;
}

.apoio-modal-btn--primary:hover {
    background: #144a3b;
}

.apoio-confirm-error {
    margin: 0 0 0.85rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.8125rem;
    text-align: center;
}

.apoio-confirm-error.hidden {
    display: none;
}

@media (max-width: 380px) {
    .apoio-confirm-panel-actions {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 480px) {
    .apoio-thanks-actions {
        flex-direction: row;
        justify-content: center;
    }

    .apoio-thanks-actions .apoio-submit {
        width: auto;
        min-width: 11rem;
    }
}

.apoio-beneficiary-options {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.apoio-beneficiary-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.apoio-beneficiary-option:has(input:checked) {
    border-color: #1a5c4a;
    background: #f0fdf4;
}

.apoio-beneficiary-option input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.apoio-beneficiary-option span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.apoio-beneficiary-option strong {
    font-size: 0.92rem;
    color: #111827;
}

.apoio-beneficiary-option small {
    font-size: 0.8rem;
    color: #6b7280;
}

.apoio-beneficiary-club--hidden {
    display: none;
}

.apoio-select {
    appearance: auto;
}

.apoio-beneficiary-note,
.apoio-club-message {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.45;
}

.apoio-club-message.hidden {
    display: none;
}

.apoio-confirm-panel-beneficiary {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1a5c4a;
    margin-bottom: 0.35rem;
}

.apoio-thanks-beneficiary {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a5c4a;
    margin: 0 0 0.35rem;
}

.club-donate-cta {
    margin-top: 1rem;
}

.club-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    border-radius: 0.65rem;
    background: #c8102e;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.club-donate-btn:hover {
    background: #a30d25;
    color: #fff;
}
