/*
 * Studies Learning - Formations Redesign
 * Modern, premium design with glassmorphism and gradient accents
 * Primary: linear-gradient(135deg, #2563eb, #4f46e5, #7c3aed)
 * Accent: #ef4444 (red-orange), #ff222d (SL Business)
 */

:root {
  --fr-primary: #2563eb;
  --fr-secondary: #4f46e5;
  --fr-tertiary: #7c3aed;
  --fr-gradient: linear-gradient(135deg, #2563eb, #4f46e5, #7c3aed);
  --fr-gradient-soft: linear-gradient(135deg, #dbeafe, #e0e7ff, #ede9fe);
  --fr-accent: #ef4444;
  --fr-accent-soft: #fee2e2;
  --fr-deep: #0f172a;
  --fr-text: #1e293b;
  --fr-text-muted: #64748b;
  --fr-border: #e2e8f0;
  --fr-border-light: #f1f5f9;
  --fr-bg: #ffffff;
  --fr-bg-soft: #f8fafc;
  --fr-bg-card: #ffffff;
  --fr-radius: 16px;
  --fr-radius-lg: 24px;
  --fr-radius-sm: 10px;
  --fr-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --fr-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.04);
  --fr-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.06);
  --fr-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.08);
  --fr-font: "Outfit", "Inter", sans-serif;
  --fr-font-body: "DM Sans", "Inter", sans-serif;
}

/* ========================================================
   PAGE RESET
   ======================================================== */
.page-template-page-formations {
  background: var(--fr-bg) !important;
  background-image: none !important;
}

.fr-page {
  font-family: var(--fr-font-body);
  color: var(--fr-text);
  overflow-x: hidden;
  max-width: 100%;
}

.fr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================================
   1. HERO SECTION — Light background with orbs
   ======================================================== */
.fr-hero {
  position: relative;
  background: linear-gradient(
    135deg,
    #f5f3ff 0%,
    #ede9fe 30%,
    #e0e7ff 60%,
    #f0f0ff 100%
  );
  height: 525px;
  padding: 1.5rem 0 0;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
}

/* Decorative orbs */
.fr-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.fr-hero-orb--1 {
  width: 400px;
  height: 400px;
  top: -15%;
  right: 10%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.12) 0%,
    transparent 70%
  );
  filter: blur(40px);
}

.fr-hero-orb--2 {
  width: 300px;
  height: 300px;
  bottom: -10%;
  left: 15%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 70%
  );
  filter: blur(50px);
}

.fr-hero-orb--3 {
  width: 200px;
  height: 200px;
  top: 20%;
  right: 35%;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.08) 0%,
    transparent 70%
  );
  filter: blur(35px);
}

/* Sparkle dots */
.fr-hero-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.3);
  pointer-events: none;
  z-index: 1;
}

.fr-hero-sparkle--r1,
.fr-hero-sparkle--r2 {
  width: 8px;
  height: 8px;
  background: rgba(139, 92, 246, 0.4);
}

.fr-hero-sparkle:nth-child(4) {
  top: 15%;
  left: 5%;
  animation: frSparkle 2s ease-in-out infinite;
}
.fr-hero-sparkle:nth-child(5) {
  top: 40%;
  right: 8%;
  animation: frSparkle 2.5s ease-in-out 0.3s infinite;
}
.fr-hero-sparkle:nth-child(6) {
  bottom: 20%;
  left: 30%;
  animation: frSparkle 3s ease-in-out 0.7s infinite;
}
.fr-hero-sparkle:nth-child(7) {
  top: 25%;
  left: 50%;
  animation: frSparkle 2.2s ease-in-out 1s infinite;
}
.fr-hero-sparkle:nth-child(8) {
  bottom: 30%;
  right: 25%;
  animation: frSparkle 2.8s ease-in-out 0.5s infinite;
}

@keyframes frSparkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.5);
  }
}

/* Floating spheres around robot */
.fr-hero-sphere {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  animation: frFloat 4s ease-in-out infinite;
}

.fr-hero-sphere--1 {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  top: 12%;
  right: 28%;
  animation-delay: 0s;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.fr-hero-sphere--2 {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #a855f7, #c084fc);
  top: 55%;
  right: 18%;
  animation-delay: 0.5s;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.fr-hero-sphere--3 {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #6366f1, #a5b4fc);
  bottom: 25%;
  right: 32%;
  animation-delay: 1s;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.fr-hero-sphere--4 {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #818cf8, #a5b4fc);
  top: 35%;
  right: 15%;
  animation-delay: 1.5s;
  box-shadow: 0 2px 8px rgba(129, 140, 248, 0.3);
}

.fr-hero-sphere--5 {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  top: 15%;
  right: 5%;
  animation-delay: 0.8s;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.25);
}

.fr-hero-sphere--6 {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #a855f7, #d8b4fe);
  top: 68%;
  right: 20%;
  animation-delay: 2s;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

/* Robot-area sparkles */
.fr-hero-sparkle--r1 {
  top: 25%;
  right: 30%;
  animation: frSparkle 3.5s ease-in-out 0.4s infinite;
}
.fr-hero-sparkle--r2 {
  top: 65%;
  right: 8%;
  animation: frSparkle 2.6s ease-in-out 1.2s infinite;
}

/* Robot front decorative orbs (overlapping robot) */
.fr-hero-robot-orbs {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.fr-hero-robot-orb {
  position: absolute;
  border-radius: 50%;
  animation: frFloat 5s ease-in-out infinite;
}

.fr-hero-robot-orb--1 {
  width: 65px;
  height: 65px;
  bottom: 22%;
  left: 8%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.5),
    rgba(129, 140, 248, 0.3)
  );
  box-shadow:
    0 4px 20px rgba(99, 102, 241, 0.3),
    inset 0 0 15px rgba(255, 255, 255, 0.2);
  animation-delay: 0s;
}

.fr-hero-robot-orb--2 {
  width: 45px;
  height: 45px;
  bottom: 35%;
  right: 5%;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.45),
    rgba(167, 139, 250, 0.25)
  );
  box-shadow:
    0 4px 16px rgba(139, 92, 246, 0.25),
    inset 0 0 12px rgba(255, 255, 255, 0.2);
  animation-delay: 0.7s;
}

.fr-hero-robot-orb--3 {
  width: 35px;
  height: 35px;
  bottom: 12%;
  right: 20%;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.45),
    rgba(99, 102, 241, 0.25)
  );
  box-shadow:
    0 4px 14px rgba(79, 70, 229, 0.25),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
  animation-delay: 1.4s;
}

@keyframes frFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.fr-hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 0;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 640px;
  gap: 0.5rem;
  align-items: start;
}

.fr-hero-content {
  color: var(--fr-deep);
}

.fr-hero-title {
  font-family: var(--fr-font);
  font-size: clamp(2.8rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 1.25rem;
  color: var(--fr-deep);
}

.fr-title-line {
  display: block;
  white-space: nowrap;
}

.fr-hero-title .fr-gradient-text {
  background: linear-gradient(135deg, #7c3aed, #6366f1, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fr-hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fr-text-muted);
  margin-bottom: 1.75rem;
  max-width: 520px;
  font-weight: 400;
}

.fr-hero-subtitle strong {
  color: var(--fr-deep);
  font-weight: 700;
}

/* Search */
.fr-hero-search {
  position: relative;
  max-width: 520px;
  margin-bottom: 1.25rem;
}

.fr-hero-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.15rem;
  z-index: 2;
  pointer-events: none;
}

.fr-hero-search input {
  width: 100%;
  padding: 1.1rem 4.5rem 1.1rem 3.5rem;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #ffffff;
  font-family: var(--fr-font-body);
  font-size: 0.95rem;
  color: var(--fr-deep);
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.fr-hero-search input::placeholder {
  color: #94a3b8;
}

.fr-hero-search input:focus {
  border-color: var(--fr-secondary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.fr-hero-search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fr-hero-search-btn:hover {
  background: linear-gradient(135deg, #4338ca, #2563eb);
  transform: translateY(-50%) scale(1.05);
}

/* Popular tags */
.fr-hero-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.fr-hero-tags-label {
  font-size: 0.85rem;
  color: var(--fr-text-muted);
  font-weight: 600;
  margin-right: 0.15rem;
  white-space: nowrap;
}

.fr-hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: var(--fr-text);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  white-space: nowrap;
}

.fr-hero-tag:hover {
  border-color: var(--fr-secondary);
  color: var(--fr-secondary);
  background: rgba(79, 70, 229, 0.04);
  transform: translateY(-1px);
}

.fr-hero-tag.active {
  border-color: var(--fr-secondary);
  color: #fff;
  background: linear-gradient(135deg, var(--fr-primary), var(--fr-secondary));
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

/* Hero right - robot + chat bubble */
.fr-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
}

/* Glow halo behind robot */
.fr-hero-visual::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(99, 102, 241, 0.08) 30%,
    rgba(37, 99, 235, 0.03) 60%,
    transparent 80%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

/* Secondary glow ring */
.fr-hero-visual::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.08);
  pointer-events: none;
  z-index: 0;
}

.fr-hero-robot-wrap {
  position: relative;
  width: 580px;
  height: 580px;
  margin-top: -380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fr-hero-robot-img {
  width: 600px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 12px 40px rgba(99, 102, 241, 0.2));
}

/* Chat bubble */
.fr-chat-bubble {
  position: absolute;
  top: 55%;
  right: -5%;
  width: 280px;
  background: #ffffff;
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  z-index: 10;
  border: none;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  animation: chatBubbleIn 0.5s ease-out 1.5s forwards;
}

@keyframes chatBubbleIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fr-chat-bubble-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.fr-chat-bubble-close:hover {
  background: #e2e8f0;
  color: #475569;
}

.fr-chat-bubble-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  font-family: var(--fr-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fr-deep);
}

.fr-chat-bubble-text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--fr-text-muted);
  margin-bottom: 1rem;
  font-weight: 400;
}

.fr-chat-bubble-cta {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 50px;
  border: none;
  background: var(--fr-secondary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--fr-font-body);
}

.fr-chat-bubble-cta:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
  color: #fff;
}

/* Navigation arrows (Removed as per user request) */
.fr-hero-arrow {
  display: none;
}

/* ========================================================
   STATS SECTION — Lively design with gradient strip
   ======================================================== */
.fr-stats {
  position: relative;
  z-index: 3;
  margin: 0.5rem auto 0.5rem;
  padding: 0 2rem;
  max-width: 1200px;
}

.fr-stats-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.03) 0%,
    rgba(99, 102, 241, 0.05) 50%,
    rgba(79, 70, 229, 0.03) 100%
  );
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.08);
}

.fr-stats-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  background: transparent;
  border-radius: 20px;
  overflow: visible;
}

.fr-stats-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--fr-border-light);
  cursor: default;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.fr-stats-item:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
  z-index: 1;
}

.fr-stats-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #6366f1, #4f46e5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.fr-stats-item:hover::before {
  transform: scaleX(1);
}

.fr-stats-icon-wrap {
  position: relative;
  flex-shrink: 0;
}

.fr-stats-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
  transition: all 0.4s ease;
}

.fr-stats-item:hover .fr-stats-icon {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

.fr-stats-icon-glow {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.2),
    rgba(99, 102, 241, 0.1)
  );
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fr-stats-item:hover .fr-stats-icon-glow {
  opacity: 1;
}

.fr-stats-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fr-stats-value {
  font-family: var(--fr-font);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fr-deep);
  line-height: 1.1;
  background: linear-gradient(135deg, #1e293b, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fr-stats-label {
  font-size: 0.78rem;
  color: var(--fr-text-muted);
  font-weight: 500;
  line-height: 1.35;
  margin-top: 0.15rem;
}

.fr-stats-decor {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  transition: all 0.4s ease;
}

.fr-stats-item:hover .fr-stats-decor {
  transform: scale(1.5);
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.1) 0%,
    transparent 70%
  );
}

/* ========================================================
   INTERACTIVE GUIDE SECTION
   ======================================================== */
.fr-interactive {
  padding: 2rem 0 1rem;
}

.fr-interactive-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.fr-interactive-top {
  display: grid;
  grid-template-columns: auto 1fr;
  background: #ffffff;
  border-radius: 28px;
  padding: 8px 32px 8px 8px;
  align-items: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
  gap: 2rem;
}

.fr-interactive-hero-card {
  background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 50%, #2563eb 100%);
  border-radius: 20px;
  padding: 1.25rem 1.75rem;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title btn"
    "sub btn";
  align-items: center;
  column-gap: 2rem;
  min-width: 0;
}

/* Tail for speech bubble effect */
.fr-interactive-hero-card::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 16px;
  width: 24px;
  height: 36px;
  background: #7c3aed;
  border-radius: 12px;
  z-index: -1;
}

.fr-ih-title {
  grid-area: title;
  font-family: var(--fr-font);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.c-accent {
  color: #f97316;
}

.fr-ih-subtitle {
  grid-area: sub;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 !important;
  font-weight: 500;
  line-height: 1.4;
}

.fr-ih-btn {
  grid-area: btn;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-family: var(--fr-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fr-ih-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.fr-ih-btn i {
  font-size: 0.9rem;
}

/* Steps row */
.fr-interactive-steps {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  min-width: 0;
}

.fr-i-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fr-i-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.fr-i-step-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.fr-i-step-text strong {
  font-family: var(--fr-font);
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.fr-i-step-text span {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.3;
}

/* --- BOTTOM ROW: Filter panel --- */
.fr-interactive-bottom {
  display: block;
}

/* Filter panel */
.fr-filter-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fafbff 0%, #f5f3ff 40%, #ede9fe 100%);
  border-radius: 24px;
  padding: 1.75rem 3rem 1.5rem;
  box-shadow:
    0 4px 24px rgba(79, 70, 229, 0.06),
    0 0 0 1px rgba(79, 70, 229, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: center;
}

/* Decorative orbs */
.fr-filter-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.fr-filter-orb--1 {
  width: 300px;
  height: 300px;
  top: -40%;
  right: -8%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.2) 0%,
    transparent 70%
  );
  filter: blur(45px);
  animation: frFilterOrbFloat1 8s ease-in-out infinite;
}

.fr-filter-orb--2 {
  width: 260px;
  height: 260px;
  bottom: -35%;
  left: -3%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.18) 0%,
    transparent 70%
  );
  filter: blur(40px);
  animation: frFilterOrbFloat2 10s ease-in-out infinite;
}

.fr-filter-orb--3 {
  width: 200px;
  height: 200px;
  top: 5%;
  left: 35%;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.15) 0%,
    transparent 70%
  );
  filter: blur(35px);
  animation: frFilterOrbFloat3 7s ease-in-out infinite;
}

@keyframes frFilterOrbFloat1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-15px, 10px) scale(1.05);
  }
  66% {
    transform: translate(10px, -8px) scale(0.95);
  }
}

@keyframes frFilterOrbFloat2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12px, -10px) scale(1.08);
  }
}

@keyframes frFilterOrbFloat3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(10px, 8px);
  }
  66% {
    transform: translate(-8px, -6px);
  }
}

/* Sparkle dots */
.fr-filter-sparkle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.35);
  pointer-events: none;
  z-index: 0;
  animation: frFilterSparkle 4s ease-in-out infinite;
}

.fr-filter-sparkle--1 {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.fr-filter-sparkle--2 {
  top: 60%;
  right: 12%;
  width: 4px;
  height: 4px;
  background: rgba(99, 102, 241, 0.3);
  animation-delay: 1.2s;
}

.fr-filter-sparkle--3 {
  bottom: 20%;
  left: 25%;
  width: 6px;
  height: 6px;
  background: rgba(168, 85, 247, 0.25);
  animation-delay: 2.5s;
}

.fr-filter-sparkle--4 {
  top: 30%;
  right: 30%;
  width: 3px;
  height: 3px;
  background: rgba(139, 92, 246, 0.4);
  animation-delay: 0.8s;
}

@keyframes frFilterSparkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.6);
  }
}

/* Rotating pills */
.fr-filter-pill {
  position: absolute;
  border-radius: 100px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.fr-filter-pill--1 {
  width: 40px;
  height: 8px;
  top: 18%;
  left: 3%;
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.4),
    rgba(139, 92, 246, 0.2)
  );
  animation: frPillSpin1 12s linear infinite;
}

.fr-filter-pill--2 {
  width: 32px;
  height: 6px;
  top: 70%;
  right: 5%;
  background: linear-gradient(
    90deg,
    rgba(168, 85, 247, 0.35),
    rgba(99, 102, 241, 0.15)
  );
  animation: frPillSpin2 9s linear infinite;
  animation-delay: 1.5s;
}

.fr-filter-pill--3 {
  width: 28px;
  height: 5px;
  bottom: 30%;
  left: 15%;
  background: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0.3),
    rgba(168, 85, 247, 0.15)
  );
  animation: frPillSpin3 11s linear infinite;
  animation-delay: 3s;
}

.fr-filter-pill--4 {
  width: 36px;
  height: 7px;
  top: 40%;
  right: 18%;
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.3),
    rgba(139, 92, 246, 0.15)
  );
  animation: frPillSpin1 10s linear infinite reverse;
  animation-delay: 2s;
}

.fr-filter-pill--5 {
  width: 24px;
  height: 5px;
  top: 25%;
  right: 35%;
  background: linear-gradient(
    90deg,
    rgba(168, 85, 247, 0.25),
    rgba(99, 102, 241, 0.1)
  );
  animation: frPillSpin2 13s linear infinite;
  animation-delay: 4s;
}

.fr-filter-pill--6 {
  width: 30px;
  height: 6px;
  bottom: 15%;
  left: 45%;
  background: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0.3),
    rgba(99, 102, 241, 0.15)
  );
  animation: frPillSpin3 8s linear infinite reverse;
  animation-delay: 1s;
}

@keyframes frPillSpin1 {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  25% {
    transform: translateX(20px) translateY(-8px) rotate(90deg);
  }
  50% {
    transform: translateX(5px) translateY(5px) rotate(180deg);
  }
  75% {
    transform: translateX(-15px) translateY(-3px) rotate(270deg);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(360deg);
  }
}

@keyframes frPillSpin2 {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  33% {
    transform: translateX(-18px) translateY(10px) rotate(120deg);
  }
  66% {
    transform: translateX(12px) translateY(-6px) rotate(240deg);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(360deg);
  }
}

@keyframes frPillSpin3 {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  20% {
    transform: translateX(10px) translateY(6px) rotate(72deg);
  }
  40% {
    transform: translateX(-8px) translateY(-4px) rotate(144deg);
  }
  60% {
    transform: translateX(15px) translateY(3px) rotate(216deg);
  }
  80% {
    transform: translateX(-5px) translateY(-8px) rotate(288deg);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(360deg);
  }
}

/* Title with gradient */
.fr-filter-panel-title {
  position: relative;
  z-index: 1;
  font-family: var(--fr-font);
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 1rem;
}

/* Chips row */
.fr-filter-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  justify-content: center;
}

.fr-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.35rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 30px;
  font-family: var(--fr-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.fr-filter-chip i {
  font-size: 1.05rem;
  color: #6366f1;
  transition: transform 0.25s ease;
}

.fr-filter-chip:hover {
  border-color: #6366f1;
  color: #4f46e5;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.fr-filter-chip:hover i {
  transform: scale(1.1);
}

.fr-filter-chip:active {
  transform: translateY(0);
}

.fr-filter-chip--promo {
  border-color: rgba(252, 165, 165, 0.5);
  color: #dc2626;
  background: rgba(254, 242, 242, 0.5);
}

.fr-filter-chip--promo i {
  color: #dc2626;
}

.fr-filter-chip--promo:hover {
  border-color: #dc2626;
  background: rgba(254, 242, 242, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.15);
}

/* Toast notifications */
.fr-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-family: var(--fr-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1e293b, #334155);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.fr-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.fr-toast i {
  font-size: 1.1rem;
}

.fr-toast--success {
  background: linear-gradient(135deg, #059669, #10b981);
}

.fr-toast--filter {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
}

.fr-toast--info {
  background: linear-gradient(135deg, #1e293b, #475569);
}

/* Text gradient utility */
.fr-text-gradient {
  background: linear-gradient(135deg, #4f46e5, #6366f1, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pagination */
.fr-pagination-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 0 0.5rem;
}

.fr-pagination-wrap-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: frPagFadeIn 0.3s ease;
}

@keyframes frPagFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fr-pagination-info {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.fr-pagination-info strong {
  color: #4f46e5;
  font-weight: 700;
}

.fr-pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 16px;
  padding: 0.4rem 0.5rem;
  box-shadow:
    0 2px 12px rgba(99, 102, 241, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.fr-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.5rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-family: var(--fr-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.fr-pagination-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fr-pagination-btn:hover::after {
  opacity: 1;
}

.fr-pagination-btn:hover {
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  transform: translateY(-1px);
}

.fr-pagination-btn:active {
  transform: scale(0.95);
}

.fr-pagination-btn.is-active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  box-shadow:
    0 2px 10px rgba(79, 70, 229, 0.35),
    0 0 20px rgba(99, 102, 241, 0.15);
  animation: frActiveGlow 2.5s ease-in-out infinite;
}

@keyframes frActiveGlow {
  0%, 100% { box-shadow: 0 2px 10px rgba(79, 70, 229, 0.35), 0 0 20px rgba(99, 102, 241, 0.15); }
  50% { box-shadow: 0 2px 14px rgba(79, 70, 229, 0.5), 0 0 28px rgba(99, 102, 241, 0.25); }
}

.fr-pagination-btn--edge {
  color: #94a3b8;
  min-width: 1.8rem;
  height: 1.8rem;
  font-size: 0.75rem;
}

.fr-pagination-btn--edge:hover {
  color: #4f46e5;
}

.fr-pagination-btn i {
  font-size: 1rem;
}

.fr-pagination-ellipsis {
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 0 0.15rem;
  user-select: none;
  letter-spacing: 0.1em;
}

/* Filter chip active state */
.fr-filter-chip.is-active {
  border-color: #6366f1;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.fr-filter-chip.is-active i {
  color: #fff;
}

.fr-filter-chip.is-active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* Promo chip keeps red when active */
.fr-filter-chip--promo.is-active {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  border-color: #dc2626;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
}
.fr-filter-chip--promo.is-active i {
  color: #fff;
}

/* Stop bounce animation on hover */
.fr-filter-chip[data-filter="category"]:hover {
  animation: none;
}

/* Filter Popups */
.fr-filter-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  width: 720px;
  max-width: 90vw;
  max-height: 85vh;
  animation: frPopupIn 0.25s ease;
}

.fr-filter-popup.is-open {
  display: flex;
  flex-direction: column;
}

/* Color tint inside popup */
.fr-filter-popup-tint {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.03) 0%,
    rgba(139, 92, 246, 0.05) 40%,
    rgba(168, 85, 247, 0.03) 70%,
    rgba(99, 102, 241, 0.04) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Info tips bar */
.fr-filter-popup-tips {
  position: relative;
  height: 40px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(79, 70, 229, 0.12));
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.fr-filter-popup-tip {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0 1rem;
  opacity: 0;
  transform: translateY(10px);
  animation: frTipCycle 6s ease-in-out infinite;
}

.fr-filter-popup-tip[data-tip="0"] { animation-delay: 0s; }
.fr-filter-popup-tip[data-tip="1"] { animation-delay: 2s; }
.fr-filter-popup-tip[data-tip="2"] { animation-delay: 4s; }

@keyframes frTipCycle {
  0%, 2% { opacity: 0; transform: translateY(8px); }
  5%, 28% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* Override border-radius when tips present */
.fr-filter-popup:has(.fr-filter-popup-tips) .fr-filter-popup-header {
  border-top: none;
}

@keyframes frPopupIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.fr-filter-popup-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.fr-filter-popup-backdrop.is-open {
  display: block;
}

.fr-filter-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.fr-filter-popup-header h4 {
  font-family: var(--fr-font);
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.fr-filter-popup-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  color: #64748b;
  font-size: 1rem;
  transition: all 0.15s ease;
}

.fr-filter-popup-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.fr-filter-popup-body {
  padding: 0.75rem 1.25rem;
  max-height: 320px;
  overflow-y: auto;
  position: relative;
}

/* Scrollbar styling */
.fr-filter-popup-body::-webkit-scrollbar {
  width: 4px;
}

.fr-filter-popup-body::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 4px;
}

/* Scroll-down arrow for category popup */
.fr-filter-popup[data-popup="category"] .fr-filter-popup-scroll-arrow {
  position: absolute;
  bottom: 0.75rem;
  right: 1.25rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 50%;
  color: #3b82f6;
  font-size: 1rem;
  pointer-events: none;
  animation: frArrowBounce 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes frArrowBounce {
  0%, 50%, 100% { transform: translateY(0); }
  30% { transform: translateY(6px); }
  70% { transform: translateY(3px); }
}

.fr-filter-popup-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fr-filter-popup-grid--3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.fr-filter-popup-grid--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.fr-filter-popup-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  font-family: var(--fr-font-body);
}

.fr-filter-popup-option:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.04);
}

.fr-filter-popup-option.is-selected {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.fr-filter-popup-option--card {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.5rem;
  text-align: center;
  gap: 0.3rem;
}

.fr-filter-popup-option--card i {
  font-size: 1.3rem;
  color: #3b82f6;
  margin-bottom: 0.15rem;
}

.fr-filter-popup-option-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
}

.fr-filter-popup-option-count {
  font-size: 0.7rem;
  font-weight: 500;
  color: #94a3b8;
  margin-left: auto;
}

.fr-filter-popup-option-desc {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 400;
}

.fr-filter-popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.fr-filter-popup-reset {
  font-family: var(--fr-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.fr-filter-popup-reset:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
}

.fr-filter-popup-apply {
  font-family: var(--fr-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #4f46e5);
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fr-filter-popup-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.fr-category-icons-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fr-category-icons {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.fr-cat-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.fr-cat-icon:hover {
  transform: translateY(-2px);
}

.fr-cat-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8),
    rgba(237, 233, 254, 0.6)
  );
  border: 1px solid rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  font-size: 1.6rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.fr-cat-icon:hover .fr-cat-icon-box {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
  border-color: transparent;
}

.fr-cat-icon span {
  font-size: 0.72rem;
  color: #475569;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease;
}

.fr-cat-icon:hover span {
  color: #4f46e5;
}

/* Pulse animation for Plus icon */
.fr-cat-icon-box--pulse {
  animation: frCatPulse 1.8s ease-in-out infinite;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.12),
    rgba(22, 163, 74, 0.12)
  );
  border-color: rgba(34, 197, 94, 0.3);
}

@keyframes frCatPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  25% {
    transform: scale(1.15) rotate(-3deg);
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0);
  }
  50% {
    transform: scale(1) rotate(0);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.3);
  }
  75% {
    transform: scale(1.12) rotate(2deg);
    box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
  }
}

/* Active filter chip bounce */
.fr-filter-chip[data-filter="category"] {
  animation: frChipBounce 3s ease-in-out infinite;
}

@keyframes frChipBounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }
  85% {
    transform: translateY(-3px);
  }
  90% {
    transform: translateY(0);
  }
  95% {
    transform: translateY(-2px);
  }
}

.fr-cat-icon:hover span {
  color: #4f46e5;
}

/* ========================================================
   3. FILTER BAR
   ======================================================== */
.fr-filter-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.fr-filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--fr-bg-card);
  border-radius: var(--fr-radius);
  border: 1px solid var(--fr-border);
  box-shadow: var(--fr-shadow);
  flex-wrap: wrap;
}

.fr-filter-label {
  font-family: var(--fr-font);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fr-text-muted);
  white-space: nowrap;
}

.fr-filter-categories {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  flex: 1;
  padding: 0.25rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fr-filter-categories::-webkit-scrollbar {
  display: none;
}

.fr-filter-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--fr-text-muted);
  background: var(--fr-bg-soft);
  border: 1.5px solid var(--fr-border-light);
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--fr-font-body);
}

.fr-filter-cat:hover {
  border-color: var(--fr-primary);
  color: var(--fr-primary);
  background: rgba(37, 99, 235, 0.04);
}

.fr-filter-cat.active {
  background: var(--fr-primary);
  border-color: var(--fr-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.fr-filter-cat i {
  font-size: 1rem;
}

.fr-filter-cat-count {
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.5;
  background: rgba(0, 0, 0, 0.04);
  padding: 1px 7px;
  border-radius: 100px;
}

.fr-filter-cat.active .fr-filter-cat-count {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.fr-filter-promo {
  color: var(--fr-accent);
  border-color: rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.04);
}

.fr-filter-promo:hover {
  border-color: var(--fr-accent);
  color: var(--fr-accent);
  background: rgba(239, 68, 68, 0.06);
}

.fr-filter-promo.active {
  background: var(--fr-accent);
  border-color: var(--fr-accent);
  color: #fff;
}

/* ========================================================
   4. CATALOGUE INTELLIGENT
   ======================================================== */
.fr-catalogue {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.fr-catalogue-layout {
  background: #ffffff;
  border: 1px solid #e9d5ff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(109, 40, 217, 0.04);
}

/* Wrapper for aside + main */
.fr-catalogue-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Conseil du moment - floating card */
.fr-aside-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #fafbff 0%, #f5f3ff 50%, #ede9fe 100%);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.fr-aside-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.fr-aside-card-glow {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.12) 0%,
    transparent 70%
  );
  filter: blur(25px);
  pointer-events: none;
}

.fr-aside-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  animation: frAsideIconPulse 3s ease-in-out infinite;
}

@keyframes frAsideIconPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
  }
}

.fr-aside-card-content {
  flex: 1;
  min-width: 0;
}

.fr-aside-card-label {
  font-family: var(--fr-font);
  font-size: 0.85rem;
  font-weight: 800;
  background: linear-gradient(135deg, #d97706, #b45309);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.2rem;
}

.fr-aside-card-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}

.fr-aside-card-text strong {
  color: #0f172a;
  font-weight: 700;
}

.fr-aside-card-decoration {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.fr-aside-card-decoration span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  animation: frAsideDotPulse 2s ease-in-out infinite;
}

.fr-aside-card-decoration span:nth-child(1) {
  animation-delay: 0s;
}
.fr-aside-card-decoration span:nth-child(2) {
  animation-delay: 0.3s;
}
.fr-aside-card-decoration span:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes frAsideDotPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* Main catalogue content */
.fr-catalogue-main {
  min-width: 0;
}

.fr-catalogue-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.fr-catalogue-title {
  font-family: var(--fr-font);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0;
}

.fr-catalogue-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0.25rem 0 0;
  font-weight: 500;
}

.fr-catalogue-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.fr-catalogue-count {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.fr-catalogue-count strong {
  color: #0f172a;
  font-weight: 800;
}

.fr-catalogue-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fr-catalogue-sort label {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.fr-catalogue-sort select {
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.82rem;
  color: #0f172a;
  font-weight: 600;
  font-family: var(--fr-font-body);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1rem;
  padding-right: 2rem;
}

.fr-catalogue-sort select:focus {
  border-color: #4f46e5;
}

/* Tabs */
.fr-catalogue-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.fr-catalogue-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--fr-font-body);
  white-space: nowrap;
}

.fr-catalogue-tab i {
  font-size: 1.05rem;
  color: #94a3b8;
}

.fr-catalogue-tab:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.04);
}

.fr-catalogue-tab:hover i {
  color: #7c3aed;
}

.fr-catalogue-tab.active {
  background: #7c3aed;
  border-color: transparent;
  color: #fff;
}

.fr-catalogue-tab.active i {
  color: #f97316;
}

/* Grid wrapper with arrows */
.fr-catalogue-grid-wrap {
  position: relative;
}

/* Course cards grid */
.fr-catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ========================================================
   COURSE CARD
   ======================================================== */
.fr-course-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.fr-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: #e2e8f0;
}

.fr-course-card-media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: 0.4rem 0.4rem 0;
  border-radius: 12px;
}

.fr-course-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fr-course-card:hover .fr-course-card-img {
  transform: scale(1.05);
}

.fr-course-card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.fr-course-card-badge.is-promo {
  background: #3b82f6;
}

.is-auction {
  background: #f59e0b;
}

.is-free {
  background: #10b981;
}

.fr-course-card-badge.is-price {
  background: #0047ff;
}

.fr-course-card-body {
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fr-course-card-title {
  font-family: var(--fr-font);
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.fr-course-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.fr-course-card-title a:hover {
  color: #4f46e5;
}

.fr-course-card-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.fr-rating-stars {
  color: #f97316;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.fr-rating-count {
  color: #94a3b8;
}

.fr-rating-students {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.fr-course-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  color: #64748b;
  margin-bottom: 1rem;
  font-weight: 500;
}

.fr-course-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.fr-course-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  margin-bottom: 0.85rem;
}

.fr-course-card-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fr-cc-price-main {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.fr-cc-price-old {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.fr-cc-price-discount {
  font-size: 0.65rem;
  font-weight: 700;
  color: #ef4444;
  background: #fef2f2;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.fr-course-card-action {
  margin-top: auto;
}

.fr-cc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.55rem 0.8rem;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.fr-cc-btn:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  color: #fff;
}

.fr-cc-btn i {
  transition: transform 0.3s ease;
}

.fr-cc-btn:hover i {
  transform: translateX(3px);
}

.fr-catalogue-load-more {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.fr-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  font-family: var(--fr-font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.fr-load-more-btn i {
  color: #64748b;
  font-size: 1.1rem;
}

.fr-load-more-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

/* ========================================================
   Course Card (CSS vars edition)
   ======================================================== */
.fr-featured {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.fr-featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.fr-featured-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.fr-featured-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: var(--fr-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fr-featured-tab i {
  font-size: 1rem;
}

.fr-featured-tab:hover {
  color: #0f172a;
  background: #f8fafc;
}

.fr-featured-tab.active {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
}

.fr-featured-arrows {
  display: flex;
  gap: 0.4rem;
}

.fr-featured-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.fr-featured-arrow:hover {
  border-color: #4f46e5;
  color: #4f46e5;
}

.fr-featured-track-wrap {
  overflow: hidden;
  margin: 0 -0.5rem;
}

.fr-featured-track {
  display: none;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem;
  scrollbar-width: none;
}

.fr-featured-track.is-active {
  display: flex;
}

.fr-featured-track::-webkit-scrollbar {
  display: none;
}

.fr-featured-empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.fr-featured-card {
  flex: 0 0 220px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.fr-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.fr-featured-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fr-featured-badge--popular {
  background: #3b82f6;
  color: #fff;
}

.fr-featured-badge--top {
  background: #8b5cf6;
  color: #fff;
}

.fr-featured-badge--new {
  background: #10b981;
  color: #fff;
}

.fr-featured-badge--promo {
  background: #f97316;
  color: #fff;
}

.fr-featured-badge--auction {
  background: #ef4444;
  color: #fff;
}

.fr-featured-level {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  backdrop-filter: blur(4px);
}

.fr-featured-countdown {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  text-align: center;
}

.fr-countdown-label {
  font-size: 0.65rem;
  color: #64748b;
  display: block;
  margin-bottom: 0.15rem;
}

.fr-countdown-timer {
  font-family: var(--fr-font);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.fr-featured-auction-info {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  backdrop-filter: blur(4px);
}

.fr-auction-price {
  font-family: var(--fr-font);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.fr-auction-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
}

.fr-featured-card-media {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.fr-featured-card-media img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.fr-featured-card-body {
  padding: 0.7rem 0.8rem 0.8rem;
}

.fr-featured-card-title {
  font-family: var(--fr-font);
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.4rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fr-featured-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fr-featured-card-title a:hover {
  color: #4f46e5;
}

.fr-featured-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.fr-feat-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #f59e0b;
  font-weight: 600;
}

.fr-feat-students {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.fr-featured-card-price {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fr-feat-price {
  font-family: var(--fr-font);
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
}

.fr-feat-price.free {
  color: #059669;
}

.fr-feat-price.old {
  font-size: 0.7rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.fr-feat-price.sale {
  color: #dc2626;
}

/* ========================================================
   5. LEARNING PATHS
   ======================================================== */
/* ========================================================
   LEARNING PATHS — Living design
   ======================================================== */
.fr-paths {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

/* Paths orbs */
.fr-paths-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.fr-paths-orb--1 {
  width: 250px;
  height: 250px;
  top: -15%;
  right: 5%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 70%
  );
  filter: blur(40px);
  animation: frPathsOrbFloat 9s ease-in-out infinite;
}

.fr-paths-orb--2 {
  width: 200px;
  height: 200px;
  bottom: -10%;
  left: 10%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.08) 0%,
    transparent 70%
  );
  filter: blur(35px);
  animation: frPathsOrbFloat 11s ease-in-out infinite reverse;
}

@keyframes frPathsOrbFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(15px, -10px);
  }
}

/* Paths pills */
.fr-paths-pill {
  position: absolute;
  border-radius: 100px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.fr-paths-pill--1 {
  width: 35px;
  height: 6px;
  top: 20%;
  left: 3%;
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.3),
    rgba(124, 58, 237, 0.15)
  );
  animation: frPillSpin1 10s linear infinite;
}

.fr-paths-pill--2 {
  width: 28px;
  height: 5px;
  bottom: 25%;
  right: 5%;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.25),
    rgba(99, 102, 241, 0.1)
  );
  animation: frPillSpin2 8s linear infinite;
  animation-delay: 2s;
}

.fr-paths-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.fr-paths-title {
  font-family: var(--fr-font);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0f172a, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.35rem;
}

.fr-paths-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 400;
  margin: 0;
}

.fr-paths-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 14px;
  border: 2px solid rgba(79, 70, 229, 0.3);
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.08),
    rgba(124, 58, 237, 0.08)
  );
  color: #4f46e5;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  animation: frPathsCtaBreath 1.8s ease-in-out infinite;
}

/* Shimmer sweep */
.fr-paths-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  animation: frPathsShimmer 2.5s ease-in-out infinite;
}

@keyframes frPathsShimmer {
  0%, 100% { left: -120%; }
  50% { left: 150%; }
}

/* Outer glow ring */
.fr-paths-cta::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #a855f7);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.fr-paths-cta:hover::after {
  opacity: 0.5;
}

@keyframes frPathsCtaBreath {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(79, 70, 229, 0),
      0 2px 8px rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 20px 4px rgba(79, 70, 229, 0.2),
      0 4px 16px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.6);
    transform: scale(1.03);
  }
}

.fr-paths-cta:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #a855f7);
  color: #fff;
  transform: translateY(-4px) scale(1.08);
  box-shadow:
    0 12px 35px rgba(79, 70, 229, 0.5),
    0 0 60px rgba(99, 102, 241, 0.3),
    0 0 100px rgba(168, 85, 247, 0.15);
  animation: none;
  letter-spacing: 0.04em;
}

.fr-paths-cta:hover::before {
  animation: none;
  left: 150%;
}

.fr-paths-cta:hover i {
  transform: translateX(6px) scale(1.2) rotate(-8deg);
  animation: frPathsArrowBounce 0.6s ease-in-out infinite;
}

@keyframes frPathsArrowBounce {
  0%, 100% { transform: translateX(6px) scale(1.2) rotate(-8deg); }
  50% { transform: translateX(10px) scale(1.3) rotate(-12deg); }
}

.fr-paths-cta:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 6px 20px rgba(79, 70, 229, 0.4),
    0 0 40px rgba(99, 102, 241, 0.2);
}

.fr-paths-cta i {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.05rem;
}

.fr-paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.fr-path-card {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.fr-path-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.06),
    rgba(124, 58, 237, 0.04)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.fr-path-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 20px 50px rgba(79, 70, 229, 0.15),
    0 0 0 1px rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.25);
}

.fr-path-card:hover::before {
  opacity: 1;
}

.fr-path-card-content {
  display: flex;
  flex-direction: column;
}

.fr-path-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  width: fit-content;
  transition: transform 0.3s ease;
}

.fr-path-card:hover .fr-path-badge {
  transform: scale(1.05);
}

.fr-path-badge i {
  font-size: 0.9rem;
}

.fr-path-badge--popular {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #16a34a;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}

.fr-path-badge--top {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.fr-path-badge--demand {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  color: #ea580c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.15);
}

.fr-path-card-title {
  font-family: var(--fr-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 0.85rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.fr-path-card:hover .fr-path-card-title {
  color: #4f46e5;
}

.fr-path-card-stats {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: auto;
}

.fr-path-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #64748b;
  transition: color 0.2s ease;
}

.fr-path-card:hover .fr-path-stat {
  color: #475569;
}

.fr-path-stat i {
  color: #6366f1;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.fr-path-card:hover .fr-path-stat i {
  transform: scale(1.15);
}

.fr-path-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
  margin-top: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: fit-content;
}

.fr-path-card-link:hover {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  gap: 0.5rem;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.fr-path-card-link i {
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.fr-path-card:hover .fr-path-card-link i {
  transform: translateX(2px);
}

.fr-path-card-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.fr-path-card-illustration img {
  width: 200%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.fr-path-card:hover .fr-path-card-illustration img {
  transform: scale(1.08) rotate(-2deg);
}

/* Paths responsive */
@media (max-width: 640px) {
  .fr-paths-grid {
    grid-template-columns: 1fr;
  }
  .fr-path-card {
    grid-template-columns: 1fr 100px;
  }
  .fr-path-card-illustration img {
    width: 180%;
    max-width: 220px;
  }
}

/* ========================================================
   7. OFFERS + AUCTIONS SPLIT
   ======================================================== */
.fr-split {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.fr-split-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.5rem;
  overflow: hidden;
}

.fr-split-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.fr-split-title {
  font-family: var(--fr-font);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fr-split-title i {
  font-size: 1.1rem;
}

.fr-split-panel--offers .fr-split-title i {
  color: #ef4444;
}

.fr-split-panel--auctions .fr-split-title i {
  color: #f59e0b;
}

.fr-split-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0.25rem 0 0;
  font-weight: 400;
}

.fr-split-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.fr-split-link:hover {
  color: #4338ca;
  gap: 0.5rem;
}

.fr-split-link i {
  font-size: 0.95rem;
}

/* Offer card */
.fr-offer-card {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 1rem;
  background: linear-gradient(135deg, #fef2f2, #fff1f2);
  border-radius: 16px;
  padding: 1.25rem;
}

.fr-offer-card-content {
  display: flex;
  flex-direction: column;
}

.fr-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.fr-offer-title {
  font-family: var(--fr-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.fr-offer-features {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fr-offer-features li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #475569;
}

.fr-offer-features i {
  color: #10b981;
  font-size: 0.9rem;
}

.fr-offer-countdown {
  display: inline-flex;
  flex-direction: column;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.fr-offer-countdown .fr-countdown-label {
  font-size: 0.65rem;
  color: #64748b;
  margin-bottom: 0.1rem;
}

.fr-offer-countdown .fr-countdown-timer {
  font-family: var(--fr-font);
  font-size: 0.9rem;
  font-weight: 700;
  color: #dc2626;
}

.fr-offer-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.fr-offer-prices {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.fr-price-old {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.fr-offer-pricing .fr-price-current {
  font-family: var(--fr-font);
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.fr-offer-pricing .fr-price-discount {
  font-size: 0.72rem;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.fr-offer-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--fr-font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.fr-offer-cta:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  color: #fff;
}

.fr-offer-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fr-offer-card-image img {
  width: 100%;
  height: 140px;
  object-fit: contain;
}

/* Auctions list */
.fr-auctions-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fr-auction-item {
  display: grid;
  grid-template-columns: 28px 56px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.fr-auction-item:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.06);
  transform: translateY(-1px);
}

.fr-auction-rank {
  font-family: var(--fr-font);
  font-size: 1.2rem;
  font-weight: 900;
  color: #cbd5e1;
  text-align: center;
  line-height: 1;
}

.fr-auction-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, #1e293b, #334155);
}

.fr-auction-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.fr-auction-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.3), rgba(51, 65, 85, 0.5));
  border-radius: inherit;
}

.fr-auction-info {
  min-width: 0;
}

.fr-auction-name {
  font-family: var(--fr-font);
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.15rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fr-auction-author {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0;
}

.fr-auction-details {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: right;
}

.fr-auction-price-label,
.fr-auction-timer-label {
  font-size: 0.62rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.1rem;
  display: block;
}

.fr-auction-price-value {
  font-family: var(--fr-font);
  font-size: 1rem;
  font-weight: 800;
  color: #1e40af;
  display: block;
  line-height: 1.2;
}

.fr-auction-timer-value {
  font-family: var(--fr-font-body, monospace);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ef4444;
  display: block;
  line-height: 1.2;
}

.fr-auction-bidders {
  font-size: 0.68rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.15rem;
}

/* ========================================================
   8. BOTTOM CTA
   ======================================================== */
.fr-bottom-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.fr-bottom-cta-inner {
  position: relative;
  padding: 2.5rem 3rem;
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(15, 12, 54, 0.82) 0%,
      rgba(30, 27, 75, 0.78) 30%,
      rgba(49, 46, 129, 0.72) 60%,
      rgba(79, 70, 229, 0.65) 100%
    ),
    url('../assets/img/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 2rem;
}

.fr-bottom-cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 20% 80%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 60% at 85% 20%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 1;
}

/* Robot */
.fr-bottom-cta-robot {
  position: relative;
  z-index: 2;
}

.fr-bottom-cta-robot-img {
  width: 220px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.2));
  animation: frRobotFloat 4s ease-in-out infinite;
}

@keyframes frRobotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Content */
.fr-bottom-cta-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.fr-bottom-cta-title {
  font-family: var(--fr-font);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  color: #fff;
}

.fr-bottom-cta-text {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 480px;
  font-weight: 400;
}

.fr-bottom-cta-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fr-bottom-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  font-family: var(--fr-font-body);
}

.fr-bottom-cta-btn--primary {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
}

.fr-bottom-cta-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  color: #fff;
}

.fr-bottom-cta-btn--secondary {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.fr-bottom-cta-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

/* Decorative elements */
.fr-bottom-cta-decor {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.fr-decor-item {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  backdrop-filter: blur(8px);
}

.fr-decor-item--brain {
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #c4b5fd;
  animation: frDecorFloat 3s ease-in-out infinite;
}

.fr-decor-item--target {
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.25);
  color: #f9a8d4;
  animation: frDecorFloat 3s ease-in-out 0.5s infinite;
}

.fr-decor-item--chart {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  animation: frDecorFloat 3s ease-in-out 1s infinite;
}

.fr-decor-item--lightning {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fcd34d;
  animation: frDecorFloat 3s ease-in-out 1.5s infinite;
}

.fr-decor-item--rocket {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  animation: frDecorFloat 3s ease-in-out 0.8s infinite;
}

.fr-decor-item--book {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  animation: frDecorFloat 3s ease-in-out 1.2s infinite;
}

@keyframes frDecorFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 1100px) {
  .fr-catalogue-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fr-paths-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .fr-catalogue-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fr-catalogue-grid-wrap {
    padding: 0;
  }

  .fr-catalogue-arrow {
    display: none;
  }

  .fr-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 2rem 0;
  }

  .fr-hero {
    height: auto;
  }

  .fr-hero-visual {
    min-height: 400px;
  }

  .fr-hero-subtitle {
    margin: 0 auto 2rem;
  }

  .fr-hero-search {
    margin: 0 auto 1.5rem;
  }

  .fr-hero-tags {
    justify-content: center;
  }

  .fr-hero-visual {
    order: -1;
  }

  .fr-hero-robot-wrap {
    width: 400px;
    height: 400px;
  }

  .fr-hero-robot-img {
    width: 400px;
  }

  .fr-chat-bubble {
    right: 0;
    top: 55%;
    width: 240px;
    padding: 1rem;
  }

  .fr-stats {
    padding: 0 1.5rem;
  }

  .fr-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .fr-hero-arrow {
    display: none;
  }

  .fr-hero-sphere {
    display: none;
  }

  .fr-hero-robot-orbs {
    display: none;
  }

  .fr-split {
    grid-template-columns: 1fr;
  }

  .fr-offer-card {
    grid-template-columns: 1fr;
  }

  .fr-offer-card-image {
    display: none;
  }

  .fr-auction-item {
    grid-template-columns: 24px 40px 1fr;
  }

  .fr-auction-details {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.25rem;
  }

  .fr-catalogue-grid-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .fr-hero {
    height: auto;
    padding: 2rem 0 0;
  }

  .fr-hero-container {
    padding: 0 1rem;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .fr-hero-visual {
    order: -1;
    min-height: 320px;
  }

  .fr-hero-robot-wrap {
    width: 320px;
    height: 320px;
    margin-top: 0;
  }

  .fr-hero-robot-img {
    width: 320px;
  }

  .fr-hero-subtitle {
    margin: 0 auto 1.5rem;
  }

  .fr-hero-search {
    margin: 0 auto 1rem;
  }

  .fr-hero-tags {
    justify-content: center;
    flex-wrap: wrap;
  }

  .fr-chat-bubble {
    right: 5%;
    top: 50%;
    width: 200px;
    padding: 0.85rem;
    font-size: 0.9rem;
  }

  .fr-stats {
    margin-top: 1rem;
    padding: 0 1rem;
  }

  .fr-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .fr-stats-item {
    padding: 1.25rem;
  }

  .fr-hero-orb {
    display: none;
  }
  .fr-hero-sphere {
    display: none;
  }
  .fr-hero-robot-orbs {
    display: none;
  }

  .fr-catalogue-grid {
    grid-template-columns: 1fr;
  }

  .fr-paths-grid {
    grid-template-columns: 1fr;
  }

  .fr-paths-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .fr-bottom-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .fr-bottom-cta-robot {
    order: -1;
  }

  .fr-bottom-cta-robot-img {
    width: 170px;
  }

  .fr-bottom-cta-text {
    margin: 0 auto 1.25rem;
  }

  .fr-bottom-cta-buttons {
    justify-content: center;
  }

  .fr-bottom-cta-decor {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }

  .fr-decor-item {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
  }

  .fr-catalogue-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .fr-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .fr-filter-categories {
    justify-content: flex-start;
  }

  .fr-stats {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .fr-hero-robot-wrap {
    width: 260px;
    height: 260px;
  }

  .fr-hero-robot-img {
    width: 260px;
  }

  .fr-hero-title {
    font-size: 2rem;
  }

  .fr-hero-tags {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .fr-hero-tag {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
  }

  .fr-stats {
    margin-top: 0.5rem;
    padding: 0 1rem;
  }

  .fr-stats-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }

  .fr-stats-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }

  .fr-stats-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .fr-stats-value {
    font-size: 1.4rem;
  }

  .fr-stats-label {
    font-size: 0.7rem;
  }

  .fr-stats-decor {
    display: none;
  }

  .fr-hero-search input {
    padding-right: 1.25rem;
  }

  .fr-chat-bubble {
    display: none;
  }
}

/* ========================================================
   RESPONSIVE - INTERACTIVE SECTION
   ======================================================== */
@media (max-width: 1100px) {
  .fr-interactive-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .fr-interactive-steps {
    flex-wrap: wrap;
    justify-content: center;
  }

  .fr-interactive-bottom {
    grid-template-columns: 1fr;
  }

  .fr-robot-panel {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .fr-interactive-hero-card {
    padding: 1.5rem;
  }

  .fr-ih-title {
    font-size: 1.3rem;
  }

  .fr-i-step {
    flex: 0 0 calc(50% - 0.5rem);
  }

  .fr-filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .fr-filter-chips::-webkit-scrollbar {
    display: none;
  }

  .fr-category-icons {
    gap: 0.5rem;
  }

  .fr-cat-icon {
    min-width: 60px;
  }

  .fr-cat-icon-box {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .fr-filter-pill {
    display: none;
  }
}

@media (max-width: 480px) {
  .fr-interactive-steps {
    gap: 0.5rem;
  }

  .fr-i-step {
    flex: 0 0 100%;
  }

  .fr-robot-panel-inner {
    padding: 1rem;
  }

  .fr-filter-panel {
    padding: 1.25rem 1rem;
    border-radius: 18px;
  }

  .fr-cat-icon span {
    font-size: 0.68rem;
  }

  .fr-filter-orb {
    display: none;
  }

  .fr-filter-pill {
    display: none;
  }
}

/* ========================================================
   RESPONSIVE - FEATURED CAROUSEL
   ======================================================== */
@media (max-width: 900px) {
  .fr-featured-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .fr-featured-tabs::-webkit-scrollbar {
    display: none;
  }

  .fr-featured-card {
    flex: 0 0 180px;
  }
}

@media (max-width: 600px) {
  .fr-featured-header {
    flex-direction: column;
    align-items: stretch;
  }

  .fr-featured-arrows {
    justify-content: flex-end;
  }

  .fr-featured-card {
    flex: 0 0 160px;
  }

  .fr-featured-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
  }

  .fr-featured-level {
    font-size: 0.6rem;
  }

  .fr-countdown-timer {
    font-size: 0.75rem;
  }

  .fr-auction-price {
    font-size: 0.78rem;
  }
}

/* ========================================================
   SIGNATURE TESTIMONIALS
   ======================================================== */
.sp-signature {
  max-width: 1200px;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}
.sp-signature-motto {
  text-align: center;
  font-family: var(--fr-font);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 300;
  color: var(--fr-deep);
  margin-bottom: 1.2rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.sp-signature-motto strong {
  font-weight: 700;
  color: #2563eb;
}
.sp-signature-motto::after {
  content: "";
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--fr-accent);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}
.sp-signature-frame {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 2rem 2rem 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.08);
  box-shadow:
    0 4px 24px rgba(99, 102, 241, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.sp-signature-bg {
  position: absolute;
  top: -40%;
  right: -5%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.sp-signature-stage {
  position: relative;
  overflow: hidden;
  margin: 0 -0.5rem;
}
.sp-signature-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.sp-signature-card {
  flex: 0 0 calc(33.33% - 0.67rem);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.25rem 1.2rem 1rem;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.06);
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sp-signature-card:hover {
  background: #fff;
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}
.sp-signature-q {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 0.6;
  color: var(--fr-accent);
  margin-bottom: -0.2rem;
  opacity: 0.4;
}
.sp-signature-body {
  flex: 1;
  min-width: 0;
}
.sp-signature-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #475569;
  font-weight: 400;
  margin: 0 0 0.7rem;
}
.sp-signature-by {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
}
.sp-signature-by::before {
  content: attr(data-initials);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  background: #2563eb;
}
.sp-signature-card[data-idx="0"] .sp-signature-by::before {
  background: #2563eb;
}
.sp-signature-card[data-idx="1"] .sp-signature-by::before {
  background: var(--fr-accent);
}
.sp-signature-card[data-idx="2"] .sp-signature-by::before {
  background: #10b981;
}
.sp-signature-card[data-idx="3"] .sp-signature-by::before {
  background: #8b5cf6;
}
.sp-signature-card[data-idx="4"] .sp-signature-by::before {
  background: #f59e0b;
}
.sp-signature-card[data-idx="5"] .sp-signature-by::before {
  background: #06b6d4;
}
.sp-signature-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.8rem;
}
.sp-signature-role {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.7rem;
  display: block;
}
.sp-signature-badge {
  position: absolute;
  top: -0.2rem;
  right: 0.6rem;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 0.7;
  color: rgba(99, 102, 241, 0.06);
  pointer-events: none;
  letter-spacing: -0.04em;
  font-family: var(--fr-font);
}
.sp-signature-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  position: relative;
  z-index: 1;
}
.sp-signature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sp-signature-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}
.sp-signature-dot.active {
  width: 28px;
  border-radius: 4px;
  background: #2563eb;
  height: 8px;
}
@media (max-width: 820px) {
  .sp-signature-card {
    flex: 0 0 calc(50% - 0.5rem);
  }
}
@media (max-width: 640px) {
  .sp-signature {
    padding: 0 1rem;
    margin-bottom: 2.5rem;
  }
  .sp-signature-frame {
    padding: 1.2rem 1rem 1rem;
    border-radius: 18px;
  }
  .sp-signature-card {
    flex: 0 0 100%;
    padding: 1rem 0.9rem 0.8rem;
  }
  .sp-signature-q {
    font-size: 2.2rem;
  }
  .sp-signature-text {
    font-size: 0.82rem;
  }
  .sp-signature-badge {
    font-size: 1.8rem;
  }
}

/* Tutorial restart button in navbar */
.btn-tutorial-fab {
  position: fixed;
  top: 50%;
  left: 1.5rem;
  transform: translateY(-50%);
  z-index: 99999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
  transition: all 0.25s ease;
  opacity: 1;
  animation: fabAggressive 1.6s ease-in-out infinite;
}

@keyframes fabAggressive {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35), 0 0 0 0 rgba(124, 58, 237, 0.4);
  }
  15% {
    transform: scale(1.12) rotate(-4deg);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5), 0 0 0 8px rgba(124, 58, 237, 0);
  }
  30% {
    transform: scale(0.95) rotate(2deg);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.45), 0 0 0 0 rgba(99, 102, 241, 0.3);
  }
  50% {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 10px 35px rgba(99, 102, 241, 0.55), 0 0 0 10px rgba(99, 102, 241, 0);
  }
  70% {
    transform: scale(1) rotate(1deg);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.45), 0 0 0 0 rgba(124, 58, 237, 0.35);
  }
  85% {
    transform: scale(1.08) rotate(-1deg);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5), 0 0 0 6px rgba(124, 58, 237, 0);
  }
}

.btn-tutorial-fab-img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.btn-tutorial-fab:hover {
  animation: none;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 35px rgba(124, 58, 237, 0.55);
}

.btn-tutorial-fab:hover .btn-tutorial-fab-img {
  transform: scale(1.1);
}

.btn-tutorial-restart {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fr-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-tutorial-restart:hover {
  background: rgba(124, 58, 237, 0.15);
  transform: translateY(-1px);
}
