/* ============================================================
   SPOKANE LOCAL SERVICES PROVIDERS — Design System
   "Your Neighbors. Not Wall Street."
   Glassmorphism Authority Directory
   ============================================================ */

/* ---------- IMPORTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=EB+Garamond:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ---------- CSS TOKENS ---------- */
:root {
  /* Colors - Dark Authority */
  --bg-deep: #060a14;
  --bg-main: #0a0e1a;
  --bg-surface: #111827;
  --bg-elevated: #1a2035;
  
  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glass-blur: 20px;
  
  /* Accents */
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --blue-600: #2563eb;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --red-500: #ef4444;
  
  /* Text */
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);
  --text-accent: var(--blue-400);
  
  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-editorial: 'EB Garamond', Georgia, serif;
  
  /* Spacing */
  --container-max: 1280px;
  --container-padding: 1.5rem;
  --section-gap: 5rem;
  --card-radius: 16px;
  --card-radius-sm: 12px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.3s;
  --duration-slow: 0.5s;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- CSS BASE & RESET ---------- */
/* ---------- CSS BASE & RESET ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-wrap: break-word; /* Prevent long wiki strings breaking viewport */
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

a:hover {
  color: var(--blue-300);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 1;
}

/* ---------- GLASS CARD ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  transition: all var(--duration) var(--ease-out);
}

.glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--duration) var(--ease-out);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--blue-500), var(--emerald-500));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-brand-text span {
  color: var(--blue-400);
}

.nav-links {
  list-style: none !important;
  padding-left: 0;

  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
}

.nav-cta {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600)) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem !important;
}

.nav-cta:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4) !important;
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--duration) var(--ease-out);
}

/* ---------- HERO ---------- */
.hero {
  padding: 10rem 0 5rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue-400);
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s var(--ease-out);
}

.hero h1 {
  font-family: var(--font-editorial);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--blue-400), var(--emerald-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-400);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ---------- FEATURED SPONSOR ---------- */
.featured-sponsor {
  margin: 2rem auto;
  width: 100%;
  max-width: 720px;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--card-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.featured-sponsor-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.featured-sponsor-info {
  flex: 1;
}

.featured-sponsor-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.featured-sponsor-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.featured-sponsor-cta {
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-400));
  color: #0a0e1a !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: all var(--duration) var(--ease-out);
}

.featured-sponsor-cta:hover {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

/* ---------- SECTION HEADERS ---------- */
.section {
  padding: var(--section-gap) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-editorial);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- TRADE CATEGORY GRID ---------- */
.trade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.trade-card {
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.trade-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--emerald-500));
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.trade-card:hover::before {
  opacity: 1;
}

.trade-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.trade-icon-svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: block;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.2));
  transition: all var(--duration) var(--ease-out);
}

.trade-card:hover .trade-icon-svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.4));
}

.trade-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.trade-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- ZIP CODE / GEO DETECTION ---------- */
.geo-section {
  padding: 3rem 0;
}

.geo-box {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.geo-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.geo-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.geo-input-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.geo-input {
  padding: 0.75rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  width: 180px;
  text-align: center;
  outline: none;
  transition: all var(--duration) var(--ease-out);
}

.geo-input::placeholder {
  color: var(--text-muted);
}

.geo-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.geo-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.geo-btn:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.geo-btn-detect {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.geo-btn-detect:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
  box-shadow: none;
}

.geo-status {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--emerald-400);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.geo-status.visible {
  opacity: 1;
}

/* ---------- PROVIDER CAROUSEL ---------- */
.carousel-section {
  padding: 2rem 0 var(--section-gap);
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.5s var(--ease-out);
  padding: 1rem 0;
}

.carousel-track.auto-scroll {
  animation: autoScroll 30s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.provider-card {
  min-width: 300px;
  max-width: 300px;
  padding: 1.75rem;
  flex-shrink: 0;
  position: relative;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.provider-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.provider-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.provider-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-verified {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--emerald-400);
}

.badge-featured {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--amber-400);
}

.provider-card-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.provider-card-trade {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.provider-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.provider-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
}

.provider-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.provider-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-400);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.provider-card-link:hover {
  gap: 0.5rem;
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--duration) var(--ease-out);
}

.carousel-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--glass-border);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--blue-500);
}

/* ---------- MISSION BANNER ---------- */
.mission-banner {
  padding: 4rem 0;
  text-align: center;
  position: relative;
}

.mission-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.mission-quote {
  font-family: var(--font-editorial);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.4;
}

.mission-quote em {
  color: var(--amber-400);
  font-style: normal;
}

.mission-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--duration) var(--ease-out);
}

.mission-cta:hover {
  border-color: var(--blue-500);
  color: var(--blue-400);
  background: rgba(59, 130, 246, 0.05);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes autoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-300px * 10 - 1.25rem * 10)); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.1); }
  50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.2); }
}

/* Intersection observer animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  :root {
    --section-gap: 3.5rem;
    --container-padding: 1.25rem;
  }

  .nav-links {
  list-style: none !important;
  padding-left: 0;

    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(6, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: 7rem 0 3rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .featured-sponsor {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem !important;
    gap: 1rem !important;
    width: 100% !important;
    margin: 1.5rem auto !important;
  }
  
  .featured-sponsor-badge {
    justify-content: center;
    width: 100%;
  }

  .trade-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .provider-card {
    min-width: 260px;
    max-width: 260px;
  }

  .geo-input-group {
    flex-direction: column;
    align-items: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Mobile Dropdown Fix */
  .nav-links .dropdown-menu, .nav-dropdown-content {
    position: static !important;
    transform: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    margin-top: 10px !important;
    padding-left: 1rem !important;

    /* Force dropdown open on mobile since hover doesn't work on touch */
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .has-dropdown:hover .dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-content {
    /* No-op on mobile */
  }
  
  .dropdown-menu li a, .nav-dropdown-content a {
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
  }

  /* Prevent Tables From Breaking Viewport */
  .wiki-table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    width: 100% !important;
  }

  /* Hero adjustments for smaller phones */
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero {
    padding: 6rem 0 2rem;
  }

  /* Universal Wiki (Expose Pages) Mobile Overrides */
  .wiki-container {
    padding: 0 1rem !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  .wiki-sidebar {
    position: static !important;
    width: 100% !important;
    flex: auto !important;
  }
  .wiki-title {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }
  .wiki-section {
    padding: 1.5rem !important;
    border-radius: 12px !important;
    margin-bottom: 2rem !important;
  }
  .wiki-section h2 {
    font-size: 1.6rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  .wiki-section h2 svg {
    margin-bottom: 0.5rem !important;
  }
  .wiki-alert {
    flex-direction: column !important;
    padding: 1.25rem !important;
    gap: 0.75rem !important;
  }
  .wiki-dropdown-toggle {
    padding: 1rem !important;
    font-size: 0.95rem !important;
  }
  .wiki-content p, .wiki-lead {
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .trade-grid {
    grid-template-columns: 1fr;
  }

  .provider-card {
    min-width: 100%;
    max-width: 100%;
  }

  .carousel-track {
    flex-direction: column;
    align-items: center;
  }
}

/* ---------- PREMIUM DROPDOWN FIX ---------- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropbtn {
    background: none;
    border: none;
    color: var(--blue-400);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-body);
    cursor: pointer;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.nav-dropdown-content {
    display: block;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    min-width: 260px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border-radius: 12px;
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}
.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}
.nav-dropdown-content a {
    color: var(--text-primary);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s, padding-left 0.2s;
}
.nav-dropdown-content a:last-child { border-bottom: none; }
.nav-dropdown-content a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-400);
    padding-left: 25px;
}

/* ---------- CLEAN NAV DROPDOWN ---------- */
.has-dropdown { position: relative; display: flex; align-items: center; }
.nav-links .dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
    background: rgba(17, 24, 39, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); min-width: 240px; box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border-radius: 12px; padding: 0.5rem 0; opacity: 0; visibility: hidden; transition: all 0.3s ease;
    list-style: none; display: flex; flex-direction: column; z-index: 10000; margin: 0;
}
.has-dropdown:hover .dropdown-menu {
  list-style: none !important;
 opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu li {
  list-style: none !important;
  list-style-type: none !important;
 display: block; margin: 0; padding: 0; }
.dropdown-menu li a { 
    display: block !important; padding: 12px 20px !important; color: var(--text-primary) !important;
    font-size: 0.95rem !important; font-weight: 600 !important; border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    border-radius: 0 !important; background: transparent !important; transition: all 0.2s !important;
}
.dropdown-menu li a:last-child { border-bottom: none !important; }
.dropdown-menu li a:hover { background: rgba(59, 130, 246, 0.1) !important; color: var(--blue-400) !important; padding-left: 25px !important; }

/* ---------- MISSING PROVIDER GRID ---------- */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.provider-listing { padding: 2rem; display: flex; flex-direction: column; gap: 0.75rem; position: relative; overflow: hidden; background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 16px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.provider-listing:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); background: var(--glass-bg-hover); border-color: var(--glass-border-hover); }
.provider-listing-rank { position: absolute; top: 1rem; right: 1rem; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.provider-listing-header { display: flex; align-items: center; gap: 1rem; }
.provider-listing-icon { width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(59,130,246,0.05)); border: 1px solid rgba(59,130,246,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; box-shadow: inset 0 0 20px rgba(255,255,255,0.05); }
.provider-listing-title { font-weight: 700; font-size: 1.15rem; color: #fff;}
.provider-listing-est { font-size: 0.8rem; color: var(--text-muted); }
.provider-listing-badges { display: flex; gap: 0.5rem; }
.provider-listing-desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.provider-listing-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; border-top: 1px solid var(--glass-border); margin-top: auto; }
.provider-listing-contact { font-size: 0.85rem; color: var(--text-muted); }
.provider-listing-link { font-size: 0.9rem; font-weight: 600; color: var(--blue-400); display: inline-flex; align-items: center; gap: 0.3rem; transition: gap 0.2s ease; text-decoration: none; }
.provider-listing-link:hover { gap: 0.6rem; color: var(--blue-300); }
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-item { padding: 1.5rem 2rem; margin-bottom: 1rem; cursor: pointer; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; transition: all 0.3s ease; }
.faq-q { font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--blue-400); transition: transform 0.3s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--text-secondary); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 300px; padding-top: 1rem; }
@media (max-width: 768px) { .provider-grid { grid-template-columns: 1fr; } }
