/* ==========================================================================
   ResumeBell — Enterprise AI Recruiter SaaS Platform (2026 Edition)
   Pixel-Perfect Layout Alignment, 8px Spatial Grid & WCAG Dual-Theme Engine
   Inspired by Stripe, Linear, Vercel, Notion, Framer, Raycast, Ashby & Greenhouse
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

/* ===== 1. LIGHT MODE DESIGN TOKENS (PREMIUM LIGHT INDIGO SYSTEM) ===== */
:root,
[data-theme="light"] {
  --rx-bg: #f4f6ff;
  --rx-surface: #eef2ff;
  --rx-card: #ffffff;
  --rx-card-hover: #ffffff;
  --rx-header-bg: rgba(255, 255, 255, 0.95);
  --rx-subnav-bg: #ffffff;
  
  /* Premium Light Indigo Tokens */
  --rx-primary: #4f46e5;
  --rx-primary-dark: #3730a3;
  --rx-primary-light: #6366f1;
  --rx-primary-glow: rgba(79, 70, 229, 0.22);
  --rx-primary-bg: rgba(79, 70, 229, 0.08);

  --rx-secondary: #10b981;
  --rx-secondary-dark: #059669;
  --rx-secondary-light: #34d399;
  --rx-secondary-bg: rgba(16, 185, 129, 0.08);

  --rx-accent: #06b6d4;
  --rx-accent-dark: #0891b2;
  --rx-accent-light: #22d3ee;
  --rx-accent-bg: rgba(6, 182, 212, 0.08);

  /* Unified Indigo Accent Bar */
  --rx-chakra-root: #4f46e5;
  --rx-chakra-sacral: #6366f1;
  --rx-chakra-solar: #818cf8;
  --rx-chakra-heart: #a5b4fc;
  --rx-chakra-throat: #6366f1;
  --rx-chakra-eye: #4f46e5;
  --rx-chakra-crown: #3730a3;
  
  --rx-chakra-bar: linear-gradient(to right, #4f46e5, #6366f1, #818cf8, #a5b4fc);
  --rx-chakra-rainbow-bg: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.1), rgba(129, 140, 248, 0.1));

  /* Status Colors */
  --rx-success: #10b981;
  --rx-warning: #f97316;
  --rx-danger: #ef4444;
  --rx-info: #06b6d4;

  /* High Contrast WCAG Text & Borders */
  --rx-text: #0f172a;
  --rx-text-secondary: #334155;
  --rx-muted: #64748b;
  --rx-border: #e0e7ff;
  --rx-border-subtle: #c7d2fe;
  --rx-border-hover: rgba(99, 102, 241, 0.45);

  /* Shadows & Elevations */
  --rx-card-shadow: 0 10px 30px -6px rgba(79, 70, 229, 0.09), 0 4px 12px rgba(0, 0, 0, 0.03);
  --rx-card-hover-shadow: 0 20px 45px -8px rgba(79, 70, 229, 0.22), 0 0 0 1px rgba(99, 102, 241, 0.3);
  --rx-dropdown-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 0 0 1px #c7d2fe;
  --rx-glow: rgba(79, 70, 229, 0.2);

  /* Radii & Fonts */
  --rx-radius-sm: 8px;
  --rx-radius-md: 12px;
  --rx-radius-lg: 16px;
  --rx-radius-xl: 22px;

  --rx-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --rx-font-heading: "Plus Jakarta Sans", var(--rx-font);
  --rx-font-mono: "JetBrains Mono", monospace;
}

/* ===== 2. DARK MODE DESIGN TOKENS (DEEP OBSIDIAN INDIGO SLATE) ===== */
[data-theme="dark"] {
  --rx-bg: #0a0e1a;
  --rx-surface: #10172a;
  --rx-card: #162036;
  --rx-card-hover: #1e2a47;
  --rx-header-bg: rgba(10, 14, 26, 0.94);
  --rx-subnav-bg: rgba(16, 23, 42, 0.96);
  
  /* Primary Indigo Tokens (Dark) */
  --rx-primary: #818cf8;
  --rx-primary-dark: #6366f1;
  --rx-primary-light: #a5b4fc;
  --rx-primary-glow: rgba(129, 140, 248, 0.35);
  --rx-primary-bg: rgba(129, 140, 248, 0.15);

  --rx-secondary: #34d399;
  --rx-secondary-dark: #10b981;
  --rx-secondary-light: #6ee7b7;
  --rx-secondary-bg: rgba(52, 211, 153, 0.14);

  --rx-accent: #22d3ee;
  --rx-accent-dark: #06b6d4;
  --rx-accent-light: #67e8f9;
  --rx-accent-bg: rgba(34, 211, 238, 0.14);

  --rx-chakra-root: #818cf8;
  --rx-chakra-sacral: #a5b4fc;
  --rx-chakra-solar: #c7d2fe;
  --rx-chakra-heart: #818cf8;
  --rx-chakra-throat: #6366f1;
  --rx-chakra-eye: #4f46e5;
  --rx-chakra-crown: #a5b4fc;
  
  --rx-chakra-bar: linear-gradient(to right, #6366f1, #818cf8, #a5b4fc, #c7d2fe);
  --rx-chakra-rainbow-bg: linear-gradient(135deg, rgba(99,102,241,0.14), rgba(129,140,248,0.14), rgba(165,180,252,0.14));

  /* Status Colors */
  --rx-success: #34d399;
  --rx-warning: #fb923c;
  --rx-danger: #f87171;
  --rx-info: #22d3ee;

  /* High Contrast Text & Borders */
  --rx-text: #f8fafc;
  --rx-text-secondary: #e2e8f0;
  --rx-muted: #94a3b8;
  --rx-border: rgba(255, 255, 255, 0.1);
  --rx-border-subtle: rgba(255, 255, 255, 0.06);
  --rx-border-hover: rgba(129, 140, 248, 0.45);

  /* Shadows & Elevations */
  --rx-card-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --rx-card-hover-shadow: 0 24px 60px -12px rgba(129, 140, 248, 0.28), 0 0 35px rgba(99, 102, 241, 0.25);
  --rx-dropdown-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.12);
  --rx-glow: rgba(129, 140, 248, 0.25);
}

/* ===== 3. BASE RESET & TYPOGRAPHY ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  background-color: #090d16 !important;   /* Permanent Deep Cosmic Dark Slate Canvas Base */
  color: var(--rx-text);
  font-family: var(--rx-font);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   GLOBAL 7 VERTICAL LUMINOUS ENERGY BEAMS (GLOWING GLASS PILLARS)
   Side-by-Side Left-to-Right 7-Chakra Luminous Pillars (Apple Vision Pro + Linear + Vercel)
   ========================================================================== */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -8%;
  right: -8%;
  bottom: -10%;
  background-image:
    /* 1. Ruby Red Pillar (Left 0% - 15%) */
    linear-gradient(90deg, rgba(239, 68, 68, 0.44) 0%, rgba(239, 68, 68, 0.32) 10%, transparent 16%),
    /* 2. Warm Orange Pillar (Left 14% - 29%) */
    linear-gradient(90deg, transparent 12%, rgba(249, 115, 22, 0.42) 20%, rgba(249, 115, 22, 0.30) 28%, transparent 32%),
    /* 3. Soft Golden Yellow Pillar (Left 28% - 43%) */
    linear-gradient(90deg, transparent 27%, rgba(234, 179, 8, 0.40) 34%, rgba(234, 179, 8, 0.28) 42%, transparent 46%),
    /* 4. Emerald Green Pillar (Left 42% - 57%) */
    linear-gradient(90deg, transparent 41%, rgba(16, 185, 129, 0.42) 48%, rgba(16, 185, 129, 0.30) 56%, transparent 60%),
    /* 5. Crystal Cyan Pillar (Left 56% - 71%) */
    linear-gradient(90deg, transparent 55%, rgba(6, 182, 212, 0.42) 62%, rgba(6, 182, 212, 0.30) 70%, transparent 74%),
    /* 6. Royal Indigo Pillar (Left 70% - 85%) */
    linear-gradient(90deg, transparent 69%, rgba(99, 102, 241, 0.44) 76%, rgba(99, 102, 241, 0.32) 84%, transparent 88%),
    /* 7. Amethyst Violet Pillar (Left 84% - 100%) */
    linear-gradient(90deg, transparent 83%, rgba(168, 85, 247, 0.44) 90%, rgba(168, 85, 247, 0.32) 100%);
  filter: blur(65px);
  -webkit-filter: blur(65px);
  pointer-events: none;
  z-index: -2;
  animation: rxChakraVerticalPillarsDrift 32s ease-in-out infinite alternate;
}

/* Calm, Luxurious 32s Floating Drift Animation of Side-by-Side Glass Pillars */
@keyframes rxChakraVerticalPillarsDrift {
  0% { transform: scale(1) translateX(0) translateY(0); opacity: 0.95; }
  50% { transform: scale(1.02) translateX(8px) translateY(-6px); opacity: 1; }
  100% { transform: scale(1) translateX(0) translateY(0); opacity: 0.95; }
}

/* Layer 2: Volumetric Vignette & Ambient Light Overlay */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(168, 85, 247, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse at 50% 100%, rgba(9, 13, 22, 0.65) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--rx-font-heading);
  letter-spacing: -0.025em;
  color: var(--rx-text);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

a {
  color: var(--rx-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--rx-primary-light);
}

::selection {
  background: var(--rx-primary);
  color: #ffffff;
}

/* ===== 4. SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--rx-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--rx-muted);
  border-radius: 999px;
  opacity: 0.5;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--rx-primary);
}

/* ===== 5. HEADER & NAVIGATION SYSTEM (PERFECTLY ALIGNED) ===== */
.rx-header-top-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--rx-primary), var(--rx-accent), var(--rx-secondary), var(--rx-primary));
  background-size: 300% 100%;
  animation: rxGradientShift 5s ease infinite;
}

@keyframes rxGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.rx-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
}

.rx-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--rx-radius-md);
  background: linear-gradient(135deg, var(--rx-primary), var(--rx-primary-dark));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 20px var(--rx-primary-glow);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.rx-brand:hover .rx-brand-mark {
  transform: rotate(-6deg) scale(1.08);
}

.rx-brand-text h1 {
  font-family: var(--rx-font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  color: var(--rx-text);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.rx-brand-text span {
  font-size: 0.68rem;
  color: var(--rx-accent);
  font-weight: 700;
  display: block;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Nav Links Centering & Balanced Spacing */
.rx-nav-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.rx-nav-links a, 
.rx-nav-links .dropdown-toggle {
  color: var(--rx-text-secondary);
  font-weight: 700;
  padding: 0.5rem 1rem !important;
  border-radius: 12px;
  font-size: 0.88rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  height: 40px !important;
  margin: 0;
  line-height: 1.2;
}

.rx-nav-links a:hover, 
.rx-nav-links .dropdown-toggle:hover {
  color: var(--rx-primary);
  background: var(--rx-primary-bg);
  transform: translateY(-1px);
}

.rx-nav-links a.active, 
.rx-nav-links .dropdown-toggle.active {
  background: var(--rx-primary-bg);
  color: var(--rx-primary);
  border: 1px solid var(--rx-border-hover);
}

/* Floating Glass Dropdown Menu Fix (Z-Index Layering: 1070) */
.dropdown-menu {
  z-index: 1070 !important;
  background: var(--rx-card) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-radius-lg) !important;
  box-shadow: var(--rx-dropdown-shadow) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  animation: rxDropdownPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  padding: 0.6rem !important;
  min-width: 250px !important;
  position: absolute !important;
  top: 100% !important;
  margin-top: 8px !important;
}

@keyframes rxDropdownPop {
  0% { opacity: 0; transform: translateY(-8px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-item {
  border-radius: var(--rx-radius-md) !important;
  padding: 0.65rem 0.9rem !important;
  color: var(--rx-text) !important;
  font-size: 0.85rem !important;
  transition: all 0.15s ease !important;
}

.dropdown-item:hover {
  background: var(--rx-primary-bg) !important;
  color: var(--rx-primary) !important;
}

/* ===== ULTRA-PREMIUM SUBDROPDOWN MENU SYSTEM ===== */
.rx-subdropdown-menu {
  min-width: 345px !important;
  background: rgba(15, 23, 42, 0.96) !important;
  border: 1.5px solid rgba(129, 140, 248, 0.4) !important;
  border-radius: 22px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 35px rgba(99, 102, 241, 0.25) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  padding: 1rem 0.95rem 0.95rem !important;
  animation: rxDropdownPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  z-index: 1070 !important;
  position: absolute !important;
  margin-top: 10px !important;
  overflow: hidden;
}

.rx-subdropdown-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #10b981, #06b6d4, #6366f1, #a855f7);
}

.rx-subdropdown-item {
  border: 1.5px solid transparent !important;
  border-radius: 14px !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: transparent !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 0.45rem !important;
}

.rx-subdropdown-item:hover {
  background: rgba(30, 41, 59, 0.90) !important;
  border-color: rgba(129, 140, 248, 0.5) !important;
  transform: translateX(5px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
}

.rx-subdropdown-item .text-title {
  color: #ffffff !important;
  font-family: var(--rx-font-heading);
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  letter-spacing: -0.015em;
  margin-bottom: 0.25rem !important;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.rx-subdropdown-item .text-muted {
  color: #cbd5e1 !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  line-height: 1.35;
  margin: 0 !important;
}

.rx-subdropdown-item:hover .text-title {
  color: #818cf8 !important;
}

.rx-subdropdown-item.active {
  background: rgba(99, 102, 241, 0.25) !important;
  border-color: rgba(129, 140, 248, 0.6) !important;
}

.rx-subdropdown-item.active .text-title {
  color: #a5b4fc !important;
}

.rx-subdropdown-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.85rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.rx-subdropdown-item:hover .rx-subdropdown-icon-box {
  transform: scale(1.15) rotate(-6deg);
}

.rx-subdropdown-arrow {
  color: #64748b !important;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}

.rx-subdropdown-item:hover .rx-subdropdown-arrow {
  color: #818cf8 !important;
  transform: translateX(4px) !important;
}

.rx-subdropdown-footer {
  transition: all 0.25s ease !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: #34d399 !important;
  border-radius: 14px !important;
  padding: 0.72rem 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  margin-top: 0.4rem !important;
}

.rx-subdropdown-footer:hover {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.4) !important;
  transform: translateY(-2px);
}


/* Header Control Action Group — Exact 38px Height Alignment */
.rx-hdr-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rx-hdr-btn {
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  padding: 0 1rem !important;
  border-radius: var(--rx-radius-md) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  font-family: var(--rx-font-heading) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  border: 1px solid var(--rx-border) !important;
  background: var(--rx-surface) !important;
  color: var(--rx-text) !important;
  margin: 0 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.rx-hdr-btn:hover {
  background: var(--rx-primary-bg) !important;
  border-color: var(--rx-primary) !important;
  color: var(--rx-primary) !important;
}

.rx-filter-hdr-btn.active {
  background: var(--rx-primary) !important;
  border-color: var(--rx-primary) !important;
  color: #ffffff !important;
}

.rx-cart-hdr-pill {
  background: linear-gradient(135deg, var(--rx-primary), var(--rx-primary-dark)) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px var(--rx-primary-glow) !important;
}

.rx-theme-hdr-btn {
  border-radius: 50px !important;
}

/* Collapsible Filter Panel Drawer */
.rx-header-filter-panel {
  background: var(--rx-surface);
  border-bottom: 1px solid var(--rx-border);
  box-shadow: var(--rx-dropdown-shadow);
  padding: 1.25rem 0;
  position: relative;
  z-index: 1050;
}

.rx-filter-tab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--rx-border);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}

.rx-filter-tab-link {
  border: none;
  background: transparent;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--rx-font-heading);
  color: var(--rx-muted);
  border-radius: var(--rx-radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
}

.rx-filter-tab-link:hover {
  background: var(--rx-card);
  color: var(--rx-text);
}

.rx-filter-tab-link.active {
  background: var(--rx-primary-bg);
  color: var(--rx-primary);
  border: 1px solid var(--rx-border-hover);
}

/* ===== 5B. PERMANENT DARK GLASS SECTION: PART A TECHNOLOGY DIRECTORIES ===== */
#tech-folders-section {
  position: relative;
  overflow: hidden;
  background: transparent !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1) !important;
}

#tech-folders-section h4 {
  color: #ffffff !important;   /* Bright Crisp White Heading for Dark Section */
  font-family: var(--rx-font-heading) !important;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

#tech-folders-section p.text-muted {
  color: #cbd5e1 !important;   /* Soft Luminous Gray Subtext */
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}

#tech-folders-section .container-xl {
  position: relative;
  z-index: 1;
}

/* ===== 5C. PERMANENT DARK GLASS TILE CARDS (PART A FOLDERS) ===== */
.rx-ribbon-deck-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.5rem 0.25rem 2.5rem;
  align-items: center;
  position: relative;
}

.rx-ribbon-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.rx-tech-tile-item {
  flex: 0 0 auto;
  width: 220px;
  background: rgba(15, 23, 42, 0.90) !important;   /* Permanent Dark Obsidian Glass Body */
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: var(--rx-radius-xl);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none !important;
  color: #ffffff !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: -10px 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(129, 140, 248, 0.2) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  margin-left: -28px;
  margin-bottom: 0.5rem;
  z-index: 1;
}

.rx-ribbon-row .rx-tech-tile-item:first-child {
  margin-left: 0 !important;
}

.rx-tech-tile-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.rx-ribbon-deck-container:hover .rx-tech-tile-item,
.rx-ribbon-row:hover .rx-tech-tile-item {
  opacity: 0.38;
  filter: blur(5px) grayscale(20%);
  transform: scale(0.93);
}

.rx-ribbon-deck-container .rx-tech-tile-item:hover,
.rx-ribbon-row .rx-tech-tile-item:hover {
  opacity: 1 !important;
  filter: blur(0px) grayscale(0%) !important;
  transform: translateY(-14px) scale(1.15) !important;
  margin-left: 14px !important;
  margin-right: 30px !important;
  border-color: #6366f1 !important;
  box-shadow: 0 30px 70px rgba(99, 102, 241, 0.5), 0 0 0 2.5px rgba(129, 140, 248, 0.8), 0 0 45px rgba(168, 85, 247, 0.5) !important;
  z-index: 100 !important;
}

.rx-tech-tile-item.active {
  border: 2px solid #6366f1 !important;
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5) !important;
  opacity: 1 !important;
  filter: blur(0px) !important;
  z-index: 5;
}

.rx-tech-tile-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rx-tech-tile-item:hover .rx-tech-tile-icon-box {
  transform: scale(1.22) rotate(-8deg);
}

.rx-tech-tile-item h6 {
  font-family: var(--rx-font-heading) !important;
  font-weight: 800 !important;
  color: #ffffff !important;   /* Bright Crisp White Heading for Dark Tile */
  font-size: 1.02rem !important;
  letter-spacing: -0.025em !important;
  line-height: 1.3 !important;
  margin-bottom: 0.35rem !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.rx-tile-subtext {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;   /* Luminous Gray Subtext for Dark Tile */
  letter-spacing: 0.01em !important;
  display: flex !important;
  align-items: center !important;
}

.rx-tech-tile-badge {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  font-family: var(--rx-font-heading) !important;
  padding: 0.42rem 0.95rem !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(79, 70, 229, 0.6)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(129, 140, 248, 0.6) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  letter-spacing: 0.02em !important;
}

.rx-count-num {
  font-family: var(--rx-font-heading) !important;
  font-weight: 900 !important;
  font-size: 0.92rem !important;
  color: #fde047 !important;    /* Vivid Gold Number */
  letter-spacing: -0.025em !important;
  text-shadow: 0 1px 6px rgba(253, 224, 71, 0.4) !important;
}

.rx-tech-tile-item.active .rx-tech-tile-badge {
  background: linear-gradient(135deg, #6366f1, #4338ca) !important;
  color: #ffffff !important;
  border-color: rgba(129, 140, 248, 0.8) !important;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.5);
}

/* ===== 6. CANDIDATE DIRECTORY & DOSSIER GRID (PERMANENT CRISP LIGHT WHITE THEME CARDS ON CLICK) ===== */
#candidate-directory {
  position: relative;
  background: rgba(248, 250, 252, 0.96) !important;  /* Crisp Light Surface on Resume Click */
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1.5px solid rgba(99, 102, 241, 0.2) !important;
  border-bottom: 1.5px solid rgba(99, 102, 241, 0.2) !important;
}

#candidate-directory h3 {
  color: #0f172a !important;    /* Obsidian Dark Slate Heading for Light Section */
}

#candidate-directory .text-muted {
  color: #334155 !important;    /* Deep Slate Subtext for Light Section */
}

.rx-candidate-card-wrapper {
  animation: fadeInUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.rx-candidate-card {
  background: #ffffff !important;  /* Solid Crisp Glossy White Body for Candidate Cards! */
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: var(--rx-radius-lg) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 15px rgba(99, 102, 241, 0.06) !important;
  overflow: hidden;
}

.rx-candidate-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 18px 45px rgba(79, 70, 229, 0.18), 0 0 25px rgba(99, 102, 241, 0.12) !important;
  border-color: #6366f1 !important;
}

.rx-candidate-card h5, 
.rx-candidate-card h6, 
.rx-candidate-card strong, 
.rx-candidate-name {
  color: #0f172a !important;     /* Pitch Obsidian Dark Candidate Text for 100% Crisp Visibility */
}

.rx-candidate-card .text-muted, 
.rx-candidate-card p, 
.rx-candidate-card span.text-muted {
  color: #334155 !important;     /* Deep Slate Subtext for Light Card */
}

.rx-candidate-card .badge.border {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.rx-candidate-card div[style*="background: var(--rx-bg)"] {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* ===== GLOBAL LIGHT CARD HIGH-CONTRAST ENFORCER ===== */
.rx-light-card h1, .rx-light-card h2, .rx-light-card h3, 
.rx-light-card h4, .rx-light-card h5, .rx-light-card h6, 
.rx-light-card strong, .rx-light-card b, .rx-light-card label {
  color: #0f172a !important;
}

.rx-light-card p, .rx-light-card small, .rx-light-card span:not(.badge), .rx-light-card .text-muted {
  color: #334155 !important;
}

.rx-skill-tag {
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  transition: all 0.2s ease;
  display: inline-block;
  margin: 0.15rem;
}

.rx-skill-tag:hover {
  background: #e0e7ff !important;
  border-color: #6366f1 !important;
  color: #3730a3 !important;
  transform: translateY(-1px);
}

.card-accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--rx-primary), var(--rx-secondary));
}

.rx-skill-tag {
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  background: var(--rx-surface);
  color: var(--rx-text-secondary);
  border: 1px solid var(--rx-border);
  transition: all 0.2s ease;
  display: inline-block;
  margin: 0.15rem;
}

.rx-skill-tag:hover {
  background: var(--rx-primary-bg);
  border-color: var(--rx-primary);
  color: var(--rx-primary);
  transform: translateY(-1px);
}

/* ===== 7. ENTERPRISE DASHBOARD TABLES ===== */
.rx-table-wrap {
  background: var(--rx-card);
  border-radius: var(--rx-radius-lg);
  overflow: hidden;
  box-shadow: var(--rx-card-shadow);
  border: 1px solid var(--rx-border);
}

.rx-table-wrap table {
  margin-bottom: 0;
}

.rx-table-wrap thead th {
  background: var(--rx-surface);
  color: var(--rx-muted);
  font-weight: 800;
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rx-border);
  vertical-align: middle;
}

.rx-table-wrap tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-color: var(--rx-border);
  font-size: 0.86rem;
  color: var(--rx-text);
}

.rx-table-wrap tbody tr {
  transition: background-color 0.15s ease;
}

.rx-table-wrap tbody tr:hover {
  background: var(--rx-primary-bg) !important;
}

/* ===== 8. BUTTON SYSTEM ===== */
.btn {
  font-family: var(--rx-font-heading);
  font-weight: 700;
  border-radius: var(--rx-radius-md);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  padding: 0.65rem 1.25rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rx-primary), var(--rx-primary-dark)) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px var(--rx-primary-glow) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--rx-primary-dark), #115e59) !important;
  box-shadow: 0 14px 30px var(--rx-primary-glow) !important;
}

.btn-outline-primary {
  background: var(--rx-primary-bg) !important;
  border: 1.5px solid var(--rx-border) !important;
  color: var(--rx-primary) !important;
  box-shadow: none !important;
}

.btn-outline-primary:hover {
  background: var(--rx-primary) !important;
  border-color: var(--rx-primary) !important;
  color: #ffffff !important;
}

.btn-success {
  background: linear-gradient(135deg, var(--rx-secondary), var(--rx-secondary-dark)) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.25) !important;
}

/* ===== 7 CHAKRA SPECTRUM SYSTEM HELPER CLASSES ===== */
.bg-chakra-rainbow {
  background: var(--rx-chakra-bar) !important;
}

.text-chakra-rainbow {
  background: var(--rx-chakra-bar);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-chakra {
  background: linear-gradient(135deg, var(--rx-chakra-eye), var(--rx-chakra-crown)) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px var(--rx-primary-glow) !important;
}

.btn-chakra:hover {
  background: linear-gradient(135deg, var(--rx-chakra-crown), var(--rx-chakra-root)) !important;
  transform: translateY(-2px);
}

.badge-chakra-root { background: rgba(239, 68, 68, 0.15) !important; color: var(--rx-chakra-root) !important; border: 1px solid rgba(239, 68, 68, 0.3) !important; font-weight: 700; }
.badge-chakra-sacral { background: rgba(249, 115, 22, 0.15) !important; color: var(--rx-chakra-sacral) !important; border: 1px solid rgba(249, 115, 22, 0.3) !important; font-weight: 700; }
.badge-chakra-solar { background: rgba(234, 179, 8, 0.15) !important; color: var(--rx-chakra-solar) !important; border: 1px solid rgba(234, 179, 8, 0.3) !important; font-weight: 700; }
.badge-chakra-heart { background: rgba(16, 185, 129, 0.15) !important; color: var(--rx-chakra-heart) !important; border: 1px solid rgba(16, 185, 129, 0.3) !important; font-weight: 700; }
.badge-chakra-throat { background: rgba(6, 182, 212, 0.15) !important; color: var(--rx-chakra-throat) !important; border: 1px solid rgba(6, 182, 212, 0.3) !important; font-weight: 700; }
.badge-chakra-eye { background: rgba(99, 102, 241, 0.15) !important; color: var(--rx-chakra-eye) !important; border: 1px solid rgba(99, 102, 241, 0.3) !important; font-weight: 700; }
.badge-chakra-crown { background: rgba(168, 85, 247, 0.15) !important; color: var(--rx-chakra-crown) !important; border: 1px solid rgba(168, 85, 247, 0.3) !important; font-weight: 700; }

.btn-warning {
  background: linear-gradient(135deg, var(--rx-accent), var(--rx-accent-dark)) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.25) !important;
}

.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 200%; height: 200%;
  background: linear-gradient(60deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 80%);
  transform: rotate(30deg);
  animation: rxShimmer 4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes rxShimmer {
  0% { transform: translate(-100%, -100%) rotate(30deg); }
  100% { transform: translate(100%, 100%) rotate(30deg); }
}

/* ===== 9. HERO & SEARCH ===== */
.rx-location-hero-card {
  position: relative;
  background: rgba(15, 23, 42, 0.90) !important;
  border: 1.5px solid rgba(129, 140, 248, 0.4) !important;
  border-radius: 28px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 45px rgba(99, 102, 241, 0.25) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  overflow: hidden;
}

.rx-hero-banner-top-accent {
  height: 4.5px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #10b981, #06b6d4, #6366f1, #a855f7);
  box-shadow: 0 2px 14px rgba(99, 102, 241, 0.4);
}

.rx-location-badge-pill {
  background: rgba(99, 102, 241, 0.25) !important;
  border: 1px solid rgba(129, 140, 248, 0.5) !important;
  color: #a5b4fc !important;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--rx-font-heading);
  padding: 6px 18px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.rx-location-stat-box {
  background: rgba(30, 41, 59, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: var(--rx-radius-md);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35) !important;
}

.rx-hero-wrapper {
  background:
    radial-gradient(circle at 50% -20%, var(--rx-primary-bg), transparent 60%),
    radial-gradient(circle at 80% 80%, var(--rx-accent-bg), transparent 50%),
    var(--rx-bg);
  color: var(--rx-text);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rx-hero-pill {
  background: var(--rx-primary-bg);
  border: 1px solid var(--rx-border-hover);
  backdrop-filter: blur(10px);
  color: var(--rx-primary);
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--rx-font-heading);
  padding: 6px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}

.rx-hero-search-box {
  max-width: 680px;
  margin: 0 auto 2.25rem;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-hover);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 22px;
  padding: 8px;
  box-shadow: var(--rx-card-hover-shadow);
  transition: all 0.3s ease;
}

.rx-hero-search-box:focus-within {
  border-color: var(--rx-primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 35px var(--rx-primary-glow);
}

.rx-hero-search-box .form-control {
  background: transparent;
  border: none;
  color: var(--rx-text);
  font-size: 0.98rem;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  box-shadow: none;
}

.rx-hero-search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rx-primary);
  font-size: 1.15rem;
  pointer-events: none;
}

.rx-hero-stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.rx-hero-stat-card {
  background: var(--rx-card) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-radius-md);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--rx-text) !important;
  box-shadow: var(--rx-card-shadow);
}

/* ===== 10. STAT MINI CARDS (HIGH CONTRAST DUAL THEME) ===== */
.rx-stat-mini-card {
  background: var(--rx-card) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-radius-lg);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--rx-card-shadow) !important;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  backdrop-filter: blur(16px);
}

.rx-stat-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rx-card-hover-shadow) !important;
  border-color: var(--rx-primary-light) !important;
}

.rx-stat-mini-card .num {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--rx-font-heading);
  color: var(--rx-text) !important;
  line-height: 1;
}

.rx-stat-mini-card .lbl {
  font-size: 0.73rem;
  color: var(--rx-muted) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* View Mode Buttons */
.rx-view-btn {
  background: rgba(30, 41, 59, 0.85) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  color: #cbd5e1 !important;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
}

.rx-view-btn:hover {
  border-color: #818cf8 !important;
  color: #ffffff !important;
}

.rx-view-btn.active {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35) !important;
}

/* Premium Table View */
.rx-table-wrap {
  background: #ffffff !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.rx-table-premium {
  margin-bottom: 0 !important;
  color: #0f172a !important;
  width: 100%;
}

.rx-table-premium th {
  background: #f8fafc !important;
  color: #0f172a !important;
  font-family: var(--rx-font-heading);
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.85rem 1rem !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.rx-table-premium td {
  padding: 0.85rem 1rem !important;
  vertical-align: middle !important;
  font-size: 0.85rem !important;
  color: #0f172a !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.rx-table-premium tr:hover td {
  background: #f8fafc !important;
}

/* ===== 11. LOCATION NAV PILLS ===== */
.rx-city-nav-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.35rem 0.1rem 0.6rem;
}

.rx-city-nav-pill {
  background: #ffffff !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  color: #0f172a !important;
  padding: 0.55rem 1.25rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--rx-font-heading);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.rx-city-nav-pill:hover {
  border-color: #6366f1 !important;
  color: #4f46e5 !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.18) !important;
  background: #f8fafc !important;
}

.rx-city-nav-pill.active {
  background: linear-gradient(135deg, #4f46e5, #059669) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.35) !important;
  transform: translateY(-2px) scale(1.05);
}

.rx-city-nav-pill .pill-count {
  background: #312e81 !important;
  color: #fbbf24 !important;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 900;
  font-family: var(--rx-font-heading);
  border: 1px solid #4338ca;
}

.rx-city-nav-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* ===== 12. FLOATING & BACK TO TOP ===== */
.rx-floating-cart {
  position: fixed;
  bottom: 24px;
  right: 84px;
  z-index: 1040;
  background: linear-gradient(135deg, var(--rx-primary), var(--rx-primary-dark));
  color: #fff;
  padding: 0.75rem 1.35rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px var(--rx-primary-glow);
  transition: all 0.25s ease;
}

.rx-floating-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px var(--rx-primary-glow);
}

.rx-floating-cart a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.rx-back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--rx-primary);
  color: #ffffff !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--rx-primary-glow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
}

.rx-back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rx-back-to-top-btn:hover {
  transform: translateY(-3px) scale(1.06) !important;
  box-shadow: 0 12px 30px var(--rx-primary-glow);
}

/* ===== 13. FOOTER ===== */
.rx-footer {
  position: relative;
  background: var(--rx-surface) !important;
  color: var(--rx-text-secondary);
  padding: 3rem 0 1.25rem;
  font-size: 0.84rem;
  border-top: 1px solid var(--rx-border);
}

.rx-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rx-primary), var(--rx-accent), var(--rx-secondary), var(--rx-primary));
  background-size: 200% 100%;
  animation: rxGradientShift 5s ease infinite;
}

.rx-footer h5 {
  color: var(--rx-text);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0.03em;
}

.rx-footer a {
  color: var(--rx-muted);
  transition: all 0.2s ease;
}

.rx-footer a:hover {
  color: var(--rx-primary);
}

.rx-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--rx-card);
  border: 1px solid var(--rx-border);
  color: var(--rx-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.rx-social-btn:hover {
  background: var(--rx-primary);
  color: #ffffff !important;
  border-color: var(--rx-primary);
  transform: translateY(-2px);
}

/* ===== 14. MODALS & UTILITIES ===== */
.rx-auth-modal .modal-content, .modal-content {
  background: var(--rx-card) !important;
  color: var(--rx-text) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-radius-xl) !important;
  box-shadow: var(--rx-dropdown-shadow) !important;
  overflow: hidden;
}

.rx-auth-tabs {
  display: flex;
  background: var(--rx-surface);
  padding: 4px;
  border-radius: var(--rx-radius-md);
  border: 1px solid var(--rx-border);
  margin-bottom: 1.25rem;
}

.rx-auth-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.6rem 1rem;
  font-size: 0.83rem;
  font-weight: 700;
  font-family: var(--rx-font-heading);
  color: var(--rx-muted);
  border-radius: var(--rx-radius-sm);
  transition: all 0.2s ease;
  text-align: center;
  cursor: pointer;
}

.rx-auth-tab-btn.active {
  background: var(--rx-card) !important;
  color: var(--rx-primary) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid var(--rx-border) !important;
}

.col-filter-5 {
  flex: 0 0 auto;
  width: 20%;
}

@media (max-width: 991.98px) {
  .col-filter-5 { width: 50%; }
  .rx-hdr-btn-group { flex-wrap: wrap; }
}

@media (max-width: 767.98px) {
  .col-filter-5 { width: 100%; }
  .rx-hero-title { font-size: 1.85rem !important; }
  .rx-floating-cart { left: 16px; right: 76px; bottom: 16px; }
  .rx-back-to-top-btn { bottom: 16px; right: 16px; width: 42px; height: 42px; }
}

/* ===== 15. DYNAMIC HIGH-CONTRAST THEME SYSTEM ===== */

/* Form Elements & Input Theming */
label, .form-label, .rx-jp-form-label {
  color: var(--rx-text-secondary) !important;
}

.form-control, .form-select, .rx-jp-form-control {
  background-color: var(--rx-card) !important;
  color: var(--rx-text) !important;
  border-color: var(--rx-border) !important;
}

.form-control:focus, .form-select:focus, .rx-jp-form-control:focus {
  background-color: var(--rx-card) !important;
  color: var(--rx-text) !important;
  border-color: var(--rx-primary) !important;
  box-shadow: 0 0 0 3px var(--rx-primary-glow) !important;
}

.form-control::placeholder, .form-select::placeholder {
  color: var(--rx-muted) !important;
  opacity: 0.75;
}

/* Contrast Utility Overrides */
.text-dark {
  color: var(--rx-text) !important;
}
.text-muted {
  color: var(--rx-muted) !important;
}
.text-secondary {
  color: var(--rx-text-secondary) !important;
}
.bg-light, .bg-white {
  background-color: var(--rx-surface) !important;
  color: var(--rx-text) !important;
}
.bg-body {
  background-color: var(--rx-bg) !important;
}

/* Specific Card & Component Contrast Fixes */
.rx-jp-sidebar-left, .rx-jp-sidebar-right, .rx-category-card, .rx-job-active-card {
  background: var(--rx-card) !important;
  border: 1px solid var(--rx-border) !important;
  color: var(--rx-text) !important;
  border-radius: var(--rx-radius-lg) !important;
}

.rx-jp-sidebar-header, .rx-right-title {
  background: var(--rx-surface) !important;
  color: var(--rx-text) !important;
  border-bottom: 1px solid var(--rx-border) !important;
  padding: 0.75rem 1rem !important;
  font-weight: 700 !important;
}

.rx-category-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.rx-category-list li {
  padding: 0.25rem 0 !important;
}

.rx-category-list a {
  color: var(--rx-text-secondary) !important;
  font-size: 0.85rem !important;
  transition: color 0.2s ease !important;
}

.rx-category-list a:hover {
  color: var(--rx-primary) !important;
}

.rx-pill-btn {
  background: var(--rx-surface) !important;
  border: 1px solid var(--rx-border) !important;
  color: var(--rx-text-secondary) !important;
  border-radius: 20px !important;
  padding: 4px 12px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  margin: 2px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.rx-pill-btn:hover {
  background: var(--rx-primary-bg) !important;
  border-color: var(--rx-primary) !important;
  color: var(--rx-primary) !important;
}

.rx-answer-content code, 
.rx-int-card code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  color: #4f46e5 !important;
  background: #e0e7ff !important;
  border: 1px solid #c7d2fe !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  margin: 0 2px !important;
  display: inline-block !important;
  vertical-align: baseline !important;
  line-height: 1.4 !important;
}

.rx-pill-btn.active {
  background: linear-gradient(135deg, var(--rx-primary), var(--rx-primary-dark)) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.rx-flag-item {
  background: var(--rx-surface) !important;
  border: 1px solid var(--rx-border) !important;
  color: var(--rx-text) !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  display: inline-block !important;
  margin: 2px !important;
}

.rx-flags-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
}

.rx-filter-section-title {
  color: var(--rx-text) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  margin: 1rem 0 0.5rem 0 !important;
}

/* Modal Close Button Contrast */
[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Table Dark Theme High-Contrast System */
.table, .table > :not(caption) > * > * {
  background-color: transparent !important;
  color: var(--rx-text) !important;
  border-color: var(--rx-border) !important;
}

table th {
  background-color: var(--rx-surface) !important;
  color: var(--rx-text) !important;
  border-color: var(--rx-border) !important;
  font-weight: 700 !important;
}

table td {
  background-color: transparent !important;
  color: var(--rx-text) !important;
  border-color: var(--rx-border) !important;
}

.table-hover > tbody > tr:hover > * {
  background-color: var(--rx-primary-bg) !important;
  color: var(--rx-text) !important;
}


