/**
 * Redline / SellAuth Anime.js UI Enhancement Styles
 */

:root {
  --glow-primary: rgba(37, 99, 235, 0.45);
  --glow-accent: rgba(96, 165, 250, 0.6);
  --glow-cyan: rgba(56, 189, 248, 0.5);
  --glass-bg: rgba(11, 17, 32, 0.78);
  --glass-border: rgba(59, 130, 246, 0.2);
}

/* Hardware accelerated animation targets */
.anime-hero-title,
.anime-badge,
.anime-cta,
.mkt-card,
.card,
.feat-card,
.testimonial,
.script-box,
.rank-card {
  will-change: transform, opacity;
}

/* Interactive Card Glow / Spotlight */
.mkt-card,
.card,
.feat-card,
.testimonial,
.rank-card {
  position: relative;
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mkt-card:hover,
.card:hover,
.feat-card:hover,
.testimonial:hover,
.rank-card:hover {
  border-color: rgba(96, 165, 250, 0.65) !important;
  box-shadow: 0 14px 40px -8px rgba(37, 99, 235, 0.35), 0 0 24px -2px rgba(96, 165, 250, 0.25) !important;
}

/* Mouse spotlight effect on cards */
.mkt-card::before,
.card::before,
.feat-card::before,
.rank-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(96, 165, 250, 0.09),
    transparent 45%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.mkt-card:hover::before,
.card:hover::before,
.feat-card:hover::before,
.rank-card:hover::before {
  opacity: 1;
}

/* Product Card Improvements */
.card-img-top {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.card-img-top img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-img-top img {
  transform: scale(1.06);
}

/* Live Radar Pulse Indicator */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.pulse-dot.blue {
  background: #ffb020;
  box-shadow: 0 0 10px #ffb020;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.7;
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radar-ping {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Pulse Glow Animation */
@keyframes neon-pulse {
  0%, 100% {
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.4), inset 0 0 15px rgba(37, 99, 235, 0.2);
  }
  50% {
    box-shadow: 0 0 35px rgba(96, 165, 250, 0.75), inset 0 0 22px rgba(96, 165, 250, 0.4);
  }
}

.glow-active {
  animation: neon-pulse 3.5s infinite ease-in-out;
}

/* Stat Counters in Hero & Trust Section */
.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(11, 17, 32, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  min-width: 140px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-box:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.35);
}

.stat-number {
  font-family: "Anton", "Oswald", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-brand-cyan, #38bdf8) 0%, var(--color-brand, #3b82f6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-top: 0.35rem;
}

/* Magnetic Button Physics */
.btn-magnetic {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.btn-magnetic:hover {
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.8) !important;
}

/* Category Filter Active Pill Animation */
.catalog-filter-btn {
  position: relative;
  transition: all 0.25s ease;
  font-weight: 600;
  border-radius: 999px;
}

.catalog-filter-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.5) !important;
}

/* Supported Titles Infinite Marquee */
@keyframes marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(20, 12, 10, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  margin-inline: 0.6rem;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.marquee-item:hover {
  border-color: rgba(96, 165, 250, 0.6);
  transform: translateY(-2px);
  color: #ffffff;
}

/* Logo-based marquee (payment methods / partner logos) */
.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}

.logos-marquee-group:hover .animate-marquee {
  animation-play-state: paused;
}

.marquee-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-img {
  height: 32px;
  width: auto;
  min-width: 64px;
  object-fit: contain;
  margin-inline: 1.75rem;
  opacity: 0.75;
  filter: grayscale(0.2);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.marquee-img:hover {
  opacity: 1;
  filter: grayscale(0);
}

.marquee-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 64px;
  font-size: 1.6rem;
  opacity: 1;
  filter: none;
}

.marquee-icon:hover {
  opacity: 1;
  filter: none;
  transform: scale(1.08);
}

.marquee-flag-img {
  height: 24px;
  width: 36px;
  min-width: 36px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  opacity: 1;
  filter: none;
}

.marquee-svg-img {
  height: 26px;
  width: auto;
  min-width: 36px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: transform 0.2s ease;
}

.marquee-svg-img:hover {
  transform: scale(1.08);
}

.marquee-textbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 64px;
  font-family: var(--font-family-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 1;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .animate-marquee {
    animation: none;
  }
}

/* Script Builder Cyber IDE Simulation */
.cyber-ide-window {
  background: #150e0c;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(37, 99, 235, 0.15);
}

.cyber-ide-topbar {
  background: #1a100d;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cyber-ide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.cyber-code-block {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #ffc9a8;
  padding: 1.5rem;
  background: #0e0908;
}

.code-keyword { color: #f472b6; font-weight: 600; }
.code-func { color: #60a5fa; }
.code-string { color: #34d399; }
.code-comment { color: #64748b; font-style: italic; }
.code-number { color: #fbbf24; }

/* Rank Progression Ladder */
.rank-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #241a17;
  position: relative;
  overflow: hidden;
}

.rank-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  box-shadow: 0 0 12px #ffb020;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.products-section-wrap {
  position: relative;
  overflow: visible !important;
}

/* ==========================================================================
   PERSISTENT TACTICAL BACKGROUND CHARACTER (GENERIC SILHOUETTE)
   ========================================================================== */

.tactical-bg-character-layer {
  position: fixed;
  right: -2vw;
  bottom: 0;
  width: min(520px, 46vw);
  height: 88vh;
  max-height: 940px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s ease;
  will-change: transform, opacity;
}

/* Hidden while in Hero section so Ghost does not overlap with hero soldier operator */
.tactical-bg-character-layer.ghost-init-hidden,
.tactical-bg-character-layer.ghost-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.tactical-character-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-aura, rgba(59, 130, 246, 0.35)) 0%, var(--color-brand-glow, rgba(56, 189, 248, 0.15)) 45%, transparent 70%);
  filter: blur(45px);
  pointer-events: none;
  bottom: 18%;
  right: 12%;
  animation: pulse-glow-ambient 5s ease-in-out infinite alternate;
  will-change: transform;
}

.tactical-character-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  opacity: var(--char-opacity-desktop, 0.42);
  filter: drop-shadow(0 0 35px rgba(59, 130, 246, 0.4)) contrast(1.1);
  will-change: transform;
  animation: ghost-ambient-float 7s ease-in-out infinite alternate;
}

@keyframes ghost-ambient-float {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.012);
  }
  100% {
    transform: translateY(-20px) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tactical-character-img {
    animation: none;
  }
}

@keyframes pulse-glow-ambient {
  0% {
    transform: scale(0.92) translate(0, 0);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.15) translate(-10px, -15px);
    opacity: 0.9;
  }
}

/* HIGH VISIBILITY ON MOBILE & TABLET (Visible as you scroll down across the entire store) */
@media (max-width: 991px) {
  .tactical-bg-character-layer {
    right: -6vw;
    bottom: 0;
    width: min(360px, 72vw);
    height: 75vh;
  }

  .tactical-character-img {
    opacity: var(--char-opacity-mobile, 0.65) !important;
    filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.55)) contrast(1.15);
  }

  .tactical-character-glow {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, rgba(56, 189, 248, 0.2) 50%, transparent 75%);
    bottom: 22%;
    right: 5%;
  }
}

@media (max-width: 576px) {
  .tactical-bg-character-layer {
    right: 0;
    bottom: 0;
    width: min(280px, 75vw);
    height: 65vh;
    overflow: hidden;
  }

  .tactical-character-img {
    opacity: var(--char-opacity-mobile, 0.65) !important;
  }
}

