:root{
  --notice-height: 40px;

  /* timing */
  --marquee-duration: 17s;   /* how fast text moves */
  --text-gradient-duration: 15s; /* gradient movement on text */
}

/* Bar background: soft white (not pure) */
.fujn-notice-bar{
  width: 100%;
  position: relative;
  z-index: 80;
  background: rgba(255,255,255,0.78);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
}

/* Fade out when closing */
.fujn-notice-bar.is-hiding{
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 250ms ease, transform 250ms ease;
}

/* Layout */
.fujn-notice-inner{
  max-width: 1200px;
  margin: 0 auto;
  min-height: var(--notice-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
}

/* Marquee container */
.fujn-notice-marquee{
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
}

/* Track */
.fujn-notice-track{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  will-change: transform;
  white-space: nowrap;

  /* start STATIC by default */
  transform: translateX(0);
}

/* After 3 seconds we will add .is-moving with JS */
.fujn-notice-bar.is-moving .fujn-notice-track{
  animation: fujnMarquee var(--marquee-duration) linear infinite;
}

/* Gradient text but readable */
.fujn-notice-text{
  font-size: 15px;
  font-weight: 700;

  background: linear-gradient(90deg, #9fcf00, #00d44b, #009be3, #b34bff);
  background-size: 300% 300%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: fujnTextMove var(--text-gradient-duration) ease-in-out infinite;

  /* makes it readable on light bg */
  text-shadow: 0 1px 0 rgba(0,0,0,0.18);
}

/* Separator */
.fujn-notice-sep{
  color: rgba(0,0,0,0.35);
  font-weight: 800;
}

/* Actions */
.fujn-notice-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* Close button */
.fujn-notice-close{
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.6);
  color: rgba(0,0,0,0.65);
  cursor: pointer;
}
.fujn-notice-close:hover{
  background: rgba(255,255,255,0.9);
}

/* Your gradient button (ok with white bar) */
.gradient-nav-btn{
  position: relative;
  display: inline-block;
  padding: 7px 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, #6a3df5, #5b4bff, #3bb7ff, #b34bff);
  background-size: 300% 300%;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  animation: navMove 8s ease-in-out infinite;
  overflow: hidden;
  white-space: nowrap;
}
.gradient-nav-btn::before{
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, #9d5bff, #00e5ff, #6a3df5, #00e5ff);
  background-size: 400% 400%;
  opacity: 0.35;
  z-index: 0;
  border-radius: 8px;
  animation: borderMove 4s linear infinite;
}
.gradient-nav-btn span{
  position: relative;
  z-index: 1;
}

@keyframes fujnMarquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}
@keyframes fujnTextMove{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}
@keyframes navMove{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}
@keyframes borderMove{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

/* Mobile */
@media (max-width: 720px){
  .fujn-notice-inner{ padding: 10px 10px; }
  .fujn-notice-text{ font-size: 13px; }
  .gradient-nav-btn{ padding: 7px 12px; font-size: 13px; }
}
