/* ============================================
   APEX PREMIUM DESIGN SYSTEM v2.0
   OS-Level Digital Ecosystem
   ============================================ */

:root {
  /* ===== COLOR SYSTEM ===== */
  /* Backgrounds */
  --apex-bg-base: #0a0a0a;
  --apex-bg-elevated: #141414;
  --apex-bg-card: #1a1a1a;
  --apex-bg-hover: #222222;
  --apex-bg-overlay: rgba(10, 10, 10, 0.95);
  --apex-bg-modal: rgba(0, 0, 0, 0.85);
  
  /* Text */
  --apex-text-primary: #ffffff;
  --apex-text-secondary: #b8b8b8;
  --apex-text-tertiary: #8a8a8a;
  --apex-text-disabled: #666666;
  
  /* Brand Colors */
  --apex-brand-primary: #ff6b35;
  --apex-brand-secondary: #b537ff;
  --apex-brand-tertiary: #00ff9f;
  
  /* Accent Colors */
  --apex-accent-info: #00d4ff;
  --apex-accent-success: #00ff9f;
  --apex-accent-warning: #ffd23f;
  --apex-accent-error: #ff4444;
  
  /* Signal Intelligence Colors */
  --apex-signal-urgent: #ff4444;
  --apex-signal-breaking: #ff6b35;
  --apex-signal-policy: #b537ff;
  --apex-signal-economic: #00ff9f;
  --apex-signal-local: #00d4ff;
  --apex-signal-cultural: #ffd23f;
  --apex-signal-opportunity: #00ff9f;
  --apex-signal-safety: #ff6b35;
  
  /* Borders */
  --apex-border-subtle: rgba(255, 255, 255, 0.06);
  --apex-border-default: rgba(255, 255, 255, 0.1);
  --apex-border-strong: rgba(255, 255, 255, 0.2);
  --apex-border-brand: rgba(255, 107, 53, 0.3);
  
  /* Shadows */
  --apex-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --apex-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --apex-shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5);
  --apex-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
  --apex-shadow-glow: 0 0 24px rgba(255, 107, 53, 0.3);
  
  /* ===== TYPOGRAPHY SYSTEM ===== */
  /* Font Families */
  --apex-font-serif: 'Playfair Display', Georgia, serif;
  --apex-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --apex-font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Font Sizes */
  --apex-text-xs: 0.75rem;      /* 12px */
  --apex-text-sm: 0.875rem;     /* 14px */
  --apex-text-base: 1rem;       /* 16px */
  --apex-text-lg: 1.125rem;     /* 18px */
  --apex-text-xl: 1.25rem;      /* 20px */
  --apex-text-2xl: 1.5rem;      /* 24px */
  --apex-text-3xl: 1.875rem;    /* 30px */
  --apex-text-4xl: 2.25rem;     /* 36px */
  --apex-text-5xl: 3rem;        /* 48px */
  --apex-text-6xl: 3.75rem;     /* 60px */
  
  /* Line Heights */
  --apex-leading-tight: 1.2;
  --apex-leading-normal: 1.5;
  --apex-leading-relaxed: 1.75;
  
  /* Font Weights */
  --apex-weight-light: 300;
  --apex-weight-normal: 400;
  --apex-weight-medium: 500;
  --apex-weight-semibold: 600;
  --apex-weight-bold: 700;
  --apex-weight-black: 900;
  
  /* ===== SPACING SYSTEM ===== */
  --apex-space-1: 0.25rem;  /* 4px */
  --apex-space-2: 0.5rem;   /* 8px */
  --apex-space-3: 0.75rem;  /* 12px */
  --apex-space-4: 1rem;     /* 16px */
  --apex-space-5: 1.25rem;  /* 20px */
  --apex-space-6: 1.5rem;   /* 24px */
  --apex-space-8: 2rem;     /* 32px */
  --apex-space-10: 2.5rem;  /* 40px */
  --apex-space-12: 3rem;    /* 48px */
  --apex-space-16: 4rem;    /* 64px */
  --apex-space-20: 5rem;    /* 80px */
  --apex-space-24: 6rem;    /* 96px */
  
  /* ===== BORDER RADIUS ===== */
  --apex-radius-sm: 4px;
  --apex-radius-md: 8px;
  --apex-radius-lg: 12px;
  --apex-radius-xl: 16px;
  --apex-radius-2xl: 24px;
  --apex-radius-full: 9999px;
  
  /* ===== TRANSITIONS ===== */
  --apex-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --apex-transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --apex-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --apex-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --apex-ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --apex-ease-exit: cubic-bezier(0.4, 0, 1, 1);
  
  /* ===== LAYOUT ===== */
  --apex-container-xs: 640px;
  --apex-container-sm: 768px;
  --apex-container-md: 1024px;
  --apex-container-lg: 1280px;
  --apex-container-xl: 1536px;
  --apex-container-2xl: 1728px;
  
  --apex-nav-height: 64px;
  --apex-nav-mobile-height: 56px;
  --apex-sidebar-width: 280px;
  --apex-sidebar-collapsed: 64px;
  
  /* ===== Z-INDEX ===== */
  --apex-z-base: 0;
  --apex-z-dropdown: 1000;
  --apex-z-sticky: 1100;
  --apex-z-fixed: 1200;
  --apex-z-modal-backdrop: 1300;
  --apex-z-modal: 1400;
  --apex-z-popover: 1500;
  --apex-z-tooltip: 1600;
  --apex-z-notification: 1700;
}

/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--apex-font-sans);
  font-size: var(--apex-text-base);
  line-height: var(--apex-leading-normal);
  color: var(--apex-text-primary);
  background: var(--apex-bg-base);
  min-height: 100vh;
}

/* ===== ACCESSIBILITY UTILITIES ===== */
.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;
}

/* Global focus styles */
*:focus-visible {
  outline: 2px solid var(--apex-brand-primary);
  outline-offset: 2px;
}

/* Remove default focus outline */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast support */
@media (prefers-contrast: high) {
  :root {
    --apex-border-default: rgba(255, 255, 255, 0.3);
    --apex-border-strong: rgba(255, 255, 255, 0.5);
  }
}

/* ===== TYPOGRAPHY UTILITIES ===== */
.apex-heading-1 {
  font-family: var(--apex-font-serif);
  font-size: var(--apex-text-6xl);
  font-weight: var(--apex-weight-bold);
  line-height: var(--apex-leading-tight);
  letter-spacing: -0.02em;
}

.apex-heading-2 {
  font-family: var(--apex-font-serif);
  font-size: var(--apex-text-5xl);
  font-weight: var(--apex-weight-bold);
  line-height: var(--apex-leading-tight);
  letter-spacing: -0.01em;
}

.apex-heading-3 {
  font-family: var(--apex-font-serif);
  font-size: var(--apex-text-4xl);
  font-weight: var(--apex-weight-semibold);
  line-height: var(--apex-leading-tight);
}

.apex-heading-4 {
  font-family: var(--apex-font-sans);
  font-size: var(--apex-text-3xl);
  font-weight: var(--apex-weight-semibold);
  line-height: var(--apex-leading-tight);
}

.apex-heading-5 {
  font-family: var(--apex-font-sans);
  font-size: var(--apex-text-2xl);
  font-weight: var(--apex-weight-semibold);
  line-height: var(--apex-leading-tight);
}

.apex-heading-6 {
  font-family: var(--apex-font-sans);
  font-size: var(--apex-text-xl);
  font-weight: var(--apex-weight-semibold);
  line-height: var(--apex-leading-normal);
}

.apex-body-lg {
  font-size: var(--apex-text-lg);
  line-height: var(--apex-leading-relaxed);
}

.apex-body {
  font-size: var(--apex-text-base);
  line-height: var(--apex-leading-normal);
}

.apex-body-sm {
  font-size: var(--apex-text-sm);
  line-height: var(--apex-leading-normal);
}

.apex-caption {
  font-size: var(--apex-text-xs);
  line-height: var(--apex-leading-normal);
  color: var(--apex-text-secondary);
}

/* ===== GLOBAL NAVIGATION ===== */
.apex-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--apex-nav-height);
  background: var(--apex-bg-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--apex-border-default);
  z-index: var(--apex-z-fixed);
  transition: transform var(--apex-transition-fast);
}

.apex-nav-container {
  max-width: var(--apex-container-2xl);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--apex-space-6);
}

.apex-nav-logo {
  font-family: var(--apex-font-serif);
  font-size: var(--apex-text-2xl);
  font-weight: var(--apex-weight-bold);
  color: var(--apex-text-primary);
  text-decoration: none;
  transition: color var(--apex-transition-fast);
}

.apex-nav-logo:hover {
  color: var(--apex-brand-primary);
}

.apex-nav-links {
  display: flex;
  gap: var(--apex-space-2);
  list-style: none;
}

.apex-nav-link {
  position: relative;
  padding: var(--apex-space-2) var(--apex-space-4);
  font-size: var(--apex-text-sm);
  font-weight: var(--apex-weight-medium);
  color: var(--apex-text-secondary);
  text-decoration: none;
  border-radius: var(--apex-radius-md);
  transition: all var(--apex-transition-fast);
}

.apex-nav-link:hover {
  color: var(--apex-text-primary);
  background: var(--apex-bg-hover);
}

.apex-nav-link:focus-visible {
  outline: 2px solid var(--apex-brand-primary);
  outline-offset: 2px;
  color: var(--apex-text-primary);
}

.apex-nav-link.active {
  color: var(--apex-text-primary);
  background: var(--apex-bg-card);
}

.apex-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--apex-space-4);
  right: var(--apex-space-4);
  height: 2px;
  background: var(--apex-brand-primary);
  border-radius: 2px 2px 0 0;
}

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

.apex-nav-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--apex-border-default);
  border-radius: var(--apex-radius-md);
  color: var(--apex-text-secondary);
  cursor: pointer;
  transition: all var(--apex-transition-fast);
}

.apex-nav-icon-btn:hover {
  background: var(--apex-bg-hover);
  border-color: var(--apex-border-strong);
  color: var(--apex-text-primary);
  transform: translateY(-1px);
}

.apex-nav-icon-btn:focus-visible {
  outline: 2px solid var(--apex-brand-primary);
  outline-offset: 2px;
  border-color: var(--apex-border-strong);
}

.apex-nav-icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: var(--apex-weight-semibold);
  background: var(--apex-brand-primary);
  color: var(--apex-text-primary);
  border-radius: var(--apex-radius-full);
  border: 2px solid var(--apex-bg-base);
}

/* ===== UNIVERSAL CARD SYSTEM ===== */
.apex-card {
  background: var(--apex-bg-card);
  border: 1px solid var(--apex-border-default);
  border-radius: var(--apex-radius-lg);
  overflow: hidden;
  transition: all var(--apex-transition-normal);
}

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

.apex-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--apex-bg-elevated);
}

.apex-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--apex-transition-slow);
}

.apex-card:hover .apex-card-media img {
  transform: scale(1.05);
}

.apex-card-badge {
  position: absolute;
  top: var(--apex-space-3);
  left: var(--apex-space-3);
  padding: var(--apex-space-1) var(--apex-space-3);
  font-size: var(--apex-text-xs);
  font-weight: var(--apex-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--apex-radius-sm);
  backdrop-filter: blur(8px);
}

.apex-card-badge.urgent {
  background: rgba(255, 68, 68, 0.9);
  color: var(--apex-text-primary);
  border: 1px solid rgba(255, 68, 68, 0.3);
}

.apex-card-badge.breaking {
  background: rgba(255, 107, 53, 0.9);
  color: var(--apex-text-primary);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.apex-card-badge.policy {
  background: rgba(181, 55, 255, 0.9);
  color: var(--apex-text-primary);
  border: 1px solid rgba(181, 55, 255, 0.3);
}

.apex-card-badge.featured {
  background: rgba(255, 107, 53, 0.9);
  color: var(--apex-text-primary);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.apex-card-content {
  padding: var(--apex-space-6);
}

.apex-card-header {
  display: flex;
  align-items: center;
  gap: var(--apex-space-3);
  margin-bottom: var(--apex-space-4);
}

.apex-card-meta {
  display: flex;
  align-items: center;
  gap: var(--apex-space-2);
  font-size: var(--apex-text-xs);
  color: var(--apex-text-tertiary);
}

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

.apex-card-meta-divider {
  width: 4px;
  height: 4px;
  background: var(--apex-text-tertiary);
  border-radius: 50%;
}

.apex-card-title {
  font-family: var(--apex-font-serif);
  font-size: var(--apex-text-2xl);
  font-weight: var(--apex-weight-semibold);
  line-height: var(--apex-leading-tight);
  color: var(--apex-text-primary);
  margin-bottom: var(--apex-space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.apex-card-description {
  font-size: var(--apex-text-base);
  line-height: var(--apex-leading-relaxed);
  color: var(--apex-text-secondary);
  margin-bottom: var(--apex-space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.apex-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--apex-space-4);
  border-top: 1px solid var(--apex-border-subtle);
}

.apex-card-stats {
  display: flex;
  align-items: center;
  gap: var(--apex-space-4);
}

.apex-card-stat {
  display: flex;
  align-items: center;
  gap: var(--apex-space-2);
  font-size: var(--apex-text-sm);
  color: var(--apex-text-tertiary);
}

.apex-card-actions {
  display: flex;
  gap: var(--apex-space-2);
}

/* ===== BUTTON SYSTEM ===== */
.apex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--apex-space-2);
  padding: var(--apex-space-3) var(--apex-space-6);
  font-family: var(--apex-font-sans);
  font-size: var(--apex-text-base);
  font-weight: var(--apex-weight-medium);
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--apex-radius-md);
  cursor: pointer;
  transition: all var(--apex-transition-fast);
  white-space: nowrap;
}

.apex-btn:focus-visible {
  outline: 3px solid var(--apex-brand-primary);
  outline-offset: 2px;
}

.apex-btn:active {
  transform: scale(0.96);
}

.apex-btn-primary {
  background: var(--apex-brand-primary);
  color: var(--apex-text-primary);
}

.apex-btn-primary:hover {
  background: #ff7a4d;
  box-shadow: var(--apex-shadow-glow);
}

.apex-btn-secondary {
  background: var(--apex-bg-card);
  color: var(--apex-text-primary);
  border: 1px solid var(--apex-border-default);
}

.apex-btn-secondary:hover {
  background: var(--apex-bg-hover);
  border-color: var(--apex-border-strong);
}

.apex-btn-ghost {
  background: transparent;
  color: var(--apex-text-secondary);
}

.apex-btn-ghost:hover {
  background: var(--apex-bg-hover);
  color: var(--apex-text-primary);
}

.apex-btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
}

.apex-btn-sm {
  padding: var(--apex-space-2) var(--apex-space-4);
  font-size: var(--apex-text-sm);
}

.apex-btn-lg {
  padding: var(--apex-space-4) var(--apex-space-8);
  font-size: var(--apex-text-lg);
}

/* ===== SEARCH MODAL ===== */
.apex-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--apex-bg-modal);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: var(--apex-z-modal);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--apex-space-16) var(--apex-space-6);
  animation: fadeIn var(--apex-transition-normal);
}

.apex-search-modal.active {
  display: flex;
}

.apex-search-container {
  width: 100%;
  max-width: 680px;
  animation: slideUp var(--apex-transition-normal);
}

.apex-search-input-wrapper {
  position: relative;
  margin-bottom: var(--apex-space-4);
}

.apex-search-input {
  width: 100%;
  padding: var(--apex-space-5) var(--apex-space-6);
  padding-left: var(--apex-space-12);
  font-family: var(--apex-font-sans);
  font-size: var(--apex-text-2xl);
  font-weight: var(--apex-weight-medium);
  color: var(--apex-text-primary);
  background: var(--apex-bg-card);
  border: 2px solid var(--apex-border-strong);
  border-radius: var(--apex-radius-xl);
  outline: none;
  transition: all var(--apex-transition-fast);
}

.apex-search-input:focus {
  border-color: var(--apex-brand-primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.apex-search-icon {
  position: absolute;
  left: var(--apex-space-5);
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  color: var(--apex-text-tertiary);
  pointer-events: none;
}

.apex-search-results {
  background: var(--apex-bg-card);
  border: 1px solid var(--apex-border-default);
  border-radius: var(--apex-radius-xl);
  overflow: hidden;
  max-height: 60vh;
  overflow-y: auto;
}

.apex-search-group {
  padding: var(--apex-space-6);
  border-bottom: 1px solid var(--apex-border-subtle);
}

.apex-search-group:last-child {
  border-bottom: none;
}

.apex-search-group-title {
  font-size: var(--apex-text-xs);
  font-weight: var(--apex-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--apex-text-tertiary);
  margin-bottom: var(--apex-space-4);
}

.apex-search-item {
  display: flex;
  align-items: center;
  gap: var(--apex-space-4);
  padding: var(--apex-space-4);
  border-radius: var(--apex-radius-md);
  cursor: pointer;
  transition: background var(--apex-transition-fast);
}

.apex-search-item:hover {
  background: var(--apex-bg-hover);
}

.apex-search-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--apex-bg-elevated);
  border-radius: var(--apex-radius-md);
  flex-shrink: 0;
}

.apex-search-item-content {
  flex: 1;
  min-width: 0;
}

.apex-search-item-title {
  font-size: var(--apex-text-base);
  font-weight: var(--apex-weight-medium);
  color: var(--apex-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apex-search-item-meta {
  font-size: var(--apex-text-sm);
  color: var(--apex-text-tertiary);
  margin-top: var(--apex-space-1);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
  .apex-nav {
    height: var(--apex-nav-mobile-height);
  }
  
  .apex-nav-links {
    display: none;
  }
  
  .apex-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--apex-nav-mobile-height);
    background: var(--apex-bg-overlay);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--apex-border-default);
    z-index: var(--apex-z-fixed);
  }
  
  .apex-mobile-nav-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    list-style: none;
  }
  
  .apex-mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--apex-space-2);
    font-size: 10px;
    font-weight: var(--apex-weight-medium);
    color: var(--apex-text-tertiary);
    text-decoration: none;
    transition: color var(--apex-transition-fast);
  }
  
  .apex-mobile-nav-link.active {
    color: var(--apex-brand-primary);
  }
  
  .apex-mobile-nav-icon {
    width: 24px;
    height: 24px;
  }
  
  .apex-heading-1 { font-size: var(--apex-text-4xl); }
  .apex-heading-2 { font-size: var(--apex-text-3xl); }
  .apex-heading-3 { font-size: var(--apex-text-2xl); }
}

/* ===== UTILITY CLASSES ===== */
.apex-container {
  max-width: var(--apex-container-xl);
  margin: 0 auto;
  padding: 0 var(--apex-space-6);
}

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

.apex-grid-2 { grid-template-columns: repeat(2, 1fr); }
.apex-grid-3 { grid-template-columns: repeat(3, 1fr); }
.apex-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .apex-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .apex-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .apex-grid-4,
  .apex-grid-3,
  .apex-grid-2 { grid-template-columns: 1fr; }
}

.apex-flex {
  display: flex;
  gap: var(--apex-space-4);
}

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

.apex-text-gradient {
  background: linear-gradient(135deg, var(--apex-brand-primary), var(--apex-brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.apex-divider {
  height: 1px;
  background: var(--apex-border-default);
  margin: var(--apex-space-8) 0;
}

.apex-skeleton {
  background: linear-gradient(
    90deg,
    var(--apex-bg-elevated) 0%,
    var(--apex-bg-card) 50%,
    var(--apex-bg-elevated) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--apex-radius-md);
}
