.donation-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #f9f9f9;
    border: 2px solid #F5A623;
    border-radius: 16px;
    padding: 0;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}
.donation-tabs { display: flex; background: #f0f0f0; }
.tab-btn {
    flex: 1; padding: 16px; border: none; background: transparent;
    font-size: 18px; font-weight: 600; color: #F5A623; cursor: pointer;
    transition: all 0.3s;
}
.tab-btn.active { background: #ffffff; color: #F5A623; box-shadow: 0 2px 0 #F5A623; }
.amount-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0;
    border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;
}
.amt-btn {
    padding: 14px 8px; border: 1px solid #ddd; border-radius: 0; background: #fff;
    font-size: 16px; font-weight: 600; color: #333; cursor: pointer; transition: all 0.2s;
}
.amt-btn.active { background: #F5A623; color: #fff; border-color: #F5A623; }
.amt-btn:hover { background: #FFF3D6; }
.amt-btn.active:hover { background: #e0941f; }
.custom-amount { padding: 12px 20px; }
.custom-amount input {
    width: 100%; padding: 10px 14px; border: 2px solid #F5A623; border-radius: 8px;
    font-size: 16px; box-sizing: border-box;
}
.selected-amount-text { text-align: center; font-size: 18px; padding: 16px; margin: 0; color: #222; }
.donor-form { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 12px; }
.donor-form input {
    padding: 12px 14px; border: 1px solid #ccc; border-radius: 8px; font-size: 15px;
    transition: border 0.2s;
}
.donor-form input:focus { outline: none; border-color: #F5A623; }
.next-btn {
    width: calc(100% - 40px); margin: 0 20px 16px; padding: 16px; background: #F5A623;
    color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 2px; border: none;
    border-radius: 10px; cursor: pointer; transition: background 0.2s; display: block;
}
.next-btn:hover { background: #e0941f; }
.secure-checkout { text-align: center; padding: 12px; font-size: 13px; color: #666; border-top: 1px solid #eee; }
.hidden { display: none !important; }
@media (max-width: 480px) {
    .amount-grid { grid-template-columns: repeat(2, 1fr); }
    .tab-btn { font-size: 15px; padding: 12px; }
}

/* ==========================================================================
   Donation result pages — success / failed / cancelled / unconfirmed
   ========================================================================== */
.donation-result-card {
    position: relative;
    max-width: 560px;
    margin: 48px auto;
    padding: 44px 36px 30px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #ECECEC;
    box-shadow: 0 12px 34px rgba(26, 43, 95, 0.08);
    text-align: center;
    font-family: 'Nunito', Arial, sans-serif;
    overflow: hidden;
}
.donation-result-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
}
.donation-result-success::before   { background: #2EAD5C; }
.donation-result-failed::before    { background: #E74C3C; }
.donation-result-cancelled::before,
.donation-result-unconfirmed::before { background: #F5A623; }

.result-icon-badge {
    width: 76px; height: 76px;
    margin: 4px auto 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.donation-result-success   .result-icon-badge { background: #E9F9EF; color: #2EAD5C; box-shadow: 0 0 0 6px #F0FBF4; }
.donation-result-failed    .result-icon-badge { background: #FDECEC; color: #E74C3C; box-shadow: 0 0 0 6px #FEF5F5; }
.donation-result-cancelled .result-icon-badge,
.donation-result-unconfirmed .result-icon-badge { background: #FFF3D6; color: #F5A623; box-shadow: 0 0 0 6px #FFF9EA; }

.donation-result-card h2 {
    margin: 0 0 12px;
    color: #1A2B5F;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
}
.result-message {
    font-size: 15.5px;
    color: #555;
    line-height: 1.65;
    margin: 0 auto 22px;
    max-width: 430px;
}

.result-details {
    background: #FAFAFA;
    border: 1px solid #EFEFEF;
    border-radius: 12px;
    padding: 6px 20px;
    margin: 0 0 26px;
    text-align: left;
}
.result-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #EFEFEF;
}
.result-detail-row:last-child { border-bottom: none; }
.result-detail-row .label { font-size: 13.5px; color: #888; font-weight: 600; }
.result-detail-row .value { font-size: 14.5px; color: #1A2B5F; font-weight: 700; text-align: right; word-break: break-word; }

.result-cta {
    display: inline-block;
    padding: 14px 40px;
    background: #F5A623;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.2s, transform 0.15s;
    margin-bottom: 8px;
}
.result-cta:hover { background: #e0941f; transform: translateY(-1px); }

.donation-dev-credit {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #F0F0F0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    font-size: 12.5px;
    color: #9A9A9A;
}
.donation-dev-credit strong { color: #6B6B6B; }
.donation-dev-credit .dev-phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #F5A623;
    font-weight: 700;
    text-decoration: none;
}
.donation-dev-credit .dev-phone:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .donation-result-card { margin: 24px 16px; padding: 34px 22px 24px; }
    .result-detail-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .result-detail-row .value { text-align: left; }
}
