/* ══ ANNOUNCEMENT BAR ════════════════════════════════
   Upload to: /wp-content/themes/paycape-theme/
   Enqueue via functions.php or paste into style.css
   ════════════════════════════════════════════════════ */

.announcement-bar {
  background: linear-gradient(90deg, #0a1740 0%, var(--blue, #1736B0) 45%, #0B1F72 100%);
  border-bottom: 1px solid rgba(15,226,233,.18);
  padding: 10px 0;
  position: relative;
  z-index: 300;
  overflow: hidden;
}

/* Subtle animated shimmer */
.announcement-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(15,226,233,.06) 50%,
    transparent 75%
  );
  background-size: 300% 100%;
  animation: ann-shimmer 6s linear infinite;
  pointer-events: none;
}

@keyframes ann-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.ann-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* Beta badge */
.ann-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--cyan, #0FE2E9);
  color: #07123F;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  flex-shrink: 0;
  font-family: var(--fb, system-ui, sans-serif);
}

/* Message */
.ann-msg {
  font-family: var(--fb, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

.ann-msg strong {
  color: #fff;
  font-weight: 800;
}

/* Inline CTA link */
.ann-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--cyan, #0FE2E9);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(15,226,233,.35);
  padding-bottom: 1px;
  transition: color 140ms, border-color 140ms;
}

.ann-cta:hover {
  color: #fff;
  border-color: rgba(255,255,255,.55);
}

.ann-cta svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 140ms;
}

.ann-cta:hover svg {
  transform: translateX(3px);
}

/* Dismiss button */
.ann-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: background 140ms, color 140ms;
  flex-shrink: 0;
}

.ann-close:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
}

.ann-close svg {
  width: 12px;
  height: 12px;
}

/* Mobile */
@media (max-width: 640px) {
  .ann-msg {
    font-size: 12px;
  }
  .ann-cta {
    display: none; /* hide CTA on very small screens, badge + text is enough */
  }
  .ann-badge {
    font-size: 9px;
  }
}


/* ══ BETA REDIRECT MODAL (replaces existing modal styles)
   Add this to style.css, or paste over the existing
   .app-modal-* rules
   ════════════════════════════════════════════════════ */

/* Overlay */
.app-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(7,18,63,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms cubic-bezier(.16,1,.3,1),
              visibility 300ms;
}

.app-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Card */
.app-modal {
  background: #fff;
  border-radius: 28px;
  padding: 48px 44px 40px;
  max-width: 500px;
  width: calc(100% - 40px);
  text-align: center;
  transform: translateY(20px) scale(.96);
  transition: transform 420ms cubic-bezier(.16,1,.3,1);
  box-shadow: 0 48px 120px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
}

.app-modal-overlay.open .app-modal {
  transform: none;
}

/* Beta pill at top of card */
.app-modal-beta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-l, #EEF2FF);
  color: var(--blue, #1736B0);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  font-family: var(--fb, system-ui, sans-serif);
}

.app-modal-beta-pill .beta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan, #0FE2E9);
  animation: blink 2s infinite;
}

/* Orb */
.app-modal-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue, #1736B0), var(--cyan, #0FE2E9));
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 40px rgba(23,54,176,.28),
              0 0 0 0 rgba(15,226,233,.3);
  animation: modal-pulse 2.4s ease-in-out infinite;
}

@keyframes modal-pulse {
  0%, 100% { box-shadow: 0 14px 40px rgba(23,54,176,.28), 0 0 0 0 rgba(15,226,233,.3); }
  50%       { box-shadow: 0 14px 40px rgba(23,54,176,.28), 0 0 0 14px rgba(15,226,233,0); }
}

.app-modal-orb svg {
  width: 32px;
  height: 32px;
}

/* Text */
.app-modal h2 {
  font-size: clamp(20px, 3vw, 27px);
  letter-spacing: -.04em;
  color: var(--text, #0a0b12);
  margin-bottom: 10px;
  font-family: var(--fd, Georgia, serif);
  font-weight: 800;
}

.app-modal p {
  color: var(--muted, #657086);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 22px;
  font-family: var(--fb, system-ui, sans-serif);
}

/* Beta note box */
.app-modal-beta-note {
  background: #EEF2FF;
  border: 1px solid rgba(23,54,176,.12);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--blue, #1736B0);
  font-weight: 600;
  line-height: 1.55;
  font-family: var(--fb, system-ui, sans-serif);
  text-align: left;
}

.app-modal-beta-note strong {
  font-weight: 900;
}

/* Progress bar */
.app-modal-progress {
  height: 4px;
  background: #E7ECFF;
  border-radius: 999px;
  margin-bottom: 14px;
  overflow: hidden;
}

.app-modal-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue, #1736B0), var(--cyan, #0FE2E9));
  border-radius: 999px;
  width: 0;
  transition: width 2.8s linear;
}

/* Note line */
.app-modal-note {
  font-size: 12px;
  color: var(--muted, #657086);
  font-family: var(--fb, system-ui, sans-serif);
}

/* Cancel */
.app-modal-cancel {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted, #657086);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--fb, system-ui, sans-serif);
  background: none;
  border: none;
}

.app-modal-cancel:hover {
  color: var(--text, #0a0b12);
}

/* Mobile */
@media (max-width: 480px) {
  .app-modal {
    padding: 36px 24px 32px;
    border-radius: 22px;
  }
}
