@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

.fsu-banner {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background: linear-gradient(135deg, #1a2a4a 0%, #0d4f6e 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(13,79,110,.35);
    animation: bannerIn .5s cubic-bezier(.22,1,.36,1) both;
}
@keyframes bannerIn {
    from { opacity: 0; transform: translateY(-18px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
.fsu-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.07) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: .18;
    animation: float 6s ease-in-out infinite;
}
.particle:nth-child(1) { width: 80px; height: 80px; background: #4fc3f7; top: -20px; right: -20px; animation-delay: 0s; }
.particle:nth-child(2) { width: 50px; height: 50px; background: #81c784; bottom: -15px; left: 10%;  animation-delay: 2s; }
.particle:nth-child(3) { width: 35px; height: 35px; background: #ffb74d; top: 10px;   left: 30%;  animation-delay: 4s; }
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.fsu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.fsu-message { font-size: 1rem; font-weight: 700; }
.fsu-message strong { color: #4fc3f7; }

.fsu-truck { font-size: 1.8rem; animation: bounce .8s ease-in-out infinite alternate; filter: drop-shadow(0 0 8px rgba(79,195,247,.6)); }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-6px); } }

.fsu-bar-track { background: rgba(255,255,255,.15); border-radius: 99px; height: 10px; overflow: hidden; }
.fsu-bar-fill  {
    height: 100%; border-radius: 99px;
    background: linear-gradient(90deg, #00c853, #69f0ae);
    transition: width .6s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.fsu-bar-fill::after {
    content: '';
    position: absolute;
    right: -1px; top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #00c853;
    animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 8px #00c853; } 50% { box-shadow: 0 0 16px #00c853; } }

.fsu-bar-labels { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .78rem; opacity: .75; }

/* Reached state */
.fsu-banner.reached { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
.fsu-banner.reached .fsu-message strong { color: #b9f6ca; }
.fsu-banner.reached .fsu-bar-fill { background: linear-gradient(90deg, #69f0ae, #b9f6ca); }

/* Confetti */
.confetti {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 2px;
    animation: confettiFall 2.2s ease-in forwards;
    pointer-events: none;
}
@keyframes confettiFall {
    0%   { opacity: 1; transform: translateY(-10px) rotate(0deg); }
    100% { opacity: 0; transform: translateY(120px) rotate(720deg); }
}
