/* =================================
   CLUB DAGUERRE UNIFIED LUXURY DESIGN SYSTEM
   Optimized for M1 Mac - Smooth Animations
   Version: 3.0 - Performance Edition
   ================================= */


/* Keep the crystal effect but remove moving particles 
.search-orb::before {
  background: linear-gradient(135deg, 
    rgba(var(--diamond), 0.1) 0%, 
    transparent 100%) !important;
  animation: none !important;
  opacity: 0.5;
}*/


/* Keep the color but stop the rotation */
body.dark-theme::before {
  animation: prismaticFadeOut 10s ease-in-out forwards !important;
  /* This only fades out, no rotation */
}


/* =================================
   CSS VARIABLES - LUXURY CONTROL CENTER
   ================================= */
:root {
  /* Liquid Metal Colors */
  --liquid-gold: 255, 215, 0;
  --liquid-silver: 192, 192, 192;
  --liquid-platinum: 229, 228, 226;
  --liquid-copper: 184, 115, 51;
  --liquid-bronze: 205, 127, 50;
  
  /* Gem Colors */
  --sapphire: 15, 82, 186;
  --emerald: 80, 200, 120;
  --ruby: 224, 17, 95;
  --diamond: 185, 242, 255;
  
  /* Glow System */
  --glow-strength: 1;
  --glow-speed: 0.4s; /* Increased for smoother animations */
  --glow-primary: 59, 130, 246;
  --glow-cyan: 34, 211, 238;
  --glow-purple: 147, 51, 234;
  --glow-amber: 251, 191, 36;
  
  /* Category Colors */
  --glow-manufacturer: 255, 215, 0;
  --glow-geographic: 52, 211, 153;
  --glow-specialty: 59, 130, 246;
  --glow-nearby: 251, 191, 36;
  
  /* Premium Surfaces */
  --carbon-fiber: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImNhcmJvbiIgeD0iMCIgeT0iMCIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cmVjdCB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIGZpbGw9IiMxMTEiLz48cmVjdCB4PSIyMCIgeT0iMjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0iIzExMSIvPjxyZWN0IHg9IjIwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIGZpbGw9IiMxYTFhMWEiLz48cmVjdCB5PSIyMCIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiBmaWxsPSIjMWExYTFhIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2NhcmJvbikiLz48L3N2Zz4=');
}

/* =================================
   OBSIDIAN GLASS BACKGROUND
   ================================= */
body.dark-theme {
  background: 
    radial-gradient(ellipse at top, rgba(15, 82, 186, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(184, 115, 51, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #000000 100%);
  position: relative;
}

/* Prismatic light effect with 10-second fade */
body.dark-theme::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(var(--sapphire), 0.03) 60deg,
    rgba(var(--emerald), 0.03) 120deg,
    rgba(var(--ruby), 0.03) 180deg,
    rgba(var(--liquid-gold), 0.03) 240deg,
    rgba(var(--diamond), 0.03) 300deg,
    transparent 360deg
  );
  pointer-events: none;
  mix-blend-mode: screen;
  animation: 
    prismaticRotation 30s linear infinite,
    prismaticFadeOut 10s ease-in-out forwards;
}

@keyframes prismaticRotation {
  to { transform: rotate(360deg); }
}

@keyframes prismaticFadeOut {
  0%, 80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* =================================
   LIQUID METAL HEADER
   ================================= */
.header-section {
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.header-section::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  right: -100%;
  bottom: -100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(var(--liquid-gold), 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(var(--liquid-platinum), 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(var(--liquid-silver), 0.05) 0%, transparent 50%);
  filter: blur(40px);
  animation: liquidMetalFlow 8s ease-in-out infinite;
  mix-blend-mode: screen;
  z-index: -1;
}

@keyframes liquidMetalFlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, -20px) scale(1.1); }
  66% { transform: translate(30px, 20px) scale(0.9); }
}

.header-section h1 {
  background: linear-gradient(
    135deg,
    rgb(var(--liquid-silver)) 0%,
    rgb(var(--liquid-platinum)) 25%,
    rgb(var(--liquid-gold)) 50%,
    rgb(var(--liquid-platinum)) 75%,
    rgb(var(--liquid-silver)) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: metallicSheen 6s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  letter-spacing: 2px;
}

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

/* =================================
   CRYSTAL SEARCH BAR
   ================================= */
.search-orb {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%),
    rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 2px 10px rgba(var(--diamond), 0.2);
  z-index: 100;
}

.search-orb::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(var(--diamond), 0.3) 0%, transparent 3%),
    radial-gradient(circle at 70% 60%, rgba(var(--diamond), 0.3) 0%, transparent 3%),
    radial-gradient(circle at 40% 80%, rgba(var(--diamond), 0.3) 0%, transparent 3%);
  animation: diamondSparkle 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes diamondSparkle {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0; }
  50% { transform: rotate(180deg) scale(1.1); opacity: 1; }
}

.search-orb:focus-within {
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5),
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(var(--diamond), 0.3),
    0 0 100px rgba(var(--sapphire), 0.2);
  border-color: rgba(var(--diamond), 0.3);
}

.search-input {
  position: relative;
  z-index: 101;
  pointer-events: auto;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 300;
  letter-spacing: 0.5px;
}

.search-enter-btn {
  position: relative;
  z-index: 102;
  pointer-events: auto;
  background: 
    linear-gradient(135deg, rgba(var(--liquid-gold), 0.1) 0%, rgba(var(--liquid-platinum), 0.1) 100%),
    rgba(var(--glow-primary), 0.1) !important;
  border: 1px solid rgba(var(--liquid-gold), 0.2) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(var(--liquid-gold), 0.1);
  transition: all var(--glow-speed) ease;
}

.search-enter-btn:hover {
  background: 
    linear-gradient(135deg, rgba(var(--liquid-gold), 0.2) 0%, rgba(var(--liquid-platinum), 0.2) 100%),
    rgba(var(--glow-primary), 0.2) !important;
  border-color: rgba(var(--liquid-gold), 0.4) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(var(--liquid-gold), 0.3) !important;
  text-shadow: 0 0 5px rgba(var(--liquid-gold), 0.5);
}

/* =================================
   SEARCH CARDS - OPTIMIZED FOR SMOOTH HOVER
   ================================= */

/* Base card with GPU optimization */
.search-card {
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%),
    var(--carbon-fiber) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  
  /* GPU Optimization for M1 Mac */
  transform: translateZ(0);
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  perspective: 1000px;
  
  /* Smoother transition curve */
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  
  animation: luxuryCardEntry 0.8s ease-out forwards;
}

@keyframes luxuryCardEntry {
  from {
    opacity: 0;
    transform: translateY(30px) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

/* Staggered animations */
.search-card:nth-child(1) { animation-delay: 0.1s; }
.search-card:nth-child(2) { animation-delay: 0.15s; }
.search-card:nth-child(3) { animation-delay: 0.2s; }
.search-card:nth-child(4) { animation-delay: 0.25s; }
.search-card:nth-child(5) { animation-delay: 0.3s; }
.search-card:nth-child(6) { animation-delay: 0.35s; }
.search-card:nth-child(7) { animation-delay: 0.4s; }
.search-card:nth-child(8) { animation-delay: 0.45s; }

/* Metallic edge lighting */
.search-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, 
    rgba(var(--liquid-gold), 0.3),
    rgba(var(--liquid-platinum), 0.3),
    rgba(var(--liquid-gold), 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Glass overlay */
.search-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.1) 0%, 
      transparent 50%,
      rgba(255, 255, 255, 0.05) 100%);
  border-radius: 16px;
  pointer-events: none;
}

/* OPTIMIZED HOVER - No rotation for smoothness */
.search-card:hover {
  /* Simple lift without complex transforms */
  transform: translateY(-8px) translateZ(0) scale(1.02);
  z-index: 10;
  
  /* Optimized shadows */
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 12px 24px rgba(0, 0, 0, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.1);
}

.search-card:hover::before {
  opacity: 1;
  animation: metallicPulse 1.5s ease-in-out infinite;
}

@keyframes metallicPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}



/* =================================
   3D CARD FLIP SYSTEM
   Add this section to your glow-system.css
   ================================= */

/* Place this AFTER your .search-card styles (around line 280) */

/* UPDATE your existing .search-card to add 3D support */
.search-card {
    /* Keep all existing styles, just ADD these: */
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Card inner container - NEW */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Flipped state - NEW */
.search-card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* Card faces - NEW */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

.card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(180deg);
    background: 
        linear-gradient(135deg, 
            rgba(var(--liquid-platinum), 0.1) 0%, 
            rgba(var(--liquid-gold), 0.05) 50%,
            rgba(var(--liquid-platinum), 0.1) 100%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
    border: 1px solid rgba(var(--liquid-gold), 0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Back face content - NEW */
.card-back-header {
    text-align: center;
    margin-bottom: 15px;
}

.card-back-title {
    color: rgba(var(--liquid-gold), 0.9);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-back-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: rgba(var(--liquid-gold), 0.9);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.card-action-btn {
    flex: 1;
    padding: 8px 16px;
    background: rgba(var(--liquid-gold), 0.1);
    border: 1px solid rgba(var(--liquid-gold), 0.3);
    border-radius: 6px;
    color: rgba(var(--liquid-gold), 0.9);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.card-action-btn:hover {
    background: rgba(var(--liquid-gold), 0.2);
    border-color: rgba(var(--liquid-gold), 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--liquid-gold), 0.3);
}

/* Flip trigger button - NEW */
.flip-trigger {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.search-card:hover .flip-trigger {
    opacity: 1;
}

.flip-trigger:hover {
    background: rgba(var(--liquid-gold), 0.2);
    border-color: rgba(var(--liquid-gold), 0.4);
    transform: scale(1.1);
}

.flip-trigger::before {
    content: '↻';
    color: white;
    font-size: 16px;
    font-weight: bold;
}

/* UPDATE your existing hover effect to work with flipped cards */
.search-card:hover {
    /* Keep existing styles, just be aware of flipped state */
    transform: translateY(-8px) translateZ(50px);
}

.search-card.flipped:hover {
    transform: translateY(-8px) translateZ(50px) rotateY(0deg);
}

/* Holographic effect on back - NEW */
.card-back::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(45deg, 
            transparent 30%, 
            rgba(var(--diamond), 0.1) 45%, 
            rgba(var(--liquid-gold), 0.1) 50%, 
            rgba(var(--diamond), 0.1) 55%, 
            transparent 70%);
    animation: holographicSweep 3s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes holographicSweep {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Category-specific back faces - NEW */
.search-card.manufacturer .card-back {
    background: 
        linear-gradient(135deg, 
            rgba(var(--liquid-gold), 0.15) 0%, 
            rgba(var(--liquid-bronze), 0.1) 50%,
            rgba(var(--liquid-gold), 0.15) 100%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.search-card.geographic .card-back {
    background: 
        linear-gradient(135deg, 
            rgba(var(--emerald), 0.15) 0%, 
            rgba(var(--liquid-silver), 0.1) 50%,
            rgba(var(--emerald), 0.15) 100%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.search-card.specialty .card-back {
    background: 
        linear-gradient(135deg, 
            rgba(var(--sapphire), 0.15) 0%, 
            rgba(var(--diamond), 0.1) 50%,
            rgba(var(--sapphire), 0.15) 100%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
}

/* Flip animation glow - NEW */
@keyframes cardFlipGlow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 
            0 20px 60px rgba(var(--liquid-gold), 0.4),
            0 0 100px rgba(var(--liquid-gold), 0.2);
    }
}

.search-card.flipping {
    animation: cardFlipGlow 0.8s ease-in-out;
}

/* Member card 3D support - NEW */
.member-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
}

.member-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-card.flipped .member-card-inner {
    transform: rotateY(180deg);
}

/* Mobile optimization for 3D */
@media (max-width: 768px) {
    .search-card,
    .member-card {
        perspective: 800px;
    }
    
    .card-back {
        padding: 15px;
    }
    
    .flip-trigger {
        opacity: 1; /* Always visible on mobile */
    }
}






/* =================================
   CATEGORY-SPECIFIC LUXURY MATERIALS
   ================================= */

/* Manufacturer cards - Gold leaf effect */
.search-card.manufacturer {
  background: 
    radial-gradient(circle at 30% 30%, rgba(var(--liquid-gold), 0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%),
    var(--carbon-fiber) !important;
}

.search-card.manufacturer:hover {
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 20px 40px rgba(var(--liquid-gold), 0.2),
    inset 0 1px 0 rgba(var(--liquid-gold), 0.3);
}

.search-card.manufacturer::before {
  background: linear-gradient(135deg, 
    rgba(var(--liquid-gold), 0.4),
    rgba(var(--liquid-bronze), 0.3),
    rgba(var(--liquid-gold), 0.4));
}

/* Geographic cards - Emerald crystal */
.search-card.geographic {
  background: 
    radial-gradient(circle at 70% 70%, rgba(var(--emerald), 0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%) !important;
}

.search-card.geographic::before {
  background: linear-gradient(135deg, 
    rgba(var(--emerald), 0.3),
    rgba(var(--liquid-silver), 0.3),
    rgba(var(--emerald), 0.3));
}

.search-card.geographic:hover {
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 20px 40px rgba(var(--emerald), 0.15),
    inset 0 1px 0 rgba(var(--emerald), 0.2);
}

/* Specialty cards - Sapphire glass */
.search-card.specialty {
  background: 
    radial-gradient(circle at 50% 50%, rgba(var(--sapphire), 0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%) !important;
}

.search-card.specialty::before {
  background: linear-gradient(135deg, 
    rgba(var(--sapphire), 0.3),
    rgba(var(--diamond), 0.3),
    rgba(var(--sapphire), 0.3));
}

.search-card.specialty:hover {
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 20px 40px rgba(var(--sapphire), 0.15),
    inset 0 1px 0 rgba(var(--sapphire), 0.2);
}

/* Priority card - Holographic platinum (ALWAYS VISIBLE) */
.search-card.priority-card,
.search-card[data-category-id="naehe"] {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  background: 
    linear-gradient(45deg, 
      rgba(var(--liquid-platinum), 0.1) 0%, 
      rgba(var(--liquid-gold), 0.1) 25%, 
      rgba(var(--diamond), 0.1) 50%, 
      rgba(var(--liquid-gold), 0.1) 75%, 
      rgba(var(--liquid-platinum), 0.1) 100%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%) !important;
  background-size: 400% 400%;
  animation: holographicShift 10s ease infinite, luxuryCardEntry 0.8s ease-out forwards;
  border: 2px solid rgba(var(--liquid-gold), 0.3) !important;
}

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

/* =================================
   ICON TREATMENTS
   ================================= */
.card-icon {
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

/* Lens flare effect on hover */
.search-card:hover .card-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
  animation: lensFlare 0.6s ease-out;
}

@keyframes lensFlare {
  0% { transform: translate(-100%, -100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translate(100%, 100%); opacity: 0; }
}

/* =================================
   TEXT EFFECTS
   ================================= */
.card-title {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 
    0 1px 0 rgba(0, 0, 0, 0.8),
    0 -1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 400;
  letter-spacing: 1px;
  transition: all 0.5s ease;
}

.search-card:hover .card-title {
  text-shadow: 
    0 1px 0 rgba(0, 0, 0, 0.8),
    0 -1px 0 rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 255, 255, 0.5);
  letter-spacing: 1.5px;
}

.card-count {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.5s ease;
  font-weight: 300;
}

.search-card:hover .card-count {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 10px currentColor;
}

/* =================================
   MEMBER CARDS - OPTIMIZED
   ================================= */
.member-card {
  background: 
    linear-gradient(135deg, 
      rgba(50, 25, 0, 0.3) 0%, 
      rgba(0, 0, 0, 0.8) 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(50, 25, 0, 0.1) 2px,
      rgba(50, 25, 0, 0.1) 4px
    ) !important;
  border: 1px solid rgba(var(--liquid-bronze), 0.2) !important;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  
  /* GPU optimization */
  transform: translateZ(0);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  
  /* Smooth transition */
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Leather grain texture */
.member-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(0, 0, 0, 0.03) 10px,
      rgba(0, 0, 0, 0.03) 20px
    );
  border-radius: 16px;
  pointer-events: none;
}

/* Optimized hover */
.member-card:hover {
  transform: translateY(-6px) translateZ(0);
  border-color: rgba(var(--liquid-gold), 0.4) !important;
  box-shadow: 
    inset 0 0 0 2px rgba(var(--liquid-gold), 0.1),
    0 15px 30px rgba(0, 0, 0, 0.6),
    0 25px 50px rgba(0, 0, 0, 0.4) !important;
}

/* =================================
   LOADING STATES
   ================================= */
.loading-spinner {
  position: relative;
}

.loading-spinner::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(var(--liquid-gold), 0.3) 90deg,
    transparent 180deg,
    rgba(var(--liquid-platinum), 0.3) 270deg,
    transparent 360deg
  );
  animation: luxurySpinner 2s linear infinite;
  filter: blur(10px);
}

@keyframes luxurySpinner {
  to { transform: rotate(360deg); }
}

/* =================================
   PERFORMANCE OPTIMIZATIONS
   ================================= */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specific optimizations for Safari/WebKit */
@supports (-webkit-backdrop-filter: none) {
  .search-card {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
  }
  
  .search-card:hover {
    transform: translate3d(0, -8px, 0) scale(1.02);
    -webkit-transform: translate3d(0, -8px, 0) scale(1.02);
  }
}

/* =================================
   MOBILE OPTIMIZATIONS
   ================================= */
@media (max-width: 768px), (hover: none) {
  :root {
    --glow-strength: 0.7;
  }
  
  /* Simplified hover effects */
  .search-card:hover {
    transform: translateY(-4px);
  }
  
  /* Reduce complex animations */
  .search-card::before,
  .search-card:hover::before {
    animation: none;
  }
  
  /* Simplified member cards */
  .member-card {
    background: 
      linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%) !important;
  }
  
  /* Disable prismatic effect on mobile */
  body.dark-theme::before {
    animation: none;
    opacity: 0;
  }
}

/* =================================
   ACCESSIBILITY
   ================================= */
@media (prefers-contrast: high) {
  :root {
    --glow-strength: 1.5;
  }
  
  .search-card,
  .member-card {
    border-width: 2px;
  }
}

/* Focus states for keyboard navigation */
.search-card:focus,
.search-enter-btn:focus,
.prominent-back-button:focus {
  outline: 2px solid rgba(var(--liquid-gold), 0.5);
  outline-offset: 2px;
}

/* =================================
   REDUCED MOTION SUPPORT
   ================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .search-card:hover {
    transform: translateY(-4px);
  }
}
