/* ===== DESIGN SYSTEM - SHAH TREND ===== */
/* Professional Design System - Enterprise Grade */
/* Compatible with shadcn/ui & Modern Standards */

@layer reset, base, components, utilities;

@layer reset {
  /* CSS Reset - Modern & Clean */
  *, *::before, *::after {
    box-sizing: border-box;
  }
  
  * {
    margin: 0;
  }
  
  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  
  input, button, textarea, select {
    font: inherit;
  }
  
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
}

@layer base {
  /* === DESIGN TOKENS - Psychology-Based Colors === */
  :root {
    /* === Primary Brand Colors (Psychology-Based) === */
    --orange-primitive: 29 100% 50%;        /* #FF7A00 - Energy, Action, Trust */
    --teal-primitive: 191 91% 12%;          /* #032D3A - Stability, Professional */
    --gray-primitive: 0 0% 87%;             /* #DDDDDD - Balance, Neutral */
    --purple-primitive: 253 29% 32%;        /* #493C69 - Creativity, Premium */
    --cyan-primitive: 182 83% 35%;          /* #0BA2A6 - Focus, Technology */
    --header-blue-primitive: 199 57% 41%;   /* #2C86A4 - Trust, Progress */
    
    /* === Neutral Primitives (Science-Based) === */
    --neutral-0: 0 0% 100%;        /* Pure White */
    --neutral-50: 199 20% 98%;     /* #FAFBFC - Soft white with blue undertone */
    --neutral-100: 199 15% 96%;    /* #F4F6F7 - Light background */
    --neutral-200: 199 12% 91%;    /* #E6E9EB - Subtle borders */
    --neutral-300: 199 10% 84%;    /* #D1D6D9 - Light borders */
    --neutral-400: 199 8% 65%;     /* #9DA5AA - Muted text */
    --neutral-500: 199 12% 47%;    /* #6B7680 - Secondary text */
    --neutral-600: 199 16% 35%;    /* #4A5560 - Primary text light */
    --neutral-700: 199 20% 27%;    /* #394349 - Primary text */
    --neutral-800: 199 25% 17%;    /* #1C2226 - Dark text */
    --neutral-900: 199 30% 10%;    /* #0E1114 - Darkest text */
    --neutral-950: 199 35% 5%;     /* #070809 - Pure black */
    
    /* === Semantic Color System (shadcn/ui Compatible) === */
    --background: 0 0% 100%;                    /* Pure White */
    --foreground: var(--neutral-900);          /* Dark Text */
    
    --card: 0 0% 100%;                          /* White Cards */
    --card-foreground: var(--neutral-900);     /* Dark Text on Cards */
    
    --popover: 0 0% 100%;                       /* White Popover */
    --popover-foreground: var(--neutral-900);  /* Dark Text on Popover */
    
    /* === Primary Colors (Orange - Energy & Action) === */
    --primary: var(--orange-primitive);         /* #FF7A00 - Main CTA */
    --primary-foreground: 0 0% 100%;           /* White Text on Orange */
    
    /* === Secondary Colors (Soft Neutral) === */
    --secondary: var(--neutral-100);            /* Light Background */
    --secondary-foreground: var(--neutral-800); /* Dark Text */
    
    /* === Muted Colors (Subtle) === */
    --muted: var(--neutral-100);                /* Subtle Background */
    --muted-foreground: var(--neutral-500);    /* Muted Text */
    
    /* === Accent Colors (Professional Blue) === */
    --accent: var(--header-blue-primitive);     /* #2C86A4 - Accent Actions */
    --accent-foreground: 0 0% 100%;            /* White on Blue */
    
    /* === Semantic State Colors === */
    --destructive: 0 84% 60%;                   /* Red for Errors */
    --destructive-foreground: 0 0% 100%;       /* White on Red */
    
    --success: 142 71% 45%;                     /* Green for Success */
    --success-foreground: 0 0% 100%;           /* White on Green */
    
    --warning: 38 92% 50%;                      /* Amber for Warning */
    --warning-foreground: 0 0% 100%;           /* White on Amber */
    
    --info: var(--cyan-primitive);              /* #0BA2A6 - Information */
    --info-foreground: 0 0% 100%;              /* White on Cyan */
    
    /* === Interactive Elements === */
    --border: var(--neutral-200);               /* Subtle Borders */
    --input: var(--neutral-200);                /* Input Borders */
    --ring: var(--orange-primitive);           /* Focus Ring - Orange */
    
    --radius: 0.75rem;                          /* 12px Border Radius */
    
    /* === Spacing Scale (8px Grid System) === */
    --space-px: 1px;
    --space-0: 0;
    --space-0_5: 0.125rem;  /* 2px */
    --space-1: 0.25rem;     /* 4px */
    --space-1_5: 0.375rem;  /* 6px */
    --space-2: 0.5rem;      /* 8px */
    --space-2_5: 0.625rem;  /* 10px */
    --space-3: 0.75rem;     /* 12px */
    --space-3_5: 0.875rem;  /* 14px */
    --space-4: 1rem;        /* 16px */
    --space-5: 1.25rem;     /* 20px */
    --space-6: 1.5rem;      /* 24px */
    --space-7: 1.75rem;     /* 28px */
    --space-8: 2rem;        /* 32px */
    --space-9: 2.25rem;     /* 36px */
    --space-10: 2.5rem;     /* 40px */
    --space-12: 3rem;       /* 48px */
    --space-14: 3.5rem;     /* 56px */
    --space-16: 4rem;       /* 64px */
    --space-20: 5rem;       /* 80px */
    --space-24: 6rem;       /* 96px */
    
    /* === Border Radius System === */
    --radius-none: 0;
    --radius-sm: 0.125rem;    /* 2px */
    --radius-md: 0.375rem;    /* 6px */
    --radius-lg: 0.5rem;      /* 8px */
    --radius-xl: 0.75rem;     /* 12px */
    --radius-2xl: 1rem;       /* 16px */
    --radius-3xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;    /* Circle */
    
    /* === Shadow System === */
    --shadow-none: none;
    --shadow-sm: 0 1px 2px 0 hsl(var(--teal-primitive) / 0.05);
    --shadow-md: 0 4px 6px -1px hsl(var(--teal-primitive) / 0.1), 0 2px 4px -2px hsl(var(--teal-primitive) / 0.1);
    --shadow-lg: 0 10px 15px -3px hsl(var(--teal-primitive) / 0.1), 0 4px 6px -4px hsl(var(--teal-primitive) / 0.1);
    --shadow-xl: 0 20px 25px -5px hsl(var(--teal-primitive) / 0.1), 0 8px 10px -6px hsl(var(--teal-primitive) / 0.1);
    --shadow-2xl: 0 25px 50px -12px hsl(var(--teal-primitive) / 0.25);
    
    /* === Duration System === */
    --duration-75: 75ms;
    --duration-100: 100ms;
    --duration-150: 150ms;
    --duration-200: 200ms;
    --duration-300: 300ms;
    --duration-500: 500ms;
    --duration-700: 700ms;
    --duration-1000: 1000ms;
    
    /* === Easing Functions === */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  /* === Base Styles === */
  body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "rlig" 1, "calt" 1;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: hsl(var(--neutral-900));
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
  }
  
  a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: all var(--duration-150) var(--ease-out);
  }
  
  a:hover {
    color: hsl(29 100% 45%); /* Darker orange */
    text-decoration: underline;
  }
}

@layer components {
  /* === BUTTON COMPONENTS === */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    line-height: 1;
    transition: all var(--duration-150) var(--ease-out);
    outline: none;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    height: 2.5rem; /* 40px */
    padding: 0 var(--space-4);
  }

  .btn:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
  }

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

  /* === Primary Button (Orange - Energy & Action) === */
  .btn-primary {
    background: linear-gradient(135deg, hsl(var(--orange-primitive)), hsl(29 100% 45%));
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-sm);
  }

  .btn-primary:hover {
    background: linear-gradient(135deg, hsl(29 100% 45%), hsl(29 100% 40%));
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
  }

  .btn-primary:active {
    transform: translateY(0) scale(0.98);
  }

  /* === Secondary Button (Header Blue - Trust) === */
  .btn-secondary {
    background: linear-gradient(135deg, hsl(var(--header-blue-primitive)), hsl(199 57% 36%));
    color: white;
    box-shadow: var(--shadow-sm);
  }

  .btn-secondary:hover {
    background: linear-gradient(135deg, hsl(199 57% 36%), hsl(199 57% 32%));
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
  }

  /* === Outline Button === */
  .btn-outline {
    border: 1px solid hsl(var(--orange-primitive));
    background-color: transparent;
    color: hsl(var(--orange-primitive));
  }

  .btn-outline:hover {
    background-color: hsl(29 100% 97%);
    border-color: hsl(29 100% 45%);
    color: hsl(29 100% 45%);
  }

  /* === Button Sizes === */
  .btn-sm {
    height: 2.25rem; /* 36px */
    padding: 0 var(--space-3);
    font-size: 0.75rem; /* 12px */
  }

  .btn-lg {
    height: 2.75rem; /* 44px */
    padding: 0 var(--space-6);
    font-size: 1rem; /* 16px */
  }

  .btn-xl {
    height: 3rem; /* 48px */
    padding: 0 var(--space-8);
    font-size: 1.125rem; /* 18px */
  }

  /* === CARD COMPONENTS === */
  .card {
    border-radius: var(--radius-xl);
    border: 1px solid hsl(var(--border));
    background: linear-gradient(145deg, 
      hsl(var(--card)) 0%, 
      hsl(var(--neutral-50)) 100%);
    color: hsl(var(--card-foreground));
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-200) var(--ease-out);
    overflow: hidden;
  }

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

  .card-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-6);
    background: linear-gradient(135deg, 
      hsl(var(--header-blue-primitive) / 0.02) 0%, 
      hsl(var(--orange-primitive) / 0.02) 100%);
  }

  .card-title {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    line-height: 1.25;
    color: hsl(var(--neutral-900));
    letter-spacing: -0.025em;
  }

  .card-description {
    font-size: 0.875rem; /* 14px */
    color: hsl(var(--muted-foreground));
    line-height: 1.625;
  }

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

  .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    padding-top: 0;
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--neutral-50) / 0.5);
  }

  /* === INPUT COMPONENTS === */
  .input {
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--border));
    background: linear-gradient(145deg, 
      hsl(var(--background)) 0%, 
      hsl(var(--neutral-50)) 100%);
    padding: 0 var(--space-3);
    font-size: 0.875rem; /* 14px */
    font-family: inherit;
    color: hsl(var(--foreground));
    transition: all var(--duration-150) var(--ease-out);
    outline: none;
  }

  .input::placeholder {
    color: hsl(var(--muted-foreground));
  }

  .input:focus {
    border-color: hsl(var(--orange-primitive));
    box-shadow: 0 0 0 2px hsl(var(--orange-primitive) / 0.2);
    background: hsl(var(--background));
  }

  .input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background: hsl(var(--neutral-100));
  }

  /* === BADGE COMPONENTS === */
  .badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-full);
    padding: var(--space-1) var(--space-3);
    font-size: 0.75rem; /* 12px */
    font-weight: 600;
    line-height: 1;
    transition: all var(--duration-150) var(--ease-out);
    border: 1px solid transparent;
  }

  .badge-primary {
    background: linear-gradient(135deg, 
      hsl(var(--orange-primitive)), 
      hsl(29 100% 45%));
    color: white;
    box-shadow: var(--shadow-sm);
  }

  .badge-secondary {
    background: linear-gradient(135deg, 
      hsl(var(--header-blue-primitive)), 
      hsl(199 57% 36%));
    color: white;
  }

  .badge-outline {
    background: transparent;
    border: 1px solid hsl(var(--orange-primitive));
    color: hsl(var(--orange-primitive));
  }

  .badge-outline:hover {
    background: hsl(29 100% 97%);
  }

  /* === ALERT COMPONENTS === */
  .alert {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    border: 1px solid;
    transition: all var(--duration-200) var(--ease-out);
  }

  .alert-primary {
    border-color: hsl(29 85% 80%);
    background: linear-gradient(135deg, 
      hsl(29 100% 97%) 0%, 
      hsl(29 95% 94%) 100%);
    color: hsl(29 100% 30%);
  }

  .alert-info {
    border-color: hsl(var(--cyan-primitive) / 0.7);
    background: linear-gradient(135deg, 
      hsl(182 75% 96%) 0%, 
      hsl(182 80% 92%) 100%);
    color: hsl(var(--cyan-primitive));
  }

  .alert-success {
    border-color: hsl(142 45% 70%);
    background: linear-gradient(135deg, 
      hsl(138 76% 97%) 0%, 
      hsl(140 84% 92%) 100%);
    color: hsl(142 72% 29%);
  }

  .alert-warning {
    border-color: hsl(38 70% 70%);
    background: linear-gradient(135deg, 
      hsl(48 100% 96%) 0%, 
      hsl(48 96% 89%) 100%);
    color: hsl(26 78% 37%);
  }

  .alert-destructive {
    border-color: hsl(0 70% 70%);
    background: linear-gradient(135deg, 
      hsl(0 86% 97%) 0%, 
      hsl(0 93% 94%) 100%);
    color: hsl(0 74% 42%);
  }

  .alert-title {
    font-weight: 600;
    font-size: 0.875rem; /* 14px */
    margin-bottom: var(--space-1);
  }

  .alert-description {
    font-size: 0.875rem; /* 14px */
    line-height: 1.625;
    opacity: 0.9;
  }

  /* === LAYOUT SYSTEM === */
  .container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  @media (min-width: 640px) {
    .container { max-width: 640px; }
  }

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

  @media (min-width: 1024px) {
    .container { 
      max-width: 1024px;
      padding-left: var(--space-8);
      padding-right: var(--space-8);
    }
  }

  @media (min-width: 1280px) {
    .container { max-width: 1280px; }
  }

  @media (min-width: 1536px) {
    .container { max-width: 1536px; }
  }

  /* === GRID SYSTEM === */
  .grid {
    display: grid;
    gap: var(--space-4);
  }

  .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)); }

  @media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  @media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }

  @media (min-width: 1024px) {
    .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\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  }

  /* === FLEX UTILITIES === */
  .flex { display: flex; }
  .inline-flex { display: inline-flex; }
  .flex-col { flex-direction: column; }
  .flex-row { flex-direction: row; }
  .flex-wrap { flex-wrap: wrap; }
  .flex-nowrap { flex-wrap: nowrap; }
  .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-start { justify-content: flex-start; }
  .justify-end { justify-content: flex-end; }
  .gap-1 { gap: var(--space-1); }
  .gap-2 { gap: var(--space-2); }
  .gap-3 { gap: var(--space-3); }
  .gap-4 { gap: var(--space-4); }
  .gap-5 { gap: var(--space-5); }
  .gap-6 { gap: var(--space-6); }
  .gap-8 { gap: var(--space-8); }
  .gap-10 { gap: var(--space-10); }
  .gap-12 { gap: var(--space-12); }
}

@layer utilities {
  /* === TEXT UTILITIES === */
  .text-center { text-align: center; }
  .text-left { text-align: left; }
  .text-right { text-align: right; }
  
  .text-xs { font-size: 0.75rem; line-height: 1rem; }
  .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .text-base { font-size: 1rem; line-height: 1.5rem; }
  .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  
  .font-thin { font-weight: 100; }
  .font-extralight { font-weight: 200; }
  .font-light { font-weight: 300; }
  .font-normal { font-weight: 400; }
  .font-medium { font-weight: 500; }
  .font-semibold { font-weight: 600; }
  .font-bold { font-weight: 700; }
  .font-extrabold { font-weight: 800; }
  .font-black { font-weight: 900; }
  
  .text-primary { color: hsl(var(--primary)); }
  .text-secondary { color: hsl(var(--secondary-foreground)); }
  .text-muted { color: hsl(var(--muted-foreground)); }
  .text-accent { color: hsl(var(--accent)); }
  .text-destructive { color: hsl(var(--destructive)); }
  .text-success { color: hsl(var(--success)); }
  .text-warning { color: hsl(var(--warning)); }
  .text-info { color: hsl(var(--info)); }
  
  /* === BACKGROUND UTILITIES === */
  .bg-primary { background-color: hsl(var(--primary)); }
  .bg-secondary { background-color: hsl(var(--secondary)); }
  .bg-muted { background-color: hsl(var(--muted)); }
  .bg-accent { background-color: hsl(var(--accent)); }
  .bg-card { background-color: hsl(var(--card)); }
  .bg-background { background-color: hsl(var(--background)); }
  
  /* === BORDER UTILITIES === */
  .border { border: 1px solid hsl(var(--border)); }
  .border-0 { border-width: 0px; }
  .border-2 { border-width: 2px; }
  .border-4 { border-width: 4px; }
  .border-t { border-top-width: 1px; }
  .border-r { border-right-width: 1px; }
  .border-b { border-bottom-width: 1px; }
  .border-l { border-left-width: 1px; }
  
  .border-primary { border-color: hsl(var(--primary)); }
  .border-secondary { border-color: hsl(var(--secondary)); }
  .border-muted { border-color: hsl(var(--muted)); }
  .border-accent { border-color: hsl(var(--accent)); }
  
  /* === BORDER RADIUS UTILITIES === */
  .rounded-none { border-radius: var(--radius-none); }
  .rounded-sm { border-radius: var(--radius-sm); }
  .rounded-md { border-radius: var(--radius-md); }
  .rounded-lg { border-radius: var(--radius-lg); }
  .rounded-xl { border-radius: var(--radius-xl); }
  .rounded-2xl { border-radius: var(--radius-2xl); }
  .rounded-3xl { border-radius: var(--radius-3xl); }
  .rounded-full { border-radius: var(--radius-full); }
  
  /* === SHADOW UTILITIES === */
  .shadow-none { box-shadow: var(--shadow-none); }
  .shadow-sm { box-shadow: var(--shadow-sm); }
  .shadow-md { box-shadow: var(--shadow-md); }
  .shadow-lg { box-shadow: var(--shadow-lg); }
  .shadow-xl { box-shadow: var(--shadow-xl); }
  .shadow-2xl { box-shadow: var(--shadow-2xl); }
  
  /* === SPACING UTILITIES === */
  .p-0 { padding: var(--space-0); }
  .p-1 { padding: var(--space-1); }
  .p-2 { padding: var(--space-2); }
  .p-3 { padding: var(--space-3); }
  .p-4 { padding: var(--space-4); }
  .p-5 { padding: var(--space-5); }
  .p-6 { padding: var(--space-6); }
  .p-8 { padding: var(--space-8); }
  .p-10 { padding: var(--space-10); }
  .p-12 { padding: var(--space-12); }
  
  .px-0 { padding-left: var(--space-0); padding-right: var(--space-0); }
  .px-1 { padding-left: var(--space-1); padding-right: var(--space-1); }
  .px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
  .px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
  .px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
  .px-5 { padding-left: var(--space-5); padding-right: var(--space-5); }
  .px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
  .px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }
  
  .py-0 { padding-top: var(--space-0); padding-bottom: var(--space-0); }
  .py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
  .py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
  .py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
  .py-5 { padding-top: var(--space-5); padding-bottom: var(--space-5); }
  .py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
  
  .m-0 { margin: var(--space-0); }
  .m-1 { margin: var(--space-1); }
  .m-2 { margin: var(--space-2); }
  .m-3 { margin: var(--space-3); }
  .m-4 { margin: var(--space-4); }
  .m-5 { margin: var(--space-5); }
  .m-6 { margin: var(--space-6); }
  .m-8 { margin: var(--space-8); }
  .m-10 { margin: var(--space-10); }
  .m-12 { margin: var(--space-12); }
  
  .mx-0 { margin-left: var(--space-0); margin-right: var(--space-0); }
  .mx-1 { margin-left: var(--space-1); margin-right: var(--space-1); }
  .mx-2 { margin-left: var(--space-2); margin-right: var(--space-2); }
  .mx-3 { margin-left: var(--space-3); margin-right: var(--space-3); }
  .mx-4 { margin-left: var(--space-4); margin-right: var(--space-4); }
  .mx-5 { margin-left: var(--space-5); margin-right: var(--space-5); }
  .mx-6 { margin-left: var(--space-6); margin-right: var(--space-6); }
  .mx-8 { margin-left: var(--space-8); margin-right: var(--space-8); }
  .mx-auto { margin-left: auto; margin-right: auto; }
  
  .my-0 { margin-top: var(--space-0); margin-bottom: var(--space-0); }
  .my-1 { margin-top: var(--space-1); margin-bottom: var(--space-1); }
  .my-2 { margin-top: var(--space-2); margin-bottom: var(--space-2); }
  .my-3 { margin-top: var(--space-3); margin-bottom: var(--space-3); }
  .my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
  .my-5 { margin-top: var(--space-5); margin-bottom: var(--space-5); }
  .my-6 { margin-top: var(--space-6); margin-bottom: var(--space-6); }
  .my-8 { margin-top: var(--space-8); margin-bottom: var(--space-8); }
  
  /* === WIDTH & HEIGHT UTILITIES === */
  .w-full { width: 100%; }
  .w-auto { width: auto; }
  .w-screen { width: 100vw; }
  .w-min { width: min-content; }
  .w-max { width: max-content; }
  .w-fit { width: fit-content; }
  
  .h-full { height: 100%; }
  .h-auto { height: auto; }
  .h-screen { height: 100vh; }
  .h-min { height: min-content; }
  .h-max { height: max-content; }
  .h-fit { height: fit-content; }
  
  /* === TRANSITION UTILITIES === */
  .transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: var(--ease-out); transition-duration: var(--duration-150); }
  .transition-all { transition-property: all; transition-timing-function: var(--ease-out); transition-duration: var(--duration-150); }
  .transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: var(--ease-out); transition-duration: var(--duration-150); }
  .transition-opacity { transition-property: opacity; transition-timing-function: var(--ease-out); transition-duration: var(--duration-150); }
  .transition-shadow { transition-property: box-shadow; transition-timing-function: var(--ease-out); transition-duration: var(--duration-150); }
  .transition-transform { transition-property: transform; transition-timing-function: var(--ease-out); transition-duration: var(--duration-150); }
  
  /* === HOVER UTILITIES === */
  .hover\:bg-primary:hover { background-color: hsl(var(--primary)); }
  .hover\:bg-secondary:hover { background-color: hsl(var(--secondary)); }
  .hover\:bg-muted:hover { background-color: hsl(var(--muted)); }
  .hover\:text-primary:hover { color: hsl(var(--primary)); }
  .hover\:text-secondary:hover { color: hsl(var(--secondary-foreground)); }
  .hover\:border-primary:hover { border-color: hsl(var(--primary)); }
  .hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }
  .hover\:scale-105:hover { transform: scale(1.05); }
  .hover\:scale-110:hover { transform: scale(1.1); }
  .hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
  .hover\:-translate-y-2:hover { transform: translateY(-0.5rem); }
  
  /* === FOCUS UTILITIES === */
  .focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
  .focus\:ring:focus { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
  .focus\:ring-2:focus { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
  .focus\:ring-4:focus { outline: 4px solid hsl(var(--ring)); outline-offset: 2px; }
  .focus\:ring-offset-2:focus { outline-offset: 2px; }
  
  /* === RESPONSIVE UTILITIES === */
  @media (min-width: 640px) {
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  }
  
  @media (min-width: 768px) {
    .md\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  }
  
  @media (min-width: 1024px) {
    .lg\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .lg\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .lg\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .lg\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .lg\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .lg\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  }
  
  @media (min-width: 1280px) {
    .xl\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .xl\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .xl\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .xl\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .xl\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .xl\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .xl\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  }
}

/* === ACCESSIBILITY & COMPLIANCE === */
@media (prefers-contrast: high) {
  :root {
    --border: var(--neutral-800);
    --input: var(--neutral-800);
    --ring: hsl(29 100% 45%);
  }
  
  .btn-outline {
    border-width: 2px;
  }
}

@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;
  }
  
  .hover\:-translate-y-1:hover,
  .hover\:-translate-y-2:hover,
  .hover\:scale-105:hover,
  .hover\:scale-110:hover {
    transform: none;
  }
}

/* === SCREEN READER SUPPORT === */
.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;
}

.not-sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* === FOCUS MANAGEMENT === */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: hsl(var(--primary));
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}
