/* ============================================
   AL RABTA - Muslim Business Network
   Design System & Global Styles
   ============================================ */

:root {
  /* Colors - Deep Emerald + Warm Gold palette */
  --color-primary: #0a5940;
  --color-primary-dark: #063d2c;
  --color-primary-light: #107a5a;
  --color-accent: #c9a961;
  --color-accent-dark: #a88840;
  --color-accent-light: #e6ce95;
  
  --color-cream: #faf7f0;
  --color-ivory: #f4eee0;
  --color-warm-white: #fdfcf8;
  
  --color-dark: #1a1d1a;
  --color-text: #2a2d2a;
  --color-text-muted: #6b6d6a;
  --color-border: #e6e1d4;
  
  --color-success: #16a34a;
  --color-warning: #ea9e18;
  --color-danger: #dc2626;
  
  /* Typography */
  --font-display: 'Playfair Display', 'Amiri', serif;
  --font-body: 'Poppins', 'Noto Sans', sans-serif;
  --font-arabic: 'Amiri', 'Scheherazade New', serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(10, 89, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 89, 64, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 89, 64, 0.12);
  --shadow-gold: 0 8px 24px rgba(201, 169, 97, 0.25);
  
  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-warm-white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Arabic/Urdu text support */
[lang="ar"], [lang="ur"], .arabic-text {
  font-family: var(--font-arabic);
  direction: rtl;
  line-height: 1.8;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.text-accent { color: var(--color-accent-dark); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }

/* ============================================
   Layout Containers
   ============================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm { max-width: 720px; margin: 0 auto; padding: 0 var(--space-lg); }
.container-md { max-width: 960px; margin: 0 auto; padding: 0 var(--space-lg); }

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-gold {
  background: var(--color-accent);
  color: var(--color-dark);
}
.btn-gold:hover {
  background: var(--color-accent-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
}
.btn-ghost:hover {
  background: var(--color-ivory);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ============================================
   Header / Navigation
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}
.logo-mark::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  opacity: 0.5;
}
.logo-tagline {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  display: block;
  margin-top: -4px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-menu a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}
.nav-menu a:hover { color: var(--color-primary); }
.nav-menu a.active { color: var(--color-primary); font-weight: 600; }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.4rem 0.8rem;
  background: var(--color-ivory);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.lang-switcher:hover { background: var(--color-accent-light); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  transition: all var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
  background: 
    radial-gradient(ellipse at top left, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(10, 89, 64, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-warm-white) 0%, var(--color-cream) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%230a5940' stroke-opacity='0.04'%3E%3Cpath d='M30 0L60 30L30 60L0 30z'/%3E%3Cpath d='M30 10L50 30L30 50L10 30z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1.25rem;
  background: rgba(201, 169, 97, 0.15);
  border: 1px solid var(--color-accent-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.6s ease-out;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 .gold-text {
  background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-arabic {
  font-family: var(--font-arabic);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  direction: rtl;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Hero search bar */
.hero-search {
  background: white;
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: var(--space-sm);
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-search-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  border-right: 1px solid var(--color-border);
}
.hero-search-input:last-of-type { border-right: none; }

.hero-search-input input {
  border: none;
  outline: none;
  padding: 0.75rem 0;
  width: 100%;
  background: transparent;
  font-size: 0.95rem;
}

.hero-search-input .icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ============================================
   Section Common
   ============================================ */

.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
}

.section-label {
  display: inline-block;
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

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

/* ============================================
   Categories Grid
   ============================================ */

.categories-section {
  background: white;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}

.category-card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.category-card:hover::before { transform: scaleX(1); }

.category-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-light);
  font-size: 1.5rem;
  transition: transform var(--transition);
}
.category-card:hover .category-icon {
  transform: scale(1.1) rotate(-5deg);
}

.category-name {
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}

.category-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ============================================
   Feature Cards
   ============================================ */

.features-section {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-warm-white) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-gold);
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   How It Works
   ============================================ */

.how-section {
  background: var(--color-primary-dark);
  color: white;
  position: relative;
  overflow: hidden;
}
.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9a961' stroke-opacity='0.08'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.how-section .section-header h2 { color: white; }
.how-section .section-header p { color: rgba(255,255,255,0.75); }
.how-section .section-label { color: var(--color-accent); }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
  position: relative;
  z-index: 2;
}

.step-card {
  text-align: center;
  padding: var(--space-lg);
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  position: relative;
  box-shadow: 0 0 0 8px rgba(201, 169, 97, 0.2);
}

.step-card h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.step-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

/* ============================================
   Stats
   ============================================ */

.stats-section {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-xl);
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-item .stat-label {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  padding: var(--space-3xl) 0;
  background: var(--color-cream);
}

.cta-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-accent-light);
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23c9a961' stroke-opacity='0.1'%3E%3Cpath d='M50 10L90 50L50 90L10 50z'/%3E%3C/g%3E%3C/svg%3E");
  background-position: top right, bottom left;
  background-repeat: no-repeat;
  background-size: 200px;
}

.cta-box h2 {
  margin-bottom: var(--space-md);
}

.cta-box p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto var(--space-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.8);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo { color: white; margin-bottom: var(--space-md); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 300px; }

.footer h5 {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: var(--space-sm); }
.footer ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* ============================================
   Forms (Auth pages)
   ============================================ */

.auth-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  background: 
    radial-gradient(ellipse at top left, rgba(201, 169, 97, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-warm-white) 0%, var(--color-cream) 100%);
}

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-header h2 {
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.auth-header p {
  color: var(--color-text-muted);
}

.role-tabs {
  display: flex;
  background: var(--color-ivory);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-xl);
}

.role-tab {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  border-radius: calc(var(--radius-md) - 4px);
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
}

.role-tab.active {
  background: white;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}
.form-label .required { color: var(--color-danger); }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: all var(--transition);
  background: var(--color-warm-white);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(10, 89, 64, 0.1);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b6d6a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-helper {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.form-divider {
  margin: var(--space-xl) 0;
  text-align: center;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.form-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border);
}
.form-divider span {
  background: white;
  padding: 0 var(--space-md);
  position: relative;
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.auth-footer a {
  color: var(--color-primary);
  font-weight: 600;
}

/* ============================================
   Search Results Page
   ============================================ */

.search-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

.filters-panel {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-group {
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; }

.filter-group h5 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: color var(--transition);
}
.filter-option:hover { color: var(--color-primary); }
.filter-option input { accent-color: var(--color-primary); }

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.results-count {
  color: var(--color-text-muted);
}
.results-count strong { color: var(--color-dark); }

.provider-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
  transition: all var(--transition);
}
.provider-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.provider-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-light);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.provider-info h4 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--color-dark);
}

.provider-category {
  display: inline-block;
  padding: 2px 10px;
  background: var(--color-ivory);
  color: var(--color-accent-dark);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.provider-meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

.provider-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-accent);
}
.rating-stars .score {
  color: var(--color-dark);
  font-weight: 700;
  margin-left: 4px;
}

.provider-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: center;
  min-width: 140px;
}

.distance-badge {
  background: var(--color-primary);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-sm);
}

/* ============================================
   Dashboard
   ============================================ */

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 70px);
}

.sidebar {
  background: var(--color-primary-dark);
  color: white;
  padding: var(--space-lg);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-menu {
  list-style: none;
  margin-top: var(--space-lg);
}

.sidebar-menu li {
  margin-bottom: 4px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.sidebar-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.sidebar-menu a.active {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 700;
}

.dashboard-main {
  padding: var(--space-xl);
  background: var(--color-warm-white);
}

.dashboard-header {
  margin-bottom: var(--space-xl);
}

.dashboard-header h1 {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.dashboard-header .subtitle {
  color: var(--color-text-muted);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.stat-card .stat-label {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-card.highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-color: var(--color-primary);
}
.stat-card.highlight .stat-label { color: rgba(255,255,255,0.8); }
.stat-card.highlight .stat-value { color: var(--color-accent); }

/* Rating status indicator */
.rating-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-weight: 600;
}
.rating-indicator.good {
  background: rgba(22, 163, 74, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(22, 163, 74, 0.3);
}
.rating-indicator.warning {
  background: rgba(234, 158, 24, 0.1);
  color: var(--color-warning);
  border: 1px solid rgba(234, 158, 24, 0.3);
}
.rating-indicator.danger {
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-danger);
  border: 1px solid rgba(220, 38, 38, 0.3);
}
.rating-indicator .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.fade-in { animation: fadeInUp 0.6s ease-out; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 968px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .menu-toggle { display: flex; }
  
  .hero { padding: var(--space-2xl) 0; }
  .hero-search { flex-direction: column; padding: var(--space-md); }
  .hero-search-input { border-right: none; border-bottom: 1px solid var(--color-border); padding: var(--space-sm) 0; }
  .hero-search-input:last-of-type { border-bottom: none; }
  
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  
  .form-row { grid-template-columns: 1fr; }
  
  .provider-card { grid-template-columns: auto 1fr; }
  .provider-actions { grid-column: 1 / -1; flex-direction: row; }
  
  .section { padding: var(--space-2xl) 0; }
}

/* Utility */
.d-none { display: none; }
.d-block { display: block; }
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
