/* ==========================================================
   MODAL POPUP
   ========================================================== */

.marquee-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px); /* iOS Safari fix */
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.marquee-modal-content {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px); /* iOS Safari fix */
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  padding: 0;
  position: relative;
  box-shadow: 0 8px 50px rgba(0,0,0,0.45);
  animation: modalPop 0.4s ease;
}

@keyframes modalPop {
  from { transform: translateY(40px) scale(0.9); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.marquee-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 28px;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
}

.marquee-modal-image img {
  width: 100%;
  display: block;
  border-radius: 20px 20px 0 0;
}

.marquee-modal-message {
  padding: 24px;
  font-size: 1rem;
  color: #fff;
}

.marquee-modal-btn {
  margin: 0 24px 24px 24px;
  display: block;
  text-align: center;
}

.marquee-item {
  cursor: pointer;
  padding: 0 10px;
}

.marquee-item:hover {
  text-decoration: underline;
}

/* ==========================================================
   GLOBAL MARQUEE (Shared between landing & dashboard)
========================================================== */

.top-marquee {
  width: 100%;
  height: 40px;
  overflow: hidden;

  background: linear-gradient(90deg, #ff7eb3, #ff65a3, #ff3f81);
  background-size: 300% 300%;
  animation: marqueeWave 8s ease-in-out infinite;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 9999;
  cursor: pointer;
}

@keyframes marqueeWave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.top-marquee-inner {
  white-space: nowrap;
  padding-left: 100%;
  font-weight: bold;
  font-size: 0.95rem;
  color: #fff;
  animation: marqueeScroll 18s linear infinite;
}

@keyframes marqueeScroll {
  from { transform: translateX(0%); }
  to { transform: translateX(-100%); }
}

.navbar-with-marquee {
  margin-top: 40px !important;
}

/* Modal */
.marquee-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  background: rgba(0,0,0,0.55);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.marquee-modal.show {
  display: flex;
}

.marquee-modal-content {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  overflow: hidden;

  animation: modalPop 0.35s ease;
}

@keyframes modalPop {
  from { transform: translateY(40px) scale(0.9); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.marquee-modal-image img {
  width: 100%;
  border-radius: 20px 20px 0 0;
}

.marquee-modal-message {
  padding: 40px;
  color: #fff;
}

.marquee-item {
  padding: 0 10px;
  cursor: pointer;
}

.marquee-item:hover {
  text-decoration: underline;
}
