.donation-banner-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    width: 90%;
    max-width: 800px;
    background: linear-gradient(135deg, #13161b 0%, #0d0e12 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(16, 185, 129, 0.1);
    z-index: 10005;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Work Sans', sans-serif;
    overflow: hidden;
}

.donation-banner-wrapper.slide-down {
    transform: translateX(-50%) translateY(0);
}

.donation-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
    z-index: 2;
}

.donation-close-btn:hover {
    color: #EB4A57;
    transform: scale(1.1);
}

.donation-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
}

.donation-text {
    flex: 1;
}

.donation-text h3 {
    font-family: 'Changa', sans-serif;
    color: #edf0f1;
    font-size: 1.2rem;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.donation-text p {
    color: #bbb;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.donation-progress-section {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donation-stats {
    display: flex;
    justify-content: space-between;
    color: #edf0f1;
    font-size: 0.85rem;
    font-weight: 600;
}

.donation-stats .raised {
    color: #10B981;
}

.donation-progress-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.donation-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #059669, #10B981, #4cff88);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.donation-contributors {
    font-size: 0.8rem;
    color: #888;
    text-align: right;
}

.donation-action {
    display: flex;
    align-items: center;
}

.donate-btn-primary {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: 'Changa', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    animation: gentlePulse 3s infinite;
    white-space: nowrap;
}

.donate-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #4cff88, #10B981);
}

@keyframes gentlePulse {
    0%   { transform: scale(1);    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
    50%  { transform: scale(1.02); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); }
    100% { transform: scale(1);    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
}

.donation-ticker-strip {
    display: flex;
    align-items: center;
    height: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.25);
    margin: 0 -24px;
    border-radius: 0 0 16px 16px;
    position: relative;
    overflow: hidden;
}

.donation-ticker-strip::before,
.donation-ticker-strip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.donation-ticker-strip::before {
    left: 0;
    background: linear-gradient(to right, #0d0e12, transparent);
}

.donation-ticker-strip::after {
    right: 0;
    background: linear-gradient(to left, #0d0e12, transparent);
}

.ticker-label {
    flex-shrink: 0;
    padding: 0 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FFD700;
    border-right: 1px solid rgba(255, 215, 0, 0.2);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    background: rgba(255, 215, 0, 0.05);
    z-index: 3;
}

.ticker-label .crown-icon {
    font-size: 0.85rem;
}

.ticker-track-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.ticker-track-wrapper.is-dragging {
    cursor: grabbing;
}

.ticker-track {
    display: flex;
    align-items: center;
    will-change: transform;
    white-space: nowrap;
}

.ticker-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    font-size: 0.78rem;
    font-family: 'Work Sans', sans-serif;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    height: 34px;
    pointer-events: none;
}

.ticker-rank {
    font-size: 0.68rem;
    font-weight: 700;
    width: 18px;
    text-align: center;
}

.ticker-rank.rank-1 { color: #FFD700; }
.ticker-rank.rank-2 { color: #C0C0C0; }
.ticker-rank.rank-3 { color: #CD7F32; }
.ticker-rank.rank-n { color: #666; }

.ticker-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    color: #0d0e12;
}

.ticker-name {
    color: #d4d8dd;
    font-weight: 500;
}

.ticker-amount {
    font-weight: 700;
}

.amount-gold   { color: #FFD700; }
.amount-silver { color: #a3e635; }
.amount-bronze { color: #10B981; }

.ticker-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

@media screen and (max-width: 768px) {
    .donation-banner-wrapper {
        padding: 16px 16px 0;
    }

    .donation-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 15px;
    }

    .donation-text h3 {
        justify-content: center;
        font-size: 1.1rem;
    }

    .donation-stats {
        font-size: 0.8rem;
    }

    .donation-contributors {
        text-align: center;
    }

    .donate-btn-primary {
        width: 100%;
        padding: 10px;
    }

    .ticker-label {
        padding: 0 10px;
        font-size: 0.65rem;
    }

    .ticker-chip {
        padding: 0 14px;
        font-size: 0.74rem;
    }

    .donation-ticker-strip {
        margin: 0 -16px;
    }
}