.bs-donor-portal { max-width: 480px; margin: 32px auto; font-family: sans-serif; padding: 24px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; }
.bs-donor-portal h2 { color: #0F4855; margin-top: 0; }
.bs-portal-form { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.bs-portal-form label { font-weight: 600; }
.bs-portal-form input[type="email"] { padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; }
.bs-portal-form button { background: #622599; color: #fff; padding: 12px; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; font-weight: bold; }
.bs-portal-form button:hover { background: #4d1d77; }
.bs-flash { padding: 12px; border-radius: 4px; margin-bottom: 16px; }
.bs-flash--info { background: #e3f2fd; color: #0d47a1; border: 1px solid #90caf9; }
.bs-flash--warning { background: #fff3e0; color: #e65100; border: 1px solid #ffb74d; }
.bs-portal-help { color: #666; font-size: 14px; }
@media (max-width: 480px) { .bs-donor-portal { margin: 16px; padding: 16px; } }
.bs-donor-portal--dashboard { max-width: 900px; }
.bs-portal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.bs-portal-logout { color: #622599; text-decoration: none; font-size: 14px; }
.bs-portal-logout:hover { text-decoration: underline; }
.bs-portal-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid #e0e0e0; margin-bottom: 24px; }
.bs-portal-tab { padding: 10px 16px; color: #555; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.bs-portal-tab.is-active { color: #0F4855; border-bottom-color: #F49E27; font-weight: 600; }
.bs-portal-tab:hover { background: #fafafa; }
.bs-portal-content { min-height: 200px; }
.bs-tab-placeholder { padding: 24px; background: #fafafa; border-radius: 4px; color: #888; font-style: italic; text-align: center; }
@media (max-width: 600px) {
    .bs-portal-tabs { overflow-x: auto; }
    .bs-portal-tab { flex-shrink: 0; }
}
.bs-data-list dt { font-weight: 600; color: #555; margin-top: 16px; }
.bs-data-list dd { margin-left: 0; margin-bottom: 8px; color: #333; }
.bs-help { color: #888; font-size: 13px; margin-top: 4px; display: block; }
.bs-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.bs-badge--on { background: #c8e6c9; color: #1b5e20; }
.bs-badge--off { background: #ffcdd2; color: #b71c1c; }
.bs-audit-list { list-style: none; padding: 0; }
.bs-audit-list li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.bs-audit-list time { color: #888; font-size: 13px; display: inline-block; min-width: 140px; }
.bs-empty { color: #888; font-style: italic; padding: 24px; text-align: center; background: #fafafa; border-radius: 4px; }
.bs-years-list { list-style: none; padding: 0; margin: 24px 0; }
.bs-years-list li { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-bottom: 1px solid #eee; }
.bs-btn { padding: 10px 20px; background: #622599; color: #fff; text-decoration: none; border-radius: 4px; }
.bs-btn:hover { background: #4d1d77; }

/* Tabela receipts */
.bs-receipts-table { width: 100%; border-collapse: collapse; }
.bs-receipts-table th, .bs-receipts-table td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; }
.bs-receipts-table th { background: #f9f9f9; font-weight: 600; color: #333; }
.bs-receipts-table .bs-num { text-align: right; }
.bs-btn-small { padding: 6px 12px; background: #622599; color: #fff; text-decoration: none; border-radius: 4px; font-size: 13px; }
.bs-btn-small:hover { background: #4d1d77; }

/* a11y: foco visível */
.bs-donor-portal a:focus,
.bs-donor-portal button:focus,
.bs-donor-portal input:focus {
    outline: 3px solid #F49E27;
    outline-offset: 2px;
}

/* Mobile: tabela vira cards */
@media (max-width: 640px) {
    .bs-receipts-table thead { display: none; }
    .bs-receipts-table tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 8px;
    }
    .bs-receipts-table td {
        display: flex;
        justify-content: space-between;
        border: none;
        padding: 6px 8px;
    }
    .bs-receipts-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
    }
    .bs-receipts-table td.bs-num { text-align: right; }
}

/* Sprint 6 — Task 4.1: form edit dados pessoais */
.bs-edit-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    max-width: 560px;
}
.bs-edit-form label {
    font-weight: 600;
    margin-top: 8px;
}
.bs-edit-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}
.bs-edit-form input[readonly] {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}
.bs-edit-form .bs-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}
.bs-edit-form .bs-btn {
    align-self: flex-start;
    margin-top: 16px;
    padding: 12px 24px;
    background: #F49E27;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
.bs-edit-form .bs-btn:hover { filter: brightness(1.05); }
.bs-flash--info {
    padding: 12px 16px;
    background: #e7f3ff;
    border-left: 4px solid #2271b1;
    color: #1d3a5f;
    margin: 16px 0;
    border-radius: 4px;
}
@media (max-width: 640px) {
    .bs-edit-form .bs-row { grid-template-columns: 1fr; }
}

/* Sprint 6 — Task 4.2: checkbox preferências */
.bs-checkbox { display: flex; align-items: center; gap: 8px; font-weight: normal !important; }
.bs-checkbox input { width: auto !important; margin: 0; }

/* Sprint 6 — Task 4.3: botão revogar comunicações */
.bs-btn--warn { background: #d84315; color: #fff; }
.bs-btn--warn:hover { background: #bf360c; }

/* Sprint 6 — Task 4.4: danger zone + modal self-anonimização */
.bs-danger-zone__sep { margin: 32px 0; border: 0; border-top: 1px solid #e0e0e0; }
.bs-danger-zone { background: #ffebee; padding: 16px; border-radius: 6px; border-left: 4px solid #d84315; }
.bs-danger-zone h4 { color: #b71c1c; margin-top: 0; }
.bs-btn--danger { background: #d84315; color: #fff; border: 0; cursor: pointer; }
.bs-btn--danger:hover:not(:disabled) { background: #bf360c; }
.bs-btn--danger:disabled { background: #999; cursor: not-allowed; }
.bs-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.bs-modal[hidden] { display: none !important; }
.bs-modal__backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); }
.bs-modal__panel { position: relative; background: #fff; padding: 32px; border-radius: 8px; max-width: 480px; width: 90%; z-index: 1; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.bs-modal__panel h3 { margin-top: 0; color: #b71c1c; }
.bs-modal__panel ul { color: #555; }
.bs-modal__actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
