/* ── assets/css/support.css ────────────────────────────────────
   Styles for Support.html — donation page.
   Loaded alongside style.css
   ──────────────────────────────────────────────────────────── */

/* ── Hero section ────────────────────────────────────────────── */
.support-hero {
    max-width: 820px;
    margin: 0 auto 36px auto;
    text-align: center;
    padding: 0 12px;
}

.support-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 900;
    color: var(--on-background);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.support-hero .hero-sub {
    color: var(--on-background-alt);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 24px auto;
}

/* ── Impact metrics strip ─────────────────────────────────────── */
.impact-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 680px;
    margin: 0 auto 36px auto;
}

.impact-card {
    background: var(--on-primary);
    border-radius: 14px;
    padding: 20px 14px;
    text-align: center;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #ff0000, #ff7400) 1;
    transition: transform 0.2s, box-shadow 0.2s;
}

.impact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .impact-card { background: #1e1e1e; }

.impact-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff0000, #ff7400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 2.2rem;
    transition: all 0.4s ease;
}

.impact-num.loading {
    background: rgba(128, 128, 128, 0.2);
    -webkit-text-fill-color: transparent;
    border-radius: 4px;
    animation: shimmer 1.4s infinite;
    background-size: 200% 100%;
    background-image: linear-gradient(
        90deg,
        rgba(128, 128, 128, 0.1) 25%,
        rgba(128, 128, 128, 0.22) 50%,
        rgba(128, 128, 128, 0.1) 75%
    );
}

.impact-lbl {
    display: block;
    font-size: 0.78rem;
    color: var(--on-background-alt);
    margin-top: 3px;
    font-weight: 600;
}

/* ── Progress bar ─────────────────────────────────────────────── */
.goal-progress-wrap {
    max-width: 680px;
    margin: 0 auto 36px auto;
    background: var(--on-primary);
    border-radius: 14px;
    padding: 22px 26px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .goal-progress-wrap { background: #1e1e1e; }

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.goal-title {
    font-weight: 800;
    color: var(--on-background);
    font-size: 0.95rem;
}

.goal-amounts {
    font-size: 0.85rem;
    color: var(--on-background-alt);
}

.goal-amounts strong {
    color: var(--secondary-color);
    font-size: 1rem;
}

.goal-track {
    height: 10px;
    background: rgba(128, 128, 128, 0.18);
    border-radius: 99px;
    overflow: hidden;
}

.goal-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ff7400);
    border-radius: 99px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.goal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--on-background-alt);
}

/* ── Donation form card ───────────────────────────────────────── */
.donation-wrapper {
    max-width: 820px;
    margin: 0 auto 40px auto;
}

.donation-card {
    background: var(--on-primary);
    border-radius: 18px;
    padding: 34px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

[data-theme="dark"] .donation-card { background: #1e1e1e; }

.donation-card h2 {
    color: var(--on-background);
    font-size: 1.15rem;
    margin: 0 0 22px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Frequency toggle ─────────────────────────────────────────── */
.freq-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    background: rgba(128, 128, 128, 0.08);
    border-radius: 10px;
    padding: 5px;
}

.freq-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--on-background-alt);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.freq-btn.active {
    background: linear-gradient(45deg, #ff0000, #ff7400);
    color: #fff;
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.25);
}

/* ── Patron tier cards ───────────────────────────────────────── */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

@media (max-width: 580px) {
    .tier-grid { grid-template-columns: 1fr; }
    .impact-strip { grid-template-columns: 1fr 1fr; }
    .impact-card:last-child { grid-column: 1 / -1; }
}

.tier-medal { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.tier-name  { font-weight: 800; font-size: 0.88rem; color: var(--on-background); margin-bottom: 4px; }
.tier-amount {
    font-size: 1.1rem; font-weight: 900;
    color: var(--secondary-color); display: block; margin-bottom: 5px;
}
.tier-desc { font-size: 0.75rem; color: var(--on-background-alt); line-height: 1.4; }

/* ── Custom amount ────────────────────────────────────────────── */
.custom-amount-wrap { margin-bottom: 22px; }

.custom-amount-wrap label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--on-background);
    display: block;
    margin-bottom: 8px;
}

.custom-amount-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid var(--primary-variant);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.custom-amount-input-wrap:focus-within { border-color: var(--secondary-color); }

.currency-prefix {
    padding: 12px 14px;
    background: rgba(128, 128, 128, 0.08);
    font-weight: 800;
    color: var(--on-background);
    font-size: 1rem;
    border-right: 2px solid var(--primary-variant);
}

.custom-amount-input-wrap input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    background: var(--on-primary);
    color: var(--on-background);
    font-size: 1rem;
    font-weight: 700;
    outline: none;
}

[data-theme="dark"] .custom-amount-input-wrap input { background: #1e1e1e; }

/* ── Donor form ───────────────────────────────────────────────── */
.donor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    margin-bottom: 18px;
}

@media (max-width: 540px) { .donor-grid { grid-template-columns: 1fr; } }

.donor-grid .full { grid-column: 1 / -1; }

.d-group { display: flex; flex-direction: column; gap: 5px; }

.d-group label { font-weight: 700; font-size: 0.88rem; color: var(--on-background); }

.d-group input,
.d-group textarea {
    padding: 11px 13px;
    border: 2px solid var(--primary-variant);
    border-radius: 9px;
    background: var(--on-primary);
    color: var(--on-background);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    width: 100%;
}

[data-theme="dark"] .d-group input,
[data-theme="dark"] .d-group textarea { background: #2a2a2a; }

.d-group input:focus,
.d-group textarea:focus { outline: none; border-color: var(--secondary-color); }

.d-group textarea { resize: vertical; min-height: 80px; }

/* ── Anonymous checkbox ───────────────────────────────────────── */
.anon-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: var(--surface, #f9f9f9);
    border-radius: 9px;
    border: 1.5px solid var(--border-color, #ddd);
    cursor: pointer;
}

[data-theme="dark"] .anon-row { background: #2a2a2a; }

.anon-row input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--secondary-color);
    cursor: pointer; flex-shrink: 0;
}

.anon-row span { font-size: 0.9rem; color: var(--on-background); }

/* ── Trust badges ─────────────────────────────────────────────── */
.trust-strip {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 22px;
    padding: 16px;
    background: rgba(128, 128, 128, 0.04);
    border-radius: 10px;
    border: 1.5px solid var(--border-color, #ddd);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--on-background-alt);
    font-weight: 600;
}

.trust-badge i { color: #28a745; font-size: 1rem; }

/* ── Donate button ────────────────────────────────────────────── */
.btn-donate {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff0000, #ff7400, #ff1100);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(255, 0, 0, 0.3);
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    letter-spacing: 0.01em;
}

.btn-donate:hover { box-shadow: 0 8px 28px rgba(255, 0, 0, 0.45); transform: translateY(-2px); }
.btn-donate:active { transform: translateY(0); }
.btn-donate:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Donation summary line ────────────────────────────────────── */
.donation-summary {
    text-align: center;
    font-size: 0.88rem;
    color: var(--on-background-alt);
    margin-bottom: 16px;
    min-height: 20px;
}

.donation-summary strong { color: var(--secondary-color); }

/* ── Field errors ─────────────────────────────────────────────── */
.field-error { color: #dc3545; font-size: 0.78rem; margin-top: 3px; display: none; }
.field-error.visible { display: block; }

/* ── Feedback banner ──────────────────────────────────────────── */
.donation-feedback {
    display: none;
    border-radius: 12px;
    padding: 20px 22px;
    text-align: center;
    margin-bottom: 20px;
}

.donation-feedback.success {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid rgba(40, 167, 69, 0.35);
    color: #28a745;
}

.donation-feedback.error {
    background: rgba(220, 53, 69, 0.09);
    border: 2px solid rgba(220, 53, 69, 0.35);
    color: #dc3545;
}

.donation-feedback .fb-icon  { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.donation-feedback .fb-title { font-size: 1.1rem; font-weight: 800; display: block; margin-bottom: 6px; }
.donation-feedback .fb-msg   { font-size: 0.9rem; opacity: 0.85; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

@media (max-width: 720px) {
    .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
    background: var(--on-primary);
    border-radius: 13px;
    padding: 20px 18px 20px 22px;       /* extra left padding for the accent border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    text-align: left;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    border: 1.5px solid var(--border-color, #ddd);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .why-card { background: #1e1e1e; }

/* Thin gradient accent border on the left edge */
.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ff0000, #ff7400);
    opacity: 0.85;
    transition: width 0.25s ease, opacity 0.25s ease;
}

.why-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 116, 0, 0.3);
}

.why-card:hover::before {
    width: 6px;
    opacity: 1;
}

.why-card:hover .why-icon-wrap {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.18), rgba(255, 116, 0, 0.22));
    transform: scale(1.05);
}

.why-card:hover .why-fa-icon {
    color: #ff5500;
}

/* Smooth icon wrap transitions (the static styles are defined in style.css) */
.why-icon-wrap {
    transition: background 0.25s ease, transform 0.25s ease;
}

.why-fa-icon {
    transition: color 0.25s ease;
}

.why-icon  { font-size: 1.5rem; flex-shrink: 0; }
.why-title { font-weight: 800; font-size: 0.9rem; color: var(--on-background); margin-bottom: 4px; }
.why-text  { font-size: 0.82rem; color: var(--on-background-alt); line-height: 1.55; }

/* ── Honour Board ─────────────────────────────────────────────── */
.honour-board {
    max-width: 820px;
    margin: 0 auto 40px auto;
    background: var(--on-primary);
    border-radius: 18px;
    padding: 30px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .honour-board { background: #1e1e1e; }

.honour-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.honour-board-header h2 {
    margin: 0;
    color: var(--on-background);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 9px;
}

/* Period toggle tabs */
.period-tabs {
    display: flex;
    gap: 6px;
    background: rgba(128, 128, 128, 0.08);
    border-radius: 8px;
    padding: 4px;
}

.period-tab {
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--on-background-alt);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.period-tab.active {
    background: linear-gradient(45deg, #ff0000, #ff7400);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.25);
}

/* Donor list */
.donor-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donor-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(128, 128, 128, 0.04);
    border: 1.5px solid var(--border-color, #eee);
    transition: box-shadow 0.2s, transform 0.2s;
    animation: fadeUp 0.35s ease both;
}

[data-theme="dark"] .donor-row {
    background: #2a2a2a;
    border-color: #333;
}

.donor-row:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateX(2px);
}

/* Top 3 special styles */
.donor-row.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 165, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.4);
}

.donor-row.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.08), rgba(128, 128, 128, 0.04));
    border-color: rgba(192, 192, 192, 0.4);
}

.donor-row.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.08), rgba(180, 100, 30, 0.04));
    border-color: rgba(205, 127, 50, 0.4);
}

.donor-rank {
    font-size: 1.2rem;
    font-weight: 900;
    min-width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.donor-rank.num {
    font-size: 0.85rem;
    color: var(--on-background-alt);
}

.donor-info { flex: 1; min-width: 0; }

.donor-name {
    font-weight: 700;
    font-size: 0.93rem;
    color: var(--on-background);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.donor-meta {
    font-size: 0.75rem;
    color: var(--on-background-alt);
    margin-top: 2px;
}

.donor-message {
    font-size: 0.78rem;
    color: var(--on-background-alt);
    font-style: italic;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.donor-amount {
    font-weight: 900;
    font-size: 0.98rem;
    color: var(--secondary-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.donor-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 800;
    flex-shrink: 0;
}

.badge-gold   { background: rgba(255, 215, 0, 0.2);  color: #b8860b; }
.badge-silver { background: rgba(192, 192, 192, 0.25); color: #708090; }
.badge-bronze { background: rgba(205, 127, 50, 0.2); color: #cd7f32; }
.badge-custom { background: rgba(255, 83, 83, 0.12); color: var(--secondary-color); }

/* Empty / loading states */
.board-loading {
    text-align: center;
    padding: 32px;
    color: var(--on-background-alt);
    font-size: 0.9rem;
}

.board-empty {
    text-align: center;
    padding: 32px;
    color: var(--on-background-alt);
    font-size: 0.9rem;
    font-style: italic;
}

/* Donor skeleton */
.donor-skeleton {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(128, 128, 128, 0.04);
    border: 1.5px solid var(--border-color, #eee);
    animation: shimmer 1.4s infinite;
}

.donor-skeleton .sk-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.18);
    flex-shrink: 0;
}

.donor-skeleton .sk-lines { flex: 1; }

.donor-skeleton .sk-line {
    height: 10px;
    border-radius: 6px;
    background: rgba(128, 128, 128, 0.18);
    margin-bottom: 6px;
}

.donor-skeleton .sk-line:last-child { width: 60%; margin-bottom: 0; }

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* "Be the first" CTA in empty board */
.board-cta {
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--secondary-color);
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    text-decoration: underline;
}

/* Toast */
#toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #222;
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 0.93rem;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

#toast.show    { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.success { background: linear-gradient(90deg, #28a745, #20c05c); }
#toast.error   { background: linear-gradient(90deg, #dc3545, #ff4757); }

/* Responsive */
@media (max-width: 540px) {
    .honour-board { padding: 22px 16px; }
    .honour-board-header { flex-direction: column; align-items: flex-start; }
    .donor-message { display: none; }
}

/* ── Tier cards — replace emoji medal with styled text label ──────────────── */
.tier-medal {
    display: none;
}

.tier-medal-label {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: rgba(205, 127, 50, 0.15);
    color: #a0692a;
    border: 1.5px solid rgba(205, 127, 50, 0.35);
}

.tier-silver-label {
    background: rgba(160, 160, 160, 0.15);
    color: #606060;
    border-color: rgba(160, 160, 160, 0.4);
}

.tier-gold-label {
    background: rgba(185, 148, 0, 0.12);
    color: #8a6d00;
    border-color: rgba(185, 148, 0, 0.35);
}

/* ── Why cards — FontAwesome icon instead of emoji ────────────────────────── */
.why-icon-wrap {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255,0,0,0.08), rgba(255,116,0,0.10));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-fa-icon {
    font-size: 1.1rem;
    color: #ff7400;
}

/* ── Rank labels (text instead of medal emojis) ───────────────────────────── */
.rank-gold   { font-weight: 900; color: #b8860b; font-size: 0.9rem; }
.rank-silver { font-weight: 900; color: #708090; font-size: 0.9rem; }
.rank-bronze { font-weight: 900; color: #cd7f32; font-size: 0.9rem; }

/* ══════════════════════════════════════════════════════════════ */
/* SELF-SERVICE CANCELLATION UI                                   */
/* ══════════════════════════════════════════════════════════════ */

/* ── Cancel subscription card heading ────────────────────────── */
#cancel-section h2 {
    color: var(--on-background);
    border-bottom: 1.5px solid var(--border-color, #ddd);
    padding-bottom: 16px;
    margin-bottom: 0;
}

/* ── Email + button row ───────────────────────────────────────── */
.cancel-input-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cancel-input-row .d-group {
    flex: 1;
    min-width: 220px;
}

/* ── Cancel subscription button ───────────────────────────────── */
.btn-cancel-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    background: transparent;
    color: var(--on-background-alt);
    border: 2px solid var(--border-color, #ddd);
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
    /* Vertically aligns with the input field */
    height: 46px;
    flex-shrink: 0;
}

.btn-cancel-sub:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.06);
}

.btn-cancel-sub:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-cancel-sub .fa {
    font-size: 0.9rem;
}

/* ── Feedback states ──────────────────────────────────────────── */
.cancel-feedback {
    border-radius: 12px;
    padding: 22px 24px;
    margin-top: 18px;
    text-align: center;
    animation: fadeUp 0.3s ease both;
}

/* Success */
.cancel-feedback--success {
    background: rgba(40, 167, 69, 0.08);
    border: 2px solid rgba(40, 167, 69, 0.35);
    color: #28a745;
}

.cancel-success-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    display: block;
}

.cancel-success-icon .fa {
    color: #28a745;
}

.cancel-success-title {
    font-size: 1.1rem;
    font-weight: 800;
    display: block;
    margin-bottom: 6px;
    color: #28a745;
}

.cancel-success-body {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
    color: #28a745;
}

/* Not found */
.cancel-feedback--notfound {
    background: rgba(255, 193, 7, 0.08);
    border: 2px solid rgba(255, 193, 7, 0.4);
    color: #856404;
}

[data-theme="dark"] .cancel-feedback--notfound { color: #ffc107; }

.cancel-not-found-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.cancel-not-found-icon .fa {
    color: #856404;
}

[data-theme="dark"] .cancel-not-found-icon .fa { color: #ffc107; }

.cancel-not-found-title {
    font-size: 1.05rem;
    font-weight: 800;
    display: block;
    margin-bottom: 6px;
}

.cancel-not-found-body {
    font-size: 0.88rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Error */
.cancel-feedback--error {
    background: rgba(220, 53, 69, 0.07);
    border: 2px solid rgba(220, 53, 69, 0.35);
    color: #dc3545;
}

.cancel-error-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.cancel-error-icon .fa {
    color: #dc3545;
}

.cancel-error-title {
    font-size: 1.05rem;
    font-weight: 800;
    display: block;
    margin-bottom: 6px;
    color: #dc3545;
}

.cancel-error-body {
    font-size: 0.88rem;
    line-height: 1.6;
    opacity: 0.9;
}

@media (max-width: 560px) {
    .cancel-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cancel-input-row .d-group {
        min-width: 0;
    }

    .btn-cancel-sub {
        width: 100%;
        height: auto;
        padding: 12px 20px;
    }
}

/* ── Monthly info note ────────────────────────────────────────── */
#monthly-note {
    transition: opacity 0.25s;
}

/* ── Tier badge overrides ─────────────────────────────────────── */
.badge-gold   { background: rgba(185, 148, 0, 0.12);  color: #8a6d00;  border: 1px solid rgba(185,148,0,0.25); }
.badge-silver { background: rgba(160, 160, 160, 0.15); color: #606060;  border: 1px solid rgba(160,160,160,0.3); }
.badge-bronze { background: rgba(160, 100, 30, 0.12);  color: #a0692a;  border: 1px solid rgba(160,100,30,0.25); }
.badge-custom { background: rgba(255, 83, 83, 0.10);   color: var(--secondary-color); border: 1px solid rgba(255,83,83,0.2); }

/* ══════════════════════════════════════════════════════════════ */
/* MONTHLY TIER BENEFITS SECTION                                  */
/* ══════════════════════════════════════════════════════════════ */

.tier-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tier-benefits-card {
    background: var(--on-primary);
    border: 2px solid var(--border-color, #ddd);
    border-radius: 14px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

[data-theme="dark"] .tier-benefits-card { background: #2a2a2a; }

.tier-benefits-card:hover:not(.selected) {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

/* "Popular" styling — kept for future use but currently hidden.
/*
.tier-benefits-popular {
    border-color: #ff7400;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.03), rgba(255, 116, 0, 0.04));
    box-shadow: 0 4px 18px rgba(255, 116, 0, 0.12);
}

.tier-benefits-popular::before {
    content: 'POPULAR';
    position: absolute;
    top: -10px;
    right: 16px;
    background: linear-gradient(45deg, #ff0000, #ff7400);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}
*/

.tier-benefits-amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--on-background);
    margin: 8px 0 14px 0;
    line-height: 1;
}

.tier-benefits-period {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--on-background-alt);
    margin-left: 2px;
}

.tier-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.tier-benefits-list li {
    font-size: 0.85rem;
    color: var(--on-background);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tier-benefits-list li .fa {
    color: #28a745;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.tier-benefits-list li.tier-custom-placeholder {
    color: var(--on-background-alt);
    font-style: italic;
    opacity: 0.7;
}

.tier-benefits-list li.tier-custom-placeholder .fa {
    color: var(--on-background-alt);
}

@media (max-width: 720px) {
    .tier-benefits-grid {
        grid-template-columns: 1fr;
    }
    .tier-benefits-popular::before {
        right: 12px;
    }
}

/* Clickable + selected state for tier-benefits-card */
.tier-benefits-card {
    cursor: pointer;
}

.tier-benefits-card:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 83, 83, 0.18);
}


.tier-benefits-card.selected {
    border-color: #ff7400;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.03), rgba(255, 116, 0, 0.04));
    box-shadow: 0 6px 22px rgba(255, 116, 0, 0.18);
    transform: translateY(-4px) scale(1.02);
}

.tier-benefits-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    background: linear-gradient(45deg, #ff0000, #ff7400);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 24px;
}

/* ── Action CTA card (Donate + Cancel buttons in one card) ───── */
.cta-button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-button-row .btn-donate {
    flex: 2;
    min-width: 200px;
    /* Inherits all .btn-donate styling */
}

.cta-button-row .btn-cancel-sub {
    flex: 1;
    min-width: 180px;
    height: auto;        /* override the fixed 46px height */
    padding: 15px;       /* match .btn-donate vertical size */
}

@media (max-width: 540px) {
    .cta-button-row {
        flex-direction: column;
    }
    .cta-button-row .btn-donate,
    .cta-button-row .btn-cancel-sub {
        flex: none;
        width: 100%;
    }
}

/* ── Unified Back button (used in both donate + cancel forms) ── */
.btn-form-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 14px;
    background: transparent;
    color: var(--on-background-alt);
    border: 1.5px solid var(--border-color, #ddd);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-form-back:hover {
    border-color: var(--on-background);
    color: var(--on-background);
    background: rgba(128, 128, 128, 0.05);
}