/* Donation flow UX — mobile-first progressive disclosure */

.donate-summaries {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}
.donate-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: var(--gri-white);
    border: 1px solid rgba(10, 74, 61, 0.1);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(20, 53, 46, 0.04);
}
.donate-summary-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.donate-summary-card__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gri-muted);
}
.donate-summary-card__value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gri-charcoal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.donate-summary-card__edit {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.25rem 0.35rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.donate-step.completed { display: none !important; }
.donate-step.active { animation: donateStepIn 0.35s ease; }

@keyframes donateStepIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.donate-step__title {
    font-family: var(--gri-font-display);
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}
.donate-step__lead {
    color: var(--gri-muted);
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.donate-select-card { transition: transform 0.2s, box-shadow 0.2s; }
.donate-select-card:active { transform: scale(0.985); }

.donate-step-actions { margin-top: 1.5rem; }
.donate-step-actions--desktop { display: flex; }

.gri-donate-tiers--coins {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.45rem;
    margin-bottom: 1rem;
}
.donate-coin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.55rem 0.35rem !important;
    min-height: 0;
}
.donate-coin-card.selected {
    border-color: var(--accent-gold);
    background: rgba(201, 160, 58, 0.06);
}
.donate-coin-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}
.donate-coin-logo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(10, 74, 61, 0.08);
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1;
}
.donate-coin-card__name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gri-charcoal);
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.donate-coin-card__network {
    font-size: 0.62rem;
    color: var(--gri-muted);
    line-height: 1.2;
    text-align: center;
}

.donate-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.donate-modal[hidden] { display: none !important; }
.donate-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 36, 0.55);
    backdrop-filter: blur(2px);
}
.donate-modal__sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--gri-white);
    border-radius: 16px 16px 0 0;
    padding: 1.35rem 1.25rem 1.5rem;
    box-shadow: 0 -8px 40px rgba(20, 53, 46, 0.18);
    animation: donateModalUp 0.32s ease;
}
@keyframes donateModalUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.donate-modal__title {
    font-family: var(--gri-font-display);
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
}
.donate-modal__message {
    margin: 0 0 1rem;
    color: var(--gri-muted);
    font-size: 0.9rem;
}
.donate-modal__project { margin-bottom: 1.25rem; }
.donate-modal__img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}
.donate-modal__project-name {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-family: var(--gri-font-display);
}
.donate-modal__project-desc {
    margin: 0;
    font-size: 0.88rem;
    color: var(--gri-muted);
    line-height: 1.5;
}
.donate-modal__actions {
    display: flex;
    gap: 0.65rem;
}
.donate-modal__actions .gri-btn { flex: 1; justify-content: center; }
body.donate-modal-open { overflow: hidden; }

.donate-progress__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(0,0,0,0.06);
}
.donate-progress__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.donate-progress__item.active .donate-progress__num {
    background: rgba(255,255,255,0.22);
    color: white;
}

@media (max-width: 768px) {
    .donate-step-actions--desktop { display: none; }
    .donate-progress__text { display: none; }
    .donate-progress { position: sticky; top: 0; z-index: 40; background: var(--gri-bg); padding: 0.65rem 0; }
}

@media (min-width: 769px) {
    .donate-modal { align-items: center; padding: 1rem; }
    .donate-modal__sheet { border-radius: 16px; max-width: 420px; animation: donateModalFade 0.25s ease; }
}
@keyframes donateModalFade {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
