/* Legacy stylesheet kept in a low-priority layer so Tailwind v4 utilities
   (including responsive variants like md:flex-row / sm:text-3xl) win. */
@layer base {
/* ============================================
   DESIGN TOKENS - GLOBAL COLOR & TYPOGRAPHY
   ============================================ */

:root {
  /* PRIMARY COLORS */
  --color-forest-50: #f2f8f5;
  --color-forest-100: #e1efe8;
  --color-forest-200: #c5dfd4;
  --color-forest-300: #9bcaaf;
  --color-forest-400: #67ac8b;
  --color-forest-500: #3d8e6c;
  --color-forest-600: #2d6a4f;
  --color-forest-700: #235540;
  --color-forest-800: #1b4332;
  --color-forest-900: #153628;
  
  /* ACCENT COLORS */
  --color-amber-600: #b45309;
  --color-amber-700: #b45309;
  --color-green-600: #16a34a;
  --color-green-700: #15803d;
  --color-purple-600: #9333ea;
  --color-blue-600: #2563eb;
  --color-blue-700: #1d4ed8;
  
  /* STATUS COLORS */
  --color-red-50: #fef2f2;
  --color-red-100: #fee2e2;
  --color-yellow-50: #fffbeb;
  --color-yellow-100: #fef3c7;
  --color-emerald-50: #f0fdf4;
  --color-emerald-100: #dcfce7;
  --color-sky-50: #f0f9ff;
  --color-sky-100: #e0f2fe;
  --color-orange-50: #fff7ed;
  --color-orange-600: #ea580c;
  
  /* NEUTRAL COLORS */
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #cbd5e1;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #374151;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-white: #ffffff;
  
  /* ERROR COLORS */
  --color-error-light: #fff5f5;
  --color-error-dark: #7f1d1d;
  --color-success-light: #d4edda;
  --color-success-dark: #155724;
  --color-warning-light: #fff3cd;
  --color-warning-dark: #856404;
  --color-info-light: #e8f4f8;
  --color-info-dark: #0066cc;
  --color-reject-light: #ffebee;
  --color-reject-dark: #721c24;
  --color-reject-button: #dc3545;
  --color-success-green: #10b981;
  
  /* ADDITIONAL ACCENT COLORS FOR BADGES */
  --color-red-200: #f87171;
  --color-orange-200: #fed7aa;
  --color-amber-500: #f59e0b;
  --color-emerald-500: #10b981;
  --color-warning-orange: #ffc107;
  --color-amber-900: #78350f;
  --color-emerald-400: #34d399;
  --color-purple-700: #7e22ce;
  --color-cyan-100: #e0f2fe;
  --color-orange-100: #fed7aa;
  
  /* NEUTRAL LIGHT COLORS */
  --color-gray-lighter: #f5f5f5;
  --color-gray-light: #ddd;
  --color-gray-text: #666;
  --color-gray-text-dark: #333;
  
  /* TYPOGRAPHY */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* SPACING */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* BORDER RADIUS */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;
  
  /* SHADOWS */
  --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  --shadow-float: 0 16px 36px -8px rgba(27, 67, 50, 0.08), 0 4px 12px -2px rgba(27, 67, 50, 0.04);
  --shadow-card-hover: 0 20px 30px -10px rgba(27, 67, 50, 0.12), 0 6px 14px -3px rgba(0, 0, 0, 0.05);
}

/* ============================================
   REUSABLE COMPONENT STYLES
   ============================================ */

/* BADGE STYLES - STANDARDIZED */
.badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  letter-spacing: 0.05em;
}

.badge-number {
  background-color: var(--color-green-600);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-align: center;
  min-width: 1.5rem;
}

.badge-tier-1 {
  background-color: var(--color-amber-600);
  color: var(--color-white);
}

.badge-tier-2 {
  background-color: var(--color-green-600);
  color: var(--color-white);
}

.badge-tier-3 {
  background-color: var(--color-purple-600);
  color: var(--color-white);
}

/* LIST ITEM STYLES - MATCH/EVENT ROWS */
.list-item {
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border-bottom: 1px solid var(--color-slate-200);
  transition: background-color 0.2s;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background-color: var(--color-slate-50);
}

.list-item-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: var(--space-xs);
}

.list-item-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-xs);
}

.list-item-subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-slate-600);
}

/* SECTION HEADINGS */
.section-heading {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: var(--space-lg);
}

/* CARD STYLES */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-forest-600);
}

.card-list {
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--color-white);
  box-shadow: var(--shadow-subtle);
}

.card-list a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--color-slate-100);
  transition: background-color 0.2s;
}

.card-list a:last-child {
  border-bottom: none;
}

.card-list a:hover {
  background-color: var(--color-slate-50);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  background-color: transparent;
  color: var(--color-slate-900);
  padding: 0;
  border-radius: 0;
  font-weight: 600;
  font-size: var(--font-size-xs);
  border: none;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  width: auto;
}

.btn-primary:hover {
  opacity: 0.8;
}

.btn-secondary {
  background-color: var(--color-forest-100);
  color: var(--color-forest-700);
  padding: var(--space-sm) var(--space-sm);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-xs);
  border: none;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-secondary:hover {
  background-color: var(--color-forest-200);
}

.btn-dark {
  background-color: var(--color-slate-900);
  color: var(--color-white);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-sm);
  border: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-dark:hover {
  background-color: var(--color-slate-800);
}

.btn-accent {
  background-color: var(--color-amber-600);
  color: var(--color-white);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-sm);
  border: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-accent:hover {
  opacity: 0.9;
}

/* ============================================
   TEXT STYLES
   ============================================ */

/* Legacy utility mirrors must sit in a lower-priority layer so Tailwind v4
   responsive variants (e.g. sm:text-3xl) can override them. */
@layer base {
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-forest-700 { color: var(--color-forest-700); }
.text-forest-800 { color: var(--color-forest-800); }
.text-slate-500 { color: var(--color-slate-500); }
.text-slate-600 { color: var(--color-slate-600); }
  .text-slate-900 { color: var(--color-slate-900); }
}

/* ============================================
   REUSABLE COMPONENT STYLES (LEGACY)
   ============================================ */

/* BUTTONS */
.btn-primary {
  background-color: transparent;
  color: var(--color-slate-800);
  padding: 0;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.75rem;
  border: none;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
}

.btn-primary:hover {
  opacity: 0.8;
}

.btn-secondary {
  background-color: var(--color-forest-100);
  color: var(--color-slate-900);
  padding: 0.625rem 0.625rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.75rem;
  border: none;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-secondary:hover {
  background-color: var(--color-forest-200);
}

.btn-dark {
  background-color: var(--color-slate-900);
  color: var(--color-slate-100);
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-dark:hover {
  background-color: var(--color-slate-800);
}

.btn-accent {
  background-color: var(--color-amber-600);
  color: var(--color-white);
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--color-amber-700);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-accent:hover {
  opacity: 0.9;
}

/* TEXT STYLES */
.heading-lg {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-slate-900);
  letter-spacing: -0.025em;
  line-height: 1;
}

.heading-md {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-slate-900);
  letter-spacing: -0.025em;
}

.heading-sm {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

.text-subtitle {
  font-size: 0.875rem;
  color: var(--color-slate-500);
  font-weight: 400;
  margin-top: 0.5rem;
}

.text-body {
  font-size: 1rem;
  color: var(--color-slate-600);
  line-height: 1.6;
  font-weight: 400;
}

.text-body-sm {
  font-size: 0.875rem;
  color: var(--color-slate-500);
  line-height: 1.5;
  font-weight: 400;
}

.text-muted {
  font-size: 0.75rem;
  color: var(--color-slate-400);
  font-weight: 500;
}

/* BADGE STYLES */
.badge-primary {
  background-color: var(--color-forest-600);
  color: var(--color-white);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-block;
}

.badge-secondary {
  background-color: var(--color-forest-100);
  color: var(--color-forest-700);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-block;
}

.badge-accent {
  background-color: var(--color-yellow-100);
  color: var(--color-slate-900);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-block;
}

.badge-danger {
  background-color: var(--color-red-100);
  color: var(--color-white);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-block;
}

/* CARD STYLES */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}

.card:hover {
  box-shadow: 0 20px 30px -10px rgba(27, 67, 50, 0.12);
  border-color: var(--color-forest-600);
}

.card-padding {
  padding: 1.5rem;
}

/* EVENT CARD SPECIFIC */
.event-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 30px -10px rgba(27, 67, 50, 0.12);
  border-color: var(--color-forest-600);
}

.event-card-image {
  height: 10rem;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-slate-100);
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.event-card-image:hover img {
  transform: scale(1.05);
}

.event-card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.event-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-slate-900);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.event-card-venue {
  font-size: 0.6875rem;
  color: var(--color-slate-500);
}

.event-card-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-yellow-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}

/* SECTION STYLES */
.section {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-slate-200);
  padding: 4rem 0;
}

.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-slate-900);
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.section-subheading {
  font-size: 0.875rem;
  color: var(--color-slate-500);
  margin-top: 0.5rem;
  font-weight: 400;
}

/* SPACING & LAYOUT */
.gap-md {
  gap: 1.5rem;
}

.gap-lg {
  gap: 2rem;
}

.gap-xl {
  gap: 8rem;
}

/* COLORS */
.text-forest-700 {
  color: var(--color-forest-700);
}

.text-forest-800 {
  color: var(--color-forest-800);
}

.text-orange-600 {
  color: var(--color-orange-600);
}

.bg-forest-100 {
  background-color: var(--color-forest-100);
}

.bg-forest-50 {
  background-color: var(--color-forest-50);
}

.bg-orange-600 {
  background-color: var(--color-orange-600);
}

/* ============================================
   MATERIAL DESIGN TOKEN ALIASES
   ============================================ */

/* Typography Aliases */
.font-headline-xl { font-size: var(--font-size-3xl); font-weight: 700; letter-spacing: -0.025em; }
.font-headline-lg { font-size: var(--font-size-2xl); font-weight: 700; letter-spacing: -0.025em; }
.font-headline-md { font-size: var(--font-size-xl); font-weight: 700; letter-spacing: -0.025em; }
.font-body-md { font-size: var(--font-size-base); font-weight: 400; line-height: 1.5; }
.font-body-sm { font-size: var(--font-size-sm); font-weight: 400; line-height: 1.5; }
.font-label-md { font-size: var(--font-size-sm); font-weight: 600; letter-spacing: 0.05em; }
.font-label-mono-sm { font-size: var(--font-size-xs); font-weight: 600; font-family: 'Courier New', monospace; letter-spacing: 0.05em; }

/* Text Size Aliases (from font-* tokens) */
.text-headline-xl { font-size: var(--font-size-3xl); letter-spacing: -0.025em; }
.text-headline-lg { font-size: var(--font-size-2xl); letter-spacing: -0.025em; }
.text-headline-md { font-size: var(--font-size-xl); letter-spacing: -0.025em; }
.text-body-md { font-size: var(--font-size-base); }
.text-body-sm { font-size: var(--font-size-sm); }
.text-label-md { font-size: var(--font-size-sm); }
.text-label-mono-sm { font-size: var(--font-size-xs); font-family: 'Courier New', monospace; }

/* Spacing Aliases */
.px-gutter { padding-left: 2rem; padding-right: 2rem; }
.py-space-xl { padding-top: 2rem; padding-bottom: 2rem; }
.py-space-lg { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-space-md { padding-top: 1rem; padding-bottom: 1rem; }
.py-space-sm { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-space-xs { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.px-space-lg { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-space-md { padding-left: 1rem; padding-right: 1rem; }
.px-space-sm { padding-left: 0.5rem; padding-right: 0.5rem; }
.gap-space-lg { gap: 1.5rem; }
.gap-space-md { gap: 1rem; }
.gap-space-sm { gap: 0.5rem; }
.gap-space-xs { gap: 0.25rem; }
.mb-space-md { margin-bottom: 1rem; }
.mb-space-xs { margin-bottom: 0.25rem; }
.mt-space-xs { margin-top: 0.25rem; }
.p-space-md { padding: 1rem; }
.p-space-lg { padding: 1.5rem; }
.p-space-sm { padding: 0.5rem; }

/* Color Aliases – Primary Surface System */
.bg-primary-container { background-color: var(--color-forest-100); }
.bg-primary-fixed { background-color: var(--color-forest-50); }
.bg-secondary-container { background-color: var(--color-green-600); }
.bg-surface-container-lowest { background-color: var(--color-white); }
.bg-surface-container-low { background-color: var(--color-slate-50); }
.bg-surface-container { background-color: var(--color-slate-100); }
.bg-surface-container-high { background-color: var(--color-slate-200); }
.bg-surface { background-color: var(--color-white); }
.bg-background { background-color: var(--color-slate-50); }

.text-primary { color: var(--color-forest-600); }
.text-secondary { color: var(--color-green-600); }
.text-on-primary { color: var(--color-white); }
.text-on-primary-container { color: var(--color-forest-700); }
.text-on-primary-fixed { color: var(--color-white); }
.text-on-secondary { color: var(--color-white); }
.text-on-secondary-container { color: var(--color-white); }
.text-on-surface { color: var(--color-slate-900); }
.text-on-surface-variant { color: var(--color-slate-600); }
.text-outline { color: var(--color-slate-400); }

.border-surface-container-high { border-color: var(--color-slate-200); }

/* Color Class Aliases */
.text-headline-md { font-size: var(--font-size-xl); }

/* ============================================
   EXTENDED TEXT COLOR UTILITIES
   ============================================ */

.text-slate-100 { color: var(--color-slate-100); }
.text-slate-200 { color: var(--color-slate-200); }
.text-slate-300 { color: var(--color-slate-300); }
.text-slate-400 { color: var(--color-slate-400); }
.text-slate-700 { color: var(--color-slate-700); }
.text-slate-800 { color: var(--color-slate-800); }

.text-amber-400 { color: var(--color-yellow-100); }
.text-amber-600 { color: var(--color-amber-600); }
.text-amber-700 { color: var(--color-amber-700); }
.text-amber-900 { color: var(--color-amber-900); }

.text-forest-100 { color: var(--color-forest-100); }
.text-forest-200 { color: var(--color-forest-200); }
.text-forest-600 { color: var(--color-forest-600); }
.text-forest-900 { color: var(--color-forest-900); }

.text-green-600 { color: var(--color-green-600); }
.text-green-700 { color: var(--color-green-700); }

.text-emerald-400 { color: var(--color-emerald-400); }
.text-emerald-50 { color: var(--color-emerald-50); }
.text-emerald-600 { color: var(--color-green-600); }
.text-emerald-700 { color: var(--color-green-700); }

.text-purple-600 { color: var(--color-purple-600); }
.text-purple-700 { color: var(--color-purple-700); }

.text-blue-600 { color: var(--color-blue-600); }
.text-blue-700 { color: var(--color-blue-700); }

/* ============================================
   BACKGROUND COLOR UTILITIES
   ============================================ */

.bg-slate-50 { background-color: var(--color-slate-50); }
.bg-slate-100 { background-color: var(--color-slate-100); }
.bg-slate-200 { background-color: var(--color-slate-200); }
.bg-slate-700 { background-color: var(--color-slate-700); }
.bg-slate-800 { background-color: var(--color-slate-800); }
.bg-white { background-color: var(--color-white); }

.bg-amber-50 { background-color: var(--color-yellow-50); }
.bg-amber-100 { background-color: var(--color-yellow-100); }
.bg-amber-500 { background-color: var(--color-amber-500); }

.bg-emerald-50 { background-color: var(--color-emerald-50); }
.bg-emerald-100 { background-color: var(--color-emerald-100); }
.bg-emerald-500 { background-color: var(--color-emerald-500); }
.bg-emerald-600 { background-color: var(--color-green-600); }

.bg-sky-50 { background-color: var(--color-sky-50); }
.bg-sky-100 { background-color: var(--color-sky-100); }

.bg-orange-50 { background-color: var(--color-orange-50); }

.bg-forest-200 { background-color: var(--color-forest-200); }
.bg-forest-300 { background-color: var(--color-forest-300); }
.bg-forest-600 { background-color: var(--color-forest-600); }
.bg-forest-700 { background-color: var(--color-forest-700); }

.bg-purple-600 { background-color: var(--color-purple-600); }
.bg-blue-700 { background-color: var(--color-blue-700); }

/* ============================================
   BORDER COLOR UTILITIES
   ============================================ */

.border-slate-50 { border-color: var(--color-slate-50); }
.border-slate-100 { border-color: var(--color-slate-100); }
.border-slate-200 { border-color: var(--color-slate-200); }
.border-slate-300 { border-color: var(--color-slate-400); }
.border-slate-700 { border-color: var(--color-slate-700); }

.border-forest-100 { border-color: var(--color-forest-100); }
.border-forest-200 { border-color: var(--color-forest-200); }
.border-forest-600 { border-color: var(--color-forest-600); }

.border-amber-100 { border-color: var(--color-yellow-100); }
.border-emerald-100 { border-color: var(--color-emerald-100); }
.border-orange-100 { border-color: var(--color-orange-100); }
.border-sky-100 { border-color: var(--color-sky-100); }

/* ============================================
   BASE BORDER UTILITY
   ============================================ */
.border { border: 1px solid var(--color-slate-200); }

/* ============================================
   BORDER RADIUS UTILITIES
   ============================================ */

.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.rounded-sm { border-radius: var(--radius-sm); }

/* ============================================
   PADDING & MARGIN UTILITIES
   ============================================ */

/* Padding utilities */
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.pl-3 { padding-left: 0.75rem; }
.pl-4 { padding-left: 1rem; }
.pl-8 { padding-left: 2rem; }

.pr-3 { padding-right: 0.75rem; }
.pr-4 { padding-right: 1rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }

.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }

/* Margin utilities */
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

/* ============================================
   GAP & SPACING UTILITIES
   ============================================ */

.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }

/* ============================================
   SIZING UTILITIES
   ============================================ */

/* Width & Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.h-\[450px\] { height: 450px; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-40 { width: 10rem; }
.h-40 { height: 10rem; }
.w-48 { width: 12rem; }
.h-48 { height: 12rem; }
.w-72 { width: 18rem; }
.h-80 { height: 20rem; }

.min-w-0 { min-width: 0; }
.min-w-1\.5 { min-width: 1.5rem; }
.min-h-screen { min-height: 100vh; }

.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* Container utility */
.container { width: 100%; margin-left: auto; margin-right: auto; max-width: 1280px; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }

.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* ============================================
   GRID UTILITIES
   ============================================ */

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

.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }

/* ============================================
   POSITION & INSET UTILITIES
   ============================================ */

.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }
.fixed { position: fixed; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.top-0 { top: 0; }
.top-1 { top: 0.25rem; }
.top-2 { top: 0.5rem; }
.top-2\.5 { top: 0.625rem; }
.top-3 { top: 0.75rem; }
.top-24 { top: 6rem; }

.right-0 { right: 0; }
.right-2 { right: 0.5rem; }
.right-2\.5 { right: 0.625rem; }
.right-3 { right: 0.75rem; }
.right-4 { right: 1rem; }
.right-6 { right: 1.5rem; }
.right-8 { right: 2rem; }

.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.left-2\.5 { left: 0.625rem; }
.left-3 { left: 0.75rem; }
.left-3\.5 { left: 0.875rem; }
.left-4 { left: 1rem; }
.left-6 { left: 1.5rem; }
.left-8 { left: 2rem; }

.z-50 { z-index: 50; }
.z-auto { z-index: auto; }

/* ============================================
   TRANSFORM & TRANSITION UTILITIES
   ============================================ */

.scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: var(--tw-transform); }
.scale-110 { --tw-scale-x: 1.1; --tw-scale-y: 1.1; transform: var(--tw-transform); }

.translate-x-0 { --tw-translate-x: 0px; transform: var(--tw-transform); }
.translate-x-1 { --tw-translate-x: 0.25rem; transform: var(--tw-transform); }
.translate-y-0 { --tw-translate-y: 0px; transform: var(--tw-transform); }
.translate-y-\[-3px\] { --tw-translate-y: -3px; transform: var(--tw-transform); }
.translate-y-\[-4px\] { --tw-translate-y: -4px; transform: var(--tw-transform); }

.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* ============================================
   OVERFLOW & VISIBILITY UTILITIES
   ============================================ */

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-visible { overflow: visible; }
.visible { visibility: visible; }

/* ============================================
   CURSOR & INTERACTION UTILITIES
   ============================================ */

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-text { cursor: text; }

/* ============================================
   OPACITY & FILTER UTILITIES
   ============================================ */

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }

.backdrop-blur-sm { --tw-backdrop-blur: blur(4px); backdrop-filter: var(--tw-backdrop-blur); }
.backdrop-blur-md { --tw-backdrop-blur: blur(12px); backdrop-filter: var(--tw-backdrop-blur); }

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */

.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.leading-none { line-height: 1; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }

.letter-spacing-wider { letter-spacing: 0.05em; }

/* ============================================
   HOVER STATE VARIANTS
   ============================================ */

.hover\:scale-105:hover { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }
.hover\:scale-110:hover { --tw-scale-x: 1.1; --tw-scale-y: 1.1; }

.hover\:translate-x-1:hover { --tw-translate-x: 0.25rem; }

.hover\:bg-slate-50:hover { background-color: var(--color-slate-50); }
.hover\:bg-slate-100:hover { background-color: var(--color-slate-100); }
.hover\:bg-slate-600:hover { background-color: var(--color-slate-600); }
.hover\:bg-slate-700:hover { background-color: var(--color-slate-800); }
.hover\:bg-slate-800:hover { background-color: var(--color-slate-800); }

.hover\:bg-forest-50:hover { background-color: var(--color-forest-50); }
.hover\:bg-forest-100:hover { background-color: var(--color-forest-100); }
.hover\:bg-forest-200:hover { background-color: var(--color-forest-200); }

.hover\:bg-emerald-600:hover { background-color: var(--color-green-600); }
.hover\:bg-emerald-700:hover { background-color: var(--color-green-700); }

.hover\:bg-amber-600:hover { background-color: var(--color-amber-600); }
.hover\:bg-blue-700:hover { background-color: var(--color-blue-700); }

.hover\:text-forest-700:hover { color: var(--color-forest-700); }
.hover\:text-forest-900:hover { color: var(--color-forest-900); }
.hover\:text-amber-700:hover { color: var(--color-amber-700); }
.hover\:text-green-700:hover { color: var(--color-green-700); }
.hover\:text-slate-900:hover { color: var(--color-slate-900); }

.hover\:shadow-subtle:hover { box-shadow: var(--shadow-subtle); }
.hover\:shadow-card-hover:hover { box-shadow: var(--shadow-card-hover); }

.hover\:border-forest-200:hover { border-color: var(--color-forest-200); }
.hover\:border-forest-600:hover { border-color: var(--color-forest-600); }

.hover\:opacity-0\.8:hover { opacity: 0.8; }
.hover\:opacity-0\.9:hover { opacity: 0.9; }
.hover\:underline:hover { text-decoration-line: underline; }

/* ============================================
   FOCUS STATE VARIANTS
   ============================================ */

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000, inset var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-color)); }
.focus\:ring-forest-600\/20:focus { --tw-ring-color: rgba(45, 106, 79, 0.2); }
.focus\:border-forest-600:focus { border-color: var(--color-forest-600); }

/* ============================================
   ADDITIONAL TYPOGRAPHY & DISPLAY UTILITIES
   ============================================ */

.font-black { font-weight: 900; }
.font-mono { font-family: 'Courier New', monospace; }
.tracking-tight { letter-spacing: -0.025em; }
.no-underline { text-decoration: none; }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.scroll-smooth { scroll-behavior: smooth; }

/* ============================================
   CUSTOM COMPONENT UTILITIES
   ============================================ */

.glass-nav { 
  background: rgba(255, 255, 255, 0.8); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Opacity variants for colors (Tailwind-style slashes) */
.border-slate-200\/80 { border-color: rgba(226, 232, 240, 0.8); }
.bg-forest-50\/50 { background-color: rgba(242, 248, 245, 0.5); }
.bg-surface\/90 { background-color: rgba(255, 255, 255, 0.9); }

.divide-y > * + * { border-top: 1px solid var(--color-slate-100); }
.divide-y-2 > * + * { border-top: 2px solid var(--color-slate-200); }
.divide-slate-100 > * + * { border-top-color: var(--color-slate-100); }
.divide-slate-200 > * + * { border-top-color: var(--color-slate-200); }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-fill { object-fit: fill; }

.group-hover\:underline:hover { text-decoration-line: underline; }
.group:hover .group-hover\:scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }
.group:hover .group-hover\:opacity-0\.5 { opacity: 0.5; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .heading-lg {
    font-size: 1.5rem;
  }

  .heading-md {
    font-size: 1.25rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-dark,
  .btn-accent {
    width: 100%;
  }
}

/* ============================================
   ADDITIONAL RESPONSIVE BREAKPOINTS (sm, md, lg)
   ============================================ */

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .sm\:inline { display: inline; }
  .sm\:flex { display: flex; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:gap-4 { gap: 1rem; }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:text-base { font-size: var(--font-size-base); }
  .md\:text-lg { font-size: var(--font-size-lg); }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:h-96 { height: 24rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:text-5xl { font-size: 3rem; }
  .lg\:h-\[450px\] { height: 450px; }
}

/* ============================================
   ADMIN PAGE SPECIFIC STYLES
   ============================================ */

/* Status boxes and error/warning/success displays */
.error-box-sync { 
  background-color: var(--color-error-light); 
  padding: 15px; 
  border-radius: 4px; 
  border: none; 
}

.error-box-sync strong { 
  color: var(--color-error-dark); 
}

.error-box-sync ul { 
  margin: 5px 0; 
}

.error-box-sync li { 
  margin: 5px 0; 
  font-size: 12px; 
}

.tier-display-label {
  font-size: 13px; 
  color: var(--color-forest-700); 
  font-weight: 500; 
  margin-bottom: 8px;
}

.status-badge-sync {
  display: inline-block; 
  background: var(--color-info-light); 
  color: var(--color-info-dark); 
  padding: 3px 10px; 
  border-radius: 12px; 
  font-size: 11px; 
  font-weight: 600;
}

.link-success {
  color: var(--color-success-green);
}

.rejection-box { 
  background: var(--color-warning-light); 
  padding: 15px; 
  border-radius: 4px; 
  border: none; 
}

.rejection-label {
  color: var(--color-amber-700);
}

.tier-category-badge {
  display: inline-block; 
  background: var(--color-success-light); 
  padding: 5px 10px; 
  border-radius: 4px; 
  margin-right: 5px; 
  margin-bottom: 5px;
}

.fanout-errors-box { 
  background: var(--color-reject-light); 
  padding: 15px; 
  border-radius: 4px; 
  border: none; 
}

.fanout-errors-label {
  color: var(--color-reject-dark);
}

.submission-cancel-button {
  background: var(--color-reject-button);
  color: var(--color-white);
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.tier-info-label {
  color: var(--color-forest-700);
}

.logs-page { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
.log-entry { background-color: var(--color-white); border: 1px solid var(--color-gray-light); border-radius: 8px; padding: 20px; margin-bottom: 15px; border-left: 4px solid var(--color-forest-600); }
.log-entry.failed { border-left-color: var(--color-reject-button); }
.log-entry.partial { border-left-color: var(--color-warning-orange); }
.log-title { font-weight: bold; margin-bottom: 10px; }
.log-meta { font-size: 12px; color: var(--color-gray-text); margin-bottom: 10px; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-success-log { background-color: var(--color-success-light); color: var(--color-success-dark); }
.badge-failed-log { background-color: var(--color-red-100); color: var(--color-reject-dark); }
.badge-partial-log { background-color: var(--color-warning-light); color: var(--color-warning-dark); }
.back-link { color: var(--color-forest-600); text-decoration: none; margin-bottom: 20px; display: inline-block; }
.pagination { text-align: center; margin-top: 30px; }

.sync-status-page { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.sync-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
.sync-status-card { background-color: var(--color-white); border: 1px solid var(--color-gray-light); border-radius: 8px; padding: 20px; text-align: center; }
.sync-status-number { font-size: 32px; font-weight: bold; color: var(--color-forest-600); }
.sync-status-label { color: var(--color-gray-text); margin-top: 10px; }
.sync-tier-section { margin-bottom: 30px; }
.sync-tier-title { font-size: 18px; font-weight: bold; color: var(--color-slate-800); margin-bottom: 15px; }
.sync-tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; }
.sync-tier-card { background-color: var(--color-white); border: 1px solid var(--color-gray-light); border-radius: 8px; padding: 15px; }
.sync-tier-card-title { font-weight: bold; margin-bottom: 10px; }
.sync-tier-status { font-size: 12px; color: var(--color-gray-text); }

.submission-detail-page { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.submission-header { background-color: var(--color-gray-lighter); padding: 20px; border-radius: 8px; margin-bottom: 20px; }
.submission-status { display: inline-block; padding: 6px 12px; border-radius: 4px; font-weight: bold; }
.submission-status.pending { background-color: var(--color-warning-light); color: var(--color-warning-dark); }
.submission-status.approved { background-color: var(--color-success-light); color: var(--color-success-dark); }
.submission-status.rejected { background-color: #f8d7da; color: #721c24; }
.submission-field { margin-bottom: 20px; }
.submission-label { font-weight: bold; color: var(--color-gray-text-dark); margin-bottom: 5px; }
.submission-value { color: var(--color-gray-text); }
.error-box { background-color: var(--color-error-light); padding: 15px; border-radius: 4px; margin-top: 10px; }
.error-box strong { color: var(--color-reject-dark); }
.error-list { margin: 5px 0; padding-left: 20px; }
.error-list li { margin: 5px 0; font-size: 12px; }

.tier-management-page { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; }
.tier-card { background-color: var(--color-white); border: 1px solid var(--color-gray-light); border-radius: 8px; padding: 20px; }
.tier-card-title { font-size: 18px; font-weight: bold; color: var(--color-slate-800); margin-bottom: 10px; }
.tier-card-desc { color: var(--color-gray-text); font-size: 14px; margin-bottom: 15px; }
.tier-card-stats { display: flex; justify-content: space-between; color: var(--color-gray-text); font-size: 12px; }
.tier-card-actions { display: flex; gap: 10px; margin-top: 15px; }
.tier-card-actions button { padding: 8px 12px; border: none; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 600; }

.submission-item-admin { background-color: var(--color-white); border: 1px solid var(--color-gray-light); border-radius: 8px; padding: 20px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.submission-info-admin { flex: 1; }
.submission-actions-admin { display: flex; gap: 10px; }

.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; }
.health-card { background-color: var(--color-white); border: 2px solid; border-radius: 8px; padding: 20px; }
.health-card\.healthy { border-color: #28a745; }
.health-card\.degraded { border-color: #ffc107; }
.health-card\.error { border-color: var(--color-reject-button); }
.health-status { font-weight: bold; font-size: 14px; }
.status-badge-health { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-healthy-status { background-color: var(--color-success-light); color: var(--color-success-dark); }
.badge-degraded-status { background-color: var(--color-warning-light); color: var(--color-warning-dark); }
.badge-error-status { background-color: #f8d7da; color: #721c24; }

/* ============================================
   ADMIN SUCCESS/ERROR BADGES
   ============================================ */

.badge-success { background-color: var(--color-success-light); color: var(--color-success-dark); border: 1px solid var(--color-emerald-100); padding: 0.5rem 1rem; border-radius: 4px; }
.badge-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; padding: 0.5rem 1rem; border-radius: 4px; }
.badge-warning { background-color: var(--color-warning-light); color: var(--color-warning-dark); border: 1px solid #ffeaa7; padding: 0.5rem 1rem; border-radius: 4px; }

/* ============================================
   ADDITIONAL UTILITY CLASSES - COMMONLY NEEDED
   ============================================ */

.bg-background { background-color: var(--color-slate-50); }
.text-on-surface { color: var(--color-slate-900); }
.text-on-surface-variant { color: var(--color-slate-600); }
.font-body-md { font-family: 'Manrope', sans-serif; font-size: 15px; line-height: 22px; font-weight: 400; }
.font-headline-lg { font-family: 'Epilogue', sans-serif; font-size: 28px; line-height: 36px; font-weight: 700; }
.font-headline-md { font-family: 'Epilogue', sans-serif; font-size: 22px; line-height: 28px; font-weight: 600; }
.font-label-mono-sm { font-family: 'Manrope', monospace; font-size: 11px; line-height: 14px; letter-spacing: 0.1em; font-weight: 700; }
.font-body-sm { font-family: 'Manrope', sans-serif; font-size: 13px; line-height: 18px; font-weight: 400; }
.font-body-lg { font-family: 'Manrope', sans-serif; font-size: 18px; line-height: 28px; font-weight: 400; }
.font-headline-xl { font-family: 'Epilogue', sans-serif; font-size: 40px; line-height: 48px; font-weight: 700; }
.antialiased { -webkit-font-smoothing: antialiased; }

.px-gutter { padding-left: 1.5rem; padding-right: 1.5rem; }
.space-lg { gap: 1.5rem; }
.space-md { gap: 1rem; }
.space-sm { gap: 0.5rem; }
.space-xs { gap: 0.25rem; }
.space-xl { gap: 2.5rem; }

.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

.text-red-500 { color: #ef4444; }
.text-green-500 { color: #22c55e; }
.text-primary { color: #835500; }
.text-secondary { color: #006c49; }

.bg-surface { background-color: #faf9f6; }
.bg-surface-container-low { background-color: #f4f3f0; }
.bg-surface-container-high { background-color: #e9e8e5; }
.bg-surface-container-lowest { background-color: #ffffff; }

.border-surface-container-high { border-color: #e9e8e5; }

.text-headline-sm { font-size: 1.125rem; font-weight: 700; }

.gutter-mobile { padding: 0.75rem; }
.margin-mobile { margin: 1rem; }
.margin { margin: 3rem; }
.gutter { padding-left: 1.5rem; padding-right: 1.5rem; }

.pt-20 { padding-top: 5rem; }
.pb-8 { padding-bottom: 2rem; }
.antialiased { -webkit-font-smoothing: antialiased; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-tight { letter-spacing: -0.025em; }

.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.shrink-0 { flex-shrink: 0; }

/* ============================================
   GLOBAL BODY AND ELEMENT STYLES
   ============================================ */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-slate-50);
  color: var(--color-slate-900);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

.tier-badge-tier1 {
  background: linear-gradient(135deg, #67ac8b, #3d8e6c);
}

.tier-badge-tier2 {
  background: linear-gradient(135deg, #7e22ce, #5b21b6);
}

.tier-badge-tier3 {
  background: linear-gradient(135deg, #b45309, #92400e);
}

}


/* Accessibility: AA contrast for orange-on-white / white-on-orange UI. */
.text-\[\#FF4B26\],
*[style*="color: #FF4B26"] { color: #C93A18 !important; }
.bg-\[\#FF4B26\].text-white,
.bg-brand-saffron.text-white,
a[style*="#FF4B26"].text-white,
button[style*="#FF4B26"].text-white,
[style*="#FF4B26"][style*="color:#fff"] {
  background-color: #C93A18 !important;
  background-image: linear-gradient(to right, #C93A18, #B03010) !important;
}
@media (max-width: 640px) { kbd { display: none !important; } }

/* Accessibility: hover orange AA contrast */
.hover\:text-\[\#FF4B26\]:hover,
.group:hover .group-hover\:text-\[\#FF4B26\] { color: #C93A18 !important; }
