.scf-detail-container { max-width: 1180px; margin: 0 auto; padding: 32px 20px 80px; }

.scf-detail-mobile-header { display: none; }
@media (max-width: 900px) {
    .scf-detail-container { padding-top: 64px; }
    .scf-detail-mobile-header {
        display: flex; align-items: center;
        position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
        background: #fff; border-bottom: 1px solid #e5e7eb;
        padding: 12px 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,.04);
    }
    .scf-detail-back-btn {
        display: inline-flex; align-items: center; justify-content: center;
        width: 36px; height: 36px; border-radius: 50%;
        color: #111827; text-decoration: none; flex-shrink: 0;
    }
    .scf-detail-back-btn:hover { background: #f3f4f6; }
    .scf-detail-mobile-title {
        flex: 1; text-align: center; font-size: 17px; font-weight: 700; color: #111827;
        padding-right: 36px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
}

.scf-detail-loading,
.scf-detail-error {
    text-align: center; padding: 60px 20px; color: #4b5563;
}
.scf-detail-loading .spinner {
    width: 36px; height: 36px; border-radius: 50%;
    border: 3px solid #e5e7eb; border-top-color: #2271b1;
    margin: 0 auto 12px; animation: scfSpin .9s linear infinite;
}
@keyframes scfSpin { to { transform: rotate(360deg); } }

.scf-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas:
        "banner top"
        "body   actions";
    column-gap: 36px;
    row-gap: 28px;
    align-items: start;
}
.scf-detail-banner  { grid-area: banner; }
.scf-detail-top     { grid-area: top; align-self: center; }
.scf-detail-body    { grid-area: body; }
.scf-detail-actions { grid-area: actions; }

@media (max-width: 900px) {
    .scf-detail-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "banner"
            "top"
            "body"
            "actions";
        gap: 24px;
    }
    .scf-detail-top { align-self: start; }
}

.scf-detail-banner {
    position: relative; overflow: hidden;
    background: #f3f4f6;
}
.scf-detail-banner img { width: 100%; height: auto; display: block; }
.scf-detail-banner-empty { aspect-ratio: 16 / 9; }
.scf-detail-pinned {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,.55); color: #fff; padding: 4px 10px;
    border-radius: 999px; font-size: 12px; font-weight: 600;
}

.scf-detail-about { margin-top: 0; }
.scf-detail-h2 { font-size: 22px; font-weight: 700; color: #1f2937; margin: 0 0 14px; }
.scf-detail-about-body {
    font-size: 17px; line-height: 1.85; color: #111827; white-space: normal;
    word-wrap: break-word; overflow-wrap: anywhere;
}
.scf-detail-about-body p { margin: 0 0 12px; }
.scf-detail-about-body p:last-child { margin-bottom: 0; }
.scf-detail-about-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.scf-detail-about-body a { color: #1d4ed8; text-decoration: underline; }
.scf-detail-about-body ul, .scf-detail-about-body ol { margin: 0 0 12px; padding-left: 20px; }
.scf-detail-about-body br + br { display: block; content: ""; margin-top: 8px; }

.scf-detail-sep { border: 0; border-top: 1px solid #e5e7eb; margin: 32px 0 22px; }

.scf-detail-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.scf-detail-party-label { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 10px; }
.scf-detail-party-card { display: flex; gap: 10px; }
.scf-detail-party-logo {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    background: #f3f4f6; flex-shrink: 0;
}
@media (max-width: 900px) {
    .scf-detail-party-logo { width: 56px; height: 56px; }
}
.scf-detail-party-name { font-size: 16px; font-weight: 600; color: #094a7a; }
.scf-detail-party-sub  { font-size: 13px; color: #6b7280; margin-top: 2px; }

.scf-detail-timeline { font-size: 15px; color: #111827; font-weight: 600; margin-bottom: 8px; }
.scf-detail-title {
    font-size: 28px; font-weight: 700; line-height: 1.35;
    color: #1f2937; margin: 0 0 18px;
}
.scf-detail-progress { margin-bottom: 18px; }
.scf-detail-progress-bar {
    width: 100%; height: 6px; background: #e5e7eb; border-radius: 999px; overflow: hidden;
}
.scf-detail-progress-fill {
    height: 100%; background: #2563eb; border-radius: 999px; transition: width .4s ease;
}
.scf-detail-amounts {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-top: 10px; font-size: 16px; color: #111827;
}
.scf-detail-donated { color: #111827; font-weight: 700; }
.scf-detail-target  { color: #1f2937; font-weight: 600; }

.scf-detail-donate-btn,
.scf-detail-donate-btn:link,
.scf-detail-donate-btn:visited,
.scf-detail-donate-btn:hover,
.scf-detail-donate-btn:active,
.scf-detail-donate-btn:focus {
    text-decoration: none !important;
}
.scf-detail-donate-btn {
    display: block; width: 100%; text-align: center;
    background: #094a7a; color: #fff !important; padding: 14px 16px;
    font-size: 17px; font-weight: 600; border-radius: 8px;
    margin: 0 0 24px;
    transition: background .2s ease, transform .15s ease;
}
.scf-detail-donate-btn:hover { background: #0a3a60; }

.scf-detail-donate-btn--mobile  { display: none; margin: 18px 0 0; }
.scf-detail-donate-btn--desktop { display: block; }

@media (max-width: 900px) {
    .scf-detail-amounts {
        padding-bottom: 16px;
        border-bottom: 1px solid #e5e7eb;
    }
    .scf-detail-donate-btn--mobile  { display: block; margin-top: 16px; }
    .scf-detail-donate-btn--desktop { display: none; }
}

.scf-detail-share-label,
.scf-detail-social-label {
    font-size: 16px; font-weight: 700; color: #111827;
    margin: 18px 0 8px;
}
.scf-detail-share-row {
    display: flex; align-items: stretch; gap: 0;
    border: 1px solid #d1d5db; border-radius: 6px; overflow: hidden;
    background: #fff;
}
.scf-detail-share-input {
    flex: 1; min-width: 0; border: 0; padding: 0 12px; height: 44px; line-height: 44px;
    font-size: 15px; color: #111827; background: #fff; font-weight: 500;
    box-sizing: border-box; margin: 0;
}
.scf-detail-share-input:focus { outline: none; }
.scf-detail-copy-btn {
    flex: 0 0 auto; border: 0 !important; border-left: 1px solid #d1d5db !important;
    color: #fff !important;
    width: 48px; height: 44px; padding: 0; margin: 0;
    cursor: pointer; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1; border-radius: 0; box-shadow: none; text-shadow: none;
}
.scf-detail-copy-btn:hover,
.scf-detail-copy-btn:focus,
.scf-detail-copy-btn:active {
    background: #4b5e4a !important; color: #fff !important;
    border: 0 !important; border-left: 1px solid #d1d5db !important;
    outline: none; box-shadow: none;
}
.scf-detail-copy-btn svg { display: block; width: 18px; height: 18px; }
.scf-detail-copy-btn:hover     { background: #4b5e4a; }
.scf-detail-copy-btn.scf-detail-copy-ok { background: #22c55e; }

.scf-detail-social-row { display: flex; gap: 10px; }
.scf-detail-social {
    width: 40px; height: 40px; border-radius: 4px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #e5edf5; color: #094a7a; text-decoration: none;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.scf-detail-social:hover { background: #cfe0f0; transform: translateY(-1px); }
.scf-detail-social-x { color: #111827; }

.scf-theme-2 .scf-detail-banner { border-radius: 16px; box-shadow: 0 8px 24px rgba(15, 23, 42, .08); }
.scf-theme-2 .scf-detail-title  { font-size: 30px; }
.scf-theme-2 .scf-detail-progress-fill {
    background: linear-gradient(90deg, #0ea5e9, #0d9488);
}
.scf-theme-2 .scf-detail-donate-btn {
    background: linear-gradient(90deg, #0ea5e9, #0d9488);
}
.scf-theme-2 .scf-detail-donate-btn:hover { filter: brightness(1.05); }
.scf-theme-2 .scf-detail-copy-btn        { background: #0d9488; }
.scf-theme-2 .scf-detail-copy-btn:hover  { background: #0b7d72; }
.scf-theme-2 .scf-detail-social          { background: #e0f2fe; color: #0369a1; border-radius: 999px; }
.scf-theme-2 .scf-detail-party-name      { color: #0d9488; }

.scf-theme-3 .scf-detail-banner { border-radius: 4px; border: 1px solid #e5e7eb; }
.scf-theme-3 .scf-detail-title  { font-size: 22px; font-weight: 600; }
.scf-theme-3 .scf-detail-progress-fill { background: #6366f1; }
.scf-theme-3 .scf-detail-donate-btn {
    background: #4f46e5; border-radius: 4px; font-weight: 500;
}
.scf-theme-3 .scf-detail-donate-btn:hover { background: #4338ca; }
.scf-theme-3 .scf-detail-copy-btn         { background: #4f46e5; }
.scf-theme-3 .scf-detail-copy-btn:hover   { background: #4338ca; }
.scf-theme-3 .scf-detail-social           { background: #eef2ff; color: #4338ca; }
.scf-theme-3 .scf-detail-party-name       { color: #4338ca; }
