/* ==========================================================================
   #GLOBAL STYLES
   ========================================================================== */

:root {
  /* Colors - Extended Palette */
  --color-primary: #3b82f6;
  --color-primary-dark: #2563eb;
  --color-primary-darker: #1d4ed8;
  --color-primary-light: #60a5fa;
  --color-primary-lighter: #93c5fd;
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  
  /* Text Colors */
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-text-lighter: #94a3b8;
  --color-text-muted: #cbd5e1;
  --color-heading: #0f172a;
  
  /* Background Colors */
  --color-bg: #f8fafd;
  --color-bg-light: #ffffff;
  --color-bg-dark: #f1f5f9;
  --color-bg-darker: #e2e8f0;
  
  /* Border Colors */
  --color-border: #e1e7f0;
  --color-border-light: #f1f5f9;
  --color-border-dark: #cbd5e1;
  
  /* Status Colors */
  --color-success: #10b981;
  --color-success-light: #34d399;
  --color-success-dark: #059669;
  
  --color-warning: #f59e0b;
  --color-warning-light: #fbbf24;
  --color-warning-dark: #d97706;
  
  --color-error: #ef4444;
  --color-error-light: #f87171;
  --color-error-dark: #dc2626;
  
  --color-info: #3b82f6;
  --color-info-light: #60a5fa;
  --color-info-dark: #2563eb;
  
  /* Spacing - Extended Scale */
  --spacing-3xs: 0.125rem;  /* 2px */
  --spacing-2xs: 0.25rem;   /* 4px */
  --spacing-xs: 0.5rem;     /* 8px */
  --spacing-sm: 0.75rem;    /* 12px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */
  --spacing-4xl: 6rem;      /* 96px */
  
  /* Typography */
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-display: 'Inter', var(--font-base);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  
  --line-height: 1.6;
  --line-height-tight: 1.3;
  --line-height-heading: 1.2;
  
  /* Borders */
  --border-radius-sm: 0.25rem;  /* 4px */
  --border-radius: 0.5rem;      /* 8px */
  --border-radius-md: 0.75rem;  /* 12px */
  --border-radius-lg: 1rem;     /* 16px */
  --border-radius-xl: 1.5rem;   /* 24px */
  --border-radius-full: 9999px; /* Full rounded */
  
  --border-width: 1px;
  --border-width-md: 2px;
  --border-width-lg: 3px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  
  /* Transitions */
  --transition-default: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  
  /* Z-index */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
  
  /* Container */
  --container-width: min(1200px, 94vw);
  --container-padding: clamp(1rem, 3vw, 2rem);
}

/* ==========================================================================
   #BASE STYLES
   ========================================================================== */

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Document
   ========================================================================== */

/**
 * 1. Prevent adjustments of font size after orientation changes in iOS.
 * 2. Set base font size to 16px (browser default) for consistent rem calculations
 * 3. Improve text rendering for better readability
 */
html {
  -webkit-text-size-adjust: 100%; /* 1 */
  -webkit-font-smoothing: antialiased; /* 3 */
  -moz-osx-font-smoothing: grayscale; /* 3 */
  text-rendering: optimizeLegibility; /* 3 */
  scroll-behavior: smooth;
  font-size: 100%; /* 2 */
  line-height: var(--line-height);
  height: 100%;
}

/* Body
   ========================================================================== */

/**
 * 1. Set default font family and size
 * 2. Prevent horizontal scrolling on mobile
 * 3. Set base text color and background
 * 4. Ensure the page fills at least the full height of the viewport
 */
body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden; /* 2 */
  min-height: 100vh; /* 4 */
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* ==========================================================================
   #TYPOGRAPHY
   ========================================================================== */

/* Base Typography */
body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--spacing-md) 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--line-height-heading);
  color: var(--color-heading);
  letter-spacing: -0.025em;
}

h1 { 
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
}

h2 { 
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: var(--spacing-lg);
}

h3 { 
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h4 { 
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.25;
  margin-bottom: var(--spacing-md);
}

h5 { 
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

h6 { 
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

/* Paragraphs */
p {
  margin: 0 0 var(--spacing-md) 0;
  max-width: 65ch;
  line-height: 1.7;
  color: var(--color-text);
}

/* Lead Paragraph */
.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--color-text-light);
  max-width: 60ch;
  margin-bottom: var(--spacing-lg);
}

/* Small Text */
.small {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-text-light);
}

/* Text Colors */
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-muted { color: var(--color-text-light); }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Text Transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.normal-case { text-transform: none; }

/* Font Weights */
.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; }

/* Line Heights */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-style: none;
}

ul, ol {
  margin: 0 0 var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

/* ==========================================================================
   #LAYOUT & SPACING
   ========================================================================== */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
}

/* Section Spacing */
.section {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

.section--sm {
  padding: var(--spacing-xl) 0;
}

.section--lg {
  padding: var(--spacing-3xl) 0;
}

.section--xl {
  padding: var(--spacing-4xl) 0;
}

/* Section Backgrounds */
.section--light {
  background-color: var(--color-bg-light);
}

.section--muted {
  background-color: var(--color-bg-dark);
}

/* Carousel styles moved to carousel.css */

.section--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
}

.section--primary h1,
.section--primary h2,
.section--primary h3,
.section--primary h4,
.section--primary h5,
.section--primary h6 {
  color: white;
}

.section--primary p,
.section--primary .text-muted {
  color: rgba(255, 255, 255, 0.9);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(12, 1fr);
}

/* Grid Columns */
.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* Responsive Grid */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  [class*="col-"] {
    grid-column: 1 / -1;
  }
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

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

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

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.gap-0 { gap: 0; }
.gap-1 { gap: var(--spacing-2xs); }
.gap-2 { gap: var(--spacing-xs); }
.gap-3 { gap: var(--spacing-sm); }
.gap-4 { gap: var(--spacing-md); }
.gap-5 { gap: var(--spacing-lg); }
.gap-6 { gap: var(--spacing-xl); }

/* Spacing Utilities */
.m-0 { margin: 0; }
.m-1 { margin: var(--spacing-2xs); }
.m-2 { margin: var(--spacing-xs); }
.m-3 { margin: var(--spacing-sm); }
.m-4 { margin: var(--spacing-md); }
.m-5 { margin: var(--spacing-lg); }
.m-6 { margin: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-2xs); }
.mt-2 { margin-top: var(--spacing-xs); }
.mt-3 { margin-top: var(--spacing-sm); }
.mt-4 { margin-top: var(--spacing-md); }
.mt-5 { margin-top: var(--spacing-lg); }
.mt-6 { margin-top: var(--spacing-xl); }
.mt-7 { margin-top: var(--spacing-2xl); }
.mt-8 { margin-top: var(--spacing-3xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-2xs); }
.mb-2 { margin-bottom: var(--spacing-xs); }
.mb-3 { margin-bottom: var(--spacing-sm); }
.mb-4 { margin-bottom: var(--spacing-md); }
.mb-5 { margin-bottom: var(--spacing-lg); }
.mb-6 { margin-bottom: var(--spacing-xl); }
.mb-7 { margin-bottom: var(--spacing-2xl); }
.mb-8 { margin-bottom: var(--spacing-3xl); }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: var(--spacing-2xs); }
.ml-2 { margin-left: var(--spacing-xs); }
.ml-3 { margin-left: var(--spacing-sm); }
.ml-4 { margin-left: var(--spacing-md); }
.ml-5 { margin-left: var(--spacing-lg); }
.ml-6 { margin-left: var(--spacing-xl); }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: var(--spacing-2xs); }
.mr-2 { margin-right: var(--spacing-xs); }
.mr-3 { margin-right: var(--spacing-sm); }
.mr-4 { margin-right: var(--spacing-md); }
.mr-5 { margin-right: var(--spacing-lg); }
.mr-6 { margin-right: var(--spacing-xl); }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-0 { margin-top: 0; margin-bottom: 0; }
.mx-0 { margin-left: 0; margin-right: 0; }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-2xs); }
.p-2 { padding: var(--spacing-xs); }
.p-3 { padding: var(--spacing-sm); }
.p-4 { padding: var(--spacing-md); }
.p-5 { padding: var(--spacing-lg); }
.p-6 { padding: var(--spacing-xl); }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--spacing-2xs); }
.pt-2 { padding-top: var(--spacing-xs); }
.pt-3 { padding-top: var(--spacing-sm); }
.pt-4 { padding-top: var(--spacing-md); }
.pt-5 { padding-top: var(--spacing-lg); }
.pt-6 { padding-top: var(--spacing-xl); }
.pt-7 { padding-top: var(--spacing-2xl); }
.pt-8 { padding-top: var(--spacing-3xl); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--spacing-2xs); }
.pb-2 { padding-bottom: var(--spacing-xs); }
.pb-3 { padding-bottom: var(--spacing-sm); }
.pb-4 { padding-bottom: var(--spacing-md); }
.pb-5 { padding-bottom: var(--spacing-lg); }
.pb-6 { padding-bottom: var(--spacing-xl); }
.pb-7 { padding-bottom: var(--spacing-2xl); }
.pb-8 { padding-bottom: var(--spacing-3xl); }

.pl-0 { padding-left: 0; }
.pl-1 { padding-left: var(--spacing-2xs); }
.pl-2 { padding-left: var(--spacing-xs); }
.pl-3 { padding-left: var(--spacing-sm); }
.pl-4 { padding-left: var(--spacing-md); }
.pl-5 { padding-left: var(--spacing-lg); }
.pl-6 { padding-left: var(--spacing-xl); }

.pr-0 { padding-right: 0; }
.pr-1 { padding-right: var(--spacing-2xs); }
.pr-2 { padding-right: var(--spacing-xs); }
.pr-3 { padding-right: var(--spacing-sm); }
.pr-4 { padding-right: var(--spacing-md); }
.pr-5 { padding-right: var(--spacing-lg); }
.pr-6 { padding-right: var(--spacing-xl); }

.px-0 { padding-left: 0; padding-right: 0; }
.py-0 { padding-top: 0; padding-bottom: 0; }

/* Width Utilities */
.w-full { width: 100%; }
.w-screen { width: 100vw; }
.w-auto { width: auto; }
.max-w-none { max-width: none; }
.max-w-full { max-width: 100%; }

/* Height Utilities */
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-auto { height: auto; }
.min-h-0 { min-height: 0; }
.min-h-full { min-height: 100%; }
.min-h-screen { min-height: 100vh; }

/* ==========================================================================
   #CARDS
   ========================================================================== */

/**
 * Base card component with subtle shadow and hover effect
 */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--color-bg-light);
  background-clip: border-box;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-dark);
}

/* Card variants */
.card--elevated {
  border: none;
  box-shadow: var(--shadow-md);
}

.card--hoverable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Card elements */
.card__header,
.card__body,
.card__footer {
  padding: var(--spacing-lg);
}

.card__header {
  padding-bottom: 0;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
}

.card__footer {
  padding-top: 0;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
}

.card__title {
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-heading);
}

.card__subtitle {
  margin-top: -0.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.card__image {
  width: 100%;
  height: auto;
  border-top-left-radius: calc(var(--border-radius) - 1px);
  border-top-right-radius: calc(var(--border-radius) - 1px);
}

/* Card with image */
.card--has-image .card__header {
  padding: 0;
  border: none;
}

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

/**
 * Base button styles with smooth transitions and consistent sizing
 */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: white;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  cursor: pointer;
  background: var(--color-primary);
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -1px rgba(37, 99, 235, 0.1);
  overflow: hidden;
}

/* Button States */
.btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2), 0 4px 6px -2px rgba(37, 99, 235, 0.1);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px -1px rgba(37, 99, 235, 0.2);
}

.btn:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Button Variants */
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--color-primary-dark);
}

.btn--ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-primary);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Button Sizes */
.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: calc(var(--border-radius) - 2px);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: calc(var(--border-radius) + 2px);
}

.btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* Button with icon */
.btn .icon {
  width: 1.25em;
  height: 1.25em;
  font-size: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5em;
}

/* Button loading state */
.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 1.25em;
  height: 1.25em;
  top: 50%;
  left: 50%;
  margin: -0.625em 0 0 -0.625em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spinner 0.75s linear infinite;
  opacity: 0.8;
}

@keyframes button-spinner {
  to { transform: rotate(360deg); }
}

/* Button group */
.btn-group {
  display: inline-flex;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-group .btn {
  position: relative;
  flex: 1 1 auto;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}

.btn-group .btn:last-child {
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

.btn-group .btn:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-group .btn + .btn {
  margin-left: -1px;
}

/* Button with badge */
.btn__badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: white;
  background-color: var(--color-error);
  border-radius: 9999px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
/* Moved to main BUTTONS section */

/* ==========================================================================
   #FORMS
   ========================================================================== */

/**
 * Form elements with consistent styling and focus states
 */

/* Form group */
.form-group {
  margin-bottom: var(--spacing-md);
}

/* Form label */
.form-label {
  display: inline-block;
  margin-bottom: var(--spacing-xs);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.5;
}

/* Required field indicator */
.required::after {
  content: ' *';
  color: var(--color-error);
}

/* Form control base */
.form-control {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg-light);
  background-clip: padding-box;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  appearance: none;
}

/* Form control focus state */
.form-control:focus {
  color: var(--color-text);
  background-color: var(--color-bg-light);
  border-color: var(--color-primary);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15);
}

/* Form control disabled and readonly states */
.form-control:disabled,
.form-control[readonly] {
  background-color: var(--color-bg-dark);
  opacity: 1;
  cursor: not-allowed;
}

/* Form control small */
.form-control-sm {
  min-height: 2.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: calc(var(--border-radius) - 2px);
}

/* Form control large */
.form-control-lg {
  min-height: 3.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 1.125rem;
  border-radius: calc(var(--border-radius) + 2px);
}

/* Form control file */
.form-control-file {
  display: block;
  width: 100%;
  padding: 0.5rem 0;
  line-height: 1.5;
  color: var(--color-text);
  background-color: transparent;
  border: 0;
  border-radius: 0;
}

/* Form control range */
.form-control-range {
  width: 100%;
  height: 2rem;
  padding: 0;
  background-color: transparent;
  appearance: none;
}

/* Form control range track */
.form-control-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.5rem;
  color: transparent;
  cursor: pointer;
  background-color: var(--color-bg-darker);
  border-radius: 1rem;
  box-shadow: none;
}

/* Form control range thumb */
.form-control-range::-webkit-slider-thumb {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -0.375rem;
  background-color: var(--color-primary);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
  appearance: none;
}

/* Form control range focus */
.form-control-range:focus {
  outline: 0;
}

.form-control-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px var(--color-bg-light), 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Form control range disabled */
.form-control-range:disabled {
  pointer-events: none;
}

.form-control-range:disabled::-webkit-slider-thumb {
  background-color: var(--color-text-lighter);
}

/* Form text */
.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* Form check */
.form-check {
  position: relative;
  display: block;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Form check input */
.form-check-input {
  position: absolute;
  margin-top: 0.25rem;
  margin-left: -1.5rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--color-bg-light);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid var(--color-border);
  appearance: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Form check input states */
.form-check-input:active {
  filter: brightness(90%);
}

.form-check-input:focus {
  border-color: var(--color-primary-light);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-input[type="checkbox"]:indeterminate {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
}

.form-check-input:disabled {
  pointer-events: none;
  filter: none;
  opacity: 0.5;
}

.form-check-input:disabled ~ .form-check-label,
.form-check-input[disabled] ~ .form-check-label {
  opacity: 0.5;
}

/* Form check label */
.form-check-label {
  margin-bottom: 0;
  font-weight: 500;
  cursor: pointer;
}

/* Form check inline */
.form-check-inline {
  display: inline-block;
  margin-right: 1rem;
}

/* Form switch */
.form-switch {
  padding-left: 2.5rem;
}

.form-switch .form-check-input {
  width: 2em;
  margin-left: -2.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
  background-position: left center;
  border-radius: 2em;
  transition: background-position 0.15s ease-in-out;
}

.form-switch .form-check-input:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%238b9dc3'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
  background-position: right center;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Form select */
.form-select {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.5rem 2.25rem 0.5rem 1rem;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg-light);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  appearance: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Form select focus */
.form-select:focus {
  border-color: var(--color-primary);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15);
}

/* Form select disabled */
.form-select:disabled {
  background-color: var(--color-bg-dark);
  opacity: 1;
  cursor: not-allowed;
}

/* Form select small */
.form-select-sm {
  min-height: 2.5rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  padding-left: 0.75rem;
  font-size: 0.875rem;
  border-radius: calc(var(--border-radius) - 2px);
}

/* Form select large */
.form-select-lg {
  min-height: 3.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 1.25rem;
  font-size: 1.125rem;
  border-radius: calc(var(--border-radius) + 2px);
}

/* Form validation */
.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: var(--color-success);
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid:focus,
.form-control.is-valid:focus {
  border-color: var(--color-success);
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: var(--color-error);
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.25);
}

/* Form validation feedback */
.valid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: var(--color-success);
}

.was-validated :valid ~ .valid-feedback,
.is-valid ~ .valid-feedback,
.was-validated :valid ~ .valid-tooltip,
.is-valid ~ .valid-tooltip {
  display: block;
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: var(--color-error);
}

.was-validated :invalid ~ .invalid-feedback,
.is-invalid ~ .invalid-feedback,
.was-validated :invalid ~ .invalid-tooltip,
.is-invalid ~ .invalid-tooltip {
  display: block;
}

/* Form group with icon */
.form-group--icon {
  position: relative;
}

.form-group--icon .form-control {
  padding-left: 2.5rem;
}

.form-group--icon .form-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--color-text-light);
  pointer-events: none;
}

.form-group--icon-right .form-control {
  padding-right: 2.5rem;
  padding-left: 1rem;
}

.form-group--icon-right .form-icon {
  left: auto;
  right: 1rem;
}

/* ==========================================================================
   #UTILITIES
   ========================================================================== */

/**
 * Text utilities
 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }
.text-nowrap { white-space: nowrap; }
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Text colors */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-info { color: var(--color-info); }
.text-muted { color: var(--color-text-light); }

/* Background colors */
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-success { background-color: var(--color-success); }
.bg-warning { background-color: var(--color-warning); }
.bg-error { color: var(--color-error); }
.bg-info { color: var(--color-info); }
.bg-light { background-color: var(--color-bg-light); }
.bg-dark { background-color: var(--color-bg-dark); }

/* Spacing utilities */
/* Margin */
.m-0 { margin: 0; }
.m-1 { margin: var(--spacing-xs); }
.m-2 { margin: var(--spacing-sm); }
.m-3 { margin: var(--spacing-md); }
.m-4 { margin: var(--spacing-lg); }
.m-5 { margin: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: var(--spacing-xs); }
.mr-2 { margin-right: var(--spacing-sm); }
.mr-3 { margin-right: var(--spacing-md); }
.mr-4 { margin-right: var(--spacing-lg); }
.mr-5 { margin-right: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: var(--spacing-xs); }
.ml-2 { margin-left: var(--spacing-sm); }
.ml-3 { margin-left: var(--spacing-md); }
.ml-4 { margin-left: var(--spacing-lg); }
.ml-5 { margin-left: var(--spacing-xl); }

.mx-0 { margin-left: 0; margin-right: 0; }
.mx-1 { margin-left: var(--spacing-xs); margin-right: var(--spacing-xs); }
.mx-2 { margin-left: var(--spacing-sm); margin-right: var(--spacing-sm); }
.mx-3 { margin-left: var(--spacing-md); margin-right: var(--spacing-md); }
.mx-4 { margin-left: var(--spacing-lg); margin-right: var(--spacing-lg); }
.mx-5 { margin-left: var(--spacing-xl); margin-right: var(--spacing-xl); }

.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: var(--spacing-xs); margin-bottom: var(--spacing-xs); }
.my-2 { margin-top: var(--spacing-sm); margin-bottom: var(--spacing-sm); }
.my-3 { margin-top: var(--spacing-md); margin-bottom: var(--spacing-md); }
.my-4 { margin-top: var(--spacing-lg); margin-bottom: var(--spacing-lg); }
.my-5 { margin-top: var(--spacing-xl); margin-bottom: var(--spacing-xl); }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--spacing-xs); }
.pt-2 { padding-top: var(--spacing-sm); }
.pt-3 { padding-top: var(--spacing-md); }
.pt-4 { padding-top: var(--spacing-lg); }
.pt-5 { padding-top: var(--spacing-xl); }

.pr-0 { padding-right: 0; }
.pr-1 { padding-right: var(--spacing-xs); }
.pr-2 { padding-right: var(--spacing-sm); }
.pr-3 { padding-right: var(--spacing-md); }
.pr-4 { padding-right: var(--spacing-lg); }
.pr-5 { padding-right: var(--spacing-xl); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--spacing-xs); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pb-4 { padding-bottom: var(--spacing-lg); }
.pb-5 { padding-bottom: var(--spacing-xl); }

.pl-0 { padding-left: 0; }
.pl-1 { padding-left: var(--spacing-xs); }
.pl-2 { padding-left: var(--spacing-sm); }
.pl-3 { padding-left: var(--spacing-md); }
.pl-4 { padding-left: var(--spacing-lg); }
.pl-5 { padding-left: var(--spacing-xl); }

.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: var(--spacing-xs); padding-right: var(--spacing-xs); }
.px-2 { padding-left: var(--spacing-sm); padding-right: var(--spacing-sm); }
.px-3 { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.px-4 { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }
.px-5 { padding-left: var(--spacing-xl); padding-right: var(--spacing-xl); }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: var(--spacing-xs); padding-bottom: var(--spacing-xs); }
.py-2 { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-3 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-4 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-5 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

/* Display utilities */
.d-none { display: none; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }

/* Flex utilities */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-column-reverse { flex-direction: column-reverse; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-wrap-reverse { flex-wrap: wrap-reverse; }

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

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

.align-content-start { align-content: flex-start; }
.align-content-end { align-content: flex-end; }
.align-content-center { align-content: center; }
.align-content-between { align-content: space-between; }
.align-content-around { align-content: space-around; }
.align-content-stretch { align-content: stretch; }

.align-self-auto { align-self: auto; }
.align-self-start { align-self: flex-start; }
.align-self-end { align-self: flex-end; }
.align-self-center { align-self: center; }
.align-self-baseline { align-self: baseline; }
.align-self-stretch { align-self: stretch; }

.flex-fill { flex: 1 1 auto; }
.flex-grow-0 { flex-grow: 0; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-shrink-1 { flex-shrink: 1; }

/* Float utilities */
.float-start { float: left; }
.float-end { float: right; }
.float-none { float: none; }

/* Position utilities */
.position-static { position: static; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

/* Sizing utilities */
.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }
.w-auto { width: auto; }

.h-25 { height: 25%; }
.h-50 { height: 50%; }
.h-75 { height: 75%; }
.h-100 { height: 100%; }
.h-auto { height: auto; }

.mw-100 { max-width: 100%; }
.mh-100 { max-height: 100%; }

.vw-100 { width: 100vw; }
.vh-100 { height: 100vh; }

/* Border utilities */
.border { border: 1px solid var(--color-border); }
.border-0 { border: 0; }
.border-top { border-top: 1px solid var(--color-border); }
.border-end { border-right: 1px solid var(--color-border); }
.border-bottom { border-bottom: 1px solid var(--color-border); }
.border-start { border-left: 1px solid var(--color-border); }

.border-primary { border-color: var(--color-primary); }
.border-secondary { border-color: var(--color-secondary); }
.border-success { border-color: var(--color-success); }
.border-warning { border-color: var(--color-warning); }
.border-error { border-color: var(--color-error); }
.border-info { border-color: var(--color-info); }
.border-light { border-color: var(--color-bg-light); }
.border-dark { border-color: var(--color-bg-darker); }

.rounded { border-radius: var(--border-radius); }
.rounded-0 { border-radius: 0; }
.rounded-1 { border-radius: var(--border-radius-sm); }
.rounded-2 { border-radius: var(--border-radius); }
.rounded-3 { border-radius: var(--border-radius-lg); }
.rounded-4 { border-radius: var(--border-radius-xl); }
.rounded-5 { border-radius: var(--border-radius-xxl); }
.rounded-circle { border-radius: 50%; }
.rounded-pill { border-radius: 50rem; }

/* Shadow utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }

/* Opacity utilities */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Overflow utilities */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }

/* Text overflow */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Visibility utilities */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Z-index utilities */
.z-0 { z-index: 0; }
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }
.z-4 { z-index: 4; }
.z-5 { z-index: 5; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-auto { z-index: auto; }

/* ==========================================================================
   #RESPONSIVE UTILITIES
   ========================================================================== */

/**
 * Responsive breakpoints based on Bootstrap's breakpoints
 */

/* X-Small devices (portrait phones, less than 576px) */
/* No media query for `xs` since this is the default */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .d-sm-none { display: none; }
  .d-sm-inline { display: inline; }
  .d-sm-inline-block { display: inline-block; }
  .d-sm-block { display: block; }
  .d-sm-flex { display: flex; }
  .d-sm-inline-flex { display: inline-flex; }
  .d-sm-grid { display: grid; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .d-md-none { display: none; }
  .d-md-inline { display: inline; }
  .d-md-inline-block { display: inline-block; }
  .d-md-block { display: block; }
  .d-md-flex { display: flex; }
  .d-md-inline-flex { display: inline-flex; }
  .d-md-grid { display: grid; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .d-lg-none { display: none; }
  .d-lg-inline { display: inline; }
  .d-lg-inline-block { display: inline-block; }
  .d-lg-block { display: block; }
  .d-lg-flex { display: flex; }
  .d-lg-inline-flex { display: inline-flex; }
  .d-lg-grid { display: grid; }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .d-xl-none { display: none; }
  .d-xl-inline { display: inline; }
  .d-xl-inline-block { display: inline-block; }
  .d-xl-block { display: block; }
  .d-xl-flex { display: flex; }
  .d-xl-inline-flex { display: inline-flex; }
  .d-xl-grid { display: grid; }
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .d-xxl-none { display: none; }
  .d-xxl-inline { display: inline; }
  .d-xxl-inline-block { display: inline-block; }
  .d-xxl-block { display: block; }
  .d-xxl-flex { display: flex; }
  .d-xxl-inline-flex { display: inline-flex; }
  .d-xxl-grid { display: grid; }
}

/* Print utilities */
@media print {
  .d-print-none { display: none; }
  .d-print-inline { display: inline; }
  .d-print-inline-block { display: inline-block; }
  .d-print-block { display: block; }
  .d-print-flex { display: flex; }
  .d-print-inline-flex { display: inline-flex; }
  .d-print-grid { display: grid; }
}
.mr-0 { margin-right: 0; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; }
.pr-0 { padding-right: 0; }

/* Responsive Utilities */
.hidden-sm { display: none; }
.visible-sm { display: block; }

@media (min-width: 768px) {
  .hidden-sm { display: block; }
  .visible-sm { display: none; }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

/* Print Styles */
@media print {
  body {
    background: none;
    color: #000;
  }
  
  .no-print {
    display: none !important;
  }
  
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }
}
/* Header Styles */
header.site {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.site .container {
  margin: 0 auto;
  padding: 0 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

nav .links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5rem 0;
}

nav a {
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  color: #e2e8f0;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-2px);
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

/* Logo/Brand Styling */
header.site .logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.5rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
}

header.site .logo:hover {
  transform: translateY(-2px);
  text-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Main Content Styling */
.main-content {
  padding: 4rem 0;
  animation: fadeIn 0.6s ease-out;
}

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

/* Card Styling */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin: 1rem 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* All button styles have been moved to the #BUTTONS section at the top of the file */

/* Section Styling */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  left: 20%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  /* Button responsive styles are in the #BUTTONS section */
  /* Removed duplicate button styles */
}

.progress{width:100%; height:6px; background:var(--primary-50); border-radius:999px; overflow:hidden; margin:1rem 0 2rem;}

.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

/* Step Styling */
.step {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}

.step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Airplane Animation */
#backgroundAirplanes .airplane {
  position: fixed;
  width: 5rem;
  height: 5rem;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0) 70%);
  animation: drift 18s linear infinite;
  border-radius: 50%;
}

@keyframes drift {
  0% {
    transform: translateX(-10vw) translateY(40vh) rotate(-30deg);
    opacity: 0;
  }
  10% {
    opacity: 0.25;
  }
  90% {
    opacity: 0.25;
  }
  100% {
    transform: translateX(110vw) translateY(5vh) rotate(-30deg);
    opacity: 0;
  }
}

/* Footer Styles */
footer.site {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  padding: 3rem 1rem 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

footer.site::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
}

/* Footer container styles consolidated above */

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.footer-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.footer-nav a:hover::after {
  width: 60%;
}

.footer-extra {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-extra a {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-extra a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  nav .links {
    justify-content: center;
    padding: 0.5rem 0;
  }
  
  .footer-nav {
    gap: 0.5rem;
  }
  
  .footer-nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}

input, select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

label {
  display: block;
  margin: 0.4rem 0;
}

h1 {
  margin: 0 0 0.6rem;
}

.site-footer {
  background: #000;
  color: #ccc;
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #ccc;
  text-decoration: none;
  margin-right: 1rem;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-container {
  width: min(1100px, 94vw);
  margin: 0 auto;
}

/* Footer nav styles consolidated above */

/* Footer copy styles consolidated above */
