/* Główny kontener baneru dotacji */
.nd-donation-banner {
    background: #232323; 
    border: 1px solid #333333; 
    border-radius: 6px; 
    padding: 20px 24px; 
    margin: 20px auto; 
    max-width: 850px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #b2b2b2; 
    box-sizing: border-box;
}

/* Układ zawartości - góra (tekst), dół (pasek + przycisk) */
.nd-donate-header-zone {
    text-align: left;
    margin-bottom: 15px;
}

.nd-donate-head-title {
    font-size: 15px; 
    color: #dddddd; 
    font-weight: bold; 
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin: 0 0 4px 0;
}

.nd-donate-head-sub {
    font-size: 12.5px;
    color: #8aa4ff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nd-donate-head-sub i {
    font-size: 13px;
    animation: ndCrownPulse 2s infinite ease-in-out;
}

/* Neonowy akcent procentowy */
.nd-donate-percentage {
    font-size: 18px; 
    color: #a2fefd; 
    font-weight: bold; 
    text-shadow: 0 0 10px rgba(162, 254, 253, 0.6);
    transition: color 0.5s ease, text-shadow 0.5s ease;
}

/* LINIA AKCJI: Pasek i Przycisk obok siebie */
.nd-donate-action-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* Ciemne gniazdo paska postępu */
.nd-donate-progress-wrapper {
    flex: 1;
    background: #151515; 
    border: 1px solid #2d2d2d; 
    border-radius: 20px; 
    padding: 4px; 
    position: relative; 
    overflow: hidden; 
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7);
    height: 18px;
}

/* Ruchomy gradient paska postępu reagujący na --progress oraz dynamiczny kolor --bar-bg */
.nd-donate-progress-bar {
    width: var(--progress, 47%);
    background: var(--bar-bg, linear-gradient(90deg, #4a154b, #6b11ff, #0077ff, #6b11ff));
    background-size: 200% 100%;
    height: 100%; 
    border-radius: 20px; 
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 12px var(--bar-glow, rgba(107, 17, 255, 0.45));
    transition: background 0.5s ease, box-shadow 0.5s ease;
    animation: ndBarFill 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards, ndGradientFlow 4s linear infinite;
}

/* Przesuwający się ukośny połysk po pasku */
.nd-donate-progress-bar::after {
    content: '';
    position: absolute; 
    top: 0; 
    left: -60%; 
    width: 50%; 
    height: 100%; 
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: ndProgressShine 2.6s infinite ease-in-out;
}

/* Tekst procentowy wewnątrz paska */
.nd-donate-progress-text {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    font-size: 10px; 
    font-weight: bold; 
    color: #ffffff; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9); 
    letter-spacing: 1px;
    white-space: nowrap;
    z-index: 2;
}

/* Przycisk akcji w stylu glossy "Strefa Video" */
.nd-donate-btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 8px; 
    background: linear-gradient(180deg, #4b5058 0%, #353940 50%, #202226 51%, #16181b 100%) !important;
    border: 1px solid #6b7280 !important;
    color: #ffffff !important; 
    padding: 0 20px; 
    height: 28px;
    box-sizing: border-box;
    font-size: 11.5px; 
    font-weight: bold; 
    letter-spacing: 0.4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    text-decoration: none !important; 
    border-radius: 5px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important; 
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.nd-donate-btn i {
    color: #a2fefd;
    filter: drop-shadow(0 0 4px rgba(162, 254, 253, 0.5));
    transition: transform 0.2s ease, color 0.2s ease;
}

.nd-donate-btn:hover {
    background: linear-gradient(180deg, #5c626c 0%, #424750 50%, #282b30 51%, #1c1e22 100%) !important;
    border-color: #a2fefd !important;
    transform: translateY(-1px); 
    box-shadow: 0 4px 12px rgba(162, 254, 253, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.nd-donate-btn:hover i {
    transform: scale(1.15);
}

.nd-donate-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* Animacje */
@keyframes ndBarFill {
    from { width: 0%; }
    to { width: var(--progress, 47%); }
}

@keyframes ndGradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes ndProgressShine {
    0% { left: -60%; }
    70%, 100% { left: 130%; }
}

@keyframes ndCrownPulse {
    0% { transform: scale(1); text-shadow: 0 0 2px rgba(107, 17, 255, 0); }
    50% { transform: scale(1.1); text-shadow: 0 0 8px rgba(107, 17, 255, 0.6); color: #fff; }
    100% { transform: scale(1); text-shadow: 0 0 2px rgba(107, 17, 255, 0); }
}

/* Responsywność dla małych ekranów smartfonów */
@media (max-width: 600px) {
    .nd-donation-banner { padding: 16px; margin: 15px 10px; }
    .nd-donate-header-zone { text-align: center; }
    .nd-donate-action-row { flex-direction: column; gap: 12px; }
    .nd-donate-progress-wrapper { width: 100%; flex: none; }
    .nd-donate-btn { width: 100%; height: 36px; }
}
