/* ═══════════════════════════════════════════════════════
   Donation page styles (donation-index, donation-details)
   Loaded only on /d/ routes via @push('styles')
   v2 Redesign — team color theming via CSS variables
   ═══════════════════════════════════════════════════════ */

/* ─── Base tokens ─── */
:root {
    --sb-bg: #f7f6f3;
    --sb-card: #ffffff;
    --sb-text: #0f172a;
    --sb-text2: #475569;
    --sb-text3: #94a3b8;
    --sb-border: #e2e8f0;
    --sb-border-light: #f1f5f9;
}

/* ─── Page background (warmer than v1) ─── */
.v2-donation-bg {
    background-color: var(--sb-bg) !important;
}


/* ═══════════════════════════════════════════════════════
   Student photo with glow ring (shared with storefront)
   ═══════════════════════════════════════════════════════ */
.student-photo-ring {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--team-pri), var(--team-dark));
    padding: 4px;
    display: inline-flex;
    flex-shrink: 0;
    box-sizing: border-box;
}
.student-photo-ring-inner {
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    display: flex;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
.student-photo-ring-inner img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}
.student-photo-ring--xl {
    width: 180px;
    height: 180px;
}
.student-photo-ring--md {
    width: 72px;
    height: 72px;
}
@media (max-width: 991px) {
    .student-photo-ring--xl {
        /* Match the product participant page's larger mobile profile image (was 140px). */
        width: 260px;
        height: 260px;
    }
    .student-photo-ring--md {
        width: 56px;
        height: 56px;
    }
}

/* v2 glow effect on photo ring */
.v2-student-photo-ring {
    box-shadow: 0 0 30px 4px var(--team-glow), 0 0 60px 8px rgba(var(--team-glow), 0.1);
}


/* ═══════════════════════════════════════════════════════
   V2 Hero Banner
   ═══════════════════════════════════════════════════════ */
.v2-hero-banner {
    background: linear-gradient(160deg, #080c16 0%, #111827 50%, #0f1623 100%);
    padding: 48px 0 56px;
    position: relative;
    overflow: hidden;
}
@media (max-width: 991px) {
    .v2-hero-banner {
        padding: 32px 16px 40px;
    }
}

/* Decorative radial glows */
.v2-hero-glow-primary {
    position: absolute;
    top: -20%;
    left: 18%;
    transform: translate(-50%, 0);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--team-glow) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}
.v2-hero-glow-secondary {
    position: absolute;
    bottom: -30%;
    right: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,0,0,0.06) 0%, transparent 70%);
    pointer-events: none;
}
@media (max-width: 991px) {
    .v2-hero-glow-primary {
        top: -10%;
        left: 50%;
        width: 400px;
        height: 400px;
    }
}

.v2-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}
@media (max-width: 991px) {
    .v2-hero-inner {
        padding: 0;
    }
}

.v2-hero-layout {
    display: flex;
    align-items: flex-start;
    gap: 44px;
}
@media (max-width: 991px) {
    .v2-hero-layout {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
}

/* Photo column */
.v2-hero-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.v2-hero-photo-name {
    margin-top: 14px;
    text-align: center;
}
.v2-hero-photo-name-text {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
}
@media (max-width: 991px) {
    .v2-hero-photo-name-text {
        font-size: 17px;
    }
}
.v2-hero-photo-team {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-top: 3px;
}

/* Info column */
.v2-hero-info {
    flex: 1;
    min-width: 0;
}
@media (max-width: 991px) {
    .v2-hero-info {
        text-align: center;
        width: 100%;
    }
}

/* Days left badge */
.v2-hero-days-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    padding: 5px 14px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

.v2-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
@media (max-width: 991px) {
    .v2-hero-title {
        font-size: 28px;
    }
}
.v2-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}
@media (max-width: 991px) {
    .v2-hero-meta {
        justify-content: center;
    }
}
.v2-hero-meta-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.v2-hero-meta-dot {
    color: rgba(255,255,255,0.2);
}
.v2-hero-story {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 0 0 28px;
    max-width: 520px;
}
@media (max-width: 991px) {
    .v2-hero-story {
        max-width: 100%;
    }
}

/* Progress bar (inside hero) */
.v2-hero-progress {
    margin-bottom: 28px;
    max-width: 500px;
}
@media (max-width: 991px) {
    .v2-hero-progress {
        max-width: 100%;
    }
}
.v2-hero-progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
@media (max-width: 991px) {
    .v2-hero-progress-header {
        justify-content: center;
    }
}
.v2-hero-progress-raised {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
@media (max-width: 991px) {
    .v2-hero-progress-raised {
        font-size: 32px;
    }
}
.v2-hero-progress-label {
    font-size: 15px;
    color: rgba(255,255,255,0.4);
    align-self: flex-end;
    padding-bottom: 4px;
}
.v2-hero-progress-goal {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 10px;
}
@media (max-width: 991px) {
    .v2-hero-progress-goal {
        text-align: center;
    }
}
.v2-hero-progress-bar {
    height: 10px;
    border-radius: 5px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
.v2-hero-progress-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--team-pri), var(--team-dark));
    width: 0%;
    transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 16px var(--team-glow), 0 2px 4px var(--team-glow);
}
.v2-hero-progress-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* CTA buttons */
.v2-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
@media (max-width: 991px) {
    .v2-hero-actions {
        justify-content: center;
    }
}
.v2-hero-btn-primary {
    height: 48px;
    padding: 0 28px;
    border-radius: 12px;
    border: none;
    background: var(--team-pri);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 20px var(--team-glow);
    transition: background 0.15s ease;
}
.v2-hero-btn-primary:hover {
    background: var(--team-dark);
    color: #fff;
}
.v2-hero-btn-share {
    height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: border-color 0.15s ease;
}
.v2-hero-btn-share:hover {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
}


/* ═══════════════════════════════════════════════════════
   V2 Activity Strip
   ═══════════════════════════════════════════════════════ */
.v2-activity-strip {
    background: var(--team-light);
    border-bottom: 1px solid var(--team-border);
    padding: 10px 24px;
}
@media (max-width: 991px) {
    .v2-activity-strip {
        padding: 10px 16px;
    }
}
.v2-activity-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--team-dark);
    flex-wrap: wrap;
}
@media (max-width: 991px) {
    .v2-activity-strip-inner {
        justify-content: center;
    }
}
.v2-activity-strip-dot {
    color: var(--team-pri);
    opacity: 0.5;
}
.v2-activity-strip-latest {
    font-weight: 500;
    opacity: 0.7;
}


/* ═══════════════════════════════════════════════════════
   V2 Main Content Layout
   ═══════════════════════════════════════════════════════ */
.v2-content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 100px;
}
@media (max-width: 991px) {
    .v2-content-area {
        padding: 20px 16px 100px;
    }
}
.v2-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
}
@media (max-width: 991px) {
    .v2-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.v2-main-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}
@media (max-width: 991px) {
    .v2-main-col {
        gap: 20px;
    }
}
.v2-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (min-width: 992px) {
    .v2-sidebar-col {
        position: sticky;
        top: 24px;
        align-self: flex-start;
    }
}

/* Mobile social proof row */
.v2-social-proof-row {
    display: none;
}
@media (max-width: 991px) {
    .v2-social-proof-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}
.v2-social-proof-card {
    background: var(--sb-card);
    border-radius: 16px;
    border: 1px solid var(--sb-border);
    padding: 16px;
    text-align: center;
}
.v2-social-proof-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--sb-text);
    margin-top: 6px;
}
.v2-social-proof-meta {
    font-size: 12px;
    color: var(--sb-text3);
    margin-top: 2px;
}


/* ═══════════════════════════════════════════════════════
   Donation pages — Complete Payment button
   ═══════════════════════════════════════════════════════ */
.donation-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    background: var(--team-pri);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 12px var(--team-glow);
    transition: background 0.15s ease;
}
.donation-pay-btn:hover:not(:disabled) {
    background: var(--team-dark);
    color: #ffffff;
}
.donation-pay-btn:disabled {
    opacity: 0.7;
    color: #ffffff;
}

/* Donation pages — card brand pills */
.donation-card-brand {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}
/* Brand-color the card names so they're recognizable / easy to read (was tiny light gray). */
.donation-card-brand.brand-visa { color: #1434CB; }
.donation-card-brand.brand-mc { color: #EB001B; }
.donation-card-brand.brand-amex { color: #006FCF; }
.donation-card-brand.brand-discover { color: #FF6000; }


/* ═══════════════════════════════════════════════════════
   Form card
   ═══════════════════════════════════════════════════════ */
.donation-form-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--sb-border);
    overflow: hidden;
}
.donation-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f1f4;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}
@media (max-width: 991px) {
    .donation-form-header {
        padding: 14px 16px;
    }
}
/* Team-colored icon badge in form header */
.donation-form-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--team-pri);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.donation-form-body {
    padding: 24px;
}
@media (max-width: 991px) {
    .donation-form-body {
        padding: 16px;
    }
}

/* Section heading inside form */
.donation-section-heading {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
}


/* ═══════════════════════════════════════════════════════
   Donation chips (3-column grid, team-color selected)
   ═══════════════════════════════════════════════════════ */
.donation-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
/* Radio-based chip (for existing markup) */
.donation-chip-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.donation-chip-label {
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.donation-chip-label:hover {
    border-color: #cbd5e1;
}
.donation-chip-radio:checked + .donation-chip-label {
    border-color: var(--team-pri);
    background: var(--team-pri);
    color: #fff;
}


/* ═══════════════════════════════════════════════════════
   Custom amount input
   ═══════════════════════════════════════════════════════ */
.donation-amount-wrap {
    margin-bottom: 16px;
}
.donation-amount-field {
    position: relative;
}
.donation-amount-field .donation-dollar-sign {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 600;
    color: #a1a5b7;
    pointer-events: none;
    z-index: 1;
}
.donation-amount-input {
    width: 100%;
    height: 46px;
    padding: 0 12px 0 30px;
    font-size: 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s ease;
}
.donation-amount-input:focus {
    border-color: var(--team-pri);
    box-shadow: 0 0 0 3px var(--team-glow);
}


/* ═══════════════════════════════════════════════════════
   Form fields
   ═══════════════════════════════════════════════════════ */
.donation-field-label {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 5px;
    display: block;
}
.donation-field-label .required {
    color: #f1416c;
}
.donation-field-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s ease;
}
.donation-field-input:focus {
    border-color: var(--team-pri);
    box-shadow: 0 0 0 3px var(--team-glow);
}
.input-group .donation-field-input {
    width: auto;
    flex: 1 1 0%;
    min-width: 0;
}

/* Phone field: country-code (select2) + number as one cohesive 44px line */
.donation-phone {
    flex-wrap: nowrap;
    height: 44px;
}
.donation-phone .number-select {
    height: 44px;
    border: 1.5px solid #e2e8f0;
    border-right: 1.5px solid #e2e8f0;
    border-radius: 10px 0 0 10px;
    background: #f8fafc;
    padding: 0;
}
.donation-phone .donation-field-input {
    height: 44px;
    border-left: 0;
    border-radius: 0 10px 10px 0;
}
.donation-phone:focus-within .number-select,
.donation-phone:focus-within .donation-field-input {
    border-color: var(--team-pri);
}
/* Make the select2 control fill the 44px line, borderless, flush inside the prefix box */
.donation-phone .select2-container { width: auto !important; }
.donation-phone .select2-container--default .select2-selection--single {
    height: 44px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    padding-left: 8px;
}
.donation-phone .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.2;
    padding: 0 22px 0 4px;
    color: #0f172a;
}
.donation-phone .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    right: 0;
    height: auto;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}
.donation-phone .select2-container--default .select2-selection--single .select2-selection__arrow:after {
    margin-left: 0;
}

/* Info icon + CSS tooltip (no JS; hover on desktop, tap/focus on mobile) */
.donation-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    color: var(--team-pri);
    cursor: pointer;
    vertical-align: middle;
}
.donation-info svg { width: 14px; height: 14px; }
.donation-info .donation-info-text {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 30;
    width: 230px;
    max-width: 70vw;
    background: #0f172a;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    padding: 8px 10px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
}
.donation-info:hover .donation-info-text,
.donation-info:focus .donation-info-text,
.donation-info:focus-within .donation-info-text {
    opacity: 1;
    visibility: visible;
}


/* ═══════════════════════════════════════════════════════
   Tip section
   ═══════════════════════════════════════════════════════ */
.donation-tip-card {
    background: var(--team-light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.donation-tip-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--team-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.donation-tip-text {
    flex: 1;
    min-width: 140px;
}
.donation-tip-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 2px;
}
.donation-tip-text p {
    font-size: 12px;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}


/* ═══════════════════════════════════════════════════════
   Summary section
   ═══════════════════════════════════════════════════════ */
.donation-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
}
.donation-summary-heading {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.donation-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: #475569;
}
.donation-summary-total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
    padding-top: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}


/* ═══════════════════════════════════════════════════════
   Terms
   ═══════════════════════════════════════════════════════ */
.donation-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}
.donation-terms a {
    color: var(--team-pri);
    font-weight: 500;
}


/* ═══════════════════════════════════════════════════════
   Athon specific
   ═══════════════════════════════════════════════════════ */
.donation-athon-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--team-light);
    color: var(--team-dark);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}
.donation-athon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
@media (max-width: 767px) {
    .donation-athon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.donation-athon-rate-card {
    height: 56px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.15s ease;
    position: relative;
}
.donation-athon-rate-card:hover {
    border-color: #cbd5e1;
}
.donation-athon-rate-card.active,
.donation-athon-radio:checked + .donation-athon-rate-card {
    border-color: var(--team-pri);
    background: var(--team-light);
}
.donation-athon-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.donation-athon-rate {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}
.donation-athon-radio:checked + .donation-athon-rate-card .donation-athon-rate {
    color: var(--team-dark);
}
.donation-athon-rate-total {
    font-size: 11px;
    color: #94a3b8;
}
.donation-athon-radio:checked + .donation-athon-rate-card .donation-athon-rate-total {
    color: var(--team-dark);
}
.donation-athon-total {
    background: var(--team-light);
    border: 1px solid var(--team-border);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}
.donation-athon-total-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--team-dark);
}
.donation-athon-total-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--team-dark);
}


/* ═══════════════════════════════════════════════════════
   Calendar specific
   ═══════════════════════════════════════════════════════ */
/* Calendar day selected state — team color */
.cal-day-available input:checked + .cal-amount {
    background: var(--team-pri) !important;
}
.cal-day-available input:checked + .cal-amount .cal-day-price {
    color: #fff !important;
}

/* Days selected bar — team colors */
.cal-days-selected-bar {
    background: var(--team-light);
    border: 1px solid var(--team-border);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    display: none;
}
.cal-days-selected-bar.visible {
    display: flex;
}
.cal-days-selected-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--team-dark);
}
.cal-days-selected-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--team-dark);
}


/* ═══════════════════════════════════════════════════════
   Sidebar cards
   ═══════════════════════════════════════════════════════ */
.donation-sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--sb-border);
    padding: 20px;
}
@media (max-width: 991px) {
    .donation-sidebar-card {
        padding: 16px;
    }
}
.donation-sidebar-heading {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 14px;
}
.donation-sidebar-count {
    font-size: 12px;
    font-weight: 600;
    background: var(--team-light);
    color: var(--team-dark);
    padding: 2px 10px;
    border-radius: 100px;
}

/* Top supporter */
.donation-top-supporter {
    text-align: center;
}
.donation-top-supporter-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.donation-top-supporter-meta {
    font-size: 13px;
    color: #94a3b8;
}
.donation-top-supporter-star {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff8dd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* Supporter list item */
.donation-supporter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.donation-supporter-item:last-child {
    border-bottom: none;
}
.donation-supporter-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--team-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--team-pri);
}
.donation-supporter-info {
    flex: 1;
    min-width: 0;
}
.donation-supporter-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}
.donation-supporter-time {
    font-size: 11px;
    color: #94a3b8;
}
.donation-supporter-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--team-pri);
    flex-shrink: 0;
}

/* Share buttons */
.donation-share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.donation-share-btn {
    min-width: 0;
    height: 52px;
    padding: 0 10px;
    border: 1px solid var(--sb-border);
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: border-color 0.15s ease;
}
.donation-share-btn svg {
    flex-shrink: 0;
}
.donation-share-btn:hover {
    border-color: #cbd5e1;
    color: #1e293b;
}
/* Brand-color the share icons (svg uses currentColor; overrides the dark button color for the
   icon only, labels stay dark) so they're instantly recognizable. */
.donation-share-btn.share-email svg { color: #EA4335; }
.donation-share-btn.share-facebook svg { color: #1877F2; }
.donation-share-btn.share-whatsapp svg { color: #25D366; }
.donation-share-btn.share-x svg { color: #000000; }


/* ═══════════════════════════════════════════════════════
   Sticky CTA bar
   ═══════════════════════════════════════════════════════ */
.donation-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--sb-border);
    padding: 12px 24px;
    transform: translateY(100%);
    transition: transform 0.25s ease;
}
.donation-sticky-cta.visible {
    transform: translateY(0);
}
@media (max-width: 767px) {
    .donation-sticky-cta {
        padding: 10px 16px;
    }
}
.donation-sticky-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.donation-sticky-cta-total {
    display: flex;
    flex-direction: column;
}
.donation-sticky-cta-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}
.donation-sticky-cta-amount {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}
.donation-sticky-cta-btn {
    height: 48px;
    padding: 0 32px;
    border-radius: 12px;
    border: none;
    background: var(--team-pri);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 12px var(--team-glow);
    transition: background 0.15s ease;
}
.donation-sticky-cta-btn:hover {
    background: var(--team-dark);
}


/* ═══════════════════════════════════════════════════════════
   DONATION CONFIRMATION PAGE
   ═══════════════════════════════════════════════════════════ */

/* Layout */
.donation-confirm-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 32px 48px;
}
.donation-confirm-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
.donation-confirm-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.donation-confirm-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hero Card */
.donation-confirm-hero {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.donation-confirm-banner {
    height: 100px;
    background: linear-gradient(135deg, var(--team-pri, #0d9488), var(--team-dark, #0f766e));
    position: relative;
}
.donation-confirm-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: radial-gradient(circle at 20% 50%, #fff 1px, transparent 1px),
                      radial-gradient(circle at 80% 30%, #fff 1px, transparent 1px);
    background-size: 40px 40px;
}
.donation-confirm-hero-body {
    padding: 0 36px 36px;
    text-align: center;
    margin-top: -56px;
    position: relative;
}
.donation-confirm-photo-wrap {
    display: inline-block;
    margin-bottom: 20px;
}
.donation-confirm-photo {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--team-pri, #0d9488), var(--team-dark, #0f766e));
}
.donation-confirm-photo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #fff;
    overflow: hidden;
    background: #f1f5f9;
}
.donation-confirm-photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.donation-confirm-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 100px;
    padding: 8px 18px;
    margin-bottom: 16px;
}
.donation-confirm-success-badge span {
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
}
.donation-confirm-heading {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 8px;
}
.donation-confirm-subtext {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto 16px;
}
.donation-confirm-subtext strong {
    color: #0f172a;
}
.donation-confirm-order-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 8px;
}
.donation-confirm-order-badge .order-id {
    font-weight: 600;
    color: #0f172a;
}

/* Comment Form Card */
.donation-confirm-comment-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 28px;
}
.donation-confirm-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.donation-confirm-comment-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}
.donation-confirm-comment-optional {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 400;
}
.donation-confirm-textarea {
    width: 100%;
    height: 100px;
    padding: 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    resize: none;
    outline: none;
    box-sizing: border-box;
    line-height: 1.6;
    transition: border-color 0.15s ease;
}
.donation-confirm-textarea:focus {
    border-color: var(--team-pri, #0d9488);
}
.donation-confirm-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.donation-confirm-btn-submit {
    flex: 1;
    height: 46px;
    border-radius: 12px;
    border: none;
    background: var(--team-pri, #0d9488);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}
.donation-confirm-btn-submit:hover {
    background: var(--team-dark, #0f766e);
}
.donation-confirm-btn-back {
    flex: 1;
    height: 46px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease;
}
.donation-confirm-btn-back:hover {
    border-color: #cbd5e1;
    color: #475569;
}

/* Donation Summary Card (Collapsible) */
.donation-confirm-summary {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.donation-confirm-summary-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}
.donation-confirm-summary-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.donation-confirm-summary-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--team-light, #f0fdfa);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.donation-confirm-summary-label {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}
.donation-confirm-summary-dot {
    font-size: 13px;
    color: #94a3b8;
}
.donation-confirm-summary-total-inline {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.donation-confirm-summary-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.donation-confirm-summary-chevron.open {
    transform: rotate(180deg);
}
.donation-confirm-summary-body {
    display: none;
}
.donation-confirm-summary-body.open {
    display: block;
}
.donation-confirm-summary-rows {
    padding: 0 28px;
    border-top: 1px solid #f1f5f9;
}
.donation-confirm-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #f1f5f9;
}
.donation-confirm-summary-row:last-child {
    border-bottom: none;
}
.donation-confirm-summary-row-label {
    font-size: 14px;
    color: #475569;
    font-weight: 400;
}
.donation-confirm-summary-row-value {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}
.donation-confirm-summary-row.main .donation-confirm-summary-row-label {
    color: #0f172a;
    font-weight: 600;
}
.donation-confirm-summary-row.main .donation-confirm-summary-row-value {
    font-weight: 700;
    color: #0f172a;
}
.donation-confirm-summary-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    background: #f1f5f9;
}
.donation-confirm-summary-total-label {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.donation-confirm-summary-total-amount {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

/* Support URL Card */
.donation-confirm-support-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 28px;
}
.donation-confirm-support-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.donation-confirm-support-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}
.donation-confirm-support-subtitle {
    font-size: 13px;
    color: #94a3b8;
}
.donation-confirm-support-iframe {
    height: 400px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 16px;
}
.donation-confirm-support-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.donation-confirm-support-btn {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease;
}
.donation-confirm-support-btn:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Responsive */
@media (max-width: 991.98px) {
    .donation-confirm-container {
        padding: 16px 16px 32px;
    }
    .donation-confirm-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .donation-confirm-main {
        gap: 14px;
    }
    .donation-confirm-sidebar {
        gap: 14px;
    }
    .donation-confirm-banner {
        height: 80px;
    }
    .donation-confirm-hero-body {
        padding: 0 20px 28px;
        margin-top: -48px;
    }
    .donation-confirm-photo {
        width: 96px;
        height: 96px;
    }
    .donation-confirm-heading {
        font-size: 22px;
    }
    .donation-confirm-subtext {
        font-size: 14px;
    }
    .donation-confirm-comment-card {
        padding: 20px;
    }
    .donation-confirm-btn-row {
        flex-direction: column;
    }
    .donation-confirm-summary-toggle {
        padding: 16px 20px;
    }
    .donation-confirm-summary-rows {
        padding: 0 20px;
    }
    .donation-confirm-summary-total-bar {
        padding: 16px 20px;
    }
    .donation-confirm-support-card {
        padding: 20px;
    }
    .donation-confirm-support-iframe {
        height: 300px;
    }
}


/* ═══════════════════════════════════════════════════════
   Comments Section
   ═══════════════════════════════════════════════════════ */
.v2-comments-card {
    background: var(--sb-card);
    border-radius: 16px;
    border: 1px solid var(--sb-border);
    padding: 24px 28px;
}
@media (max-width: 767px) {
    .v2-comments-card {
        padding: 20px 16px;
    }
}
.v2-comments-heading {
    font-size: 17px;
    font-weight: 700;
    color: var(--sb-text);
    margin: 0 0 18px;
}
.v2-comment-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
}
.v2-comment-item + .v2-comment-item {
    border-top: 1px solid var(--sb-border-light);
}
.v2-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--sb-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--sb-text3);
    flex-shrink: 0;
}
.v2-comment-body {
    flex: 1;
    min-width: 0;
}
.v2-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}
.v2-comment-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--sb-text);
}
.v2-comment-amount {
    font-size: 13px;
    font-weight: 700;
    color: var(--team-pri);
}
.v2-comment-text {
    font-size: 13px;
    color: var(--sb-text2);
    line-height: 1.5;
    margin: 0;
}
.v2-comment-time {
    font-size: 11px;
    color: var(--sb-text3);
    margin-top: 4px;
}
