/* ==========================================================================
   EUDR GLOBAL — Brand-New Light Architectural Design System
   Ceramic White, Mineral Pearl, Deep Pine Ink & Executive Emerald
   ========================================================================== */

:root {
  /* Light Architectural Surfaces */
  --bg-canvas: #F9FBFA;
  --bg-white: #FFFFFF;
  --bg-subtle: #F1F5F3;
  --bg-muted: #E7EEEA;
  --bg-glass: rgba(255, 255, 255, 0.86);
  --bg-glass-strong: rgba(249, 251, 250, 0.94);

  /* Dark Executive Accent Band (used sparingly for contrast blocks/footer) */
  --bg-dark-ink: #0B1F17;
  --bg-dark-elevated: #112A20;

  /* Borders & Hairlines */
  --border-light: rgba(11, 31, 23, 0.08);
  --border-mid: rgba(11, 31, 23, 0.14);
  --border-strong: rgba(11, 31, 23, 0.24);

  /* Ink Hierarchy */
  --ink-950: #0B1F17;
  --ink-800: #1D352B;
  --ink-600: #466056;
  --ink-400: #778D84;
  --ink-inverse: #FFFFFF;

  /* Brand Emerald */
  --emerald-800: #065F46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10B981;
  --emerald-100: #D1FAE5;
  --emerald-50: #ECFDF5;

  /* Semantic Signals */
  --amber-700: #B45309;
  --amber-600: #D97706;
  --amber-100: #FEF3C7;
  --amber-50: #FFFBEB;

  --crimson-700: #B91C1C;
  --crimson-600: #DC2626;
  --crimson-100: #FEE2E2;
  --crimson-50: #FEF2F2;

  --teal-700: #0F766E;
  --teal-50: #F0FDFA;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Geometry & Elevation */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(11, 31, 23, 0.05);
  --shadow-sm: 0 2px 6px rgba(11, 31, 23, 0.04), 0 8px 20px rgba(11, 31, 23, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 31, 23, 0.05), 0 18px 42px rgba(11, 31, 23, 0.07);
  --shadow-lg: 0 12px 28px rgba(11, 31, 23, 0.08), 0 32px 72px rgba(11, 31, 23, 0.11);

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
  --t-fast: 170ms var(--ease-smooth);
  --t-base: 320ms var(--ease-expo);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--ink-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--ink-950);
  line-height: 1.62;
  overflow-x: hidden;
}

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

/* Brand Lockup */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  user-select: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--bg-dark-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11, 31, 23, 0.16);
}

.brand-mark svg { width: 23px; height: 23px; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1rem; font-weight: 800; letter-spacing: 0.06em; color: var(--ink-950); display: flex; gap: 5px; }
.brand-name span { font-weight: 500; color: var(--emerald-700); }
.brand-sub { font-family: var(--font-mono); font-size: 0.61rem; letter-spacing: 0.12em; color: var(--ink-400); margin-top: 4px; text-transform: uppercase; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 21px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink-950);
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(11, 31, 23, 0.12), 0 8px 20px rgba(11, 31, 23, 0.14);
}
.btn-primary:hover {
  background: var(--emerald-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.2), 0 12px 26px rgba(4, 120, 87, 0.18);
}

.btn-emerald {
  background: var(--emerald-700);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.22);
}
.btn-emerald:hover { background: var(--emerald-800); transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg-white);
  color: var(--ink-950);
  border: 1px solid var(--border-mid);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--bg-subtle); border-color: var(--border-strong); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink-600); padding: 9px 14px; }
.btn-ghost:hover { color: var(--ink-950); background: var(--bg-subtle); }

.btn-lg { padding: 14px 28px; font-size: 0.94rem; }
.btn-sm { padding: 8px 14px; font-size: 0.81rem; }

/* Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-compliant { color: var(--emerald-800); background: var(--emerald-50); border: 1px solid var(--emerald-100); }
.status-review { color: var(--amber-700); background: var(--amber-50); border: 1px solid var(--amber-100); }
.status-risk { color: var(--crimson-700); background: var(--crimson-50); border: 1px solid var(--crimson-100); }
.status-draft { color: var(--ink-600); background: var(--bg-subtle); border: 1px solid var(--border-light); }
.status-chain { color: var(--teal-700); background: var(--teal-50); border: 1px solid rgba(15, 118, 110, 0.18); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-canvas); }
::-webkit-scrollbar-thumb { background: rgba(11, 31, 23, 0.18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(11, 31, 23, 0.34); }

/* Toast Stack */
.toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast-item {
  pointer-events: auto;
  min-width: 290px;
  max-width: 410px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 1px solid var(--border-mid);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastIn 300ms var(--ease-expo) forwards;
}
.toast-item.success .toast-icon { color: var(--emerald-700); }
.toast-item.warning .toast-icon { color: var(--amber-600); }
.toast-title { font-size: 0.85rem; font-weight: 700; color: var(--ink-950); }
.toast-desc { font-size: 0.77rem; color: var(--ink-600); margin-top: 2px; line-height: 1.45; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mono { font-family: var(--font-mono); }
.serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 600; }
