:root {
    --fsd-bg: rgba(22, 16, 19, 0.92);
    --fsd-bg-soft: rgba(34, 26, 31, 0.86);
    --fsd-bg-box: rgba(28, 21, 26, 0.88);
    --fsd-border: rgba(255, 255, 255, 0.06);
    --fsd-border-red: #df4343;
    --fsd-red: #e34545;
    --fsd-red-dark: #c83636;
    --fsd-red-soft: rgba(227, 69, 69, 0.18);
    --fsd-text: #ffffff;
    --fsd-text-soft: rgba(255, 255, 255, 0.84);
    --fsd-text-muted: rgba(255, 255, 255, 0.62);
    --fsd-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.fs-donations-page {
    font-family: inherit;
    color: var(--fsd-text);
}

.fs-donations-page .btn:focus,
.fs-donations-page .btn:focus-visible,
.fs-donations-page a:focus,
.fs-donations-page a:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(227, 69, 69, 0.28);
}

.fsd-section-head {
    margin-bottom: 1.1rem;
    padding: 1rem 1.4rem;
    background: linear-gradient(90deg, rgba(48, 39, 45, 0.92), rgba(33, 27, 31, 0.84));
    border-bottom: 3px solid var(--fsd-border-red);
    border-radius: 6px;
    box-shadow: var(--fsd-shadow);
}

.fsd-section-head h1,
.fsd-section-head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.9rem, 2.8vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fsd-section-head h2 {
    font-size: clamp(1.6rem, 2.2vw, 1.9rem);
}

.fsd-panel {
    background: linear-gradient(180deg, var(--fsd-bg) 0%, rgba(19, 14, 17, 0.95) 100%);
    border: 1px solid var(--fsd-border);
    border-radius: 6px;
    box-shadow: var(--fsd-shadow);
    padding: 1.5rem;
}

.fsd-main-panel {
    min-height: 100%;
}

.fsd-panel-top,
.fsd-progress-labels,
.fsd-progress-meta,
.fsd-history-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.fsd-panel-top {
    align-items: flex-start;
    margin-bottom: 1rem;
}

.fsd-overline {
    margin-bottom: 0.45rem;
    color: #ff9b9b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 800;
}

.fsd-main-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.9rem, 3.8vw, 2.7rem);
    font-weight: 800;
    line-height: 1.08;
}

.fsd-badge {
    flex: 0 0 auto;
    padding: 0.55rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.fsd-lead,
.fsd-richtext,
.fsd-info-item p,
.fsd-side-note,
.fsd-donate-box-text {
    color: var(--fsd-text-soft);
    line-height: 1.7;
    font-size: 1rem;
}

.fsd-donate-box-text p:last-child,
.fsd-richtext p:last-child,
.fsd-info-item p:last-child {
    margin-bottom: 0;
}

.fsd-progress-card {
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.fsd-progress-labels {
    align-items: center;
    margin-bottom: 0.8rem;
    color: #fff;
    font-weight: 700;
}

.fsd-progress-track {
    position: relative;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.fsd-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, #ef6969 0%, var(--fsd-red) 65%, var(--fsd-red-dark) 100%);
    border-radius: 999px;
}

.fsd-progress-meta {
    margin-top: 0.95rem;
    flex-wrap: wrap;
}

.fsd-progress-meta > div {
    min-width: 140px;
}

.fsd-progress-meta strong,
.fsd-mini-card strong,
.fsd-stat-box strong {
    display: block;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.fsd-progress-meta span,
.fsd-mini-card span,
.fsd-stat-box span,
.fsd-stat-box small,
.fsd-history-summary,
.fsd-history-meta,
.fsd-side-note {
    color: var(--fsd-text-muted);
}

.fsd-mini-card,
.fsd-stat-box {
    height: 100%;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 2px solid var(--fsd-border-red);
    border-radius: 6px;
}

.fsd-mini-card span,
.fsd-stat-box span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.84rem;
}

.fsd-stat-box small {
    display: block;
    margin-top: 0.45rem;
}

.fsd-side-panel {
    min-height: 100%;
}

.fsd-donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 6px;
    border: 0;
    background: linear-gradient(180deg, #f14b4b, var(--fsd-red));
    color: #fff;
    font-weight: 800;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.fsd-donate-btn:hover {
    color: #fff;
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.fsd-info-list {
    display: grid;
    gap: 0.85rem;
}

.fsd-info-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--fsd-border-red);
    border-radius: 6px;
}

.fsd-info-item strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #fff;
}

.fsd-page-richtext {
    padding-top: 0.3rem;
}

.fsd-richtext h1,
.fsd-richtext h2,
.fsd-richtext h3,
.fsd-richtext h4 {
    margin-top: 1.2rem;
    margin-bottom: 0.65rem;
    color: #fff;
}

.fsd-richtext h1:first-child,
.fsd-richtext h2:first-child,
.fsd-richtext h3:first-child,
.fsd-richtext h4:first-child {
    margin-top: 0;
}

.fsd-richtext ul,
.fsd-richtext ol,
.fsd-donate-box-text ul,
.fsd-donate-box-text ol {
    padding-left: 1.25rem;
}

.fsd-richtext blockquote,
.fsd-donate-box-text blockquote {
    margin: 1rem 0;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--fsd-border-red);
    border-radius: 6px;
    color: #fff;
}

.fsd-history-panel {
    padding-bottom: 1.3rem;
}

.fsd-history-list {
    display: grid;
    gap: 1rem;
}

.fsd-history-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--fsd-border-red);
    border-radius: 6px;
}

.fsd-history-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #ef6868, #c43838);
    color: #fff;
    font-weight: 800;
}

.fsd-history-main {
    flex: 1 1 auto;
    min-width: 0;
}

.fsd-history-top {
    align-items: flex-start;
}

.fsd-history-top h3 {
    margin: 0 0 0.3rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
}

.fsd-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.88rem;
}

.fsd-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: var(--fsd-red-soft);
    color: #ff9d9d;
    font-size: 0.8rem;
    font-weight: 700;
}

.fsd-history-amount {
    flex: 0 0 auto;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
}

.fsd-history-message {
    margin-top: 0.85rem;
    padding: 0.8rem 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    color: var(--fsd-text-soft);
    line-height: 1.6;
}

.fsd-history-message-muted {
    color: var(--fsd-text-muted);
}

.fsd-empty-state {
    padding: 1.6rem;
    text-align: center;
    color: var(--fsd-text-soft);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.fsd-pagination-wrap {
    margin-top: 1.25rem;
}

.fsd-pagination-wrap nav,
.fsd-pagination-wrap .pagination {
    margin-bottom: 0;
}

.fsd-pagination-wrap .page-link {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.fsd-pagination-wrap .page-item.active .page-link {
    background: var(--fsd-red);
    border-color: var(--fsd-red);
}

.fsd-widget-body {
    margin: 0;
    font-family: inherit;
    background: transparent;
}

.fsd-widget-card {
    width: 100%;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 10%, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.00) 35%),
        radial-gradient(circle at 90% 20%, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.00) 28%),
        linear-gradient(180deg, #141217 0%, rgba(18, 15, 20, 0.96) 100%);
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.fsd-widget-header {
    font-size: 1.1rem;
    font-weight: 800;
    border-bottom: 3px solid #f14545;
    border-radius: 12px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.05);
    margin-bottom: 12px;
}

.fsd-widget-inner {
    background: rgba(9, 8, 11, 0.38);
    border-radius: 16px;
    padding: 12px;
}

.fsd-widget-progress-shell {
    position: relative;
    border: 4px solid #0f0d11;
    border-radius: 16px;
    background: rgba(255,255,255,0.65);
    overflow: hidden;
    height: 52px;
}

.fsd-widget-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--fsd-red);
    transition: width 0.7s ease;
}

.fsd-widget-progress-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.fsd-widget-labels {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fsd-widget-campaign {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #171717;
    font-weight: 800;
    font-size: 1.02rem;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff;
}

.fsd-widget-goal {
    color: #171717;
    font-weight: 800;
    font-size: 0.98rem;
    white-space: nowrap;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff;
}

.fsd-widget-description {
    margin: 14px 4px 16px;
    color: rgba(255,255,255,0.92);
    font-size: 1rem;
    line-height: 1.45;
}

.fsd-widget-button {
    display: block;
    text-align: center;
    border-radius: 10px;
    padding: 13px 18px;
    background: var(--fsd-red);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.fsd-widget-button:hover {
    color: #fff;
    opacity: 0.95;
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .fsd-panel-top,
    .fsd-progress-labels,
    .fsd-progress-meta,
    .fsd-history-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .fsd-history-amount {
        align-self: flex-start;
    }
}

@media (max-width: 767.98px) {
    .fs-donations-page {
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }

    .fsd-section-head,
    .fsd-panel,
    .fsd-mini-card,
    .fsd-stat-box,
    .fsd-info-item,
    .fsd-history-item,
    .fsd-history-message {
        border-radius: 6px;
    }

    .fsd-history-item {
        flex-direction: column;
    }

    .fsd-history-avatar {
        width: 44px;
        height: 44px;
    }

    .fsd-widget-labels {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .fsd-widget-goal {
        white-space: normal;
    }
}
