/* ============================================================
   InvestBenue – Global Design System
   The Benue Economic Investment Exchange
   Version: 1.0.0
   ============================================================ */

/* ============================================================
   1. GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ============================================================
   2. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Brand Colors */
  --green-900: #003320;
  --green-800: #004d2e;
  --green-700: #005c37;
  --green-primary: #006B3F;
  --green-600: #007a47;
  --green-500: #009952;
  --green-400: #00b85e;
  --green-light: #00C853;
  --green-300: #33d46e;
  --green-200: #66de8e;
  --green-100: #b3f0cb;
  --green-50: #e6faf0;

  /* Gold / Accent */
  --gold-900: #7a5100;
  --gold-800: #a36c00;
  --gold-700: #cc8800;
  --gold: #FFB300;
  --gold-400: #ffc533;
  --gold-300: #ffd166;
  --gold-100: #fff3cc;

  /* Red / Alert */
  --red-primary: #ef4444;
  --red-light: #fee2e2;

  /* Blue / Info */
  --blue-primary: #3b82f6;
  --blue-light: #dbeafe;

  /* Dark Mode Backgrounds */
  --bg-dark: #0a0f1e;
  --bg-dark-2: #0d1526;
  --bg-dark-3: #0f1a2e;
  --bg-card: #111827;
  --bg-card-2: #1a2235;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-2: rgba(255, 255, 255, 0.07);
  --bg-glass-hover: rgba(255, 255, 255, 0.09);
  --bg-green-glass: rgba(0, 107, 63, 0.08);
  --bg-green-glass-hover: rgba(0, 107, 63, 0.15);
  --bg-gold-glass: rgba(255, 179, 0, 0.08);

  /* Light Mode Backgrounds */
  --light-bg: #f8fafc;
  --light-bg-2: #f1f5f9;
  --light-card: #ffffff;
  --light-card-2: #f8fafc;
  --light-glass: rgba(0, 0, 0, 0.03);
  --light-glass-2: rgba(0, 0, 0, 0.06);

  /* Borders */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-2: rgba(255, 255, 255, 0.12);
  --border-green: rgba(0, 107, 63, 0.3);
  --border-green-strong: rgba(0, 200, 83, 0.4);
  --border-gold: rgba(255, 179, 0, 0.3);
  --light-border: rgba(0, 0, 0, 0.08);
  --light-border-2: rgba(0, 0, 0, 0.12);

  /* Text Colors – Dark Mode */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --text-disabled: #334155;
  --text-green: #00C853;
  --text-gold: #FFB300;
  --text-white: #ffffff;

  /* Text Colors – Light Mode */
  --light-text-primary: #0f172a;
  --light-text-secondary: #475569;
  --light-text-muted: #94a3b8;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Font Sizes – Fluid Scale */
  --text-xs: clamp(0.6875rem, 1.5vw, 0.75rem);
  --text-sm: clamp(0.8125rem, 1.8vw, 0.875rem);
  --text-base: clamp(0.9375rem, 2vw, 1rem);
  --text-md: clamp(1rem, 2.2vw, 1.125rem);
  --text-lg: clamp(1.125rem, 2.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 3vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 3.5vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 4vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 5vw, 3rem);
  --text-5xl: clamp(2.75rem, 6vw, 4rem);
  --text-6xl: clamp(3.5rem, 8vw, 5.5rem);

  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --weight-black: 900;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-loose: 1.8;

  /* Letter Spacing */
  --tracking-tighter: -0.04em;
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.08em;
  --tracking-widest: 0.12em;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-3xl: 48px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-green: 0 8px 32px rgba(0, 107, 63, 0.35);
  --shadow-green-lg: 0 16px 48px rgba(0, 107, 63, 0.45);
  --shadow-gold: 0 8px 32px rgba(255, 179, 0, 0.3);
  --shadow-glow-green: 0 0 40px rgba(0, 200, 83, 0.2);
  --shadow-glow-gold: 0 0 40px rgba(255, 179, 0, 0.2);

  /* Transitions */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-base: 0;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;
  --container-max: 1600px;

  /* Nav Height */
  --nav-height: 72px;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #006B3F 0%, #00C853 100%);
  --gradient-brand-r: linear-gradient(135deg, #00C853 0%, #006B3F 100%);
  --gradient-gold: linear-gradient(135deg, #FFB300 0%, #FF6F00 100%);
  --gradient-dark: linear-gradient(135deg, #0a0f1e 0%, #0f1a2e 100%);
  --gradient-hero: linear-gradient(135deg, #0a0f1e 0%, #0d1a2e 50%, #0a1628 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-green-dark: linear-gradient(135deg, rgba(0,107,63,0.15) 0%, rgba(0,200,83,0.05) 100%);
}

/* ============================================================
   3. RESET & BASE STYLES
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================================
   4. TYPOGRAPHY BASE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

a {
  color: var(--green-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--green-300);
}

a:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

strong, b {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

mark {
  background: rgba(255, 179, 0, 0.2);
  color: var(--gold);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.875em;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--green-light);
}

blockquote {
  border-left: 3px solid var(--green-primary);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-green-glass);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ============================================================
   5. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-2xl { max-width: var(--container-2xl); }
.container-max { max-width: var(--container-max); }

.section {
  padding: var(--space-24) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.grid-auto-sm {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.grid-auto-md {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid-auto-lg {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================================
   6. SECTION HEADERS
   ============================================================ */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 1rem;
  background: var(--bg-green-glass);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: var(--space-4);
}

.section-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-title .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title .gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 600px;
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   7. BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary Button */
.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--shadow-green);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-green-lg);
  color: white;
}

.btn-primary:hover::before {
  opacity: 1;
}

/* Secondary Button */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass-2);
}

.btn-secondary:hover {
  background: var(--bg-glass-2);
  border-color: var(--border-green);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Gold Button */
.btn-gold {
  background: var(--gradient-gold);
  color: var(--bg-dark);
  font-weight: var(--weight-bold);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold);
  color: var(--bg-dark);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--green-light);
  border: 1px solid var(--border-green);
}

.btn-ghost:hover {
  background: var(--bg-green-glass-hover);
  color: var(--green-light);
  transform: translateY(-2px);
}

/* Outline White */
.btn-outline-white {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-2px);
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-md);
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 1.125rem 3rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-icon-sm {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* ============================================================
   8. CARD SYSTEM
   ============================================================ */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-glass-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
}

.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
}

.card-green {
  background: var(--bg-green-glass);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-xl);
}

.card-gold {
  background: var(--bg-gold-glass);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
}

/* Card shimmer top border */
.card-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ============================================================
   9. BADGE & TAG SYSTEM
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}

.badge-green {
  background: rgba(0, 200, 83, 0.1);
  color: var(--green-light);
  border: 1px solid rgba(0, 200, 83, 0.2);
}

.badge-gold {
  background: rgba(255, 179, 0, 0.1);
  color: var(--gold);
  border: 1px solid rgba(255, 179, 0, 0.2);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-primary);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-glass {
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}

.badge-verified {
  background: rgba(0, 107, 63, 0.15);
  color: var(--green-light);
  border: 1px solid var(--border-green);
}

.badge-verified::before {
  content: '✓';
  font-weight: var(--weight-bold);
}

/* ============================================================
   10. FORM SYSTEM
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.form-label.required::after {
  content: ' *';
  color: var(--red-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass-2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  transition: var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  border-color: var(--green-primary);
  background: var(--bg-glass-2);
  box-shadow: 0 0 0 3px rgba(0, 107, 63, 0.15);
}

.form-control:invalid:not(:placeholder-shown) {
  border-color: var(--red-primary);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--red-primary);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ============================================================
   11. DIVIDER
   ============================================================ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-glass);
  margin: var(--space-8) 0;
}

.divider-green {
  background: linear-gradient(90deg, transparent, var(--green-primary), transparent);
}

.divider-vertical {
  width: 1px;
  height: auto;
  align-self: stretch;
  background: var(--border-glass);
}

/* ============================================================
   12. LOADING STATES
   ============================================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    var(--bg-card-2) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-glass);
  border-top-color: var(--green-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-lg {
  width: 48px;
  height: 48px;
  border-width: 3px;
}

/* ============================================================
   13. TOAST NOTIFICATION SYSTEM
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: var(--z-toast);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  pointer-events: all;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 280px;
  max-width: 380px;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-color: var(--border-green);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0,107,63,0.05) 100%);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.3);
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.toast-close:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

/* ============================================================
   14. MODAL SYSTEM
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-2);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.25rem;
  line-height: 1;
}

.modal-close:hover {
  background: var(--bg-glass-2);
  color: var(--text-primary);
}

/* ============================================================
   15. TABLE SYSTEM
   ============================================================ */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

thead {
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-glass);
}

thead th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border-glass);
  transition: background 0.15s ease;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--bg-glass);
}

tbody td {
  padding: var(--space-4) var(--space-5);
  color: var(--text-secondary);
  vertical-align: middle;
}

/* ============================================================
   16. SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-glass-2);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green-primary);
}

/* ============================================================
   17. SELECTION STYLES
   ============================================================ */
::selection {
  background: rgba(0, 107, 63, 0.3);
  color: var(--text-primary);
}

/* ============================================================
   18. IMAGE UTILITIES
   ============================================================ */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.img-rounded { border-radius: var(--radius-lg); }
.img-circle { border-radius: var(--radius-full); }

.img-placeholder {
  background: var(--bg-card-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2rem;
}

/* ============================================================
   19. UTILITY CLASSES
   ============================================================ */

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green-light); }
.text-gold { color: var(--gold); }
.text-white { color: white; }
.text-red { color: var(--red-primary); }

/* Background */
.bg-dark { background-color: var(--bg-dark); }
.bg-card { background-color: var(--bg-card); }
.bg-glass { background: var(--bg-glass); }
.bg-green-glass { background: var(--bg-green-glass); }

/* Gradient text */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Spacing */
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-sm { max-width: var(--container-sm); }
.max-w-md { max-width: var(--container-md); }
.max-w-lg { max-width: var(--container-lg); }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky-top {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* Pointer */
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }

/* ============================================================
   20. ANIMATED BACKGROUND ELEMENTS
   ============================================================ */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  animation: orbFloat 10s ease-in-out infinite;
}

.orb-green-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--green-primary), transparent 70%);
  top: -300px;
  left: -200px;
  animation-delay: 0s;
  animation-duration: 12s;
}

.orb-green-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--green-light), transparent 70%);
  bottom: -200px;
  right: -200px;
  animation-delay: 4s;
  animation-duration: 15s;
}

.orb-gold {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  top: 40%;
  right: 10%;
  animation-delay: 8s;
  animation-duration: 18s;
  opacity: 0.05;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 15px) scale(0.98);
  }
}

/* Background grid */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 107, 63, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 107, 63, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   21. STAT COUNTER CARDS
   ============================================================ */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-green);
  background: var(--bg-green-glass);
  transform: translateY(-4px);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tighter);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
}

.stat-change {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-change.positive { color: var(--green-light); }
.stat-change.negative { color: var(--red-primary); }

/* ============================================================
   22. LIGHT MODE OVERRIDES
   ============================================================ */
[data-theme="light"] {
  --bg-dark: var(--light-bg);
  --bg-dark-2: var(--light-bg-2);
  --bg-dark-3: #ffffff;
  --bg-card: var(--light-card);
  --bg-card-2: var(--light-card-2);
  --bg-glass: var(--light-glass);
  --bg-glass-2: var(--light-glass-2);
  --bg-glass-hover: rgba(0, 0, 0, 0.07);
  --border-glass: var(--light-border);
  --border-glass-2: var(--light-border-2);
  --text-primary: var(--light-text-primary);
  --text-secondary: var(--light-text-secondary);
  --text-muted: var(--light-text-muted);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(0, 107, 63, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 107, 63, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .orb {
  opacity: 0.04;
}

/* ============================================================
   23. PRINT STYLES
   ============================================================ */
@media print {
  .no-print { display: none !important; }
  body { background: white; color: black; }
  .card { border: 1px solid #ddd; }
  .btn { display: none; }
}

/* ============================================================
   24. FOCUS VISIBLE (Accessibility)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================================
   25. REDUCED MOTION
   ============================================================ */
@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;
  }

  .orb {
    animation: none;
  }
}