/* ═══════════════════════════════════════════════════════════════════
   PHASE 5 — ANIMATIONS, POLISH & MICRO-INTERACTIONS
   Revolute-style premium animations for BlednaPay
   Loaded on all pages. No business logic.
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   1. GLOBAL KEYFRAMES
   ═══════════════════════════════════════════════════════════════════ */

/* Pulse — for LIVE badge, notification dots */
@keyframes bledna-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 200, 124, 0.5);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(0, 200, 124, 0);
  }
}

/* Scale In — bounce entrance for success/check icons */
@keyframes bledna-scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Expand Ring — expanding ring for confirmation/scan feedback */
@keyframes bledna-expandRing {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Shimmer — loading skeleton shimmer effect */
@keyframes bledna-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Fade In Up — staggered page entrance */
@keyframes bledna-fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In — simple fade */
@keyframes bledna-fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Slide In Left — for service rows, list items */
@keyframes bledna-slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-12px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Rotate In — for decorative icons, badges */
@keyframes bledna-rotateIn {
  0% {
    transform: rotate(-15deg) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

/* Float — gentle floating for hero elements */
@keyframes bledna-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* Glow Pulse — for glowing borders on active elements */
@keyframes bledna-glowPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0, 200, 124, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 200, 124, 0.45);
  }
}

/* Ring expand (confirmation feedback) */
@keyframes bledna-ringExpand {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   2. ENTRANCE ANIMATIONS (Page load stagger)
   Apply .anim-fadeInUp with delay utilities to children
   ═══════════════════════════════════════════════════════════════════ */

/* Base entrance: apply to container, children get --delay */
.anim-stagger {
  animation: bledna-fadeInUp 0.5s ease-out both;
}

/* Stagger delays — add to child elements */
.anim-delay-1 { animation-delay: 0.05s; }
.anim-delay-2 { animation-delay: 0.10s; }
.anim-delay-3 { animation-delay: 0.15s; }
.anim-delay-4 { animation-delay: 0.20s; }
.anim-delay-5 { animation-delay: 0.25s; }
.anim-delay-6 { animation-delay: 0.30s; }
.anim-delay-7 { animation-delay: 0.35s; }
.anim-delay-8 { animation-delay: 0.40s; }

/* Individual entrance classes */
.anim-fadeInUp {
  animation: bledna-fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.anim-fadeIn {
  animation: bledna-fadeIn 0.4s ease both;
}
.anim-scaleIn {
  animation: bledna-scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.anim-slideInLeft {
  animation: bledna-slideInLeft 0.4s ease both;
}
.anim-rotateIn {
  animation: bledna-rotateIn 0.5s ease both;
}

/* Hero entrance — larger, more dramatic */
.anim-hero {
  animation: bledna-fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Service grid entrance (index.html) ── */
.service-card {
  animation: bledna-fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.12s; }
.service-card:nth-child(3) { animation-delay: 0.19s; }
.service-card:nth-child(4) { animation-delay: 0.26s; }

/* ── Stats row entrance ── */
.stat-item {
  animation: bledna-fadeInUp 0.5s ease both;
}
.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }

/* ── Rate card entrance ── */
.rate-card {
  animation: bledna-fadeInUp 0.5s ease 0.08s both;
}

/* ── Trust strip entrance ── */
.trust-strip-item {
  animation: bledna-fadeIn 0.5s ease both;
}

/* ── Bottom nav entrance ── */
.bottom-nav {
  animation: bledna-fadeInUp 0.4s ease 0.15s both;
}

/* ── FAB entrance ── */
.bledna-fab {
  animation: bledna-scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

/* ═══════════════════════════════════════════════════════════════════
   3. HOVER EFFECTS — Cards, Buttons, Interactive Elements
   ═══════════════════════════════════════════════════════════════════ */

/* ── Card hover: lift + shadow ── */
.card,
.tunnel-card,
.recap-preview,
.invoice-preview,
.transparency-card,
.recap3-card,
.payment-method-card,
.offer-card,
.operator-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.tunnel-card:hover,
.recap-preview:hover,
.invoice-preview:hover,
.transparency-card:hover,
.recap3-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ── Service row hover: translateX ── */
.service-row,
.service-item {
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.service-row:hover,
.service-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Icon button hover: scale ── */
.btn-icon,
.icon-btn,
.service-icon-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-icon:hover,
.icon-btn:hover,
.service-icon-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 200, 124, 0.2);
}

/* ── FAB hover: scale + shadow ── */
.bledna-fab {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
               box-shadow 0.2s ease;
}
.bledna-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(0, 200, 124, 0.5), 0 0 20px rgba(0, 200, 124, 0.2);
}
.bledna-fab:active {
  transform: scale(0.95);
  box-shadow: 0 4px 16px rgba(0, 200, 124, 0.3);
}

/* ── Nav link hover ── */
.bledna-nav-desktop a,
.nav-link {
  transition: color 0.2s ease, opacity 0.2s ease;
}
.bledna-nav-desktop a:hover,
.nav-link:hover {
  color: rgba(255, 255, 255, 0.95) !important;
  opacity: 1 !important;
}

/* ── Bottom nav item hover ── */
.nav-item {
  transition: color 0.2s ease, transform 0.15s ease;
}
.nav-item:hover {
  color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

/* ── Quick pill hover ── */
.quick-pill,
.bene-chip {
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.quick-pill:hover,
.bene-chip:hover {
  border-color: rgba(0, 200, 83, 0.5) !important;
  background: rgba(0, 200, 124, 0.1) !important;
  color: var(--bledna-green, #00C87C) !important;
  transform: translateY(-1px);
}

/* ── Offer card hover ── */
.offer-card {
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.offer-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.offer-card.selected {
  border-color: var(--bledna-green, #00C87C);
  background: rgba(0, 200, 124, 0.08);
  transition: border-color 0.2s, background 0.2s;
}

/* ── Operator button hover ── */
.operator-btn {
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.operator-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ── Trust strip item hover ── */
.trust-strip-item,
.trust-badge {
  transition: color 0.2s ease, transform 0.15s ease;
}
.trust-strip-item:hover,
.trust-badge:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

/* ── Ref guide close button hover ── */
.ref-guide-close:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

/* ── Scanner card hover (phase 4b) ── */
.scanner-card {
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
.scanner-card:hover {
  border-color: rgba(0, 200, 124, 0.5) !important;
  background: rgba(0, 200, 124, 0.04);
  transform: translateY(-2px);
}

/* ── Payment method card hover ── */
.payment-method-card {
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.payment-method-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════
   4. FOCUS STATES — Accessible focus rings
   ═══════════════════════════════════════════════════════════════════ */

/* Global focus-visible styling */
*:focus-visible,
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--bledna-green, #00C87C);
  outline-offset: 2px;
}

/* ── Input focus ── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
.form-input,
.dzd-input-wrap input,
.input-wrap input,
.sms-phone-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus,
.form-input:focus,
.dzd-input-wrap input:focus,
.input-wrap input:focus,
.sms-phone-input:focus {
  border-color: var(--bledna-green, #00C87C) !important;
  box-shadow: 0 0 0 4px rgba(0, 200, 124, 0.1) !important;
  outline: none;
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="tel"]:focus-visible,
input[type="number"]:focus-visible,
input[type="password"]:focus-visible,
textarea:focus-visible,
.form-input:focus-visible,
.dzd-input-wrap input:focus-visible,
.input-wrap input:focus-visible,
.sms-phone-input:focus-visible {
  border-color: var(--bledna-green, #00C87C);
  box-shadow: 0 0 0 4px rgba(0, 200, 124, 0.1);
  outline: none;
}

/* ── Button focus ── */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible,
.btn-pay-gradient:focus-visible,
.stp-desktop-btn:focus-visible {
  outline: 2px solid var(--bledna-green, #00C87C);
  outline-offset: 2px;
  filter: brightness(1.05);
}

/* ── Nav links focus ── */
.bledna-nav a:focus-visible,
.bottom-nav a:focus-visible,
.nav-item:focus-visible {
  outline: 2px solid var(--bledna-green, #00C87C);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   5. TRANSITIONS — Unified transition system
   ═══════════════════════════════════════════════════════════════════ */

/* Base transition class */
.bledna-transition {
  transition: all 0.2s ease;
}
.bledna-transition-slow {
  transition: all 0.3s ease;
}
.bledna-transition-fast {
  transition: all 0.15s ease;
}

/* ── Color transitions ── */
.bledna-color-transition {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

/* ── Transform transitions ── */
.bledna-transform-transition {
  transition: transform 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════════
   6. FAQ ACCORDION — Smooth expand/collapse
   ═══════════════════════════════════════════════════════════════════ */

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary, #f1f5f9);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 12px;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--bledna-green, #00C87C);
}

.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary, rgba(255,255,255,0.4));
  transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--bledna-green, #00C87C);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-answer-content {
  padding: 0 0 18px;
  font-size: 0.88rem;
  color: var(--text-secondary, rgba(255,255,255,0.65));
  line-height: 1.6;
}

/* ── FAQ in tunnel pages (glassmorphic) ── */
.faq-glass-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-glass-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.faq-glass-question {
  padding: 16px 18px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-glass-question span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tp-text-1, #f1f5f9);
}

.faq-glass-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--tp-text-3, rgba(255,255,255,0.4));
}

.faq-glass-item.open .faq-glass-arrow {
  transform: rotate(180deg);
}

.faq-glass-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
  padding: 0 18px;
}

.faq-glass-item.open .faq-glass-answer {
  max-height: 400px;
  opacity: 1;
  padding-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════════════
   7. SUCCESS / CONFIRMATION ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */

/* Success icon scale-in */
.success-icon {
  animation: bledna-scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Success checkmark draw animation */
.checkmark-circle {
  animation: bledna-checkDraw 0.6s ease forwards;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
}
.checkmark-check {
  animation: bledna-checkDraw 0.3s 0.5s ease forwards;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}
@keyframes bledna-checkDraw {
  to { stroke-dashoffset: 0; }
}

/* Confirmation receipt fade-in */
.receipt {
  animation: bledna-fadeInUp 0.5s ease 0.2s both;
}

/* ── Ring confirmation ── */
.confirm-ring {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--bledna-green, #00C87C);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: bledna-ringExpand 0.6s ease forwards;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   8. SKELETON LOADING
   ═══════════════════════════════════════════════════════════════════ */

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: bledna-shimmer 1.5s ease infinite;
  border-radius: 8px;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 70%;
}

.skeleton-title {
  height: 20px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   9. CSS PERFORMANCE — GPU acceleration + containment
   ═══════════════════════════════════════════════════════════════════ */

/* GPU layer promotion for animated elements */
.bledna-fab,
.bottom-nav,
.nav-item,
.card,
.tunnel-card,
.offer-card,
.operator-btn,
.scanner-card,
.recap3-card {
  will-change: transform;
}

/* Layout containment for cards — reduces repaints */
.card,
.tunnel-card,
.invoice-preview,
.recap-preview,
.transparency-card,
.recap3-card,
.payment-method-card,
.offer-card {
  contain: layout style;
}

/* ═══════════════════════════════════════════════════════════════════
   10. PREFERS REDUCED MOTION — Accessibility
   ═══════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Keep essential state indicators */
  .live-dot,
  .rate-banner-pulse,
  .live-rate-dot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Keep hover effects (not motion) */
  .card:hover,
  .tunnel-card:hover,
  .service-row:hover,
  .bledna-fab:hover {
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   11. SCROLL ANIMATIONS — Intersection Observer driven
   Elements with .anim-scroll get animation when scrolled into view
   ═══════════════════════════════════════════════════════════════════ */

/* Fade in on scroll — base state */
.anim-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.anim-scroll.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children on scroll */
.anim-scroll-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.anim-scroll-stagger.anim-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.anim-scroll-stagger.anim-visible > *:nth-child(1) { transition-delay: 0s; }
.anim-scroll-stagger.anim-visible > *:nth-child(2) { transition-delay: 0.08s; }
.anim-scroll-stagger.anim-visible > *:nth-child(3) { transition-delay: 0.16s; }
.anim-scroll-stagger.anim-visible > *:nth-child(4) { transition-delay: 0.24s; }
.anim-scroll-stagger.anim-visible > *:nth-child(5) { transition-delay: 0.32s; }
.anim-scroll-stagger.anim-visible > *:nth-child(6) { transition-delay: 0.40s; }

/* ═══════════════════════════════════════════════════════════════════
   12. TOAST / NOTIFICATION ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */

.bledna-toast-enter {
  animation: bledna-toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bledna-toast-exit {
  animation: bledna-toastOut 0.3s ease forwards;
}

@keyframes bledna-toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes bledna-toastOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
}

/* ── Error toast variant ── */
.bledna-toast-error {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
}

/* ── Warning toast variant ── */
.bledna-toast-warn {
  background: rgba(251, 191, 36, 0.12) !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
  color: #fcd34d !important;
}

/* ═══════════════════════════════════════════════════════════════════
   13. ACTIVE / PRESSED STATES
   ═══════════════════════════════════════════════════════════════════ */

/* Press effect for cards */
.card:active,
.tunnel-card:active,
.recap3-card:active {
  transform: translateY(0) scale(0.99);
}

/* Press effect for buttons */
button:active,
.btn-primary:active,
.btn-secondary:active,
.btn-ghost:active {
  transform: scale(0.98) !important;
}

/* Active glow for selected items */
.operator-btn.selected,
.offer-card.selected,
.payment-method-card.selected {
  animation: bledna-glowPulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   14. SWIPE TO PAY — Animation refinements
   ═══════════════════════════════════════════════════════════════════ */

/* Thumb bounce on release */
.stp-thumb-released {
  animation: bledna-thumbBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bledna-thumbBounce {
  0% { transform: scale(1); }
  40% { transform: scale(0.9); }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Success state for swipe track */
.stp-track.stp-success {
  border-color: var(--bledna-green, #00C87C);
  background: rgba(0, 200, 124, 0.08);
}

.stp-track.stp-success .stp-thumb {
  background: var(--bledna-green, #00C87C);
  box-shadow: 0 0 20px rgba(0, 200, 124, 0.5);
}

.stp-track.stp-success .stp-label {
  color: var(--bledna-green, #00C87C);
}

/* ═══════════════════════════════════════════════════════════════════
   15. LIVE BADGE — Continuous pulse
   High performance: uses transform/opacity only (no layout)
   ═══════════════════════════════════════════════════════════════════ */

.live-dot {
  animation: bledna-pulse 2s ease-in-out infinite;
}

.live-badge {
  animation: bledna-fadeIn 0.4s ease both;
}

/* ── Rate banner pulse dot (tunnel pages) ── */
.rate-banner-pulse {
  animation: bledna-pulse 2.2s ease-in-out infinite;
  will-change: opacity, transform;
}

/* ═══════════════════════════════════════════════════════════════════
   16. MODAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */

.modal-backdrop {
  transition: opacity 0.28s ease;
}

.modal-inner {
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
              opacity 0.25s ease;
}

/* ═══════════════════════════════════════════════════════════════════
   17. SPINNER REFINEMENT — Already exists, ensure consistency
   ═══════════════════════════════════════════════════════════════════ */

.spinner,
.ocr-spinner {
  animation: bledna-spin 0.8s linear infinite;
}

@keyframes bledna-spin {
  to { transform: rotate(360deg); }
}

/* Fast spinner variant */
.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
  animation-duration: 0.6s;
}

/* ═══════════════════════════════════════════════════════════════════
   18. MISC POLISH — Subtle refinements
   ═══════════════════════════════════════════════════════════════════ */

/* Dropdown open animation */
.bledna-dropdown-menu {
  animation: bledna-dropdownIn 0.2s ease both;
}

@keyframes bledna-dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dropdown arrow rotation */
.bledna-dropdown-arrow {
  transition: transform 0.2s ease;
}

/* Scrollbar styling (webkit) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Selection color */
::selection {
  background: rgba(0, 200, 124, 0.25);
  color: #fff;
}

/* Smooth scroll (can be overridden per-section) */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}