/**
 * ═══════════════════════════════════════════════════════════════════════════
 * NORDIC PELLETS - DESIGN SYSTEM v1.0
 * Ultra-premium mobile-first CSS - Production ready
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ────────────────────────────────────────────────────────────────────────────
   01. RESET & BASE
──────────────────────────────────────────────────────────────────────────── */

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

:root {
  /* Couleurs primaires */
  --primary: #1A2E22;
  --primary-dark: #0D1A11;
  --secondary: #C8A96E;
  --accent: #E8622A;
  
  /* Fonds */
  --bg-main: #F9F7F4;
  --bg-white: #FFFFFF;
  --bg-dark: #0D1A11;
  
  /* Textes */
  --text-primary: #1C1C1E;
  --text-secondary: #5E5E5E;
  --text-muted: #9CA3AF;
  
  /* Bordures */
  --border-light: #E2DDD8;
  --border-medium: #D1D5DB;
  
  /* États */
  --success: #2D7A4F;
  --error: #C0392B;
  --warning: #F59E0B;
  --info: #3B82F6;
  
  /* Fonds états */
  --success-bg: #ECFDF5;
  --error-bg: #FEF2F2;
  
  /* Espacements (multiples de 8px) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
  
  /* Coins arrondis */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Z-index layers */
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-main);
  min-height: 100vh;
}

/* ────────────────────────────────────────────────────────────────────────────
   02. TYPOGRAPHY
──────────────────────────────────────────────────────────────────────────── */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

p {
  margin-bottom: var(--space-2);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--accent);
}

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-center {
  text-align: center;
}

.text-secondary {
  color: var(--text-secondary);
}

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

.font-display {
  font-family: var(--font-display);
}

/* ────────────────────────────────────────────────────────────────────────────
   03. LAYOUT & CONTAINERS
──────────────────────────────────────────────────────────────────────────── */

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

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}

.container-narrow {
  max-width: 800px;
}

.section {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }
}

.grid {
  display: grid;
  gap: var(--space-3);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (min-width: 768px) {
  .grid {
    gap: var(--space-4);
  }
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* ────────────────────────────────────────────────────────────────────────────
   04. HEADER & NAVIGATION
──────────────────────────────────────────────────────────────────────────── */

.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-2);
  min-height: 70px;
}

@media (min-width: 768px) {
  .header-container {
    padding: var(--space-2) var(--space-3);
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(232, 98, 42, 0.05);
}

.nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.icon-btn:hover {
  background: var(--bg-main);
  color: var(--accent);
  transform: translateY(-2px);
}

.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.menu-toggle {
  display: block;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Navigation Drawer */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-white);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  z-index: var(--z-modal);
  overflow-y: auto;
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
  z-index: calc(var(--z-modal) - 1);
}

.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile-header {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-mobile-close {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.nav-mobile-links {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav-mobile-link {
  padding: var(--space-2);
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  background: rgba(232, 98, 42, 0.05);
  color: var(--accent);
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: var(--space-1) 0;
  z-index: var(--z-sticky);
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--space-1);
  color: var(--text-secondary);
  font-size: 0.625rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-base);
  position: relative;
}

.bottom-nav-item.active {
  color: var(--accent);
}

.bottom-nav-item svg {
  width: 24px;
  height: 24px;
}

/* ────────────────────────────────────────────────────────────────────────────
   05. TOPBAR (Bandeau promo dismissable)
──────────────────────────────────────────────────────────────────────────── */

.topbar {
  background: var(--primary);
  color: white;
  padding: var(--space-1) var(--space-2);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.topbar.hidden {
  display: none;
}

.topbar-text {
  flex: 1;
}

.topbar-close {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.topbar-close:hover {
  opacity: 1;
}

/* ────────────────────────────────────────────────────────────────────────────
   06. TRUST BADGES (Bandeau sécurité)
──────────────────────────────────────────────────────────────────────────── */

.trust-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-2) 0;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  color: var(--success);
}

/* ────────────────────────────────────────────────────────────────────────────
   07. FOOTER
──────────────────────────────────────────────────────────────────────────── */

.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-6) 0 var(--space-3);
  margin-top: var(--space-7);
}

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

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-5);
  }
}

.footer-section h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.footer-section p,
.footer-section a {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
  color: var(--secondary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

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

.payment-icons {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.payment-icon {
  width: 50px;
  height: 32px;
  background: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

/* ────────────────────────────────────────────────────────────────────────────
   08. BUTTONS
──────────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #D45523;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 98, 42, 0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background: #B89960;
  transform: translateY(-2px);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg-main);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
  display: flex;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #20BA5A;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ────────────────────────────────────────────────────────────────────────────
   09. CARDS
──────────────────────────────────────────────────────────────────────────── */

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

.card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.card-body {
  padding: var(--space-3);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--primary);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Product Cards */
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--border-light);
  position: relative;
}

.product-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-main);
}

.product-card-badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.product-card-body {
  padding: var(--space-3);
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--primary);
}

.product-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.price-original {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-current {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.price-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  background: var(--success-bg);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

/* ────────────────────────────────────────────────────────────────────────────
   10. HERO SECTION
──────────────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
}

@media (min-width: 768px) {
  .hero {
    min-height: 600px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-4);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--space-4);
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* ────────────────────────────────────────────────────────────────────────────
   11. BREADCRUMB
──────────────────────────────────────────────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.breadcrumb-link {
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.breadcrumb-link:hover {
  color: var(--accent);
}

.breadcrumb-separator {
  color: var(--border-medium);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* ────────────────────────────────────────────────────────────────────────────
   12. FORMS
──────────────────────────────────────────────────────────────────────────── */

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.form-label-required::after {
  content: ' *';
  color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-base);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--border-medium);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 98, 42, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
  background: var(--error-bg);
}

.form-error {
  display: none;
  font-size: 0.875rem;
  color: var(--error);
  margin-top: var(--space-1);
}

.form-error.show {
  display: block;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ────────────────────────────────────────────────────────────────────────────
   13. BADGES & TAGS
──────────────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  line-height: 1;
}

.badge-primary {
  background: var(--primary);
  color: white;
}

.badge-accent {
  background: var(--accent);
  color: white;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-outline {
  background: transparent;
  border: 2px solid var(--border-medium);
  color: var(--text-secondary);
}

/* ────────────────────────────────────────────────────────────────────────────
   14. FLOATING ACTION BUTTONS
──────────────────────────────────────────────────────────────────────────── */

.fab {
  position: fixed;
  bottom: 80px;
  right: var(--space-3);
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: calc(var(--z-sticky) - 1);
  border: none;
  font-size: 1.75rem;
}

@media (min-width: 768px) {
  .fab {
    bottom: var(--space-3);
  }
}

.fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.fab-scroll-top {
  background: var(--primary);
  opacity: 0;
  pointer-events: none;
  right: var(--space-3);
  bottom: 150px;
}

@media (min-width: 768px) {
  .fab-scroll-top {
    bottom: 80px;
  }
}

.fab-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ────────────────────────────────────────────────────────────────────────────
   15. MODALS & OVERLAYS
──────────────────────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 90%;
  width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform var(--transition-slow);
}

.modal-overlay.open .modal {
  transform: scale(1);
}

.modal-header {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: var(--bg-main);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-4);
}

/* ────────────────────────────────────────────────────────────────────────────
   16. ANIMATIONS
──────────────────────────────────────────────────────────────────────────── */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

.fade-up {
  animation: fadeUp 0.5s ease;
}

.is-visible {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

/* ────────────────────────────────────────────────────────────────────────────
   17. UTILITY CLASSES
──────────────────────────────────────────────────────────────────────────── */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

/* ────────────────────────────────────────────────────────────────────────────
   18. RESPONSIVE HELPERS
──────────────────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ────────────────────────────────────────────────────────────────────────────
   19. PRINT STYLES
──────────────────────────────────────────────────────────────────────────── */

@media print {
  .no-print {
    display: none !important;
  }
  
  .header,
  .footer,
  .bottom-nav,
  .fab,
  .topbar {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}
