/* ============================================================
   CAMPAIGN SHOW - ORANGBAIK.ID
   ============================================================ */

/* ============================================================
   GLOBAL OVERFLOW PROTECTION
============================================================ */
body {
    overflow-x: hidden;
}

/* ============================================================
   ALERT
============================================================ */
.alert-success {
    background: var(--success-light);
    color: #15803d;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius);
    margin-bottom: var(--space-5);
    border: 1px solid rgba(34, 197, 94, .18);
}
.alert-error {
    background: var(--danger-light);
    color: #b91c1c;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius);
    margin-bottom: var(--space-5);
    border: 1px solid rgba(239, 68, 68, .18);
}

/* ============================================================
   LAYOUT — pakai .container dari global.css untuk padding
============================================================ */
.detail-container {
    /* width & margin & padding-inline sudah dihandle .container */
    padding-block: var(--space-6);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--space-8);
    align-items: start;
    min-width: 0;
}
.detail-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    min-width: 0;
    position: sticky;
    top: 100px;
}
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    position: sticky;
    top: 100px;
    min-width: 0;
}
.hero-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}
.campaign-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;    
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: block;
}
.hero-status-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--text);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.hero-status-badge.is-urgent {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}
.hero-status-badge.is-ongoing {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.hero-status-badge.is-upcoming {
    background: color-mix(in srgb, var(--bg) 92%, transparent       );
}
.hero-status-badge.is-ended {
    background: color-mix(in srgb, var(--bg) 92%, transparent           );
}
.description-section h1 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-extrabold);
    color: var(--text-dark);
    margin-top: var(--space-4);
    margin-bottom: var(--space-3);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ============================================================
   RICH TEXT OUTPUT
============================================================ */
.rich-text-output {
    text-align: justify;
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: break-word;
    color: var(--text);
}

/* Semua elemen teks mengikuti ukuran global */
.rich-text-output p,
.rich-text-output div,
.rich-text-output span,
.rich-text-output li,
.rich-text-output blockquote,
.rich-text-output h2,
.rich-text-output h3,
.rich-text-output h4 {
    font-family: inherit;
    font-size: var(--fs-sm);
    line-height: 1.7;
}

/* Teks normal */
.rich-text-output p,
.rich-text-output div,
.rich-text-output span,
.rich-text-output li {
    font-weight: var(--fw-regular);
}

/* Heading tetap bisa dibedakan dari weight, bukan ukuran */
.rich-text-output h2,
.rich-text-output h3,
.rich-text-output h4 {
    font-weight: var(--fw-bold);
}

/* Bold dari rich text */
.rich-text-output strong,
.rich-text-output b {
    font-weight: var(--fw-bold);
}

/* Italic */
.rich-text-output em,
.rich-text-output i {
    font-style: italic;
}

/* Underline */
.rich-text-output u {
    text-decoration: underline;
}

/* Paragraf */
.rich-text-output p {
    margin: 0 0 var(--space-4);
}

/* List */
.rich-text-output ul,
.rich-text-output ol {
    margin: 0 0 var(--space-4);
    padding-left: var(--space-6);
}

/* Blockquote */
.rich-text-output blockquote {
    margin: var(--space-4) 0;
}

/* Link */
.rich-text-output a {
    color: var(--primary);
    text-decoration: underline;
}

/* Gambar dari rich text */
.rich-text-output img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: var(--space-4) auto;
}

.rich-text-output img {
    display: block;
    width: auto;
    max-width: min(72%, 620px);
    max-height: 360px;
    height: auto;
    object-fit: contain;
    margin: 1rem auto;
    border-radius: var(--radius-sm);
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}
.rich-text-output img:hover {
    opacity: 0.92;
}

/* ============================================================
   SECTION HEADER
============================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    gap: var(--space-3);
}
.section-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--text-dark);
    overflow-wrap: break-word;
    word-break: break-word;
}
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}
.btn-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-icon-action:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.owner-menu {
    position: relative;
}
.owner-menu-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    min-width: 190px;
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow, var(--shadow-soft));
    padding: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: all 0.18s ease;
    z-index: 20;
}
.owner-menu-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.owner-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    text-decoration: none;
    transition: all 0.15s ease;
}
.owner-menu-dropdown a i {
    color: var(--primary);
    font-size: var(--fs-sm);
    width: 18px;
}
.owner-menu-dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============================================================
   UPDATE CARD
============================================================ */
.updates-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.update-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: var(--space-4);
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
}
.update-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-soft);
}
.update-icon-badge {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    align-self: flex-start;
    box-shadow: 0 4px 10px -2px rgba(51, 101, 175, 0.35);
}
.update-content-wrapper {
    flex: 1;
    min-width: 0;
}
.update-title {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin: 0 0 var(--space-1);
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
}
.update-meta {
    margin-bottom: var(--space-2);
}
.update-date {
    color: var(--muted);
    font-size: var(--fs-xxs);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}
.update-date i {
    font-size: 12px;
}
.update-preview-text {
    font-size: var(--fs-xs);
    color: var(--text);
    line-height: 1.6;
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ============================================================
   BUTTON READ MORE
============================================================ */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: var(--fw-medium);
    font-size: var(--fs-xs);
    cursor: pointer;
    padding: 0;
    transition: gap 0.2s ease, color 0.2s ease;
}
.btn-read-more:hover {
    gap: var(--space-2);
    color: var(--primary-hover);
}
.btn-read-more i {
    font-size: 14px;
    transition: transform 0.3s ease;
}
.btn-read-more i.rotated {
    transform: rotate(180deg);
}


/* ============================================================
   UPDATE DETAIL (EXPAND / COLLAPSE)
============================================================ */

/* Container detail */
.update-detail-wrapper {
    margin-top: 12px;
    animation: updateFadeIn 0.3s ease;
}

/* Garis pemisah konten */
.update-detail-content {
    margin-top: var(--space-3, 12px);
    padding-top: var(--space-3, 12px);
    border-top: 1px solid var(--border-soft, #e5e7eb);
}

/* ============================================================
   TOMBOL BACA SELENGKAPNYA
============================================================ */

.update-readmore {
    width: 100%;
}

/* Area yang bisa diklik */
.update-readmore summary {
    display: block;
    cursor: pointer;
    list-style: none;
    margin-top: 10px;
    user-select: none;
    outline: none;
}

/* Hilangkan marker default browser */
.update-readmore summary::-webkit-details-marker {
    display: none;
}

.update-readmore summary::marker {
    content: "";
}

/* Preview teks */
.update-readmore .update-preview-text {
    display: block;
    color: var(--text-secondary, #667085);
    line-height: 1.7;
}


/* ============================================================
   READ MORE BUTTON
============================================================ */

.update-readmore .readmore-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #3365af;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Tulisan tombol */
.update-readmore .readmore-text::before {
    content: "Baca Selengkapnya";
}

/* Ketika detail dibuka */
.update-readmore[open] .readmore-text::before {
    content: "Tutup Selengkapnya";
}

/* Chevron rounded */
.update-readmore .update-chevron {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 1px;
    transform: rotate(45deg);
    margin-top: -5px;
    transition: transform 0.25s ease;
}

/* Chevron menghadap atas */
.update-readmore[open] .update-chevron {
    transform: rotate(225deg);
    margin-top: 5px;
}

/* Hover */
.update-readmore summary:hover .readmore-text {
    color: #244d8a;
}

/* Fokus keyboard */
.update-readmore summary:focus-visible {
    outline: 2px solid #3365af;
    outline-offset: 4px;
    border-radius: 4px;
}


/* ============================================================
   ISI PARAGRAF DETAIL
============================================================ */

.update-full-body {
    color: #344054;
    line-height: 1.8;
    overflow-wrap: anywhere;
    word-break: normal;
}

.update-full-body p {
    margin-top: 0;
    margin-bottom: 12px;
}

.update-full-body p:last-child {
    margin-bottom: 0;
}

/* Heading dalam konten */
.update-full-body h1,
.update-full-body h2,
.update-full-body h3,
.update-full-body h4 {
    margin-top: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-primary, #1d2939);
}

/* List dalam konten */
.update-full-body ul,
.update-full-body ol {
    padding-left: 24px;
    margin-bottom: 12px;
}

.update-full-body li {
    margin-bottom: 6px;
}

/* Link dalam konten */
.update-full-body a {
    color: #3365af;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

/* ============================================================
   GAMBAR DALAM DETAIL
============================================================ */

.update-full-body img {
    display: block;
    width: auto;
    max-width: min(72%, 480px);
    max-height: 300px;
    height: auto;
    object-fit: contain;
    margin: 0.75rem auto;
    border-radius: var(--radius-sm, 8px);
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.update-full-body img:hover {
    opacity: 0.92;
}

/* ============================================================
   GALERI DETAIL
============================================================ */

.update-detail-gallery {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(120px, 1fr)
    );
    gap: var(--space-2, 8px);
}

.update-detail-gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm, 8px);
    overflow: hidden;
    border: 1px solid var(--border, #e5e7eb);
    cursor: pointer;
    transition: all 0.2s ease;
}

.update-detail-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-soft, 0 4px 12px rgba(0, 0, 0, 0.1));
}

.update-detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay gambar */
.update-detail-gallery-item .zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    opacity: 0;
    transition: all 0.2s ease;
}

.update-detail-gallery-item:hover .zoom-overlay {
    background: rgba(0, 0, 0, 0.35);
    opacity: 1;
}

/* Sembunyikan preview ketika detail dibuka */
.update-readmore[open] .update-preview-text {
    display: none !important;
}

/* Pastikan tombol tetap terlihat */
.update-readmore[open] .readmore-text {
    display: inline-flex;
}

/* ============================================================
   ANIMASI
============================================================ */

@keyframes updateFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 576px) {
    .update-full-body img {
        max-width: 100%;
        max-height: 260px;
    }

    .update-detail-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .update-readmore .readmore-text {
        font-size: 13px;
    }
}

/* ============================================================
   UPDATE FOOTER
============================================================ */
.update-footer {
    margin-top: var(--space-3);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
}
.btn-edit-update {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--fs-xxs);
    font-weight: var(--fw-bold);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-edit-update:hover {
    background: var(--primary);
    color: #fff;
}
.btn-delete-update {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px 14px;
    background: var(--danger-light);
    color: var(--danger);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--fs-xxs);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-delete-update:hover {
    background: var(--danger);
    color: #fff;
}

/* ============================================================
   EMPTY UPDATES
============================================================ */
.empty-updates {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}
.empty-updates i {
    font-size: 48px;
    color: var(--muted-light);
    display: block;
    margin-bottom: var(--space-3);
}
.empty-updates p {
    color: var(--muted);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-3);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-6);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xs);
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================================
   PESAN & DOA DONATUR
============================================================ */
.pesan-doa-section {
    margin-top: var(--space-2);
}
.badge-doa-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    white-space: nowrap;
}

.pesan-doa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.pesan-doa-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: var(--space-4);
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.pesan-doa-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.pesan-doa-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}

.pesan-doa-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--fw-bold);
    color: var(--primary);
    font-size: var(--fs-sm);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 1px var(--border-soft);
}
.pesan-doa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pesan-doa-avatar .avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pesan-doa-info {
    min-width: 0;
    flex: 1;
}
.pesan-doa-info strong {
    display: block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    overflow-wrap: break-word;
    word-break: break-word;
    margin-bottom: 2px;
}
.pesan-doa-info > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.pesan-doa-nominal {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-xxs);
    font-weight: var(--fw-semibold);
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pesan-doa-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-xxs);
    color: var(--muted-light);
    white-space: nowrap;
}

.pesan-doa-body {
    font-size: var(--fs-xs);
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
    padding-left: var(--space-3);
    border-left: 3px solid var(--primary-light);
    overflow-wrap: break-word;
    word-break: break-word;
}
.pesan-doa-body p {
    margin: 0;
}

.pesan-doa-footer {
    text-align: center;
    margin-top: var(--space-5);
}
.btn-lihat-semua {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-6);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xs);
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-lihat-semua:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.empty-pesan-doa {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}
.empty-pesan-doa i {
    font-size: 48px;
    color: var(--muted-light);
    display: block;
    margin-bottom: var(--space-3);
}
.empty-pesan-doa p {
    color: var(--muted);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-1);
}
.empty-pesan-doa small {
    color: var(--muted-light);
    font-size: var(--fs-xs);
}

/* ============================================================
   DONATION SUMMARY
============================================================ */
.donation-summary-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: var(--space-5);
    box-shadow: var(--shadow-card);
    min-width: 0;
}
.donation-summary-card h2 {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: var(--space-3);
    overflow-wrap: break-word;
    word-break: break-word;
}
.summary-amount {
    margin-bottom: var(--space-3);
}
.summary-amount strong {
    display: block;
    font-size: var(--fs-md);
    font-weight: var(--fw-extrabold);
    color: var(--primary);
    overflow-wrap: break-word;
    word-break: break-word;
}
.summary-amount span {
    color: var(--muted);
    font-size: var(--fs-xs);
}
.summary-amount span b {
    color: var(--text-dark);
}
.summary-progress {
    height: 8px;
    background: var(--bg-soft);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-3);
}
.summary-progress div {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}
.summary-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-2);
    color: var(--muted);
    font-size: var(--fs-xs);
}
.donate-button-wrapper {
    text-align: center;
    margin-top: var(--space-3);
}
.donate-button {
    display: inline-block;
    width: auto;
    padding: var(--space-2) var(--space-5);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    text-align: center;
    align-items: center;
    border: none;
    border-radius: var(--radius-xl);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-xs);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: var(--space-3);
    cursor: pointer;
}
.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ============================================================
   FUNDRAISER INFO
============================================================ */
.fundraiser-info-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: var(--space-4);
}
.fundraiser-info-card h3 {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: var(--space-3);
}
.fundraiser-profile {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.fundraiser-profile img {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.fundraiser-profile h4 {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ============================================================
   SIDE LIST
============================================================ */
.side-list-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: var(--space-4);
}
.side-list-card h3 {
    display: flex;
    align-items: center;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: var(--space-3);
}
.side-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-soft);
    min-width: 0;
}
.side-list-item:last-child {
    border-bottom: none;
}
.side-list-item .avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    flex: 0 0 40px;
    overflow: hidden;
    font-size: var(--fs-sm);
}
.side-list-item .avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.side-list-item > div {
    min-width: 0;
}
.side-list-item h4 {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.side-list-item p {
    font-size: var(--fs-xxs);
    color: var(--muted);
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.side-list-item span {
    font-size: var(--fs-xxs);
    color: var(--muted-light);
}

.text-hint-light {
    font-size: var(--fs-xxs);
    color: var(--muted-light);
    display: block;
    margin-bottom: var(--space-2);
}
.text-muted {
    color: var(--muted);
    font-size: var(--fs-xs);
    padding: var(--space-2) 0;
    text-align: center;
}
.side-list-card .empty-side-list {
    text-align: center;
    padding: var(--space-4) 0;
}

/* ============================================================
   FUNDRAISER JOIN CARD
============================================================ */
.fundraiser-join-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: var(--space-4);
    text-align: center;
}
.fundraiser-join-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-2);
}
.fundraiser-join-card p {
    color: var(--muted);
    font-size: var(--fs-xs);
    margin-bottom: var(--space-3);
}
.fundraiser-join-card.joined {
    border-color: var(--success);
    background: var(--success-light);
}
.btn-fundraiser-join {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-6);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-xs);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-fundraiser-join:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
.btn-fundraiser-leave {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-6);
    background: var(--danger-light);
    color: var(--danger);
    border: none;
    border-radius: var(--radius-full);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xs);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-fundraiser-leave:hover {
    background: var(--danger);
    color: #fff;
}
.btn-fundraiser-login {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-6);
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xs);
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-fundraiser-login:hover {
    background: var(--border);
}

/* ============================================================
   FUNDRAISER REFERRAL CARD
============================================================ */
.fundraiser-referral-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: var(--space-4);
}
.fundraiser-referral-card h4 {
    display: flex;
    align-items: center;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-1);
}
.fundraiser-referral-card p {
    color: var(--muted);
    font-size: var(--fs-xs);
    margin-bottom: var(--space-2);
}
.fundraiser-total-donasi {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-2);
    margin: var(--space-3) 0;
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    color: var(--muted);
    font-size: var(--fs-xs);
}
.fundraiser-total-donasi strong {
    color: var(--primary);
    white-space: nowrap;
}
.referral-link-box {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}
.referral-link-box input {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    background: var(--bg-soft);
    color: var(--text);
    min-width: 0;
}
.btn-copy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-3);
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-copy-link:hover {
    background: var(--primary-hover);
}
.referral-qr-section {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px dashed var(--border-soft);
    text-align: center;
}
.qr-canvas-wrapper {
    display: inline-flex;
    justify-content: center;
    padding: var(--space-3);
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    margin-bottom: var(--space-3);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.qr-canvas-wrapper:hover {
    transform: scale(1.02);
}
.qr-canvas-wrapper:active {
    transform: scale(0.95);
}
.btn-download-qr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-xs);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-download-qr:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* ============================================================
   LIGHTBOX
============================================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: var(--space-6);
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}
.lightbox-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}
.lightbox-image-wrapper img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.lightbox-footer {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    z-index: 10;
}
#lightboxCounter {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-xs);
}
.lightbox-dots {
    display: flex;
    gap: var(--space-2);
}
.lightbox-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}
.lightbox-dot.active {
    background: #fff;
    width: 24px;
    border-radius: var(--radius-full);
}
.lightbox-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.icon-section {
    display: block;
    width: 120px;
    height: 120px;
    max-width: 120px;
    object-fit: contain;
    margin: 0 auto var(--space-5);
    opacity: 0.9;
}

/* ============================================================
   MODAL POP-UP FUNDRAISER
============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    z-index: 9999;
    animation: fadeIn 0.25s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 92%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg);
    border-radius: var(--radius-lg, 20px);
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
    animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    position: relative;
    padding: var(--space-7, 28px) var(--space-7, 28px) var(--space-6, 24px);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: var(--radius-lg, 20px) var(--radius-lg, 20px) 0 0;
    text-align: center;
}

.modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 8px);
    margin-bottom: var(--space-4, 16px);
}

.modal-logo img {
    height: 28px;
    width: auto;
}

.modal-logo span {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: -0.2px;
}

.modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: var(--fs-lg);
    font-weight: var(--fw-extrabold, 800);
    letter-spacing: -0.02em;
}

.modal-header .subtitle {
    margin-top: var(--space-1, 4px);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--fs-xs);
}

.modal-close {
    position: absolute;
    top: var(--space-4, 16px);
    right: var(--space-4, 16px);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--space-6, 24px) var(--space-7, 28px) var(--space-7, 28px);
}

.success-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    margin: calc(var(--space-5, 20px) * -1) auto var(--space-5, 20px);
    padding: var(--space-2, 8px) var(--space-4, 16px);
    background: var(--bg);
    border: 1px solid var(--success-light, #dcfce7);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #15803d;
    font-size: var(--fs-xxs);
    font-weight: var(--fw-bold);
    position: relative;
    width: fit-content;
}

.success-badge i {
    font-size: 15px;
}

.fundraiser-info-modal {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
    padding: var(--space-4, 16px);
    margin-bottom: var(--space-5, 20px);
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
}

.fundraiser-avatar-modal {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 2px var(--primary);
    object-fit: cover;
}

.fundraiser-name-modal {
    color: var(--text-dark);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    line-height: 1.3;
}

.fundraiser-name-modal small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: var(--fs-xxs);
    font-weight: var(--fw-regular);
}

.modal-divider {
    border: none;
    border-top: 1px solid var(--border-soft);
    margin: var(--space-5, 20px) 0;
}

.referral-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    margin-bottom: var(--space-2, 8px);
    color: var(--text-dark);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
}

.referral-section-title i {
    color: var(--primary);
    font-size: var(--fs-sm);
}

.referral-link-box-modal {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    padding: var(--space-1, 4px) var(--space-1, 4px) var(--space-1, 4px) var(--space-4, 16px);
    margin-bottom: var(--space-2, 8px);
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
}

.referral-link-box-modal input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    padding: var(--space-3, 12px) 0;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
    font-size: var(--fs-xxs);
}

.btn-copy-link-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-copy-link-modal:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.referral-code-box {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
    padding: var(--space-3, 12px) var(--space-3, 12px) var(--space-3, 12px) var(--space-4, 16px);
    margin-bottom: var(--space-5, 20px);
    background: var(--bg-soft);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
}

.referral-code-box .code-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.referral-code-box .code-value {
    flex: 1;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: var(--fs-sm);
    font-weight: var(--fw-extrabold, 800);
    letter-spacing: 1px;
}

.btn-copy-code {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1, 4px);
    padding: var(--space-2, 8px) var(--space-3, 12px);
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: var(--fs-xxs);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-copy-code:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.modal-qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-5, 20px);
    margin-bottom: var(--space-2, 8px);
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: 0.2s ease;
}

.modal-qr-wrapper:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.modal-qr-wrapper:active {
    transform: scale(0.97);
}

.modal-qr-wrapper svg {
    max-width: 150px;
    height: auto;
    padding: var(--space-2, 8px);
    background: #fff;
    border-radius: var(--radius-sm);
}

.modal-qr-label {
    margin-top: var(--space-3, 12px);
    color: var(--muted);
    font-size: var(--fs-xxs);
    font-weight: var(--fw-medium);
}

.modal-actions {
    display: flex;
    gap: var(--space-3, 12px);
    margin-top: var(--space-6, 24px);
}

.modal-actions .btn-modal-primary,
.modal-actions .btn-modal-secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 8px);
    height: 48px;
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: 0.2s ease;
}

.modal-actions .btn-modal-primary {
    background: var(--primary);
    border: none;
    color: #fff;
}

.modal-actions .btn-modal-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.25);
}

.modal-actions .btn-modal-secondary {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
}

.modal-actions .btn-modal-secondary:hover {
    background: var(--bg-soft);
    border-color: var(--muted);
}

/* ============================================================
   MODAL QR FULLSCREEN
============================================================ */
.modal-qr-overlay {
    display: none;
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    animation: fadeIn 0.25s ease;
}

.modal-qr-overlay.active {
    display: flex;
}

.modal-qr-fullscreen {
    position: relative;
    width: 90%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-8, 32px);
    background: var(--bg);
    border-radius: var(--radius-lg, 20px);
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4);
    animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-qr-close {
    position: absolute;
    top: var(--space-4, 16px);
    right: var(--space-4, 16px);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border: none;
    border-radius: 50%;
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.modal-qr-close:hover {
    background: var(--border-soft);
    transform: rotate(90deg);
}

.modal-qr-fullscreen-content {
    text-align: center;
}

.modal-qr-fullscreen-content #qrFullscreenContainer {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-5, 20px);
}

.modal-qr-fullscreen-content #qrFullscreenContainer svg {
    max-width: 240px;
    height: auto;
    padding: var(--space-4, 16px);
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.modal-qr-fullscreen-content h3 {
    margin-bottom: var(--space-2, 8px);
    color: var(--text-dark);
    font-size: var(--fs-md);
    font-weight: var(--fw-extrabold, 800);
}

.modal-qr-fullscreen-content p {
    margin-bottom: var(--space-5, 20px);
    color: var(--muted);
    font-size: var(--fs-xs);
}

.modal-qr-actions {
    display: flex;
    gap: var(--space-3, 12px);
    justify-content: center;
}

.btn-download-qr-modal,
.btn-share-qr-modal {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    padding: var(--space-3, 12px) var(--space-5, 20px);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-download-qr-modal {
    background: var(--primary);
    border: none;
    color: #fff;
}

.btn-download-qr-modal:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.25);
}

.btn-share-qr-modal {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-share-qr-modal:hover {
    background: var(--bg-soft);
    border-color: var(--muted);
}

/* ============================================================
   TOAST NOTIFICATION
============================================================ */
.toast-notification {
    position: fixed;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-dark);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg, var(--shadow));
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast-notification i {
    font-size: 20px;
    color: var(--success);
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 768px) {
    .detail-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        min-width: 0;
    }

    /* Gabungkan isi kedua kolom agar bisa diurutkan */
    .detail-main,
    .detail-sidebar {
        display: contents;
    }

    /* Urutan elemen mobile */
    .detail-main > .hero-wrapper {
        order: 1;
    }

    .detail-sidebar > .donation-summary-card {
        order: 2;
    }

    .detail-main > .description-section {
        order: 3;
    }

    .detail-sidebar > .fundraiser-info-card {
        order: 4;
    }

    .detail-main > .latest-news-section {
        order: 5;
    }

    .detail-main > .pesan-doa-section {
        order: 6;
    }

    .detail-sidebar > .side-list-card {
        order: 7;
    }

    .detail-sidebar > .fundraiser-join-card,
    .detail-sidebar > .fundraiser-referral-card {
        order: 8;
    }

    /* Reset sticky pada tampilan mobile */
    .detail-main,
    .detail-sidebar {
        position: static;
    }

    /* Pastikan setiap section memenuhi lebar layar */
    .detail-main > *,
    .detail-sidebar > * {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Hilangkan tombol Donasi Sekarang hanya di card aksi donasi */
    .donation-summary-card .btn-donate,
    .donation-summary-card .donate-button {
        display: none !important;
    }

    .description-section h1 {
        display: none !important;
    }

    .campaign-detail-page {
        padding-bottom: 90px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .detail-main,
    .detail-sidebar {
        position: static;
    }
}

/* HP besar */
@media (max-width: 768px) {
    .detail-container {
        padding-block: var(--space-5);
    }
    .campaign-hero-image {
        height: 220px;
    }
    .description-section h1 {
        font-size: var(--fs-md);
    }
    .update-card {
        gap: var(--space-3);
        padding: var(--space-3);
    }
    .update-icon-badge {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        font-size: var(--fs-xs);
    }
    .update-title {
        font-size: var(--fs-xs);
    }
    .summary-amount strong {
        font-size: var(--fs-lg);
    }
    .update-detail-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }
    .pesan-doa-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-image-wrapper img {
        max-height: 70vh;
    }
    .modal-content {
        max-width: 95%;
    }
    .modal-body {
        padding: var(--space-5);
    }
    .modal-header {
        padding: var(--space-5) var(--space-5) var(--space-4);
    }
    .modal-logo img {
        height: 32px;
    }
    .modal-logo span {
        font-size: var(--fs-sm);
    }
    .modal-header h2 {
        font-size: var(--fs-md);
    }
    .modal-qr-fullscreen {
        padding: var(--space-5);
    }
    .modal-qr-fullscreen-content #qrFullscreenContainer svg {
        max-width: 200px;
    }
    .modal-actions {
        flex-direction: column;
    }
}

/* HP */
@media (max-width: 576px) {
    .detail-container {
        padding-block: var(--space-4);
    }
    .campaign-hero-image {
        height: 180px;
    }
    .description-section h1 {
        font-size: var(--fs-sm);
    }
    .description-section p {
        font-size: var(--fs-xs);
    }
    .section-header {
        flex-wrap: wrap;
    }
    .section-actions {
        justify-content: flex-end;
    }
    .update-preview-text {
        font-size: var(--fs-xxs);
    }
    .update-detail-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-1);
    }
    .update-full-body {
        font-size: var(--fs-xxs);
    }
    .update-full-body img {
        max-width: 100%;
        max-height: 220px;
    }
    .summary-amount strong {
        font-size: var(--fs-md);
    }
    .donation-summary-card,
    .side-list-card,
    .fundraiser-info-card,
    .fundraiser-join-card {
        padding: var(--space-3);
    }
    .btn-fundraiser-join,
    .btn-fundraiser-leave,
    .btn-fundraiser-login {
        width: 100%;
        justify-content: center;
    }
    .referral-link-box {
        flex-wrap: wrap;
    }
    .referral-link-box input {
        width: 100%;
    }
    .btn-copy-link {
        width: 100%;
        justify-content: center;
    }
    .referral-link-box-modal {
        flex-wrap: wrap;
        padding: var(--space-2);
    }
    .referral-link-box-modal input {
        width: 100%;
        font-size: var(--fs-xxs);
    }
    .btn-copy-link-modal {
        width: 100%;
        justify-content: center;
    }
    .referral-code-box {
        flex-wrap: wrap;
        gap: var(--space-1);
        padding: var(--space-2);
    }
    .referral-code-box .code-value {
        width: 100%;
        text-align: center;
        font-size: var(--fs-sm);
    }
    .btn-copy-code {
        width: 100%;
        justify-content: center;
    }
    .modal-qr-wrapper svg {
        max-width: 140px;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    .lightbox-prev {
        left: 6px;
    }
    .lightbox-next {
        right: 6px;
    }
    .lightbox-image-wrapper img {
        max-height: 60vh;
    }
    .lightbox-footer {
        bottom: 16px;
    }
    .lightbox-dot {
        width: 8px;
        height: 8px;
    }
    .lightbox-dot.active {
        width: 18px;
    }
    .modal-actions .btn-modal-primary,
    .modal-actions .btn-modal-secondary {
        padding: var(--space-2);
        font-size: var(--fs-xs);
    }
    .modal-qr-actions {
        flex-direction: column;
    }
    .btn-download-qr-modal,
    .btn-share-qr-modal {
        justify-content: center;
        width: 100%;
    }
    .toast-notification {
        max-width: 90%;
        font-size: var(--fs-xxs);
        padding: var(--space-2) var(--space-4);
        bottom: var(--space-4);
    }
    .icon-section {
        width: 64px;
        height: 64px;
        max-width: 64px;
        margin: 0 auto var(--space-3);
    }
    .pesan-doa-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    /* ============================
       Mobile Sticky Donation CTA
    ============================ */
    .mobile-sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 0.75rem 1.25rem;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 998;
        border-top: 1px solid var(--border-soft);
    }
    .mobile-cta-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .mobile-cta-label {
        font-size: 0.75rem;
        color: var(--muted);
        font-weight: 500;
    }
    .mobile-cta-val {
        font-size: 1.05rem;
        color: var(--primary);
        font-weight: 800;
    }
    .btn-mobile-donate {
        background: var(--primary);
        color: #ffffff;
        padding: 0.7rem 1.35rem;
        border-radius: 10px;
        font-size: 0.875rem;
        font-weight: 700;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 4px 12px rgba(51, 101, 175, 0.28);
        transition: transform 0.15s ease, background 0.15s ease;
    }
    .btn-mobile-donate:active {
        transform: scale(0.98);
        background: var(--primary-hover);
    }
}

/* Desktop only: sembunyikan sticky CTA */
@media (min-width: 769px) {
    .mobile-sticky-cta {
        display: none !important;
    }
}

/* ============================================================
   Halaman ini punya CTA donasi sendiri (.mobile-sticky-cta),
   jadi bottom-nav & floating-donate-btn global disembunyikan
============================================================ */
@media (max-width: 600px) {
    body:has(.mobile-sticky-cta) .mobile-bottom-nav,
    body:has(.mobile-sticky-cta) .floating-donate-btn {
        display: none !important;
    }
}