/* ==========================================================================
   FARNOVA GAMES - OFFICIAL PORTAL DESIGN SYSTEM
   Theme: Dark Navy, Electric Purple, Neon Blue (Premium Arcade Portal)
   ========================================================================== */

:root {
  /* Color Palette */
  --fn-dark-void: #060813;
  --fn-dark-navy: #090e21;
  --fn-surface-1: #0f1633;
  --fn-surface-2: #162047;
  --fn-surface-3: #1f2c60;
  --fn-card-bg: rgba(16, 23, 52, 0.75);
  --fn-border-color: rgba(139, 92, 246, 0.22);
  --fn-border-hover: rgba(0, 240, 255, 0.55);

  /* Neon Accents */
  --fn-neon-blue: #00f0ff;
  --fn-neon-blue-rgb: 0, 240, 255;
  --fn-electric-purple: #8b5cf6;
  --fn-electric-violet: #a855f7;
  --fn-neon-purple-rgb: 168, 85, 247;
  --fn-hot-pink: #ec4899;
  --fn-cyber-emerald: #10b981;
  --fn-arcade-gold: #facc15;

  /* Typography Colors */
  --fn-text-bright: #ffffff;
  --fn-text-main: #e2e8f0;
  --fn-text-muted: #94a3b8;
  --fn-text-dim: #64748b;

  /* Fonts */
  --font-display: 'Orbitron', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Rajdhani', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --nav-height: 72px;
  --max-content-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Shadows & Glows */
  --glow-blue: 0 0 25px rgba(0, 240, 255, 0.35);
  --glow-purple: 0 0 25px rgba(168, 85, 247, 0.35);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background-color: var(--fn-dark-void);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--fn-dark-void) 0%, var(--fn-dark-navy) 100%);
  background-attachment: fixed;
  color: var(--fn-text-main);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Background Cyber Grid Accent */
.site-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
}

.site-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  background-image: 
    linear-gradient(rgba(139, 92, 246, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Global Content Container */
.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--fn-text-bright);
  line-height: 1.25;
  letter-spacing: 0.5px;
}

a {
  color: var(--fn-neon-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #67e8f9;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.farnova-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--nav-height);
  background: rgba(8, 14, 33, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--fn-border-color);
  transition: all 0.3s ease;
}

.farnova-navbar.scrolled {
  background: rgba(6, 10, 24, 0.96);
  border-bottom-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Wordmark & Controller Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon-svg {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
  transition: transform 0.3s ease;
}

.brand-link:hover .brand-icon-svg {
  transform: rotate(-6deg) scale(1.05);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fn-text-bright);
}

.brand-name .highlight {
  background: linear-gradient(135deg, var(--fn-neon-blue) 0%, var(--fn-electric-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Desktop Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fn-text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--fn-neon-blue);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--fn-neon-blue), var(--fn-electric-violet));
  box-shadow: 0 0 8px var(--fn-neon-blue);
  border-radius: 2px;
}

/* Nav Live Pill */
.nav-pill-live {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--fn-cyber-emerald);
  color: var(--fn-cyber-emerald);
  border-radius: var(--radius-full);
  margin-left: 4px;
  animation: pulseEmerald 2s infinite;
}

@keyframes pulseEmerald {
  0%, 100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
  50% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
}

/* Right Nav Actions (Search & CTA) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-input {
  background: rgba(15, 22, 51, 0.8);
  border: 1px solid var(--fn-border-color);
  border-radius: var(--radius-full);
  padding: 7px 16px 7px 36px;
  color: var(--fn-text-bright);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 170px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.nav-search-input:focus {
  width: 230px;
  border-color: var(--fn-neon-blue);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
  background: rgba(22, 32, 71, 0.95);
}

.nav-search-icon {
  position: absolute;
  left: 12px;
  color: var(--fn-text-dim);
  pointer-events: none;
  font-size: 0.9rem;
}

.btn-nav-play {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--fn-neon-blue) 0%, var(--fn-electric-purple) 100%);
  color: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-nav-play:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.6);
}

/* Mobile Hamburger */
.btn-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--fn-text-bright);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(9, 14, 33, 0.98);
  border-bottom: 1px solid var(--fn-border-color);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fn-text-main);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link.active {
  color: var(--fn-neon-blue);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn-primary {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 15px 34px;
  background: linear-gradient(135deg, var(--fn-neon-blue) 0%, var(--fn-electric-purple) 60%, var(--fn-hot-pink) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.4), 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.65), 0 12px 24px rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(1px) scale(0.99);
}

.btn-secondary {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 28px;
  background: rgba(22, 32, 71, 0.7);
  border: 1.5px solid var(--fn-border-color);
  color: var(--fn-text-bright);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(31, 44, 96, 0.9);
  border-color: var(--fn-electric-violet);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-cyan {
  border: 1px solid var(--fn-neon-blue);
  color: var(--fn-neon-blue);
  background: rgba(0, 240, 255, 0.08);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-cyan:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
  color: #ffffff;
}

/* Status Badges */
.badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-live {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--fn-cyber-emerald);
  color: #34d399;
}

.badge-coming-soon {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--fn-electric-violet);
  color: #c084fc;
}

.badge-category {
  background: rgba(15, 22, 51, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fn-text-muted);
}

/* ==========================================================================
   HOMEPAGE HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 80px 0 70px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--fn-neon-blue);
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 1px;
}

.hero-title .glow-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--fn-neon-blue) 45%, var(--fn-electric-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--fn-text-muted);
  max-width: 540px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hero-highlights {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--fn-border-color);
  width: 100%;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--fn-text-muted);
  font-weight: 600;
}

.highlight-item .icon {
  color: var(--fn-neon-blue);
  font-size: 1.1rem;
}

/* Hero Showcase Card (Memory Match Featured Visual) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-showcase-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(26, 16, 56, 0.85) 0%, rgba(13, 19, 44, 0.9) 100%);
  border: 1.5px solid rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.25), 0 20px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.hero-showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--fn-neon-blue);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.4), 0 24px 48px rgba(0, 0, 0, 0.7);
}

.showcase-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.showcase-game-preview {
  position: relative;
  height: 220px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1b0d38 0%, #08112a 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 18px;
}

/* Floating Mini Cards Simulation */
.preview-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px;
}

.mini-card {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2b1552 0%, #160a2c 100%);
  border: 1px solid rgba(0, 240, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  animation: floatMini 4s ease-in-out infinite;
}

.mini-card:nth-child(2) { animation-delay: 0.5s; border-color: #a855f7; }
.mini-card:nth-child(3) { animation-delay: 1.0s; }
.mini-card:nth-child(4) { animation-delay: 1.5s; border-color: #facc15; }

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

.showcase-game-info h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.showcase-game-info p {
  font-size: 0.95rem;
  color: var(--fn-text-muted);
  margin-bottom: 16px;
}

/* ==========================================================================
   RESERVED ADVERTISING PLACEHOLDER
   ========================================================================== */
.ad-slot-wrapper {
  margin: 40px auto;
  max-width: var(--max-content-width);
  padding: 0 24px;
}

.ad-placeholder-box {
  background: rgba(14, 20, 48, 0.4);
  border: 1.5px dashed rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: border-color 0.2s ease;
}

.ad-placeholder-box:hover {
  border-color: rgba(0, 240, 255, 0.45);
}

.ad-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--fn-text-dim);
  text-transform: uppercase;
}

.ad-subtext {
  font-size: 0.85rem;
  color: var(--fn-text-muted);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fn-neon-blue);
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
}

.section-subtitle {
  color: var(--fn-text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   GAME CARDS & CATALOG
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
  margin-bottom: 50px;
}

.game-card {
  background: var(--fn-card-bg);
  border: 1.5px solid var(--fn-border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  position: relative;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--fn-border-hover);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), var(--glow-blue);
}

.game-card-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #180b33 0%, #0a1129 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--fn-border-color);
}

.thumbnail-illustration {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.4s ease;
}

.game-card:hover .thumbnail-illustration {
  transform: scale(1.1);
}

.thumbnail-badge-status {
  position: absolute;
  top: 12px;
  left: 12px;
}

.thumbnail-rating {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(8, 12, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fn-arcade-gold);
}

.game-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.game-category-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--fn-neon-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.game-card-desc {
  font-size: 0.92rem;
  color: var(--fn-text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-card-action {
  width: 100%;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-card-playable {
  background: linear-gradient(135deg, var(--fn-neon-blue) 0%, var(--fn-electric-purple) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

.btn-card-playable:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.6);
  color: #ffffff;
}

.btn-card-unreleased {
  background: rgba(22, 32, 71, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--fn-text-muted);
  cursor: pointer;
}

.btn-card-unreleased:hover {
  background: rgba(30, 42, 90, 0.8);
  border-color: var(--fn-electric-violet);
  color: #ffffff;
}

/* ==========================================================================
   CATEGORY FILTER PILLS & SEARCH
   ========================================================================== */
.filter-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.category-pills-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
}

.cat-pill-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  background: rgba(16, 23, 52, 0.7);
  border: 1px solid var(--fn-border-color);
  color: var(--fn-text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill-btn:hover {
  background: rgba(26, 38, 86, 0.9);
  color: #ffffff;
  border-color: var(--fn-neon-blue);
}

.cat-pill-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(139, 92, 246, 0.25) 100%);
  border-color: var(--fn-neon-blue);
  color: var(--fn-neon-blue);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   TOAST NOTIFICATION MODAL
   ========================================================================== */
.farnova-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(14, 20, 48, 0.95);
  border: 1.5px solid var(--fn-neon-blue);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--glow-blue);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 380px;
}

.farnova-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.6rem;
}

.toast-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.toast-msg {
  font-size: 0.85rem;
  color: var(--fn-text-muted);
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */
.farnova-footer {
  background: rgba(5, 7, 16, 0.95);
  border-top: 1px solid var(--fn-border-color);
  padding: 60px 0 30px;
  margin-top: 80px;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo .brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--fn-neon-blue);
  text-transform: uppercase;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--fn-text-muted);
  max-width: 360px;
  line-height: 1.6;
}

.footer-links-col h4 {
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #ffffff;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  font-size: 0.92rem;
  color: var(--fn-text-muted);
}

.footer-links-col a:hover {
  color: var(--fn-neon-blue);
  padding-left: 4px;
}

.footer-bottom {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--fn-text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-highlights {
    justify-content: center;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-search-bar {
    display: none;
  }

  .btn-mobile-toggle {
    display: block;
  }

  .hero-section {
    padding: 40px 0 50px;
  }

  .hero-highlights {
    flex-direction: column;
    gap: 12px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
