/* MM Medic Design System - PostCSS Entry Point */

/* Base */

/* MM Medic Design System Variables */

:root {
  /* Brand Colors - Red, Gray, White */
  --brand-red-primary: #ED1C24;
  --brand-red-dark: #D11920;
  --brand-red-darker: #B5161C;
  --brand-red-light: #F04951;
  --brand-red-lighter: #F3767E;
  --brand-red-lightest: #FDF2F2;

  --brand-gray-900: #111827;
  --brand-gray-800: #1F2937;
  --brand-gray-700: #374151;
  --brand-gray-600: #4B5563;
  --brand-gray-500: #6B7280;
  --brand-gray-400: #9CA3AF;
  --brand-gray-300: #D1D5DB;
  --brand-gray-200: #E5E7EB;
  --brand-gray-100: #F3F4F6;
  --brand-gray-50: #F9FAFB;
  --brand-white: #FFFFFF;

  /* Semantic Colors */
  --color-success: #10B981;
  --color-success-light: #34D399;
  --color-success-dark: #059669;
  --color-success-bg: #D1FAE5;

  --color-warning: #F59E0B;
  --color-warning-light: #FBBF24;
  --color-warning-dark: #D97706;
  --color-warning-bg: #FEF3C7;

  --color-error: #ED1C24;
  --color-error-light: #F04951;
  --color-error-dark: #D11920;
  --color-error-bg: #FDF2F2;

  --color-info: #3B82F6;
  --color-info-light: #60A5FA;
  --color-info-dark: #2563EB;
  --color-info-bg: #DBEAFE;

  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, '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 */
  --font-size-6xl: 3.75rem;    /* 60px */
  --font-size-7xl: 4.5rem;     /* 72px */
  --font-size-8xl: 6rem;       /* 96px */
  --font-size-9xl: 8rem;       /* 128px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;

  /* Spacing */
  --spacing-1: 0.25rem;    /* 4px */
  --spacing-2: 0.5rem;     /* 8px */
  --spacing-3: 0.75rem;    /* 12px */
  --spacing-4: 1rem;       /* 16px */
  --spacing-5: 1.25rem;    /* 20px */
  --spacing-6: 1.5rem;     /* 24px */
  --spacing-8: 2rem;       /* 32px */
  --spacing-10: 2.5rem;    /* 40px */
  --spacing-12: 3rem;      /* 48px */
  --spacing-16: 4rem;      /* 64px */
  --spacing-20: 5rem;      /* 80px */
  --spacing-24: 6rem;      /* 96px */

  /* Icon Sizes */
  --icon-size-xs: 1rem;      /* 16px */
  --icon-size-sm: 1.25rem;   /* 20px */
  --icon-size-base: 1.5rem;  /* 24px */
  --icon-size-md: 2rem;      /* 32px */
  --icon-size-lg: 2.5rem;    /* 40px */
  --icon-size-xl: 3rem;      /* 48px */
  --icon-size-2xl: 3.5rem;   /* 56px */

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;    /* 2px */
  --radius-base: 0.25rem;   /* 4px */
  --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;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Text Shadows */
  --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  /* Red Shadows - Glow Effects */
  --shadow-red-subtle: 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
  --shadow-red-medium: 0 0 12px rgba(237, 28, 36, 0.2), 0 4px 12px rgba(237, 28, 36, 0.1);
  --shadow-red-strong: 0 0 16px rgba(237, 28, 36, 0.25), 0 6px 16px rgba(237, 28, 36, 0.15);

  /* Success (Green) Shadows - Glow Effects */
  --shadow-success-subtle: 0 0 8px rgba(16, 185, 129, 0.15), 0 2px 8px rgba(16, 185, 129, 0.08);
  --shadow-success-medium: 0 0 12px rgba(16, 185, 129, 0.2), 0 4px 12px rgba(16, 185, 129, 0.1);
  --shadow-success-strong: 0 0 16px rgba(16, 185, 129, 0.25), 0 6px 16px rgba(16, 185, 129, 0.15);

  /* Warning (Yellow) Shadows - Glow Effects */
  --shadow-warning-subtle: 0 0 8px rgba(245, 158, 11, 0.15), 0 2px 8px rgba(245, 158, 11, 0.08);
  --shadow-warning-medium: 0 0 12px rgba(245, 158, 11, 0.2), 0 4px 12px rgba(245, 158, 11, 0.1);
  --shadow-warning-strong: 0 0 16px rgba(245, 158, 11, 0.25), 0 6px 16px rgba(245, 158, 11, 0.15);

  /* Button specific colors and effects */
  --button-hover-overlay: rgba(0, 0, 0, 0.05);
  --button-active-overlay: rgba(0, 0, 0, 0.1);
  --button-divider: rgba(255, 255, 255, 0.2);
  --button-ghost-hover: var(--brand-gray-100);
  --button-ghost-active: rgba(237, 28, 36, 0.08);
  --button-soft-primary-bg: rgba(237, 28, 36, 0.1);
  --button-soft-primary-hover: rgba(237, 28, 36, 0.15);
  --button-soft-success-hover: rgba(16, 185, 129, 0.15);
  --button-soft-destructive-hover: rgba(237, 28, 36, 0.15);
  --gradient-red-deep: linear-gradient(135deg, var(--brand-red-darker) 0%, #A0141A 100%);
  --gradient-red-darker: linear-gradient(135deg, var(--brand-red-darker) 0%, #9B1318 100%);
  --gradient-success-deep: linear-gradient(135deg, var(--color-success-dark) 0%, #047857 100%);

  /* Badge specific colors */
  --badge-primary-soft-bg: rgba(237, 28, 36, 0.1);
  --badge-primary-soft-border: rgba(237, 28, 36, 0.2);
  --badge-success-soft-border: rgba(16, 185, 129, 0.2);
  --badge-warning-soft-border: rgba(245, 158, 11, 0.2);
  --badge-error-soft-border: rgba(237, 28, 36, 0.2);
  --badge-info-soft-border: rgba(59, 130, 246, 0.2);
  --badge-remove-hover: rgba(255, 255, 255, 0.2);

  /* Navigation specific colors */
  --nav-active-bg: rgba(237, 28, 36, 0.1);
  --nav-overlay: rgba(0, 0, 0, 0.3);
  --nav-active-light: rgba(237, 28, 36, 0.05);

  /* Alert specific colors */
  --alert-backdrop: rgba(255, 255, 255, 0.8);
  --alert-backdrop-solid: rgba(255, 255, 255, 1);
  --alert-success-bg: rgba(209, 250, 229, 0.9);
  --alert-success-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
  --alert-warning-bg: rgba(254, 243, 199, 0.9);
  --alert-warning-shadow: 0 4px 16px rgba(245, 158, 11, 0.1);
  --alert-error-bg: rgba(254, 226, 226, 0.9);
  --alert-error-shadow: 0 4px 16px rgba(237, 28, 36, 0.1);
  --alert-info-bg: rgba(219, 234, 254, 0.9);
  --alert-info-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
  --alert-critical-bg: rgba(254, 242, 242, 0.9);
  --alert-critical-glow: 0 0 20px rgba(237, 28, 36, 0.4);

  /* Modal specific colors */
  --modal-overlay: rgba(0, 0, 0, 0.5);

  /* Lightbox specific colors and effects */
  --lightbox-overlay: rgba(0, 0, 0, 0.85);
  --lightbox-blur: blur(12px);
  --lightbox-nav-size: 48px;
  --lightbox-nav-bg: rgba(255, 255, 255, 0.15);
  --lightbox-nav-hover-bg: rgba(255, 255, 255, 0.25);
  --lightbox-caption-bg: rgba(0, 0, 0, 0.7);
  --lightbox-caption-blur: blur(8px);

  /* Focus Ring */
  --focus-ring: 0 0 0 3px rgba(237, 28, 36, 0.15);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-lightbox: 1065;
  --z-tooltip: 1070;

  /* Breakpoints (for reference in CSS) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* Content width constraints for readability */
  --prose-width: 65ch;  /* Optimal line length: 45-75 characters per line */
  --prose-width-narrow: 45ch;
  --prose-width-wide: 75ch;

  /* Medical/Healthcare specific variables */
  --medical-cross-color: var(--brand-red-primary);
  --medical-bg-sterile: var(--brand-gray-50);
  --medical-border-clean: var(--brand-gray-200);
  --medical-text-professional: var(--brand-gray-700);
}

/* MM Medic CSS Reset - Modern Normalize */

/* Box sizing rules */

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

/* Remove default margin and padding */

* {
  margin: 0;
  padding: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */

html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */

html,
body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--font-family-base);
  line-height: 1.5;
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Remove default button styles */

button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}

/* Remove default link styles */

a {
  color: inherit;
  text-decoration: inherit;
}

/* Make images easier to work with */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts for inputs and buttons */

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove default textarea resize */

textarea {
  resize: vertical;
}

/* Remove default input styles */

input,
textarea,
select {
  background: none;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Remove default fieldset and legend styles */

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  padding: 0;
  display: table;
}

/* Remove default table styles */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default hr styles */

hr {
  border: none;
  height: 1px;
  background: #E5E7EB;
  background: var(--brand-gray-200);
  margin: 1rem 0;
  margin: var(--spacing-4) 0;
}

/* Remove default blockquote styles */

blockquote {
  margin: 0;
  padding: 0;
}

/* Remove default address styles */

address {
  font-style: normal;
}

/* Remove default abbr styles */

abbr[title] {
  text-decoration: none;
  border-bottom: 1px dotted #9CA3AF;
  border-bottom: 1px dotted var(--brand-gray-400);
  cursor: help;
}

/* Remove default strong/bold styles - will be defined in typography */

strong,
b {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

/* Remove default em/italic styles */

em,
i {
  font-style: italic;
}

/* Remove default small styles */

small {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

/* Remove default code styles */

code,
kbd,
samp,
pre {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-family: var(--font-family-mono);
  font-size: 0.9em;
}

/* Remove default mark styles */

mark {
  background: #FEF3C7;
  background: var(--color-warning-bg);
  color: #111827;
  color: var(--brand-gray-900);
  padding: 0.1em 0.2em;
}

/* Remove default sub/sup styles */

sub,
sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Focus styles for accessibility */

:focus-visible {
  outline: 2px solid #ED1C24;
  outline: 2px solid var(--brand-red-primary);
  outline-offset: 2px;
}

/* Remove focus styles for mouse users */

:focus:not(:focus-visible) {
  outline: none;
}

/* Media query for reduced motion */

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print styles */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  pre,
  blockquote {
    border: 1px solid #9CA3AF;
    border: 1px solid var(--brand-gray-400);
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* MM Medic Typography - System Font Only */

/* Base Typography - Clean Modern Foundation */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #374151;
  color: var(--brand-gray-700);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  font-weight: 400;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero Titles - Two-Color Design */

.hero-title {
  font-size: 3rem;
  font-size: var(--font-size-5xl);
  font-weight: 600;
  line-height: 1.25;
  line-height: var(--line-height-tight);
  letter-spacing: -0.025em;
  letter-spacing: var(--tracking-tight);
  margin: 0;
  font-feature-settings: "kern" 1, "liga" 1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.hero-title__primary {
  color: #111827;
  color: var(--brand-gray-900);
}

.hero-title__accent {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Large Hero Variants */

.hero-title--large {
  font-size: 3.75rem;
  font-size: var(--font-size-6xl);
  font-weight: 500;
  letter-spacing: -0.05em;
  letter-spacing: var(--tracking-tighter);
}

.hero-title--xl {
  font-size: 4.5rem;
  font-size: var(--font-size-7xl);
  font-weight: 400;
  letter-spacing: -0.05em;
  letter-spacing: var(--tracking-tighter);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
    font-size: var(--font-size-4xl);
  }
  .hero-title--large {
    font-size: 3rem;
    font-size: var(--font-size-5xl);
  }
  .hero-title--xl {
    font-size: 3.75rem;
    font-size: var(--font-size-6xl);
  }
}

/* Headings - Clean Minimalist Style */

.heading-1 {
  font-size: 2.25rem;
  font-size: var(--font-size-4xl);
  font-weight: 500;
  line-height: 1.25;
  line-height: var(--line-height-tight);
  letter-spacing: -0.025em;
  letter-spacing: var(--tracking-tight);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 1.5rem 0;
  margin: 0 0 var(--spacing-6) 0;
  font-feature-settings: "kern" 1;
}

.heading-2 {
  font-size: 1.875rem;
  font-size: var(--font-size-3xl);
  font-weight: 500;
  line-height: 1.25;
  line-height: var(--line-height-tight);
  letter-spacing: -0.025em;
  letter-spacing: var(--tracking-tight);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 1.25rem 0;
  margin: 0 0 var(--spacing-5) 0;
  font-feature-settings: "kern" 1;
}

.heading-3 {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 500;
  line-height: 1.5;
  line-height: var(--line-height-normal);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 1rem 0;
  margin: 0 0 var(--spacing-4) 0;
  font-feature-settings: "kern" 1;
}

.heading-4 {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 500;
  line-height: 1.5;
  line-height: var(--line-height-normal);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 1rem 0;
  margin: 0 0 var(--spacing-4) 0;
  font-feature-settings: "kern" 1;
}

.heading-5 {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 500;
  line-height: 1.5;
  line-height: var(--line-height-normal);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.5rem 0;
  margin: 0 0 var(--spacing-2) 0;
  font-feature-settings: "kern" 1;
}

.heading-6 {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  line-height: var(--line-height-normal);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.5rem 0;
  margin: 0 0 var(--spacing-2) 0;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  letter-spacing: var(--tracking-wide);
  font-feature-settings: "kern" 1;
}

/* Body Text - Clean Readable Style */

.text-lead {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0 0 2rem 0;
  margin: 0 0 var(--spacing-8) 0;
  font-weight: 400;
  font-feature-settings: "kern" 1;
}

.text-body {
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  color: #374151;
  color: var(--brand-gray-700);
  margin: 0 0 1rem 0;
  font-weight: 400;
  font-feature-settings: "kern" 1;
}

.text-body-sm {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  line-height: var(--line-height-normal);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0 0 0.75rem 0;
  font-weight: 400;
}

.text-small {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  line-height: var(--line-height-normal);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0 0 0.75rem 0;
  font-weight: 400;
}

.text-caption {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  line-height: 1.5;
  line-height: var(--line-height-normal);
  color: #6B7280;
  color: var(--brand-gray-500);
  margin: 0 0 0.5rem 0;
  font-weight: 400;
}

/* Accent Text */

.text-accent {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.text-accent-dark {
  color: #D11920;
  color: var(--brand-red-dark);
}

/* Text Weights */

.text-light { font-weight: 300; }

.text-normal { font-weight: 400; }

.text-medium { font-weight: 500; }

.text-semibold { font-weight: 600; }

.text-bold { font-weight: 700; }

/* Text Alignment */

.text-left { text-align: left; }

.text-center { text-align: center; }

.text-right { text-align: right; }

/* Letter Spacing */

.tracking-tight { letter-spacing: -0.025em; letter-spacing: var(--tracking-tight); }

.tracking-normal { letter-spacing: 0em; letter-spacing: var(--tracking-normal); }

.tracking-wide { letter-spacing: 0.025em; letter-spacing: var(--tracking-wide); }

/* Line Heights */

.leading-tight { line-height: 1.25; line-height: var(--line-height-tight); }

.leading-normal { line-height: 1.5; line-height: var(--line-height-normal); }

.leading-relaxed { line-height: 1.75; line-height: var(--line-height-relaxed); }

/* Special Effects */

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-shadow: var(--text-shadow);
}

/* Lists */

.list-medical {
  list-style: none;
  padding-left: 0;
}

.list-medical li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #374151;
  color: var(--brand-gray-700);
}

.list-medical li::before {
  content: "*";
  color: #ED1C24;
  color: var(--brand-red-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Quotes */

.quote {
  border-left: 4px solid #ED1C24;
  border-left: 4px solid var(--brand-red-primary);
  padding-left: 1.5rem;
  font-style: italic;
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 1.5rem 0;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.quote-author {
  font-style: normal;
  font-weight: 500;
  color: #111827;
  color: var(--brand-gray-900);
  margin-top: 0.5rem;
  font-size: var(--text-base);
}

.quote-author::before {
  content: "*";
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Links */

.link {
  color: #ED1C24;
  color: var(--brand-red-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.2s ease;
}

.link:hover {
  text-decoration-color: #ED1C24;
  text-decoration-color: var(--brand-red-primary);
  color: #D11920;
  color: var(--brand-red-dark);
}

/* Code */

.code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  background: #F9FAFB;
  background: var(--brand-gray-50);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border-radius: var(--radius-base);
  font-size: 0.875em;
  color: #1F2937;
  color: var(--brand-gray-800);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
}

/* Responsive Typography */

@media (max-width: 640px) {
  .heading-1 { font-size: 1.875rem; font-size: var(--font-size-3xl); }
  .heading-2 { font-size: 1.5rem; font-size: var(--font-size-2xl); }
  .heading-3 { font-size: 1.25rem; font-size: var(--font-size-xl); }
  .text-lead { font-size: 1rem; font-size: var(--font-size-base); }
}

/* MM Medic Utility Classes - Semantic Spacing */

/* Content Spacing - 28:>@8AB>2C20B8 70<VABL mb-* :;0AV2 */

.hero-section {
  margin-bottom: 3rem;
  margin-bottom: var(--spacing-12);
}

.section-spacing {
  margin-bottom: 2rem;
  margin-bottom: var(--spacing-8);
}

.block-spacing {
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.element-spacing {
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.micro-spacing {
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

/* Feature Icons Container */

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  margin: 0 auto var(--spacing-6) auto;
}

/* Event Cards Date Badge */

.event-date-spacing {
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

/* Protocol Cards Title Spacing */

.protocol-title-spacing {
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

/* Statistics Section */

.stats-number-spacing {
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

/* ============================================
   VISIBILITY UTILITIES
   ============================================ */

/* Hidden - visually hidden but accessible to screen readers */

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

/* Hidden - completely hidden from display */

.hidden {
  display: none !important;
}

/* Visible states */

.visible {
  display: block !important;
}

.visible--flex {
  display: flex !important;
}

.visible--inline {
  display: inline !important;
}

.visible--inline-block {
  display: inline-block !important;
}

/* ============================================
   STATE UTILITIES (for JavaScript classList manipulation)
   ============================================ */

/* Loading/Disabled states */

.is-loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Active/Inactive states */

.is-active {
  /* Override per component */
}

.is-inactive {
  opacity: 0.5;
}

/* Overflow control for modals/overlays */

.overflow-hidden {
  overflow: hidden;
}

.overflow-visible {
  overflow: visible;
}

/* Rotation states (for arrows, toggles) */

.rotate-0 {
  transform: rotate(0deg);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-base);
}

.rotate-90 {
  transform: rotate(90deg);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-base);
}

.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-base);
}

/* Utilities */

/* ==========================================================================
   Helper Utilities
   ========================================================================== */

/**
 * Helper classes for common patterns that need to be controlled via JavaScript
 * These utilities are meant to be toggled with classList operations
 */

/* Body scroll control */

.no-scroll {
    overflow: hidden;
}

/* Icon sizing helpers */

.icon--inline {
    width: 16px;
    height: 16px;
}

.icon--xs {
    width: 12px;
    height: 12px;
}

.icon--sm {
    width: 16px;
    height: 16px;
}

.icon--md {
    width: 20px;
    height: 20px;
}

.icon--lg {
    width: 24px;
    height: 24px;
}

/* Visibility helpers */

.hidden {
    display: none;
}

.invisible {
    visibility: hidden;
}

.visible {
    visibility: visible;
}

/* Modal specific helpers */

.modal--active {
    display: flex;
}

.modal__overlay--active {
    display: block;
}

.modal__content--md {
    max-width: 600px;
}

/* Payment modal specific helpers */

.payment-retry-modal__footer--hidden {
    display: none;
}

.payment-confirm-modal__footer--hidden {
    display: none;
}

/* Loading state helpers */

.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

.is-processing {
    cursor: wait;
}

/* Text helpers for dynamic content */

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

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

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

.text--muted {
    color: var(--text-secondary);
}

/* Button state helpers */

.btn--loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn--loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Form field state helpers */

.field--error {
    border-color: var(--danger-500);
}

.field--success {
    border-color: var(--success-500);
}

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

/* Content state helpers */

.content--loading {
    position: relative;
    min-height: 100px;
}

.content--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 3px solid var(--primary-100);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Table row state helpers */

.table__row--processing {
    background-color: var(--warning-50);
}

.table__row--success {
    background-color: var(--success-50);
}

.table__row--error {
    background-color: var(--danger-50);
}

/* Card state helpers */

.card--loading {
    pointer-events: none;
    opacity: 0.6;
}

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

/* Notification helpers */

.notification--visible {
    display: block;
}

.notification--hidden {
    display: none;
}

/* Overlay helpers */

.overlay--active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Dropdown helpers */

.dropdown--open {
    display: block;
}

.dropdown--closed {
    display: none;
}

/* Accordion helpers */

.accordion__content--expanded {
    display: block;
}

.accordion__content--collapsed {
    display: none;
}

/* Tab panel helpers */

.tab__panel--active {
    display: block;
}

.tab__panel--inactive {
    display: none;
}

/* Responsive helpers */

@media (max-width: 768px) {
    .mobile--hidden {
        display: none;
    }
}

@media (min-width: 769px) {
    .desktop--hidden {
        display: none;
    }
}

/* Print helpers */

@media print {
    .print--hidden {
        display: none;
    }
}

/* Components */

/* MM Medic Button Components */

:root {
  /* Button-specific Variables */
  --btn-border-radius: var(--radius-full);
  --btn-font-weight: var(--font-weight-medium);
  --btn-letter-spacing: -0.011em;
  --btn-transition: all var(--transition-fast);
}

/* Base Button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  border-radius: var(--btn-border-radius);
  font-weight: 500;
  font-weight: var(--btn-font-weight);
  letter-spacing: -0.011em;
  letter-spacing: var(--btn-letter-spacing);
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: var(--btn-transition);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--font-family-base);
}

.btn:focus {
  outline: none;
}

.btn:active {
  transform: translateY(1px);
}

/* Padding Modifiers - for explicit padding control */

.btn--no-padding {
  padding: 0;
}

.btn--padding-xs {
  padding: 0.25rem 0.5rem;
  padding: var(--spacing-1) var(--spacing-2);
}

.btn--padding-sm {
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
}

.btn--padding-md {
  padding: 0.5rem 1rem;
  padding: var(--spacing-2) var(--spacing-4);
}

.btn--padding-lg {
  padding: 0.75rem 1.25rem;
  padding: var(--spacing-3) var(--spacing-5);
}

.btn--padding-xl {
  padding: 1rem 1.5rem;
  padding: var(--spacing-4) var(--spacing-6);
}

/* Sizes - includes both padding and font size */

.btn--xs {
  padding: 0.25rem 0.5rem;
  padding: var(--spacing-1) var(--spacing-2);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

.btn--sm {
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  line-height: var(--line-height-normal);
}

.btn--md {
  padding: 0.5rem 1rem;
  padding: var(--spacing-2) var(--spacing-4);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  line-height: var(--line-height-normal);
}

.btn--lg {
  padding: 0.75rem 1.25rem;
  padding: var(--spacing-3) var(--spacing-5);
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: 1.5;
  line-height: var(--line-height-normal);
}

.btn--xl {
  padding: 1rem 1.5rem;
  padding: var(--spacing-4) var(--spacing-6);
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  line-height: 1.5;
  line-height: var(--line-height-normal);
}

/* Primary - Brand Red with Glow */

.btn--primary {
  background: linear-gradient(90deg, #ED1C24 0%, #D11920 25%, #ED1C24 50%, #D11920 75%, #ED1C24 100%);
  background: linear-gradient(90deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 25%, var(--brand-red-primary) 50%, var(--brand-red-dark) 75%, var(--brand-red-primary) 100%);
  background-size: 400% 100%;
  color: #FFFFFF;
  color: var(--brand-white);
  box-shadow: 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
  box-shadow: var(--shadow-red-subtle);
  animation: wave-gradient 24s ease-in-out infinite;
}

@keyframes wave-gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.btn--primary:hover {
  background: linear-gradient(90deg, #ED1C24 0%, #D11920 25%, #ED1C24 50%, #D11920 75%, #ED1C24 100%);
  background: linear-gradient(90deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 25%, var(--brand-red-primary) 50%, var(--brand-red-dark) 75%, var(--brand-red-primary) 100%);
  background-size: 400% 100%;
  animation: wave-gradient 9s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(237, 28, 36, 0.25), 0 6px 16px rgba(237, 28, 36, 0.15);
  box-shadow: var(--shadow-red-strong);
  transform: translateY(-1px);
}

.btn--primary:active {
  background: linear-gradient(135deg, #B5161C 0%, #A0141A 100%);
  background: var(--gradient-red-deep);
  box-shadow: 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
  box-shadow: var(--shadow-red-subtle);
  transform: translateY(0);
}

/* Secondary - Brand Gray */

.btn--secondary {
  background: #FFFFFF;
  background: var(--brand-white);
  color: #374151;
  color: var(--brand-gray-700);
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-color: #D1D5DB;
  border-color: var(--brand-gray-300);
  color: #111827;
  color: var(--brand-gray-900);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn--secondary:active {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
  transform: translateY(0);
}

/* Success - Clean Green */

.btn--success {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  background: linear-gradient(135deg, var(--color-success-light) 0%, var(--color-success) 100%);
  color: #FFFFFF;
  color: var(--brand-white);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
}

.btn--success:hover {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn--success:active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  background: var(--gradient-success-deep);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
  transform: translateY(0);
}

/* Destructive - Clean Red */

.btn--destructive {
  background: linear-gradient(135deg, #F04951 0%, #D11920 100%);
  background: linear-gradient(135deg, var(--color-error-light) 0%, var(--color-error-dark) 100%);
  color: #FFFFFF;
  color: var(--brand-white);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
}

.btn--destructive:hover {
  background: linear-gradient(135deg, #D11920 0%, #B5161C 100%);
  background: linear-gradient(135deg, var(--color-error-dark) 0%, var(--brand-red-darker) 100%);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn--destructive:active {
  background: linear-gradient(135deg, #B5161C 0%, #9B1318 100%);
  background: var(--gradient-red-darker);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
  transform: translateY(0);
}

/* Ghost - Transparent */

.btn--ghost {
  background: transparent;
  color: #6B7280;
  color: var(--brand-gray-500);
  border: none;
}

.btn--ghost:hover {
  background: #F3F4F6;
  background: var(--button-ghost-hover);
  color: #374151;
  color: var(--brand-gray-700);
}

.btn--ghost:active {
  background: rgba(237, 28, 36, 0.08);
  background: var(--button-ghost-active);
}

/* Outline Variants */

.btn--outline-primary {
  background: transparent;
  color: #ED1C24;
  color: var(--brand-red-primary);
  border: 1px solid #ED1C24;
  border: 1px solid var(--brand-red-primary);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
}

.btn--outline-primary:hover {
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn--outline-secondary {
  background: transparent;
  color: #6B7280;
  color: var(--brand-gray-500);
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
}

.btn--outline-secondary:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #374151;
  color: var(--brand-gray-700);
  border-color: #6B7280;
  border-color: var(--brand-gray-500);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

/* Soft Variants */

.btn--soft-primary {
  background: rgba(237, 28, 36, 0.1);
  background: var(--button-soft-primary-bg);
  color: #ED1C24;
  color: var(--brand-red-primary);
  border: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
}

.btn--soft-primary:hover {
  background: rgba(237, 28, 36, 0.15);
  background: var(--button-soft-primary-hover);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn--soft-success {
  background: #D1FAE5;
  background: var(--color-success-bg);
  color: #059669;
  color: var(--color-success-dark);
  border: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
}

.btn--soft-success:hover {
  background: rgba(16, 185, 129, 0.15);
  background: var(--button-soft-success-hover);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn--soft-destructive {
  background: #FDF2F2;
  background: var(--color-error-bg);
  color: #D11920;
  color: var(--color-error-dark);
  border: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
}

.btn--soft-destructive:hover {
  background: rgba(237, 28, 36, 0.15);
  background: var(--button-soft-destructive-hover);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* Loading State */

.btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn--loading::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: btn-spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes btn-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success State */

.btn--success {
  background: #059669 !important;
  background: var(--color-success-dark) !important;
  color: #FFFFFF !important;
  color: var(--brand-white) !important;
  border-color: #059669 !important;
  border-color: var(--color-success-dark) !important;
  pointer-events: none;
}

/* Error State */

.btn--error {
  background: #D11920 !important;
  background: var(--color-error-dark) !important;
  color: #FFFFFF !important;
  color: var(--brand-white) !important;
  border-color: #D11920 !important;
  border-color: var(--color-error-dark) !important;
  pointer-events: none;
}

/* Disabled State */

.btn:disabled,
.btn--disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Icon Buttons */

.btn--icon-only {
  padding: 8px;
  aspect-ratio: 1;
}

.btn--icon-only.btn--sm {
  padding: 6px;
}

.btn--icon-only.btn--lg {
  padding: 12px;
}

/* Button Groups */

.btn-group {
  display: inline-flex;
  border-radius: 9999px;
  border-radius: var(--btn-border-radius);
  box-shadow: var(--btn-shadow-subtle);
}

.btn-group .btn {
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid var(--button-divider);
}

.btn-group .btn:first-child {
  border-radius: 9999px 0 0 9999px;
  border-radius: var(--btn-border-radius) 0 0 var(--btn-border-radius);
}

.btn-group .btn:last-child {
  border-radius: 0 9999px 9999px 0;
  border-radius: 0 var(--btn-border-radius) var(--btn-border-radius) 0;
  border-right: none;
}

.btn-group .btn:only-child {
  border-radius: 9999px;
  border-radius: var(--btn-border-radius);
  border-right: none;
}

/* Responsive */

@media (max-width: 640px) {
  .btn--responsive {
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
  }
}

/* Button with Badge */

.btn--with-badge {
  position: relative;
  overflow: visible !important;
}

.btn--with-badge .btn__badge {
  position: absolute;
  top: -10px;
  right: -10px;
  min-width: 22px;
  height: 22px;
  padding: 0 0.25rem;
  padding: 0 var(--spacing-1);
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
  font-size: 11px;
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  border: 2px solid var(--brand-white);
  z-index: 20;
}

.btn--with-badge.btn--sm .btn__badge {
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  font-size: 10px;
}

/* Mobile-responsive category buttons with icons */

.btn--category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.btn__icon {
  display: inline-flex;
  flex-shrink: 0;
}

.btn__text {
  display: inline;
}

/* Mobile: show only icons for category buttons */

@media (max-width: 639px) {
  .btn--category .btn__icon--mobile-only {
    display: inline-flex;
  }

  .btn--category .btn__text {
    display: none;
  }

  .btn--category {
    padding: 0.5rem;
    padding: var(--spacing-2);
    min-width: 44px; /* Touch target size */
    min-height: 44px;
    justify-content: center;
  }
}

/* Desktop: hide mobile-only icons, show text */

@media (min-width: 640px) {
  .btn--category .btn__icon--mobile-only {
    display: none;
  }
}

/* Google Sign-In Button */

.btn--google {
  background: #FFFFFF;
  background: var(--brand-white);
  color: #374151;
  color: var(--brand-gray-700);
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
  gap: 0.75rem;
  gap: var(--spacing-3);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.btn--google:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-color: #9CA3AF;
  border-color: var(--brand-gray-400);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn--google:active {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
  transform: translateY(0);
}

.btn--google .btn__icon {
  flex-shrink: 0;
}

/* MM Medic Input Components - Clean Modern Style */

/* Base Input */

.input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 400;
  font-weight: var(--font-weight-normal);
  line-height: var(--leading-normal);
  color: #111827;
  color: var(--brand-gray-900);
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--font-family-base);
  outline: none;
}

.input::-moz-placeholder {
  color: #9CA3AF;
  color: var(--brand-gray-400);
  font-weight: 400;
  font-weight: var(--font-weight-normal);
}

.input::placeholder {
  color: #9CA3AF;
  color: var(--brand-gray-400);
  font-weight: 400;
  font-weight: var(--font-weight-normal);
}

/* Focus State */

.input:focus {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
}

/* Hover State */

.input:hover:not(:focus):not(:disabled) {
  border-color: #9CA3AF;
  border-color: var(--brand-gray-400);
}

/* Disabled State */

.input:disabled {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-color: #E5E7EB;
  border-color: var(--brand-gray-200);
  color: #9CA3AF;
  color: var(--brand-gray-400);
  cursor: not-allowed;
}

.input:disabled::-moz-placeholder {
  color: #D1D5DB;
  color: var(--brand-gray-300);
}

.input:disabled::placeholder {
  color: #D1D5DB;
  color: var(--brand-gray-300);
}

/* Sizes */

.input--sm {
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.input--lg {
  padding: 1rem 1.25rem;
  padding: var(--spacing-4) var(--spacing-5);
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
}

/* States */

.input--success {
  border-color: #10B981;
  border-color: var(--color-success);
}

.input--success:focus {
  border-color: #10B981;
  border-color: var(--color-success);
}

.input--warning {
  border-color: #F59E0B;
  border-color: var(--color-warning);
}

.input--warning:focus {
  border-color: #F59E0B;
  border-color: var(--color-warning);
}

.input--error {
  border-color: #ED1C24;
  border-color: var(--color-error);
}

.input--error:focus {
  border-color: #ED1C24;
  border-color: var(--color-error);
}

/* Textarea Specific */

.textarea, textarea {
  resize: vertical;
  min-height: 80px;
  border-radius: 0.75rem !important;
  border-radius: var(--radius-xl) !important;
}

.textarea--fixed {
  resize: none;
}

/* Input Group */

.input-group {
  position: relative;
  display: flex;
  width: 100%;
}

.input-group .input {
  flex: 1;
}

/* Input with Icon */

.input--with-icon {
  position: relative;
}

.input--with-icon .input {
  padding-left: 2.5rem;
  padding-left: var(--spacing-10);
}

.input--with-icon .input-icon {
  position: absolute;
  left: 0.75rem;
  left: var(--spacing-3);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #9CA3AF;
  color: var(--brand-gray-400);
  pointer-events: none;
}

.input--with-icon .input:focus + .input-icon {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Input with Right Icon */

.input--with-icon-right .input {
  padding-right: 2.5rem;
  padding-right: var(--spacing-10);
}

.input--with-icon-right .input-icon {
  right: 0.75rem;
  right: var(--spacing-3);
  left: auto;
}

/* Search Input */

.input--search {
  border-radius: 9999px;
  border-radius: var(--radius-full);
  padding-left: 2.5rem;
  padding-left: var(--spacing-10);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-color: #E5E7EB;
  border-color: var(--brand-gray-200);
}

.input--search:focus {
  background: #FFFFFF;
  background: var(--brand-white);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
}

/* Form Field */

.form-field {
  margin-bottom: 1.25rem;
  margin-bottom: var(--spacing-5);
}

.form-field__label {
  display: block;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.form-field__label--required::after {
  content: '*';
  color: #ED1C24;
  color: var(--brand-red-primary);
  margin-left: 0.25rem;
  margin-left: var(--spacing-1);
}

.form-field__help {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
}

.form-field__error {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #ED1C24;
  color: var(--color-error);
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.form-field__success {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #10B981;
  color: var(--color-success);
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

/* Select Dropdown */

select.input {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url('data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'none\' viewBox=\'0 0 20 20\'%3e%3cpath stroke=\'%236b7280\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'1.5\' d=\'m6 8 4 4 4-4\'/%3e%3c/svg%3e');
  background-position: right 0.75rem center;
  background-position: right var(--spacing-3) center;
  background-repeat: no-repeat;
  background-size: 1.5em;
  padding-right: 2.5rem;
  padding-right: var(--spacing-10);
  cursor: pointer;
}

select.input:focus {
  background-image: url('data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'none\' viewBox=\'0 0 20 20\'%3e%3cpath stroke=\'%23E51C24\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'1.5\' d=\'m6 8 4 4 4-4\'/%3e%3c/svg%3e');
}

select.input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Input with Counter */

.input-counter {
  position: relative;
}

.input-counter .input {
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
}

.input-counter__count {
  position: absolute;
  bottom: 0.5rem;
  bottom: var(--spacing-2);
  right: 0.75rem;
  right: var(--spacing-3);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #9CA3AF;
  color: var(--brand-gray-400);
  pointer-events: none;
}

.input-counter .input:focus ~ .input-counter__count {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Floating Label */

.input-floating {
  position: relative;
}

.input-floating .input {
  padding-top: 1.25rem;
  padding-top: var(--spacing-5);
  padding-bottom: 0.5rem;
  padding-bottom: var(--spacing-2);
}

.input-floating .input-label {
  position: absolute;
  top: 0.75rem;
  top: var(--spacing-3);
  left: 1rem;
  left: var(--spacing-4);
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #9CA3AF;
  color: var(--brand-gray-400);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  pointer-events: none;
  transform-origin: top left;
}

.input-floating .input:not(:-moz-placeholder) ~ .input-label {
  transform: translateY(-8px) scale(0.75);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.input-floating .input:focus ~ .input-label,
.input-floating .input:not(:placeholder-shown) ~ .input-label {
  transform: translateY(-8px) scale(0.75);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.input-floating .input:disabled ~ .input-label {
  color: #D1D5DB;
  color: var(--brand-gray-300);
}

/* Responsive */

@media (max-width: 640px) {
  .input {
    font-size: 1rem;
    font-size: var(--font-size-base);
    padding: 0.75rem;
    padding: var(--spacing-3);
  }

  .input--lg {
    padding: 1rem;
    padding: var(--spacing-4);
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
  }

  .input-floating .input {
    padding-top: 1rem;
    padding-top: var(--spacing-4);
    padding-bottom: 0.75rem;
    padding-bottom: var(--spacing-3);
  }
}

/* MM Medic Checkbox Components - Clean Modern Style */

/* Base Checkbox */

.checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.checkbox__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox__box {
  position: relative;
  width: 20px;
  height: 20px;
  background: #FFFFFF;
  background: var(--brand-white);
  border: 2px solid #D1D5DB;
  border: 2px solid var(--brand-gray-300);
  border-radius: 0.25rem;
  border-radius: var(--radius-base);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  margin-right: 0.75rem;
  margin-right: var(--spacing-3);
}

.checkbox__label {
  color: #374151;
  color: var(--brand-gray-700);
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: var(--leading-normal);
  font-weight: 400;
  font-weight: var(--font-weight-normal);
}

/* Checked State */

.checkbox__input:checked + .checkbox__box {
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
  box-shadow: var(--shadow-red-subtle);
}

.checkbox__input:checked + .checkbox__box::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 8px;
  border: solid #FFFFFF;
  border: solid var(--brand-white);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
  opacity: 1;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

/* Hover State */

.checkbox:hover .checkbox__box {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
}

.checkbox:hover .checkbox__input:checked + .checkbox__box {
  background: #D11920;
  background: var(--brand-red-dark);
  border-color: #D11920;
  border-color: var(--brand-red-dark);
  box-shadow: 0 0 12px rgba(237, 28, 36, 0.2), 0 4px 12px rgba(237, 28, 36, 0.1);
  box-shadow: var(--shadow-red-medium);
}

/* Focus State - Removed for cleaner look */

.checkbox__input:focus + .checkbox__box {
  outline: none;
}

.checkbox__input:focus:checked + .checkbox__box {
  outline: none;
}

/* Disabled State */

.checkbox__input:disabled + .checkbox__box {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border-color: #E5E7EB;
  border-color: var(--brand-gray-200);
  cursor: not-allowed;
}

.checkbox__input:disabled:checked + .checkbox__box {
  background: #9CA3AF;
  background: var(--brand-gray-400);
  border-color: #9CA3AF;
  border-color: var(--brand-gray-400);
}

.checkbox__input:disabled ~ .checkbox__label {
  color: #9CA3AF;
  color: var(--brand-gray-400);
  cursor: not-allowed;
}

/* Sizes */

.checkbox--sm .checkbox__box {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  margin-right: var(--spacing-2);
}

.checkbox--sm .checkbox__input:checked + .checkbox__box::after {
  width: 3px;
  height: 6px;
  transform: translate(-50%, -60%) rotate(45deg);
}

.checkbox--sm .checkbox__label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

/* Indeterminate State */

.checkbox__input:indeterminate + .checkbox__box {
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
  box-shadow: var(--shadow-red-subtle);
}

.checkbox__input:indeterminate + .checkbox__box::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  background: #FFFFFF;
  background: var(--brand-white);
  border: none;
  transform: translate(-50%, -50%);
  border-radius: 1px;
}

/* Checkbox Group */

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.checkbox-group--inline {
  flex-direction: row;
  gap: 1.5rem;
  gap: var(--spacing-6);
}

.checkbox-group__label {
  color: #111827;
  color: var(--brand-gray-900);
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

/* Error State */

.checkbox--error .checkbox__box {
  border-color: #ED1C24;
  border-color: var(--color-error);
}

.checkbox--error .checkbox__input:checked + .checkbox__box {
  background: #ED1C24;
  background: var(--color-error);
  border-color: #ED1C24;
  border-color: var(--color-error);
}

.checkbox--error .checkbox__label {
  color: #D11920;
  color: var(--color-error-dark);
}

/* Success State */

.checkbox--success .checkbox__box {
  border-color: #10B981;
  border-color: var(--color-success);
}

.checkbox--success .checkbox__input:checked + .checkbox__box {
  background: #10B981;
  background: var(--color-success);
  border-color: #10B981;
  border-color: var(--color-success);
}

/* Animation */

@keyframes checkbox-check {
  0% {
    opacity: 0;
    transform: rotate(45deg) scale(0);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}

.checkbox__input:checked + .checkbox__box::after {
  animation: checkbox-check 0.2s ease-out;
}

/* MM Medic Toggle/Switch Components - Clean Modern Style */

/* Base Toggle */

.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle__switch {
  position: relative;
  width: 48px;
  height: 29px;
  background: #D1D5DB;
  background: var(--brand-gray-300);
  border-radius: 28px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  margin-right: 0.75rem;
  margin-right: var(--spacing-3);
  border: 2px solid transparent;
}

.toggle__slider {
  position: absolute;
  top: 2px;
  left: 1px;
  width: 22px;
  height: 22px;
  background: #FFFFFF;
  background: var(--brand-white);
  border-radius: 50%;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.toggle__label {
  color: #374151;
  color: var(--brand-gray-700);
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: var(--leading-normal);
  font-weight: 400;
  font-weight: var(--font-weight-normal);
}

/* Checked State */

.toggle__input:checked + .toggle__switch {
  background: #ED1C24;
  background: var(--brand-red-primary);
  box-shadow: 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
  box-shadow: var(--shadow-red-subtle);
}

.toggle__input:checked + .toggle__switch .toggle__slider {
  transform: translateX(20px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-base);
}

/* Hover State */

.toggle:hover .toggle__switch {
  background: #9CA3AF;
  background: var(--brand-gray-400);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
}

.toggle:hover .toggle__input:checked + .toggle__switch {
  background: #D11920;
  background: var(--brand-red-dark);
  box-shadow: 0 0 12px rgba(237, 28, 36, 0.2), 0 4px 12px rgba(237, 28, 36, 0.1);
  box-shadow: var(--shadow-red-medium);
}

.toggle:hover .toggle__slider {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-base);
}

/* Focus State - Removed for cleaner look */

.toggle__input:focus + .toggle__switch {
  outline: none;
}

.toggle__input:focus:checked + .toggle__switch {
  outline: none;
}

/* Disabled State */

.toggle__input:disabled + .toggle__switch {
  background: #E5E7EB;
  background: var(--brand-gray-200);
  cursor: not-allowed;
  opacity: 0.6;
}

.toggle__input:disabled:checked + .toggle__switch {
  background: #9CA3AF;
  background: var(--brand-gray-400);
}

.toggle__input:disabled ~ .toggle__label {
  color: #9CA3AF;
  color: var(--brand-gray-400);
  cursor: not-allowed;
}

/* Sizes */

.toggle--sm .toggle__switch {
  width: 36px;
  height: 20px;
  margin-right: 0.5rem;
  margin-right: var(--spacing-2);
}

.toggle--sm .toggle__slider {
  width: 14px;
  height: 14px;
  top: 1px;
  left: 1px;
}

.toggle--sm .toggle__input:checked + .toggle__switch .toggle__slider {
  transform: translateX(16px);
}

.toggle--sm .toggle__label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

/* Toggle Group */

.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.toggle-group--inline {
  flex-direction: row;
  gap: 1.5rem;
  gap: var(--spacing-6);
}

.toggle-group__label {
  color: #111827;
  color: var(--brand-gray-900);
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

/* Success State */

.toggle--success .toggle__input:checked + .toggle__switch {
  background: #10B981;
  background: var(--color-success);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2), 0 4px 12px rgba(16, 185, 129, 0.1);
  box-shadow: var(--shadow-success-medium);
}

.toggle--success:hover .toggle__input:checked + .toggle__switch {
  background: #059669;
  background: var(--color-success-dark);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25), 0 6px 16px rgba(16, 185, 129, 0.15);
  box-shadow: var(--shadow-success-strong);
}

/* Warning State */

.toggle--warning .toggle__input:checked + .toggle__switch {
  background: #F59E0B;
  background: var(--color-warning);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2), 0 4px 12px rgba(245, 158, 11, 0.1);
  box-shadow: var(--shadow-warning-medium);
}

.toggle--warning:hover .toggle__input:checked + .toggle__switch {
  background: #D97706;
  background: var(--color-warning-dark);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25), 0 6px 16px rgba(245, 158, 11, 0.15);
  box-shadow: var(--shadow-warning-strong);
}

/* Radio Button Styles */

.radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.radio__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio__circle {
  position: relative;
  width: 20px;
  height: 20px;
  background: #FFFFFF;
  background: var(--brand-white);
  border: 2px solid #D1D5DB;
  border: 2px solid var(--brand-gray-300);
  border-radius: 50%;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  margin-right: 0.75rem;
  margin-right: var(--spacing-3);
}

.radio__label {
  color: #374151;
  color: var(--brand-gray-700);
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: var(--leading-normal);
  font-weight: 400;
  font-weight: var(--font-weight-normal);
}

/* Checked State for Radio */

.radio__input:checked + .radio__circle {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
  box-shadow: var(--shadow-red-subtle);
}

.radio__input:checked + .radio__circle::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 9px;
  height: 9px;
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-radius: 50%;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  animation: radio-check 0.2s ease-out;
}

/* Hover State for Radio */

.radio:hover .radio__circle {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
}

.radio:hover .radio__input:checked + .radio__circle {
  border-color: #D11920;
  border-color: var(--brand-red-dark);
  box-shadow: 0 0 12px rgba(237, 28, 36, 0.2), 0 4px 12px rgba(237, 28, 36, 0.1);
  box-shadow: var(--shadow-red-medium);
}

.radio:hover .radio__input:checked + .radio__circle::after {
  background: #D11920;
  background: var(--brand-red-dark);
}

/* Focus State for Radio */

.radio__input:focus + .radio__circle {
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.15);
  box-shadow: var(--focus-ring);
}

.radio__input:focus:checked + .radio__circle {
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.15), 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
  box-shadow: var(--focus-ring), var(--shadow-red-subtle);
}

/* Disabled State for Radio */

.radio__input:disabled + .radio__circle {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border-color: #E5E7EB;
  border-color: var(--brand-gray-200);
  cursor: not-allowed;
  opacity: 0.6;
}

.radio__input:disabled:checked + .radio__circle::after {
  background: #9CA3AF;
  background: var(--brand-gray-400);
}

.radio__input:disabled ~ .radio__label {
  color: #9CA3AF;
  color: var(--brand-gray-400);
  cursor: not-allowed;
}

/* Radio Group */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.radio-group--inline {
  flex-direction: row;
  gap: 1.5rem;
  gap: var(--spacing-6);
}

.radio-group__label {
  color: #111827;
  color: var(--brand-gray-900);
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

/* Animations */

@keyframes radio-check {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Toggle with Labels (On/Off) */

.toggle--labeled .toggle__switch {
  width: 60px;
  height: 33px;
  position: relative;
}

.toggle--labeled .toggle__slider {
  width: 24px;
  height: 24px;
  top: 3px;
  left: 3px;
  z-index: 2;
}

.toggle--labeled .toggle__input:checked + .toggle__switch .toggle__slider {
  transform: translateX(28px);
}

.toggle--labeled .toggle__switch::before {
  content: 'OFF';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 600;
  color: #4B5563;
  color: var(--brand-gray-600);
  letter-spacing: 0.5px;
  z-index: 1;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.toggle--labeled .toggle__switch::after {
  content: 'ON';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 600;
  color: #FFFFFF;
  color: var(--brand-white);
  letter-spacing: 0.5px;
  z-index: 1;
  opacity: 0;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.toggle--labeled .toggle__input:checked + .toggle__switch::before {
  opacity: 0;
}

.toggle--labeled .toggle__input:checked + .toggle__switch::after {
  opacity: 1;
}

/* Responsive */

@media (max-width: 640px) {
  .toggle__switch {
    width: 44px;
    height: 26px;
  }

  .toggle__slider {
    width: 18px;
    height: 18px;
  }

  .toggle__input:checked + .toggle__switch .toggle__slider {
    transform: translateX(18px);
  }

  .toggle--labeled .toggle__switch {
    width: 56px;
    height: 30px;
  }

  .toggle--labeled .toggle__slider {
    width: 24px;
    height: 24px;
  }

  .toggle--labeled .toggle__input:checked + .toggle__switch .toggle__slider {
    transform: translateX(26px);
  }

  .checkbox-group--inline,
  .radio-group--inline,
  .toggle-group--inline {
    flex-direction: column;
  }
}

/* Extended Toggle with Text on Slider - Language Variant */

.toggle--extended {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  justify-content: center;
}

.toggle--extended .toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle--extended .toggle__switch {
  position: relative;
  width: 90px;
  height: 37px;
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border-radius: 40px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  margin-right: 0.75rem;
  margin-right: var(--spacing-3);
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.toggle--extended .toggle__slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 44px;
  height: 32px;
  background: linear-gradient(135deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(135deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 100%);
  border-radius: 30px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  box-shadow: 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
  box-shadow: var(--shadow-red-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: #FFFFFF;
  color: var(--brand-white);
  letter-spacing: 0.5px;
  z-index: 2;
}

.toggle--extended .toggle__slider::before {
  content: attr(data-off);
}

.toggle--extended .toggle__switch::before {
  content: attr(data-off);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 500;
  color: #374151;
  color: var(--brand-gray-700);
  letter-spacing: 0.5px;
  z-index: 1;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.toggle--extended .toggle__switch::after {
  content: attr(data-on);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 500;
  color: #374151;
  color: var(--brand-gray-700);
  letter-spacing: 0.5px;
  z-index: 1;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

/* Checked State for Extended Toggle */

.toggle--extended .toggle__input:checked + .toggle__switch {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  box-shadow: none;
}

.toggle--extended .toggle__input:checked + .toggle__switch .toggle__slider {
  transform: translateX(90%);
  background: linear-gradient(135deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(135deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 100%);
  color: #FFFFFF;
  color: var(--brand-white);
  box-shadow: 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
  box-shadow: var(--shadow-red-subtle);
}

.toggle--extended .toggle__input:checked + .toggle__switch .toggle__slider::before {
  content: attr(data-on);
}

/* Language Toggle Variant - Equal Options */

.toggle--language {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--font-family-base);
}

/* Override general hover effects for language toggle */

.toggle--extended:hover .toggle__switch,
.toggle--language:hover .toggle__switch {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  box-shadow: none;
}

.toggle--extended:hover .toggle__input:checked + .toggle__switch,
.toggle--language:hover .toggle__input:checked + .toggle__switch {
  background: #E5E7EB;
  background: var(--brand-gray-200);
  box-shadow: none;
}

/* MM Medic Badge Components - Clean Modern Style */

/* Base Badge */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  padding: var(--spacing-1) var(--spacing-3);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-tight);
  letter-spacing: 0em;
  letter-spacing: var(--tracking-normal);
  text-transform: none;
  white-space: nowrap;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--font-family-base);
}

/* Primary Badge */

.badge--primary {
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
}

.badge--primary-soft {
  background: rgba(237, 28, 36, 0.1);
  background: var(--badge-primary-soft-bg);
  color: #ED1C24;
  color: var(--brand-red-primary);
  border-color: rgba(237, 28, 36, 0.2);
  border-color: var(--badge-primary-soft-border);
}

/* Secondary Badge */

.badge--secondary {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #374151;
  color: var(--brand-gray-700);
  border-color: #E5E7EB;
  border-color: var(--brand-gray-200);
}

.badge--secondary-outline {
  background: transparent;
  color: #4B5563;
  color: var(--brand-gray-600);
  border-color: #D1D5DB;
  border-color: var(--brand-gray-300);
}

/* Success Badge */

.badge--success {
  background: #10B981;
  background: var(--color-success);
  color: #FFFFFF;
  color: var(--brand-white);
  border-color: #10B981;
  border-color: var(--color-success);
}

.badge--success-soft {
  background: #D1FAE5;
  background: var(--color-success-bg);
  color: #059669;
  color: var(--color-success-dark);
  border-color: rgba(16, 185, 129, 0.2);
  border-color: var(--badge-success-soft-border);
}

/* Warning Badge */

.badge--warning {
  background: #F59E0B;
  background: var(--color-warning);
  color: #FFFFFF;
  color: var(--brand-white);
  border-color: #F59E0B;
  border-color: var(--color-warning);
}

.badge--warning-soft {
  background: #FEF3C7;
  background: var(--color-warning-bg);
  color: #D97706;
  color: var(--color-warning-dark);
  border-color: rgba(245, 158, 11, 0.2);
  border-color: var(--badge-warning-soft-border);
}

/* Error Badge */

.badge--error {
  background: #ED1C24;
  background: var(--color-error);
  color: #FFFFFF;
  color: var(--brand-white);
  border-color: #ED1C24;
  border-color: var(--color-error);
}

.badge--error-soft {
  background: #FDF2F2;
  background: var(--color-error-bg);
  color: #D11920;
  color: var(--color-error-dark);
  border-color: rgba(237, 28, 36, 0.2);
  border-color: var(--badge-error-soft-border);
}

/* Info Badge */

.badge--info {
  background: #3B82F6;
  background: var(--color-info);
  color: #FFFFFF;
  color: var(--brand-white);
  border-color: #3B82F6;
  border-color: var(--color-info);
}

.badge--info-soft {
  background: #DBEAFE;
  background: var(--color-info-bg);
  color: #2563EB;
  color: var(--color-info-dark);
  border-color: rgba(59, 130, 246, 0.2);
  border-color: var(--badge-info-soft-border);
}

/* Sizes */

.badge--xs {
  padding: 2px 0.5rem;
  padding: 2px var(--spacing-2);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.badge--sm {
  padding: 0.25rem 0.5rem;
  padding: var(--spacing-1) var(--spacing-2);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.badge--lg {
  padding: 0.5rem 1rem;
  padding: var(--spacing-2) var(--spacing-4);
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

/* Status Badges with Dots */

.badge--status {
  position: relative;
  padding-left: 1rem;
  padding-left: var(--spacing-4);
}

.badge--status::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  left: var(--spacing-2);
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Medical Status Badges */

.badge--available {
  background: #D1FAE5;
  background: var(--color-success-bg);
  color: #059669;
  color: var(--color-success-dark);
  border-color: #10B981;
  border-color: var(--color-success);
}

.badge--busy {
  background: #FEF3C7;
  background: var(--color-warning-bg);
  color: #D97706;
  color: var(--color-warning-dark);
  border-color: #F59E0B;
  border-color: var(--color-warning);
}

.badge--offline {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #4B5563;
  color: var(--brand-gray-600);
  border-color: #D1D5DB;
  border-color: var(--brand-gray-300);
}

.badge--emergency {
  background: #ED1C24;
  background: var(--color-error);
  color: #FFFFFF;
  color: var(--brand-white);
  border-color: #ED1C24;
  border-color: var(--color-error);
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Notification Badge */

.badge--notification {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 0.25rem;
  padding: 0 var(--spacing-1);
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
  font-size: 10px;
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  border: 2px solid var(--brand-white);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.badge--notification-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  padding: 0;
  top: -6px;
  right: -6px;
}

/* Removable Badge */

.badge--removable {
  padding-right: 0.5rem;
  padding-right: var(--spacing-2);
  position: relative;
}

.badge__remove {
  margin-left: 0.25rem;
  margin-left: var(--spacing-1);
  background: none;
  border: none;
  color: currentColor;
  cursor: pointer;
  padding: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  opacity: 0.7;
}

.badge__remove:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  background: var(--badge-remove-hover);
}

.badge__remove::before {
  content: '�';
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

/* Interactive Badge */

.badge--interactive {
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.badge--interactive:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.badge--primary.badge--interactive:hover {
  background: #D11920;
  background: var(--brand-red-dark);
  border-color: #D11920;
  border-color: var(--brand-red-dark);
}

.badge--secondary.badge--interactive:hover {
  background: #E5E7EB;
  background: var(--brand-gray-200);
  border-color: #D1D5DB;
  border-color: var(--brand-gray-300);
}

/* Badge Group */

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  gap: var(--spacing-2);
  align-items: center;
}

.badge-group--compact {
  gap: 0.25rem;
  gap: var(--spacing-1);
}

/* Icon Badge */

.badge--icon {
  padding: 0.25rem;
  padding: var(--spacing-1);
  width: 24px;
  height: 24px;
}

.badge--icon svg {
  width: 12px;
  height: 12px;
}

/* Number Badge */

.badge--number {
  min-width: 20px;
  height: 20px;
  padding: 0 0.25rem;
  padding: 0 var(--spacing-1);
  font-size: 11px;
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */

@media (max-width: 640px) {
  .badge {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
  }

  .badge--lg {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    padding: 0.25rem 0.75rem;
    padding: var(--spacing-1) var(--spacing-3);
  }

  .badge-group {
    gap: 0.25rem;
    gap: var(--spacing-1);
  }
}

/* Cart Badge Styles - Following CLAUDE.md design system principles */

/* Badge base styles */

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  background-color: #ED1C24;
  background-color: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  border: 2px solid #FFFFFF;
  border: 2px solid var(--brand-white);
  opacity: 0;
  transform: scale(0);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: 10;
}

/* Visible state */

.cart-badge--visible {
  opacity: 1;
  transform: scale(1);
}

/* Bounce animation */

@keyframes badge-bounce {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(0.9);
  }
  75% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.cart-badge--bounce {
  animation: badge-bounce 0.6s ease-out;
}

/* High count (2+ digits) */

.cart-badge:not(:empty) {
  min-width: 20px;
}

/* Large numbers (3+ digits) */

.cart-badge[data-count]:after {
  content: attr(data-count);
}

/* Responsive adjustments */

@media (max-width: 768px) {
  .cart-badge {
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
  }
}

/* High contrast mode support */

@media (prefers-contrast: high) {
  .cart-badge {
    border-width: 3px;
  }
}

/* Reduce motion support */

@media (prefers-reduced-motion: reduce) {
  .cart-badge {
    transition: none;
  }

  .cart-badge--bounce {
    animation: none;
  }
}

/* MM Medic Design System - Avatars */

/* Base Avatar */

.avatar {
  border-radius: 9999px;
  border-radius: var(--radius-full);
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
  align-content: center;
}

/* Avatar Sizes */

.avatar--xs {
  width: 24px;
  height: 24px;
}

.avatar--sm {
  width: 32px;
  height: 32px;
}

.avatar--md, .avatar {
  width: 40px;
  height: 40px;
}

.avatar--lg {
  width: 48px;
  height: 48px;
}

.avatar--xl {
  width: 64px;
  height: 64px;
}

.avatar--2xl {
  width: 96px;
  height: 96px;
}

/* Avatar Placeholder (4;O div 157 img) */

.avatar--placeholder {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #6B7280;
  color: var(--brand-gray-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

/*  >7<V@8 H@8DBC 4;O placeholder 7 V=VFV0;0<8 */

.avatar--xs.avatar--placeholder {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
}

.avatar--sm.avatar--placeholder {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
}

.avatar--md.avatar--placeholder, .avatar.avatar--placeholder {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.avatar--lg.avatar--placeholder {
  font-size: 1rem;
  font-size: var(--font-size-base);
}

.avatar--xl.avatar--placeholder {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
}

.avatar--2xl.avatar--placeholder {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
}

/* Avatar with Icon (4;O SVG 2A5@548=V placeholder) */

.avatar--placeholder .icon {
  width: 60%;
  height: 60%;
}

/* Avatar with Image (Google OAuth or uploaded avatar) */

.avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* Ensure avatar container with image doesn't show background */

.avatar:has(img) {
  background: transparent;
  color: transparent;
  padding: 0;
}

/* Avatar Group (4;O 2V4>1@065==O :V;L:>E 020B0@V2 I> ?5@5:@820NBLAO) */

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group .avatar {
  margin-left: -8px;
  border: 2px solid #FFFFFF;
  border: 2px solid var(--brand-white);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

.avatar-group .avatar:hover {
  z-index: 1;
  transform: scale(1.05);
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-fast);
}

/* MM Medic Design System - Icons */

/* Base Icon */

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
}

/* Icon Sizes */

.icon--xs {
  width: 12px;
  height: 12px;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon--md {
  width: 20px;
  height: 20px;
}

.icon--lg {
  width: 24px;
  height: 24px;
}

.icon--xl {
  width: 32px;
  height: 32px;
}

.icon--2xl {
  width: 48px;
  height: 48px;
}

/* Icon Colors (28:>@8AB>2CNBLAO 7 fill="currentColor") */

.icon--primary {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.icon--success {
  color: #10B981;
  color: var(--color-success);
}

.icon--warning {
  color: #F59E0B;
  color: var(--color-warning);
}

.icon--error {
  color: #ED1C24;
  color: var(--color-error);
}

.icon--info {
  color: #3B82F6;
  color: var(--color-info);
}

.icon--muted {
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

/* Icon in Button */

.btn .icon {
  margin-right: 0.5rem;
  margin-right: var(--spacing-2);
}

.btn .icon:last-child {
  margin-left: 0;
  margin-right: 0.5rem;
  margin-right: var(--spacing-2);
}

.btn--icon-only .icon {
  margin: 0;
}

/**
 * Spinner Component
 *
 * Loading indicators for async operations
 *
 * Following CLAUDE.md principles:
 * - Use CSS variables
 * - No !important
 * - BEM naming
 * - Responsive design
 */

/* ==================== BASE SPINNER ==================== */

.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #E5E7EB;
    border: 3px solid var(--brand-gray-200);
    border-top-color: #ED1C24;
    border-top-color: var(--brand-red-primary);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    animation: spinner-rotate 0.8s linear infinite;
}

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

/* ==================== SIZE MODIFIERS ==================== */

.spinner--sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.spinner--lg {
    width: 32px;
    height: 32px;
    border-width: 4px;
}

.spinner--large {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

/* ==================== VISIBILITY MODIFIER ==================== */

.spinner--hidden {
    display: none;
}

/* ==================== COLOR VARIANTS ==================== */

.spinner--white {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-top-color: var(--brand-white);
}

.spinner--primary {
    border-color: #FDF2F2;
    border-color: var(--brand-red-lightest);
    border-top-color: #ED1C24;
    border-top-color: var(--brand-red-primary);
}

/* ==================== CENTERED SPINNER ==================== */

.spinner--centered {
    display: block;
    margin: 0 auto;
}

/* Patterns */

/* MM Medic Card Components - Clean Modern Style */

/* Base Card */

.card {
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
}

/* Modifier for cards with dropdowns/autocomplete that need to overflow */

.card--overflow-visible {
  overflow: visible !important;
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-base);
  transform: translateY(-2px);
}

/* Card Header and Body */

.card__header {
  padding: 1rem 1.5rem;
  padding: var(--spacing-4) var(--spacing-6);
  border-bottom: 1px solid #F3F4F6;
  border-bottom: 1px solid var(--brand-gray-100);
}

.card__body {
  padding: 1.5rem;
  padding: var(--spacing-6);
}

.card__content {
  padding: 1.5rem;
  padding: var(--spacing-6);
}

/* Card Padding Modifiers */

.card__body--no-padding {
  padding: 0;
}

.card__content--no-padding {
  padding: 0;
}

.card__body--sm {
  padding: 0.75rem;
  padding: var(--spacing-3);
}

.card__body--md {
  padding: 1rem;
  padding: var(--spacing-4);
}

.card__body--lg {
  padding: 1.5rem;
  padding: var(--spacing-6);
}

.card__body--xl {
  padding: 2rem;
  padding: var(--spacing-8);
}

.card__title {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
}

/* ============================================
   CARD MODIFIERS - Variants
   ============================================ */

/* Card - Pillar variant (ecosystem pillars) */

.card--pillar {
  text-align: center;
  padding: 1.5rem;
  padding: var(--spacing-6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card--pillar:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  box-shadow: var(--shadow-xl);
}

.card__icon {
  border-radius: 9999px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  margin: 0 auto var(--spacing-4);
}

.card__icon--pillar {
  width: 4rem;
  height: 4rem;
  transition: transform 0.3s ease;
}

.card--pillar:hover .card__icon--pillar {
  transform: scale(1.1);
}

/* Різні кольори для кожного стовпа (nth-child для ecosystem__pillars grid) */

.card--pillar:nth-child(1) .card__icon--pillar {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  background: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-dark) 100%);
  color: #FFFFFF;
  color: var(--brand-white);
}

.card--pillar:nth-child(2) .card__icon--pillar {
  background: linear-gradient(135deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(135deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 100%);
  color: #FFFFFF;
  color: var(--brand-white);
}

.card--pillar:nth-child(3) .card__icon--pillar {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-dark) 100%);
  color: #FFFFFF;
  color: var(--brand-white);
}

.card__description {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  line-height: 1.6;
}

/* Responsive для pillar icons */

@media (min-width: 1024px) {
  .card__icon--pillar {
    width: 5rem;
    height: 5rem;
  }
}

/* Product Card - Vertical */

.product-card {
  max-width: 280px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card[data-product-url] {
  outline: none;
  cursor: pointer;
  touch-action: manipulation;
}

.product-card[data-product-url] .product-card__image,
.product-card[data-product-url] .product-card__content {
  cursor: pointer;
}

.product-card[data-product-url]:focus-visible {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(234, 76, 137, 0.25);
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(234, 76, 137, 0.25);
  transform: translateY(-1px);
}

.product-card:hover:not(.hidden) {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-lg);
}

.product-card[data-product-url]:hover:not(.hidden) {
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
  background: linear-gradient(180deg, var(--brand-white) 0%, var(--brand-gray-50) 100%);
}

.product-card[data-product-url]:active:not(.hidden) {
  transform: translateY(0);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-base);
}

/* Ensure hidden products don't have hover effects */

.product-card.hidden {
  display: none;
  transform: none;
  box-shadow: none;
}

.product-card__image {
  width: 100%;
  height: 200px;
  background: #FFFFFF;
  background: var(--brand-white);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding: var(--spacing-4);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-base);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

/* Product Card Image Gallery */

.product-card__image-container {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  padding: 1rem;
  padding: var(--spacing-4);
}

.product-card__image-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-base);
  will-change: transform;
}

.product-card__image-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-base);
  pointer-events: none;
}

.product-card:hover .product-card__image-slide img {
  transform: scale(1.05);
}

/* Hover zones для desktop */

.product-card__hover-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 5;
  cursor: pointer;
}

.product-card__hover-zone--left {
  left: 0;
}

.product-card__hover-zone--right {
  right: 0;
}

/* Індикатори зображень */

.product-card__indicators {
  position: absolute;
  bottom: 0.75rem;
  bottom: var(--spacing-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
  z-index: 10;
  pointer-events: none;
}

.product-card__indicator {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  background: #D1D5DB;
  background: var(--brand-gray-300);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.product-card__indicator--active {
  background: #ED1C24;
  background: var(--brand-red-primary);
  width: 16px;
}

/* Mobile: приховати hover zones */

@media (max-width: 1023px) {
  .product-card__hover-zone {
    display: none;
  }
}

/* Приховати індикатори якщо одне зображення */

.product-card__indicators--single {
  display: none;
}

.product-card__badge {
  position: absolute;
  top: 0.75rem;
  top: var(--spacing-3);
  left: 0.75rem;
  left: var(--spacing-3);
  z-index: 10;
}

.product-card__favorite {
  position: absolute;
  top: 0.75rem;
  top: var(--spacing-3);
  right: 0.75rem;
  right: var(--spacing-3);
  width: 35px;
  height: 35px;
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.product-card__favorite:hover {
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
  box-shadow: 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
  box-shadow: var(--shadow-red-subtle);
}

.product-card__favorite--active {
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
}

.product-card__content {
  padding: 1rem;
  padding: var(--spacing-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__title {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.5rem 0;
  margin: 0 0 var(--spacing-2) 0;
  line-height: var(--leading-tight);
}

.product-card__sku {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  margin: 0 0 0.75rem 0;
  margin: 0 0 var(--spacing-3) 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--font-family-base);
  text-transform: uppercase;
  letter-spacing: 0em;
  letter-spacing: var(--tracking-normal);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

/* Артикул та наявність на одному рядку */

.product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 0.75rem 0;
  margin: 0 0 var(--spacing-3) 0;
}

.product-card__meta .product-card__sku {
  margin: 0;
}

.product-card__meta .product-card__stock {
  margin-bottom: 0;
}

.product-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  margin: 0 0 var(--spacing-4) 0;
}

.product-card__features li {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.product-card__features li svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  color: #ED1C24;
  color: var(--brand-red-primary);
  fill: currentColor;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  gap: var(--spacing-2);
  margin: 0 0 1rem 0;
  margin: 0 0 var(--spacing-4) 0;
}

.product-card__price-current {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.product-card__price-current--free {
  color: #10B981;
  color: var(--color-success);
}

.product-card__price-original {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #9CA3AF;
  color: var(--brand-gray-400);
  text-decoration: line-through;
}

.product-card__actions {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  gap: var(--spacing-2);
  margin-top: auto;
}

/* Ціна та лічильник в одному блоці */

.product-card__price-counter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
  flex: 1;
}

.product-card__actions .product-card__price {
  margin: 0;
}

.product-card__actions .product-card__counter {
  margin-right: 0;
  align-self: flex-start;
}

.product-card__counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  margin-right: auto;
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  padding: 0.25rem;
  padding: var(--spacing-1);
}

.product-card__counter-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  color: #374151;
  color: var(--brand-gray-700);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  font-size: 14px;
}

.product-card__counter-btn:hover {
  background: #E5E7EB;
  background: var(--brand-gray-200);
  color: #111827;
  color: var(--brand-gray-900);
}

.product-card__counter-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-card__counter-value {
  min-width: 40px;
  text-align: center;
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
  padding: 0 0.25rem;
  padding: 0 var(--spacing-1);
}

/* ============================================
   Product Card - Horizontal Layout
   CLAUDE.md §4.4 - Mobile-first responsive
   ============================================ */

.product-card--horizontal {
  max-width: none;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 200px;
}

/* Image Container - фіксована ширина для desktop/tablet */

.product-card--horizontal .product-card__image-container {
  width: 240px;
  flex-shrink: 0;
}

.product-card--horizontal .product-card__image {
  width: 100%;
  height: 100%;
}

/* Badge позиціонування */

.product-card--horizontal .product-card__badge {
  top: 0.75rem;
  top: var(--spacing-3);
  left: 0.75rem;
  left: var(--spacing-3);
}

/* Favorite button */

.product-card--horizontal .product-card__favorite {
  top: 0.75rem;
  top: var(--spacing-3);
  right: 0.75rem;
  right: var(--spacing-3);
}

/* Gallery indicators - зберігаємо видимість */

.product-card--horizontal .product-card__indicators {
  bottom: 0.5rem;
  bottom: var(--spacing-2);
  left: 50%;
  transform: translateX(-50%);
}

/* Content section - заповнює весь доступний простір */

.product-card--horizontal .product-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  padding: var(--spacing-5);
}

/* Title більший розмір */

.product-card--horizontal .product-card__title {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

/* SKU */

.product-card--horizontal .product-card__sku {
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

/* Stock status */

.product-card--horizontal .product-card__stock {
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

/* Features в 2 колонки для кращої читабельності */

.product-card--horizontal .product-card__features {
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  gap: var(--spacing-2) var(--spacing-4);
}

/* Price без нижнього відступу */

.product-card--horizontal .product-card__price {
  margin-bottom: 0;
}

/* Actions в ряд з price */

.product-card--horizontal .product-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  gap: var(--spacing-4);
  flex-wrap: wrap;
}

/* Mobile: повертаємось до вертикального (CLAUDE.md §3.2 - 639px breakpoint) */

@media (max-width: 639px) {
  .product-card--horizontal {
    flex-direction: column;
    min-height: auto;
  }

  .product-card--horizontal .product-card__image-container {
    width: 100%;
    height: 200px;
  }

  .product-card--horizontal .product-card__content {
    padding: 1rem;
    padding: var(--spacing-4);
  }

  .product-card--horizontal .product-card__title {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
  }

  .product-card--horizontal .product-card__features {
    grid-template-columns: 1fr;
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-4);
  }

  .product-card--horizontal .product-card__actions {
    justify-content: space-between;
  }
}

/* Stock Status - спільні стилі для обох режимів */

.product-card__stock {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  gap: var(--spacing-1);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.product-card__stock-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.product-card__stock--available .product-card__stock-indicator {
  background: #10B981;
  background: var(--color-success);
}

.product-card__stock--low .product-card__stock-indicator {
  background: #F59E0B;
  background: var(--color-warning);
}

.product-card__stock--out .product-card__stock-indicator {
  background: #ED1C24;
  background: var(--color-error);
}

.product-card__stock-text {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

/* ============================================
   CARD SIZE MODIFIERS - Mobile 2-column support
   CLAUDE.md §4.4 - Mobile-first responsive
   ============================================ */

/* Small cards - для mobile 2-column layout (320px-639px) */

@media (max-width: 639px) {
  /* Product Card - Small */
  .product-card--sm {
    max-width: 190px;
  }

  .product-card--sm .product-card__image,
  .product-card--sm .product-card__image-container {
    height: 110px;
    padding: 0.5rem;
    padding: var(--spacing-2);
  }

  .product-card--sm .product-card__content {
    padding: 0.5rem;
    padding: var(--spacing-2);
  }

  .product-card--sm .product-card__title {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    line-height: 1.3;
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-card--sm .product-card__sku {
    font-size: 10px;
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
  }

  .product-card--sm .product-card__stock {
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
  }

  .product-card--sm .product-card__stock-text {
    font-size: 9px;
  }

  .product-card--sm .product-card__meta {
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
  }

  .product-card--sm .product-card__price-counter-group {
    gap: 0.25rem;
    gap: var(--spacing-1);
  }

  .product-card--sm .product-card__price-current {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }

  .product-card--sm .product-card__counter {
    padding: 2px;
    gap: 4px;
  }

  .product-card--sm .product-card__counter-btn {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 11px;
  }

  .product-card--sm .product-card__counter-value {
    font-size: 11px;
    min-width: 1.25rem;
  }

  .product-card--sm .product-card__actions .btn {
    font-size: 10px;
    padding: 4px 6px;
  }

  /* Event Card - Small */
  .event-card--sm {
    max-width: 160px;
  }

  .event-card--sm .event-card__header {
    padding: 0.5rem;
    padding: var(--spacing-2);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    gap: var(--spacing-1);
  }

  .event-card--sm .event-card__price {
    text-align: left;
  }

  .event-card--sm .event-card__price-amount {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }

  .event-card--sm .event-card__price-label {
    font-size: 9px;
  }

  .event-card--sm .event-card__content {
    padding: 0.5rem;
    padding: var(--spacing-2);
  }

  .event-card--sm .event-card__title {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    line-height: 1.3;
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .event-card--sm .event-card__details {
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
  }

  .event-card--sm .event-card__detail {
    font-size: 10px;
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
    gap: 4px;
  }

  .event-card--sm .event-card__detail-icon {
    width: 10px;
    height: 10px;
  }

  .event-card--sm .event-card__spots {
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
  }

  .event-card--sm .event-card__spots-text {
    font-size: 9px;
  }

  .event-card--sm .event-card__actions {
    gap: 0.25rem;
    gap: var(--spacing-1);
    flex-direction: column;
  }

  .event-card--sm .event-card__actions .btn {
    font-size: 10px;
    padding: 4px 8px;
    width: 100%;
  }

  /* Protocol Card - Small */
  .protocol-card--sm {
    max-width: 160px;
  }

  .protocol-card--sm .protocol-card__content {
    padding: 0.5rem;
    padding: var(--spacing-2);
  }

  .protocol-card--sm .protocol-card__title {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    line-height: 1.3;
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .protocol-card--sm .protocol-card__description {
    font-size: 10px;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .protocol-card--sm .protocol-card__materials {
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
    display: none; /* Hide on very small screens */
  }

  .protocol-card--sm .protocol-card__meta {
    padding: 0.25rem;
    padding: var(--spacing-1);
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    gap: var(--spacing-1);
  }

  .protocol-card--sm .protocol-card__level-text,
  .protocol-card--sm .protocol-card__level-value {
    font-size: 9px;
  }

  .protocol-card--sm .protocol-card__price-amount {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }

  .protocol-card--sm .protocol-card__actions {
    gap: 0.25rem;
    gap: var(--spacing-1);
    flex-direction: column;
  }

  .protocol-card--sm .protocol-card__actions .btn {
    font-size: 10px;
    padding: 4px 8px;
    width: 100%;
  }

  .protocol-card--sm .badge {
    font-size: 9px;
    padding: 2px 6px;
  }
}

/* Event Card */

.event-card {
  max-width: 360px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.event-card__header {
  padding: 1rem;
  padding: var(--spacing-4);
  border-bottom: 1px solid #F3F4F6;
  border-bottom: 1px solid var(--brand-gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-card__type {
  /* Uses badge component */
}

.event-card__price {
  text-align: right;
}

.event-card__price-amount {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #ED1C24;
  color: var(--brand-red-primary);
  display: block;
}

.event-card__price-amount--free {
  color: #10B981;
  color: var(--color-success);
}

.event-card__price-label {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  letter-spacing: var(--tracking-wide);
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
}

.event-card__content {
  padding: 1rem;
  padding: var(--spacing-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card__title {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 1rem 0;
  margin: 0 0 var(--spacing-4) 0;
  line-height: var(--leading-tight);
}

.event-card__details {
  flex: 1;
  margin-bottom: 1.25rem;
  margin-bottom: var(--spacing-5);
}

.event-card__detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
}

.event-card__detail-icon {
  width: 16px;
  height: 16px;
  color: #ED1C24;
  color: var(--brand-red-primary);
  flex-shrink: 0;
}

.event-card__detail-text {
  line-height: var(--leading-normal);
}

.event-card__instructor {
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
}

.event-card__spots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.event-card__spots-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.event-card__spots--available .event-card__spots-indicator {
  background: #10B981;
  background: var(--color-success);
}

.event-card__spots--limited .event-card__spots-indicator {
  background: #F59E0B;
  background: var(--color-warning);
}

.event-card__spots--full .event-card__spots-indicator {
  background: #ED1C24;
  background: var(--color-error);
}

.event-card__spots-text {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.event-card__actions {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.event-card__actions .btn {
  flex: 1;
}

/* Event Card - Compact Horizontal */

.event-card--horizontal {
  max-width: none;
  display: flex;
  flex-direction: row;
  min-height: 140px;
  max-width: 600px;
}

.event-card--horizontal .event-card__header {
  width: 160px;
  flex-shrink: 0;
  border-bottom: none;
  border-right: 1px solid #F3F4F6;
  border-right: 1px solid var(--brand-gray-100);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.event-card--horizontal .event-card__price {
  text-align: left;
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
}

.event-card--horizontal .event-card__content {
  flex: 1;
  padding: 1rem 1.25rem;
  padding: var(--spacing-4) var(--spacing-5);
}

.event-card--horizontal .event-card__title {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.event-card--horizontal .event-card__details {
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.event-card--horizontal .event-card__detail {
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.event-card--horizontal .event-card__actions {
  margin-top: auto;
}

/* Event Card - Compact (для dashboard та списків) */

.event-card--compact {
  max-width: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  gap: var(--spacing-4);
  padding: 1rem;
  padding: var(--spacing-4);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
}

.event-card--compact .event-card__date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  background: #FDF2F2;
  background: var(--color-error-bg);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  border-left: 4px solid #ED1C24;
  border-left: 4px solid var(--brand-red-primary);
  flex-shrink: 0;
}

.event-card--compact .event-card__day {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #ED1C24;
  color: var(--brand-red-primary);
  line-height: 1;
}

.event-card--compact .event-card__month {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #374151;
  color: var(--brand-gray-700);
  text-transform: uppercase;
}

.event-card--compact .event-card__content {
  flex: 1;
  min-width: 0;
}

.event-card--compact .event-card__title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.5rem 0;
  margin: 0 0 var(--spacing-2) 0;
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

.event-card--compact .event-card__meta {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  align-items: center;
  flex-wrap: wrap;
}

.event-card--compact .event-card__time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  gap: var(--spacing-1);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
}

@media (max-width: 639px) {
  .event-card--compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .event-card--compact .event-card__date-badge {
    align-self: flex-start;
  }
}

/* Card Grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  gap: var(--spacing-6);
}

/* Ultra-wide support for card grids */

@media (min-width: 1536px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    gap: var(--spacing-8);
  }
}

.card-grid--events {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.card-grid--horizontal {
  grid-template-columns: 1fr;
  gap: 1rem;
  gap: var(--spacing-4);
}

/* Protocol Card */

.protocol-card {
  max-width: 320px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.protocol-card__type {
  /* Uses badge component */
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.protocol-card__content {
  padding: 1rem;
  padding: var(--spacing-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.protocol-card__title {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.75rem 0;
  margin: 0 0 var(--spacing-3) 0;
  line-height: var(--leading-tight);
}

.protocol-card__description {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  line-height: var(--leading-relaxed);
  margin: 0 0 1rem 0;
  margin: 0 0 var(--spacing-4) 0;
}

.protocol-card__materials {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  margin: 0 0 var(--spacing-4) 0;
}

.protocol-card__materials li {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
  position: relative;
  padding-left: 0.75rem;
  padding-left: var(--spacing-3);
}

.protocol-card__materials li::before {
  content: '▶';
  color: #ED1C24;
  color: var(--brand-red-primary);
  position: absolute;
  left: 0;
  top: 0.2em;
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  font-size: 8px;
}

.protocol-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  padding: 0.75rem;
  padding: var(--spacing-3);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
}

.protocol-card__level {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.protocol-card__level-text {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  letter-spacing: var(--tracking-wide);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.protocol-card__level-value {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #111827;
  color: var(--brand-gray-900);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.protocol-card__price {
  text-align: right;
}

.protocol-card__price-amount {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #ED1C24;
  color: var(--brand-red-primary);
  display: block;
}

.protocol-card__actions {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  margin-top: auto;
}

.protocol-card__actions .btn {
  flex: 1;
}

/* Protocol Card - Horizontal */

.protocol-card--horizontal {
  max-width: none;
  display: flex;
  flex-direction: row;
  min-height: 160px;
  max-width: 600px;
}

.protocol-card--horizontal .protocol-card__header {
  width: 140px;
  flex-shrink: 0;
  border-bottom: none;
  border-right: 1px solid #F3F4F6;
  border-right: 1px solid var(--brand-gray-100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.protocol-card--horizontal .protocol-card__content {
  flex: 1;
  padding: 1rem 1.25rem;
  padding: var(--spacing-4) var(--spacing-5);
}

.protocol-card--horizontal .protocol-card__title {
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.protocol-card--horizontal .protocol-card__description {
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.protocol-card--horizontal .protocol-card__materials {
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.protocol-card--horizontal .protocol-card__meta {
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .card-grid--events {
    grid-template-columns: 1fr;
  }

  .card-grid--protocols {
    grid-template-columns: 1fr;
  }

  .event-card--horizontal,
  .protocol-card--horizontal {
    flex-direction: column;
    max-width: 360px;
  }

  .event-card--horizontal .event-card__header,
  .protocol-card--horizontal .protocol-card__header {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #F3F4F6;
    border-bottom: 1px solid var(--brand-gray-100);
    flex-direction: row;
    justify-content: space-between;
  }

  .event-card--horizontal .event-card__price,
  .protocol-card--horizontal .protocol-card__type {
    text-align: right;
    margin-top: 0;
  }

  .event-card--horizontal .event-card__content,
  .protocol-card--horizontal .protocol-card__content {
    padding: 1rem;
    padding: var(--spacing-4);
  }

  .protocol-card--horizontal .protocol-card__materials {
    grid-template-columns: 1fr;
  }
}

/* Card interactive variant for admin panel */

.card--interactive {
  text-decoration: none;
  color: inherit;
  transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: var(--transition-base);
  cursor: pointer;
}

.card--interactive:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--interactive:active {
  transform: translateY(0);
}

/* Alert card variant with subtle warning styling */

.card--alert {
  border-color: #F04951;
  border-color: var(--color-error-light);
  background: linear-gradient(135deg, #FFFFFF 0%, #FDF2F2 100%);
  background: linear-gradient(135deg, var(--brand-white) 0%, var(--color-error-bg) 100%);
}

.card--alert:hover {
  border-color: #ED1C24;
  border-color: var(--color-error);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* =================================================================
   ADMIN PANEL CARD VARIANTS
   ================================================================= */

/* Metric Icons for Admin Cards */

.metric-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon--sales {
    background-color: #D1FAE5;
    background-color: var(--color-success-bg);
    color: #10B981;
    color: var(--color-success);
}

.metric-icon--orders {
    background-color: #DBEAFE;
    background-color: var(--color-info-bg);
    color: #3B82F6;
    color: var(--color-info);
}

.metric-icon--users {
    background-color: #FDF2F2;
    background-color: var(--brand-red-lightest);
    color: #ED1C24;
    color: var(--brand-red-primary);
}

.metric-icon--conversion {
    background-color: #FEF3C7;
    background-color: var(--color-warning-bg);
    color: #F59E0B;
    color: var(--color-warning);
}

.metric-icon--success {
    background-color: #D1FAE5;
    background-color: var(--color-success-bg);
    color: #10B981;
    color: var(--color-success);
}

.metric-icon--info {
    background-color: #DBEAFE;
    background-color: var(--color-info-bg);
    color: #3B82F6;
    color: var(--color-info);
}

.metric-icon--neutral {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
    color: #4B5563;
    color: var(--brand-gray-600);
}

.metric-icon--danger {
    background-color: #FDF2F2;
    background-color: var(--color-error-bg);
    color: #ED1C24;
    color: var(--color-error);
}

.metric-change {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
}

.metric-change--positive {
    color: #10B981;
    color: var(--color-success);
}

.metric-change--negative {
    color: #ED1C24;
    color: var(--color-error);
}

.metric-change--neutral {
    color: #4B5563;
    color: var(--brand-gray-600);
}

/* Metric Card for Dashboard */

.card--metric {
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    background: linear-gradient(135deg, var(--brand-white) 0%, var(--brand-gray-50) 100%);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all var(--transition-base);
}

.card--metric .card__content {
    padding: 1.5rem;
    padding: var(--spacing-6);
}

.card--metric:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Widget Card for Dashboard */

.card--widget {
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
    background-color: #FFFFFF;
    background-color: var(--brand-white);
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.card--widget .card__header {
    border-bottom: 1px solid #F3F4F6;
    border-bottom: 1px solid var(--brand-gray-100);
    padding: 1rem 1.5rem;
    padding: var(--spacing-4) var(--spacing-6);
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
    background: linear-gradient(135deg, var(--brand-gray-50) 0%, var(--brand-white) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card--widget .card__content {
    flex: 1;
    padding: 1.5rem;
    padding: var(--spacing-6);
    display: flex;
    flex-direction: column;
}

/* Table card variant - no padding for full-width tables */

.card--widget.card--table .card__content {
    padding: 0;
}

/* Admin Status Card */

.card--status {
    border-left: 4px solid #D1D5DB;
    border-left: 4px solid var(--brand-gray-300);
    background-color: #FFFFFF;
    background-color: var(--brand-white);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all var(--transition-base);
}

.card--status-success {
    border-left-color: #10B981;
    border-left-color: var(--color-success);
    background: linear-gradient(135deg, #FFFFFF 0%, #D1FAE5 100%);
    background: linear-gradient(135deg, var(--brand-white) 0%, var(--color-success-bg) 100%);
}

.card--status-warning {
    border-left-color: #F59E0B;
    border-left-color: var(--color-warning);
    background: linear-gradient(135deg, #FFFFFF 0%, #FEF3C7 100%);
    background: linear-gradient(135deg, var(--brand-white) 0%, var(--color-warning-bg) 100%);
}

.card--status-error {
    border-left-color: #ED1C24;
    border-left-color: var(--color-error);
    background: linear-gradient(135deg, #FFFFFF 0%, #FDF2F2 100%);
    background: linear-gradient(135deg, var(--brand-white) 0%, var(--color-error-bg) 100%);
}

.card--status-info {
    border-left-color: #3B82F6;
    border-left-color: var(--color-info);
    background: linear-gradient(135deg, #FFFFFF 0%, #DBEAFE 100%);
    background: linear-gradient(135deg, var(--brand-white) 0%, var(--color-info-bg) 100%);
}

/* Admin Action Card */

.card--action {
    border: 2px solid transparent;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    background: linear-gradient(135deg, var(--brand-white) 0%, var(--brand-gray-50) 100%);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
}

.card--action:hover {
    border-color: #ED1C24;
    border-color: var(--brand-red-primary);
    box-shadow: 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
    box-shadow: var(--shadow-red-subtle);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FDF2F2 100%);
    background: linear-gradient(135deg, var(--brand-white) 0%, var(--brand-red-lightest) 100%);
}

.card--action:active {
    transform: translateY(0);
}

/* =================================================================
   ADMIN CARD RESPONSIVE
   ================================================================= */

@media (max-width: 639px) {
    .card--widget,
    .card--metric {
        min-height: auto;
    }

    .card--widget .card__header {
        padding: 0.75rem 1rem;
        padding: var(--spacing-3) var(--spacing-4);
    }

    .card--widget .card__content {
        padding: 1rem;
        padding: var(--spacing-4);
    }
}

/* MM Medic Alert Components - Clean Modern Style */

/* Base Alert - Clean Modern Style */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 1rem 1.25rem;
  padding: var(--spacing-4) var(--spacing-5);
  border: none;
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  position: relative;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.alert__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert__content {
  flex: 1;
  min-width: 0;
}

.alert__title {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  margin: 0 0 0.25rem 0;
  margin: 0 0 var(--spacing-1) 0;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.alert__message {
  margin: 0;
  color: inherit;
}

.alert__close {
  background: rgba(255, 255, 255, 0.8);
  background: var(--alert-backdrop);
  border: none;
  padding: 0;
  cursor: pointer;
  color: #4B5563;
  color: var(--brand-gray-600);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-top: 0;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.alert__close:hover {
  background: rgba(255, 255, 255, 1);
  background: var(--alert-backdrop-solid);
  color: #111827;
  color: var(--brand-gray-900);
  transform: scale(1.1);
}

/* Success Alert */

.alert--success {
  background: rgba(209, 250, 229, 0.9);
  background: var(--alert-success-bg);
  color: #059669;
  color: var(--color-success-dark);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
  box-shadow: var(--alert-success-shadow);
}

.alert--success .alert__icon {
  color: #10B981;
  color: var(--color-success);
}

/* Warning Alert */

.alert--warning {
  background: rgba(254, 243, 199, 0.9);
  background: var(--alert-warning-bg);
  color: #D97706;
  color: var(--color-warning-dark);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1);
  box-shadow: var(--alert-warning-shadow);
}

.alert--warning .alert__icon {
  color: #F59E0B;
  color: var(--color-warning);
}

/* Error Alert */

.alert--error {
  background: rgba(254, 226, 226, 0.9);
  background: var(--alert-error-bg);
  color: #D11920;
  color: var(--color-error-dark);
  box-shadow: 0 4px 16px rgba(237, 28, 36, 0.1);
  box-shadow: var(--alert-error-shadow);
}

.alert--error .alert__icon {
  color: #ED1C24;
  color: var(--color-error);
}

/* Info Alert */

.alert--info {
  background: rgba(219, 234, 254, 0.9);
  background: var(--alert-info-bg);
  color: #2563EB;
  color: var(--color-info-dark);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
  box-shadow: var(--alert-info-shadow);
}

.alert--info .alert__icon {
  color: #3B82F6;
  color: var(--color-info);
}

/* Medical Alert */

.alert--medical {
  background: rgba(254, 242, 242, 0.9);
  background: var(--alert-critical-bg);
  color: #D11920;
  color: var(--brand-red-dark);
  box-shadow: 0 4px 16px rgba(237, 28, 36, 0.1);
  box-shadow: var(--alert-error-shadow);
}

.alert--medical .alert__icon {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Compact Alert */

.alert--compact {
  padding: 0.75rem;
  padding: var(--spacing-3);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.alert--compact .alert__icon {
  width: 16px;
  height: 16px;
}

/* Inline Alert */

.alert--inline {
  display: inline-flex;
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  margin: 0;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
}

.alert--inline .alert__icon {
  width: 14px;
  height: 14px;
  margin-top: 0;
}

.alert--inline .alert__close {
  width: 16px;
  height: 16px;
  margin-top: 0;
  margin-left: 0.25rem;
  margin-left: var(--spacing-1);
}

/* Toast Notification */

.toast {
  position: fixed;
  top: 1rem;
  top: var(--spacing-4);
  left: 50%;
  transform: translateX(-50%);
  max-width: 400px;
  z-index: 1070;
  z-index: var(--z-tooltip);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-lg);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  animation: toast-slide-in 0.3s ease-out;
}

.toast--bottom {
  top: auto;
  bottom: 1rem;
  bottom: var(--spacing-4);
}

@keyframes toast-slide-in {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes toast-slide-out {
  from {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  to {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
}

.toast--removing {
  animation: toast-slide-out 0.3s ease-out forwards;
}

/* Banner Alert */

.alert--banner {
  border-radius: 0;
  margin: 0;
  border-left: none;
  border-right: none;
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
}

/* Alert with Actions */

.alert__actions {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
  margin-top: 0.75rem;
  margin-top: var(--spacing-3);
}

.alert__action {
  padding: 0.25rem 0.75rem;
  padding: var(--spacing-1) var(--spacing-3);
  border: 1px solid currentColor;
  background: transparent;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  color: inherit;
}

.alert__action:hover {
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
}

.alert__action--primary {
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
}

.alert__action--primary:hover {
  opacity: 0.9;
}

/* Medical Emergency Alert */

.alert--emergency {
  background: linear-gradient(135deg, #ED1C24 0%, #B5161C 100%);
  background: linear-gradient(135deg, var(--color-error) 0%, var(--brand-red-darker) 100%);
  color: #FFFFFF;
  color: var(--brand-white);
  border-color: #ED1C24;
  border-color: var(--color-error);
  animation: alert-pulse 2s infinite;
}

.alert--emergency .alert__icon {
  color: #FFFFFF;
  color: var(--brand-white);
}

@keyframes alert-pulse {
  0%, 100% {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-base);
  }
  50% {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 20px rgba(237, 28, 36, 0.4);
    box-shadow: var(--shadow-lg), var(--alert-critical-glow);
  }
}

/* System Notification */

.notification {
  position: fixed;
  top: 1rem;
  top: var(--spacing-4);
  right: 1rem;
  right: var(--spacing-4);
  max-width: 400px;
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-lg);
  z-index: 1070;
  z-index: var(--z-tooltip);
  animation: notification-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification__header {
  padding: 0.75rem 1rem 0 1rem;
  padding: var(--spacing-3) var(--spacing-4) 0 var(--spacing-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification__title {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
}

.notification__close {
  background: none;
  border: none;
  padding: 0.25rem;
  padding: var(--spacing-1);
  cursor: pointer;
  color: #9CA3AF;
  color: var(--brand-gray-400);
  border-radius: 0.25rem;
  border-radius: var(--radius-base);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.notification__close:hover {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #4B5563;
  color: var(--brand-gray-600);
}

.notification__content {
  padding: 0.5rem 1rem 1rem 1rem;
  padding: var(--spacing-2) var(--spacing-4) var(--spacing-4) var(--spacing-4);
}

.notification__message {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0;
  line-height: var(--leading-relaxed);
}

.notification__actions {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
  margin-top: 0.75rem;
  margin-top: var(--spacing-3);
}

@keyframes notification-slide-in {
  from {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* List Alerts */

.alert-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

/* Responsive */

@media (max-width: 640px) {
  .toast,
  .notification {
    left: 0.5rem;
    left: var(--spacing-2);
    right: 0.5rem;
    right: var(--spacing-2);
    max-width: none;
  }

  .alert {
    padding: 0.75rem;
    padding: var(--spacing-3);
  }

  .alert__actions {
    flex-direction: column;
  }

  .alert__action {
    text-align: center;
  }
}

/* MM Medic Modal Components - Clean Modern Style */

/* Modal Overlay */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  background: var(--modal-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1040;
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding: var(--spacing-4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
}

.modal-overlay--open {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */

.modal {
  background: #FFFFFF;
  background: var(--brand-white);
  border-radius: 1.5rem;
  border-radius: var(--radius-3xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  box-shadow: var(--shadow-xl);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
  position: relative;
}

.modal-overlay--open .modal {
  transform: scale(1) translateY(0);
}

/* Modal Header */

.modal__header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  padding: var(--spacing-6) var(--spacing-6) var(--spacing-4) var(--spacing-6);
  border-bottom: 1px solid #F3F4F6;
  border-bottom: 1px solid var(--brand-gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
}

.modal__close {
  width: 32px;
  height: 32px;
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6B7280;
  color: var(--brand-gray-500);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.modal__close:hover {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #374151;
  color: var(--brand-gray-700);
  transform: scale(1.1);
}

/* Modal Content */

.modal__content {
  padding: 1rem 1.5rem;
  padding: var(--spacing-4) var(--spacing-6);
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

/* Modal Footer */

.modal__footer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  padding: var(--spacing-4) var(--spacing-6) var(--spacing-6) var(--spacing-6);
  border-top: 1px solid #F3F4F6;
  border-top: 1px solid var(--brand-gray-100);
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  justify-content: flex-end;
}

.modal__footer--full {
  justify-content: stretch;
}

.modal__footer--full .btn {
  flex: 1;
}

/* Login Modal Specific */

.login-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.login-modal__forgot {
  text-align: right;
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
}

.login-modal__forgot-link {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #ED1C24;
  color: var(--brand-red-primary);
  text-decoration: none;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast);
}

.login-modal__forgot-link:hover {
  color: #D11920;
  color: var(--brand-red-dark);
  text-decoration: underline;
}

.login-modal__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  margin: 0.5rem 0;
  margin: var(--spacing-2) 0;
}

.login-modal__divider::before,
.login-modal__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #D1D5DB;
  background: var(--brand-gray-300);
}

.login-modal__divider-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #6B7280;
  color: var(--brand-gray-500);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.login-modal__social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.login-modal__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #374151;
  color: var(--brand-gray-700);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.login-modal__social-btn:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-color: #9CA3AF;
  border-color: var(--brand-gray-400);
  color: #111827;
  color: var(--brand-gray-900);
  transform: translateY(-1px);
}

.login-modal__social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.login-modal__register {
  text-align: center;
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
  padding-top: 0.5rem;
  padding-top: var(--spacing-2);
  border-top: 1px solid #F3F4F6;
  border-top: 1px solid var(--brand-gray-100);
}

.login-modal__register-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
}

.login-modal__register-link {
  color: #ED1C24;
  color: var(--brand-red-primary);
  text-decoration: none;
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  margin-left: 0.25rem;
  margin-left: var(--spacing-1);
}

.login-modal__register-link:hover {
  color: #D11920;
  color: var(--brand-red-dark);
  text-decoration: underline;
}

/* Event Registration Modal Specific */

.event-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.event-modal__form-row {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.event-modal__form-row .form-field {
  flex: 1;
  margin-bottom: 0;
}

.event-modal__event-info {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  padding: 1rem;
  padding: var(--spacing-4);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.event-modal__event-title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.25rem 0;
  margin: 0 0 var(--spacing-1) 0;
}

.event-modal__event-date {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0 0 0.25rem 0;
  margin: 0 0 var(--spacing-1) 0;
}

.event-modal__event-price {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #ED1C24;
  color: var(--brand-red-primary);
  margin: 0;
}

/* Modal Sizes */

.modal--sm {
  max-width: 320px;
}

.modal--md {
  max-width: 540px;
  padding: 0rem 2rem;
}

.modal--lg {
  max-width: 600px;
}

.modal--xl {
  max-width: 800px;
}

/* Modal without header */

.modal--no-header .modal__content {
  padding: 1.5rem;
  padding: var(--spacing-6);
}

/* Full screen mobile */

@media (max-width: 640px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    max-width: none;
    width: 100%;
    max-height: 95vh;
    border-radius: 1rem 1rem 0 0;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    transform: translateY(100%);
  }

  .modal-overlay--open .modal {
    transform: translateY(0);
  }

  .modal__header {
    padding: 1rem;
    padding: var(--spacing-4);
  }

  .modal__content {
    padding: 1rem;
    padding: var(--spacing-4);
  }

  .modal__footer {
    padding: 1rem;
    padding: var(--spacing-4);
  }

  .login-modal__social {
    gap: 0.5rem;
    gap: var(--spacing-2);
  }

  .login-modal__social-btn {
    padding: 1rem;
    padding: var(--spacing-4);
  }
}

/* MM Medic Lightbox Component - Modern Image Viewer */

/* Lightbox Overlay */

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  background: var(--lightbox-overlay);
  backdrop-filter: blur(12px);
  backdrop-filter: var(--lightbox-blur);
  -webkit-backdrop-filter: blur(12px);
  -webkit-backdrop-filter: var(--lightbox-blur);
  z-index: 1065;
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding: var(--spacing-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox-overlay--open {
  opacity: 1;
  visibility: visible;
}

/* Lightbox Container */

.lightbox {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Close Button */

.lightbox__close {
  position: absolute;
  top: 1rem;
  top: var(--spacing-4);
  right: 1rem;
  right: var(--spacing-4);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  background: var(--lightbox-nav-bg);
  backdrop-filter: blur(8px);
  backdrop-filter: var(--lightbox-caption-blur);
  -webkit-backdrop-filter: blur(8px);
  -webkit-backdrop-filter: var(--lightbox-caption-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #FFFFFF;
  color: var(--brand-white);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
  background: var(--lightbox-nav-hover-bg);
  transform: scale(1.1) rotate(90deg);
  border-color: rgba(255, 255, 255, 0.2);
}

.lightbox__close:active {
  transform: scale(0.95) rotate(90deg);
}

.lightbox__close svg {
  width: 24px;
  height: 24px;
}

/* Navigation Buttons */

.lightbox__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  width: var(--lightbox-nav-size);
  height: 48px;
  height: var(--lightbox-nav-size);
  background: rgba(255, 255, 255, 0.15);
  background: var(--lightbox-nav-bg);
  backdrop-filter: blur(8px);
  backdrop-filter: var(--lightbox-caption-blur);
  -webkit-backdrop-filter: blur(8px);
  -webkit-backdrop-filter: var(--lightbox-caption-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #FFFFFF;
  color: var(--brand-white);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  z-index: 10;
  opacity: 0;
}

.lightbox-overlay--open .lightbox__nav-btn {
  opacity: 1;
}

.lightbox__nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  background: var(--lightbox-nav-hover-bg);
  transform: translateY(-50%) scale(1.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.lightbox__nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox__nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.lightbox__nav-btn svg {
  width: 24px;
  height: 24px;
}

.lightbox__nav-btn--prev {
  left: 1rem;
  left: var(--spacing-4);
  animation: slideInLeft 0.3s ease-out 0.2s both;
}

.lightbox__nav-btn--next {
  right: 1rem;
  right: var(--spacing-4);
  animation: slideInRight 0.3s ease-out 0.2s both;
}

/* Image Container */

.lightbox__image-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Image */

.lightbox__image {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.lightbox__image--loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox__image--loading {
  opacity: 0;
}

/* Loader Spinner */

.lightbox__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  display: none;
}

.lightbox__loader--visible {
  display: block;
}

.lightbox__loader::after {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #FFFFFF;
  border-top-color: var(--brand-white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Caption and Counter */

.lightbox__caption {
  position: absolute;
  bottom: 1.5rem;
  bottom: var(--spacing-6);
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: rgba(0, 0, 0, 0.7);
  background: var(--lightbox-caption-bg);
  backdrop-filter: blur(8px);
  backdrop-filter: var(--lightbox-caption-blur);
  -webkit-backdrop-filter: blur(8px);
  -webkit-backdrop-filter: var(--lightbox-caption-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  padding: 0.75rem 1.25rem;
  padding: var(--spacing-3) var(--spacing-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  gap: var(--spacing-1);
  opacity: 0;
  animation: slideInUp 0.3s ease-out 0.3s both;
  z-index: 10;
}

.lightbox__caption-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #FFFFFF;
  color: var(--brand-white);
  text-align: center;
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

.lightbox__counter {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.lightbox__counter-current {
  color: #FFFFFF;
  color: var(--brand-white);
}

/* Hidden Caption (when no text) */

.lightbox__caption:empty {
  display: none;
}

/* State Classes for JavaScript Control (CLAUDE.md compliance) */

.lightbox__caption--hidden {
  display: none !important;
}

.lightbox__nav-btn--hidden {
  display: none !important;
}

/* Prevent body scroll when lightbox is open */

body.lightbox-no-scroll {
  overflow: hidden !important;
}

/* Animations */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Focus States (Accessibility) */

.lightbox__close:focus-visible,
.lightbox__nav-btn:focus-visible {
  outline: 2px solid #FFFFFF;
  outline: 2px solid var(--brand-white);
  outline-offset: 4px;
}

/* Keyboard Navigation Hint */

.lightbox__keyboard-hint {
  position: absolute;
  top: 1.5rem;
  top: var(--spacing-6);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  background: var(--lightbox-caption-bg);
  backdrop-filter: blur(8px);
  backdrop-filter: var(--lightbox-caption-blur);
  -webkit-backdrop-filter: blur(8px);
  -webkit-backdrop-filter: var(--lightbox-caption-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  padding: var(--spacing-2) var(--spacing-4);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: fadeInOut 4s ease-in-out;
  pointer-events: none;
  z-index: 10;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0;
  }
  10%, 90% {
    opacity: 1;
  }
}

/* Mobile Responsive */

@media (max-width: 640px) {
  .lightbox-overlay {
    padding: 0;
  }

  .lightbox__close {
    top: 0.5rem;
    top: var(--spacing-2);
    right: 0.5rem;
    right: var(--spacing-2);
    width: 40px;
    height: 40px;
  }

  .lightbox__close svg {
    width: 20px;
    height: 20px;
  }

  .lightbox__nav-btn {
    width: 40px;
    height: 40px;
    bottom: 5rem;
    bottom: var(--spacing-20);
  }

  .lightbox__nav-btn svg {
    width: 20px;
    height: 20px;
  }

  .lightbox__nav-btn--prev {
    left: 0.5rem;
    left: var(--spacing-2);
  }

  .lightbox__nav-btn--next {
    right: 0.5rem;
    right: var(--spacing-2);
  }

  .lightbox__image {
    max-height: 80vh;
    border-radius: 0;
  }

  .lightbox__caption {
    bottom: 0.75rem;
    bottom: var(--spacing-3);
    max-width: calc(100% - 1.5rem);
    max-width: calc(100% - var(--spacing-6));
    padding: 0.5rem 1rem;
    padding: var(--spacing-2) var(--spacing-4);
  }

  .lightbox__caption-text {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
  }

  .lightbox__keyboard-hint {
    display: none;
  }
}

/* Tablet Responsive */

@media (min-width: 641px) and (max-width: 1023px) {
  .lightbox__nav-btn--prev {
    left: 1.5rem;
    left: var(--spacing-6);
  }

  .lightbox__nav-btn--next {
    right: 1.5rem;
    right: var(--spacing-6);
  }

  .lightbox__close {
    top: 1.5rem;
    top: var(--spacing-6);
    right: 1.5rem;
    right: var(--spacing-6);
  }
}

/* Desktop Enhancements */

@media (min-width: 1024px) {
  .lightbox__nav-btn--prev {
    left: 2rem;
    left: var(--spacing-8);
  }

  .lightbox__nav-btn--next {
    right: 2rem;
    right: var(--spacing-8);
  }

  .lightbox__close {
    top: 2rem;
    top: var(--spacing-8);
    right: 2rem;
    right: var(--spacing-8);
  }

  .lightbox__image {
    max-height: 88vh;
  }

  .lightbox__caption {
    bottom: 2rem;
    bottom: var(--spacing-8);
  }
}

/* Wide Screens */

@media (min-width: 1920px) {
  .lightbox__nav-btn {
    width: 64px;
    height: 64px;
  }

  .lightbox__nav-btn svg {
    width: 28px;
    height: 28px;
  }

  .lightbox__close {
    width: 56px;
    height: 56px;
  }

  .lightbox__close svg {
    width: 28px;
    height: 28px;
  }

  .lightbox__caption {
    padding: 1rem 1.5rem;
    padding: var(--spacing-4) var(--spacing-6);
  }

  .lightbox__caption-text {
    font-size: 1rem;
    font-size: var(--font-size-base);
  }

  .lightbox__counter {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }
}

/* Performance Optimizations */

.lightbox-overlay,
.lightbox__image {
  will-change: opacity, transform;
  contain: layout style paint;
}

/* Reduced Motion Support */

@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay,
  .lightbox__image,
  .lightbox__close,
  .lightbox__nav-btn,
  .lightbox__caption {
    animation: none;
    transition: none;
  }

  .lightbox__close:hover,
  .lightbox__nav-btn:hover {
    transform: none;
  }
}

/* Print Styles */

@media print {
  .lightbox-overlay {
    display: none;
  }
}

/* MM Medic Cart Modal Styles */

/* Cart Modal Container */

.cart-modal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
  max-height: 60vh;
  overflow-y: auto;
}

/* Cart Item */

.cart-modal__item {
  display: flex;
  gap: 1rem;
  gap: var(--spacing-4);
  padding: 1rem;
  padding: var(--spacing-4);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  background: var(--brand-white);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.cart-modal__item:hover {
  border-color: #D1D5DB;
  border-color: var(--brand-gray-300);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

/* Cart Item Image */

.cart-modal__item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  padding: var(--spacing-2);
}

.cart-modal__item-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

/* Cart Item Content */

.cart-modal__item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.cart-modal__item-info {
  flex: 1;
}

.cart-modal__item-title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.25rem 0;
  margin: 0 0 var(--spacing-1) 0;
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

.cart-modal__item-sku {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.cart-modal__item-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.cart-modal__item-price-current {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.cart-modal__item-price-original {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #9CA3AF;
  color: var(--brand-gray-400);
  text-decoration: line-through;
}

/* Cart Item Controls */

.cart-modal__item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

/* Cart Item Total */

.cart-modal__item-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 120px;
  min-height: 60px;
}

.cart-modal__item-total-price {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

/* Cart Summary */

.cart-modal__summary {
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
  padding-top: 1rem;
  padding-top: var(--spacing-4);
  margin-top: 1rem;
  margin-top: var(--spacing-4);
}

.cart-modal__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  padding: var(--spacing-2) 0;
}

.cart-modal__summary-row--total {
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
  padding-top: 0.75rem;
  padding-top: var(--spacing-3);
}

.cart-modal__summary-label {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #374151;
  color: var(--brand-gray-700);
}

.cart-modal__summary-row--total .cart-modal__summary-label {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

.cart-modal__summary-value {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
}

.cart-modal__summary-row--total .cart-modal__summary-value {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Cart Actions */

.cart-modal__actions {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  margin-top: 1.5rem;
  margin-top: var(--spacing-6);
}

.cart-modal__actions .btn {
  flex: 1;
}

/* Empty Cart State */

.cart-modal__empty {
  padding: 2rem 1rem;
  padding: var(--spacing-8) var(--spacing-4);
}

.cart-modal__empty .btn {
  min-width: 200px;
}

/* Responsive */

@media (max-width: 768px) {
  .cart-modal__item {
    flex-direction: column;
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .cart-modal__item-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .cart-modal__item-controls {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    gap: var(--spacing-2);
  }

  .cart-modal__item-total {
    align-items: flex-start;
    min-width: auto;
  }

  .cart-modal__actions {
    flex-direction: column;
  }

  .cart-modal {
    max-height: 50vh;
  }
}

/* Admin Cart Details Modal Styles */

/* Admin Cart Item (simplified version for viewing) */

.admin-cart-item {
  display: flex;
  gap: 1rem;
  gap: var(--spacing-4);
  padding: 0.75rem;
  padding: var(--spacing-3);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  background: var(--brand-white);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.admin-cart-item:hover {
  border-color: #D1D5DB;
  border-color: var(--brand-gray-300);
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

/* Admin Cart Item Image */

.admin-cart-item__image {
  flex-shrink: 0;
}

/* Admin Cart Item Content */

.admin-cart-item__content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  gap: var(--spacing-4);
}

.admin-cart-item__info {
  flex: 1;
}

.admin-cart-item__title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.25rem 0;
  margin: 0 0 var(--spacing-1) 0;
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

.admin-cart-item__meta {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
}

.admin-cart-item__sku {
  font-family: var(--font-mono);
}

.admin-cart-item__quantity {
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

/* Admin Cart Item Price */

.admin-cart-item__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  gap: var(--spacing-1);
  min-width: 100px;
}

.admin-cart-item__unit-price {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
}

.admin-cart-item__total-price {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

/* Admin Cart Modal States */

.admin-cart-modal__loading,
.admin-cart-modal__user,
.admin-cart-modal__items,
.admin-cart-modal__empty,
.admin-cart-modal__error {
  animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Admin Cart User Info Section */

.admin-cart-modal__user .avatar {
  background: var(--brand-primary-500);
  color: #FFFFFF;
  color: var(--brand-white);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

/* Admin Cart Items List */

.admin-cart-modal__items {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
  padding-right: var(--spacing-2);
}

/* Custom scrollbar for items list */

.admin-cart-modal__items::-webkit-scrollbar {
  width: 6px;
}

.admin-cart-modal__items::-webkit-scrollbar-track {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}

.admin-cart-modal__items::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  background: var(--brand-gray-300);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}

.admin-cart-modal__items::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
  background: var(--brand-gray-400);
}

/* Responsive */

@media (max-width: 768px) {
  .admin-cart-item {
    flex-direction: column;
  }

  .admin-cart-item__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-cart-item__price {
    align-items: flex-start;
    width: 100%;
  }

  .admin-cart-modal__items {
    max-height: 300px;
  }
}

/* MM Medic Table Components */

/* =================================================================
   TABLE CONTAINER (OVERFLOW HANDLING)
   ================================================================= */

.table__container {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
}

/* Scrollbar styling для table container */

.table__container::-webkit-scrollbar {
    height: 8px;
}

.table__container::-webkit-scrollbar-track {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
}

.table__container::-webkit-scrollbar-thumb {
    background-color: #D1D5DB;
    background-color: var(--brand-gray-300);
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
}

.table__container::-webkit-scrollbar-thumb:hover {
    background-color: #9CA3AF;
    background-color: var(--brand-gray-400);
}

/* =================================================================
   BASE TABLE STYLES
   ================================================================= */

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    background-color: var(--brand-white);
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}

/* =================================================================
   TABLE HEADER
   ================================================================= */

.table__head {
    background: linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%);
    background: linear-gradient(180deg, var(--brand-gray-50) 0%, var(--brand-gray-100) 100%);
    position: relative;
}

.table__head::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #D1D5DB 50%, transparent 100%);
    background: linear-gradient(90deg, transparent 0%, var(--brand-gray-300) 50%, transparent 100%);
}

.table__header-row {
    border: none;
}

.table__header-cell {
    padding: 0.25rem 0.25rem;
    padding: var(--spacing-1) var(--spacing-1);
    text-align: left;
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #374151;
    color: var(--brand-gray-700);
    letter-spacing: 0.025em;
    white-space: nowrap;
    border: none;
    position: relative;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    text-align: center;
}

.table__header-cell:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 20px;
    background-color: #D1D5DB;
    background-color: var(--brand-gray-300);
    transform: translateY(-50%);
}

/* Sortable headers */

.table__header-cell--sortable {
    cursor: pointer;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-base);
    padding-right: 2rem;
    padding-right: var(--spacing-8);
}

.table__header-cell--sortable:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: #111827;
    color: var(--brand-gray-900);
}

.table__header-cell--sortable::before {
    content: '';
    position: absolute;
    right: 0.75rem;
    right: var(--spacing-3);
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #9CA3AF;
    border-bottom: 4px solid var(--brand-gray-400);
    opacity: 0;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-base);
}

.table__header-cell--sortable:hover::before {
    opacity: 0.5;
}

.table__header-cell--sorted-asc::before {
    border-bottom: 4px solid var(--brand-red-600);
    opacity: 1;
}

.table__header-cell--sorted-desc::before {
    border-bottom: none;
    border-top: 4px solid var(--brand-red-600);
    opacity: 1;
}

/* =================================================================
   TABLE BODY
   ================================================================= */

.table__body {
    background-color: #FFFFFF;
    background-color: var(--brand-white);
}

.table__row {
    border: none;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-base);
    position: relative;
}

.table__row::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    left: var(--spacing-6);
    right: 1.5rem;
    right: var(--spacing-6);
    height: 1px;
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-base);
}

.table__row:last-child::after {
    display: none;
}

.table__row:hover {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

.table__row:hover::after {
    background-color: #E5E7EB;
    background-color: var(--brand-gray-200);
}

.table__cell {
    padding: 0.25rem 0.25rem;
    padding: var(--spacing-1) var(--spacing-1);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #111827;
    color: var(--brand-gray-900);
    vertical-align: middle;
    border: none;
}

.table__cell--numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.table__cell--center {
    text-align: center;
}

/* =================================================================
   TABLE VARIANTS
   ================================================================= */

/* Compact table */

.table--compact .table__header-cell,
.table--compact .table__cell {
    padding: 0.25rem 0.25rem;
    padding: var(--spacing-1) var(--spacing-1);
}

/* Spacious table */

.table--spacious .table__header-cell,
.table--spacious .table__cell {
    padding: 1.5rem 2rem;
    padding: var(--spacing-6) var(--spacing-8);
}

/* Striped table */

.table--striped .table__row:nth-child(even) {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

.table--striped .table__row:nth-child(even):hover {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

/* Bordered table */

.table--bordered {
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
}

.table--bordered .table__header-cell,
.table--bordered .table__cell {
    border-right: 1px solid #E5E7EB;
    border-right: 1px solid var(--brand-gray-200);
}

.table--bordered .table__header-cell:last-child,
.table--bordered .table__cell:last-child {
    border-right: none;
}

/* =================================================================
   TABLE STATES
   ================================================================= */

/* Selected row */

.table__row--selected {
    background-color: #FDF2F2;
    background-color: var(--brand-red-lightest);
    border-left: 3px solid #ED1C24;
    border-left: 3px solid var(--brand-red-primary);
}

.table__row--selected:hover {
    background-color: #FDF2F2;
    background-color: var(--brand-red-lightest);
}

/* Loading state */

.table--loading {
    position: relative;
    pointer-events: none;
}

.table--loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty state */

.table__empty {
    text-align: center;
    padding: 1rem 0.25rem;
    padding: var(--spacing-4) var(--spacing-1);
    color: #6B7280;
    color: var(--brand-gray-500);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

.table__empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    margin: 0 auto var(--spacing-4);
    color: #D1D5DB;
    color: var(--brand-gray-300);
}

/* =================================================================
   TABLE ACTIONS
   ================================================================= */

.table__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
}

.table__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    border: none;
    background-color: transparent;
    color: #6B7280;
    color: var(--brand-gray-500);
    cursor: pointer;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-base);
}

.table__action:hover {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
    color: #374151;
    color: var(--brand-gray-700);
}

.table__action--primary {
    color: var(--brand-red-600);
}

.table__action--primary:hover {
    background-color: #FDF2F2;
    background-color: var(--brand-red-lightest);
    color: var(--brand-red-700);
}

.table__action--danger {
    color: #ED1C24;
    color: var(--color-error);
}

.table__action--danger:hover {
    background-color: #FDF2F2;
    background-color: var(--color-error-bg);
    color: #D11920;
    color: var(--color-error-dark);
}

/* =================================================================
   STATUS BADGES IN TABLES
   ================================================================= */

.table__status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    padding: var(--spacing-1) var(--spacing-3);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table__status--success {
    background-color: #D1FAE5;
    background-color: var(--color-success-bg);
    color: #10B981;
    color: var(--color-success);
}

.table__status--warning {
    background-color: #FEF3C7;
    background-color: var(--color-warning-bg);
    color: #F59E0B;
    color: var(--color-warning);
}

.table__status--error {
    background-color: #FDF2F2;
    background-color: var(--color-error-bg);
    color: #ED1C24;
    color: var(--color-error);
}

.table__status--info {
    background-color: #DBEAFE;
    background-color: var(--color-info-bg);
    color: #3B82F6;
    color: var(--color-info);
}

.table__status--neutral {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
    color: #1F2937;
    color: var(--brand-gray-800);
}

/* =================================================================
   TABLE AVATAR/IMAGE CELLS
   ================================================================= */

.table__avatar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    gap: var(--spacing-3);
}

.table__avatar-image {
    width: 60px;
    height: 60px;
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    -o-object-fit: contain;
       object-fit: contain;
    -o-object-position: center;
       object-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table__avatar-info {
    min-width: 0;
}

.table__avatar-name {
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #111827;
    color: var(--brand-gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table__avatar-subtitle {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #4B5563;
    color: var(--brand-gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =================================================================
   TABLE SELECTION
   ================================================================= */

.table__checkbox {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table__select-all {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

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

/* Mobile: 320px - 639px */

@media (max-width: 639px) {
    .table {
        border-radius: 0;
        margin: 0 calc(-1 * 1rem);
        margin: 0 calc(-1 * var(--spacing-4));
        box-shadow: none;
    }

    .table__header-cell,
    .table__cell {
        padding: 0.25rem 0.25rem;
        padding: var(--spacing-1) var(--spacing-1);
        font-size: 0.75rem;
        font-size: var(--font-size-xs);
    }

    /* Stack table for mobile */
    .table--stack {
        display: block;
    }

    .table--stack .table__head {
        display: none;
    }

    .table--stack .table__body,
    .table--stack .table__row,
    .table--stack .table__cell {
        display: block;
    }

    .table--stack .table__row {
        border: 1px solid #E5E7EB;
        border: 1px solid var(--brand-gray-200);
        border-radius: 0.5rem;
        border-radius: var(--radius-lg);
        margin-bottom: 1rem;
        margin-bottom: var(--spacing-4);
        padding: 1rem;
        padding: var(--spacing-4);
        background-color: #FFFFFF;
        background-color: var(--brand-white);
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
        box-shadow: var(--shadow-sm);
    }

    .table--stack .table__row::after {
        display: none;
    }

    .table--stack .table__cell {
        padding: 0.5rem 0;
        padding: var(--spacing-2) 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .table--stack .table__cell::before {
        content: attr(data-label);
        font-weight: 600;
        font-weight: var(--font-weight-semibold);
        color: #374151;
        color: var(--brand-gray-700);
        flex-shrink: 0;
        margin-right: 1rem;
        margin-right: var(--spacing-4);
    }

    .table--stack .table__cell:not(:last-child) {
        border-bottom: 1px solid #F3F4F6;
        border-bottom: 1px solid var(--brand-gray-100);
        padding-bottom: 0.5rem;
        padding-bottom: var(--spacing-2);
        margin-bottom: 0.5rem;
        margin-bottom: var(--spacing-2);
    }
}

/* =================================================================
   TABLE PAGINATION
   ================================================================= */

.table__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.25rem;
    padding: var(--spacing-1) var(--spacing-1);
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
    border-top: 1px solid #F3F4F6;
    border-top: 1px solid var(--brand-gray-100);
    border-radius: 0 0 0.5rem 0.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #4B5563;
    color: var(--brand-gray-600);
}

.table__footer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    gap: var(--spacing-4);
}

.table__footer-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
}

.table__rows-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
}

.table__rows-select {
    padding: 0.25rem 0.5rem;
    padding: var(--spacing-1) var(--spacing-2);
    border: 1px solid #D1D5DB;
    border: 1px solid var(--brand-gray-300);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    background-color: #FFFFFF;
    background-color: var(--brand-white);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

/* =================================================================
   TABLE LOADING SKELETON
   ================================================================= */

.table__skeleton-row {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.table__skeleton-cell {
    padding: 0.25rem 0.25rem;
    padding: var(--spacing-1) var(--spacing-1);
}

.table__skeleton-content {
    height: 16px;
    background-color: #E5E7EB;
    background-color: var(--brand-gray-200);
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
}

.table__skeleton-content--short {
    width: 60%;
}

.table__skeleton-content--medium {
    width: 80%;
}

.table__skeleton-content--long {
    width: 100%;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* =================================================================
   RESPONSIVE BREAKPOINTS (CLAUDE.md COMPLIANCE)
   ================================================================= */

/* Desktop: 1024px - 1279px */

@media (min-width: 1024px) {
    .table__header-cell,
    .table__cell {
        padding: 0.25rem 0.5rem;
        padding: var(--spacing-1) var(--spacing-2);
    }
}

/* Wide: 1280px - 1535px */

@media (min-width: 1280px) {
    .table__header-cell,
    .table__cell {
        padding: 0.25rem 0.5rem;
        padding: var(--spacing-1) var(--spacing-2);
    }
}

/* Ultra-wide: 1536px+ (обов'язково за CLAUDE.md) */

@media (min-width: 1536px) {
    .table__header-cell,
    .table__cell {
        padding: 0.25rem 0.75rem;
        padding: var(--spacing-1) var(--spacing-3);
    }

    /* Таблиці залишаються 100% ширини - ніяких обмежень */

    /* Більше контенту в одному рядку на широких екранах */
    .table__header-cell,
    .table__cell {
        white-space: nowrap;
    }
}

/* Compact variant removed - all tables now use compact padding by default */

/* MM Medic Dropdown Components */

/* =================================================================
   DROPDOWN CONTAINER
   ================================================================= */

.dropdown {
    position: relative;
    display: inline-block;
}

/* =================================================================
   DROPDOWN TRIGGER
   ================================================================= */

.dropdown__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    gap: var(--spacing-2);
    padding: 0.5rem 0.75rem;
    padding: var(--spacing-2) var(--spacing-3);
    background-color: #FFFFFF;
    background-color: var(--brand-white);
    border: 1px solid #D1D5DB;
    border: 1px solid var(--brand-gray-300);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #374151;
    color: var(--brand-gray-700);
    cursor: pointer;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-base);
    min-width: 120px;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.dropdown__trigger:hover {
    border-color: #9CA3AF;
    border-color: var(--brand-gray-400);
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

.dropdown__trigger:focus {
    outline: none;
    border-color: #ED1C24;
    border-color: var(--brand-red-primary);
}

.dropdown--open .dropdown__trigger {
    border-color: #ED1C24;
    border-color: var(--brand-red-primary);
}

/* Dropdown arrow */

.dropdown__arrow {
    width: 16px;
    height: 16px;
    color: #6B7280;
    color: var(--brand-gray-500);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.dropdown--open .dropdown__arrow {
    transform: rotate(180deg);
}

/* =================================================================
   DROPDOWN CONTENT
   ================================================================= */

/* Enhanced specificity for dropdown content - admin layout support */

.admin-layout .dropdown .dropdown__content,
.dropdown .dropdown__content {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    border-radius: var(--radius-2xl, 12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.03);
    margin-top: 0.25rem;
    margin-top: var(--spacing-1, 4px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) ease;
    transition: all var(--transition-fast, 0.15s) ease;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
    min-width: 200px;
}

/* Enhanced specificity for open state - admin layout support */

.admin-layout .dropdown.dropdown--open .dropdown__content,
.dropdown.dropdown--open .dropdown__content,
.dropdown--open .dropdown__content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =================================================================
   DROPDOWN MENU
   ================================================================= */

.dropdown__menu {
    padding: 0.5rem;
    padding: var(--spacing-2);
    list-style: none;
    margin: 0;
    border-radius: 0.75rem;
    border-radius: var(--radius-xl);
}

.dropdown__item {
    margin: 0;
}

.dropdown__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    gap: var(--spacing-3);
    padding: 0.5rem 0.75rem;
    padding: var(--spacing-2) var(--spacing-3);
    color: #1F2937;
    color: var(--brand-gray-800);
    text-decoration: none;
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.dropdown__link:hover {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #111827;
    color: var(--brand-gray-900);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.dropdown__link:focus {
    outline: none;
}

.dropdown__link--active {
    background-color: #FDF2F2;
    background-color: var(--brand-red-lightest);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #ED1C24;
    color: var(--brand-red-primary);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    box-shadow: 0 2px 6px rgba(237, 28, 36, 0.1);
}

.dropdown__link--disabled {
    color: #9CA3AF;
    color: var(--brand-gray-400);
    cursor: not-allowed;
    pointer-events: none;
}

.dropdown__link--danger {
    color: #ED1C24;
    color: var(--color-error);
}

.dropdown__link--danger:hover {
    background-color: #FDF2F2;
    background-color: var(--color-error-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #D11920;
    color: var(--color-error-dark);
    box-shadow: 0 2px 4px rgba(237, 28, 36, 0.08);
}

/* Notification type modifiers */

.dropdown__link--info .dropdown__icon {
    color: #3B82F6;
    color: var(--color-info);
}

.dropdown__link--success .dropdown__icon {
    color: #10B981;
    color: var(--color-success);
}

.dropdown__link--warning .dropdown__icon {
    color: #F59E0B;
    color: var(--color-warning);
}

.dropdown__link--error .dropdown__icon {
    color: #ED1C24;
    color: var(--color-error);
}

.dropdown__link--order .dropdown__icon {
    color: #ED1C24;
    color: var(--brand-red-primary);
}

.dropdown__link--low_stock .dropdown__icon {
    color: #F59E0B;
    color: var(--color-warning);
}

.dropdown__link--system .dropdown__icon {
    color: #4B5563;
    color: var(--brand-gray-600);
}

/* =================================================================
   DROPDOWN ICONS AND CONTENT
   ================================================================= */

.dropdown__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: currentColor;
}

.dropdown__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    gap: var(--spacing-1);
}

.dropdown__text-title {
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    color: #111827;
    color: var(--brand-gray-900);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

.dropdown__text-subtitle {
    color: #4B5563;
    color: var(--brand-gray-600);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    line-height: 1.4;
}

.dropdown__text-meta {
    color: #6B7280;
    color: var(--brand-gray-500);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    font-style: italic;
}

.dropdown__shortcut {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #6B7280;
    color: var(--brand-gray-500);
    margin-left: auto;
}

.dropdown__badge {
    background-color: #ED1C24;
    background-color: var(--brand-red-primary);
    color: #FFFFFF;
    color: var(--brand-white);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    padding: 2px 6px;
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
    margin-left: auto;
}

/* =================================================================
   DROPDOWN SECTIONS
   ================================================================= */

.dropdown__section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
    padding-bottom: 0.5rem;
    padding-bottom: var(--spacing-2);
}

.dropdown__section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.dropdown__section-title {
    padding: 0.25rem 0.75rem 0.5rem;
    padding: var(--spacing-1) var(--spacing-3) var(--spacing-2);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    color: #6B7280;
    color: var(--brand-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =================================================================
   DROPDOWN VARIANTS
   ================================================================= */

/* Primary dropdown */

.dropdown--primary .dropdown__trigger {
    background-color: #ED1C24;
    background-color: var(--brand-red-primary);
    border-color: #ED1C24;
    border-color: var(--brand-red-primary);
    color: #FFFFFF;
    color: var(--brand-white);
}

.dropdown--primary .dropdown__trigger:hover {
    background-color: #D11920;
    background-color: var(--brand-red-dark);
    border-color: #D11920;
    border-color: var(--brand-red-dark);
}

.dropdown--primary .dropdown__arrow {
    color: #FFFFFF;
    color: var(--brand-white);
}

/* Small dropdown */

.dropdown--sm .dropdown__trigger {
    padding: 0.5rem 0.75rem;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    min-width: 80px;
}

.dropdown--sm .dropdown__arrow {
    width: 14px;
    height: 14px;
}

/* Small trigger modifier (can be used independently) */

.dropdown__trigger--sm {
    padding: var(--spacing-1-5) var(--spacing-2-5);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    min-width: 80px;
}

.dropdown__trigger--sm .dropdown__arrow {
    width: 14px;
    height: 14px;
}

/* Notification dropdown trigger */

.dropdown__trigger--notification {
    background: transparent;
    border: none;
    padding: 0.5rem;
    padding: var(--spacing-2);
    position: relative;
    min-width: auto;
}

.dropdown__trigger--notification .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Avatar-only dropdown trigger (for header user menu) */

.dropdown__trigger--avatar-only {
    background: transparent;
    border: none;
    padding: 0;
    min-width: auto;
    gap: 0.25rem;
    gap: var(--spacing-1);
}

.dropdown__trigger--avatar-only:hover {
    background: transparent;
    border: none;
}

.dropdown__trigger--avatar-only:focus {
    outline: none;
    border: none;
}

.dropdown--open .dropdown__trigger--avatar-only {
    border: none;
}

/* =================================================================
   DROPDOWN POSITIONING
   ================================================================= */

/* Right aligned dropdown - enhanced specificity with admin layout support */

.admin-layout .dropdown.dropdown--right .dropdown__content,
.dropdown.dropdown--right .dropdown__content,
.dropdown--right .dropdown__content {
    left: auto;
    right: 0;
}

/* Center aligned dropdown */

.dropdown--center .dropdown__content {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-8px);
}

.dropdown--center.dropdown--open .dropdown__content {
    transform: translateX(-50%) translateY(0);
}

/* Up direction dropdown */

.dropdown--up .dropdown__content {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
    transform: translateY(8px);
}

.dropdown--up.dropdown--open .dropdown__content {
    transform: translateY(0);
}

/* =================================================================
   MULTI-SELECT DROPDOWN
   ================================================================= */

.dropdown--multi .dropdown__trigger {
    min-height: 40px;
    align-items: flex-start;
    padding: 0.5rem 1rem;
    padding: var(--spacing-2) var(--spacing-4);
}

.dropdown__selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    gap: var(--spacing-1);
    flex: 1;
    min-height: 24px;
    align-items: center;
}

.dropdown__selected-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    gap: var(--spacing-1);
    background-color: #FDF2F2;
    background-color: var(--brand-red-lightest);
    color: #ED1C24;
    color: var(--brand-red-primary);
    padding: 2px 0.5rem;
    padding: 2px var(--spacing-2);
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
}

.dropdown__selected-item-remove {
    width: 14px;
    height: 14px;
    background: none;
    border: none;
    color: #ED1C24;
    color: var(--brand-red-primary);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
}

.dropdown__selected-item-remove:hover {
    background-color: #F04951;
    background-color: var(--brand-red-light);
    color: #FFFFFF;
    color: var(--brand-white);
}

/* =================================================================
   USER DROPDOWN
   ================================================================= */

.dropdown__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    gap: var(--spacing-3);
    padding: 0.75rem;
    padding: var(--spacing-3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.dropdown__user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border-radius: var(--radius-full);
    background-color: var(--color-info-500);
    color: #FFFFFF;
    color: var(--brand-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    flex-shrink: 0;
}

.dropdown__user-info {
    flex: 1;
    min-width: 0;
}

.dropdown__user-name {
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    color: #111827;
    color: var(--brand-gray-900);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    margin: 0 0 2px 0;
}

.dropdown__user-email {
    color: #4B5563;
    color: var(--brand-gray-600);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

@media (max-width: 768px) {
    .dropdown__content {
        position: fixed;
        top: auto !important;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 1rem 1rem 0 0;
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        margin: 0;
        max-height: 50vh;
        transform: translateY(100%);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08), 0 -2px 6px rgba(0, 0, 0, 0.04);
    }

    .dropdown--open .dropdown__content {
        transform: translateY(0);
    }

    .dropdown__menu {
        padding: 1rem 0.5rem 0.5rem;
        padding: var(--spacing-4) var(--spacing-2) var(--spacing-2);
    }

    .dropdown__link {
        padding: 0.75rem 1rem;
        padding: var(--spacing-3) var(--spacing-4);
        font-size: 1rem;
        font-size: var(--font-size-base);
    }

    /* Handle for mobile bottom sheet */
    .dropdown__content::before {
        content: '';
        display: block;
        width: 32px;
        height: 4px;
        background-color: #D1D5DB;
        background-color: var(--brand-gray-300);
        border-radius: 2px;
        margin: 0.5rem auto 0.75rem;
        margin: var(--spacing-2) auto var(--spacing-3);
    }
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */

/* Screen reader only */

.dropdown__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =================================================================
   ANIMATIONS
   ================================================================= */

@keyframes dropdownSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.dropdown--animate-down .dropdown__content {
    animation: dropdownSlideDown 0.15s ease-out;
}

.dropdown--animate-up .dropdown__content {
    animation: dropdownSlideUp 0.15s ease-out;
}

/* Modern Breadcrumb Navigation - Clean & Elegant */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  gap: var(--spacing-1);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  padding: 0.5rem 0;
  padding: var(--spacing-2) 0;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  gap: var(--spacing-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  white-space: nowrap;
}

.breadcrumb__link {
  color: #4B5563;
  color: var(--brand-gray-600);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  padding: var(--spacing-1) var(--spacing-2);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  background: transparent;
}

.breadcrumb__link:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #111827;
  color: var(--brand-gray-900);
  transform: translateY(-1px);
}

.breadcrumb__link:active {
  transform: translateY(0);
}

.breadcrumb__current {
  color: #111827;
  color: var(--brand-gray-900);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  padding: 0.25rem 0.5rem;
  padding: var(--spacing-1) var(--spacing-2);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  cursor: default;
}

.breadcrumb__separator {
  color: #9CA3AF;
  color: var(--brand-gray-400);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  margin: 0 0.25rem;
  margin: 0 var(--spacing-1);
}

/* Home icon support */

.breadcrumb__home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  color: #4B5563;
  color: var(--brand-gray-600);
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.breadcrumb__home:hover {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #111827;
  color: var(--brand-gray-900);
  border-color: #D1D5DB;
  border-color: var(--brand-gray-300);
  transform: translateY(-1px);
}

.breadcrumb__home-icon {
  width: 16px;
  height: 16px;
}

/* Responsive */

@media (max-width: 768px) {
  .breadcrumb {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    gap: var(--spacing-half);
  }

  .breadcrumb__link,
  .breadcrumb__current {
    padding: 0.25rem;
    padding: var(--spacing-1);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
  }

  .breadcrumb__separator {
    margin: 0 2px;
    font-size: 10px;
  }

  .breadcrumb__home {
    width: 28px;
    height: 28px;
  }

  .breadcrumb__home-icon {
    width: 14px;
    height: 14px;
  }

  /* Hide middle items on mobile, show only first and last */
  .breadcrumb__item:not(:first-child):not(:last-child) {
    display: none;
  }

  /* Show ellipsis for hidden items */
  .breadcrumb__item:nth-child(2)::before {
    content: "...";
    color: #9CA3AF;
    color: var(--brand-gray-400);
    margin: 0 0.25rem;
    margin: 0 var(--spacing-1);
  }
}

/* Accessibility */

.breadcrumb__link:focus,
.breadcrumb__home:focus {
  outline: 2px solid #ED1C24;
  outline: 2px solid var(--brand-red-primary);
  outline-offset: 2px;
}

/* Modern Pagination Component - Clean & Elegant */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  margin-top: var(--spacing-8);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.pagination__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  gap: var(--spacing-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination__item {
  display: inline-block;
}

.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  padding: 0 var(--spacing-2);
  color: #4B5563;
  color: var(--brand-gray-600);
  text-decoration: none;
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  background: #FFFFFF;
  background: var(--brand-white);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.pagination__link:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #111827;
  color: var(--brand-gray-900);
  transform: translateY(-1px);
}

.pagination__link--active {
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
  box-shadow: var(--shadow-red-subtle);
}

.pagination__link--active:hover {
  background: #D11920;
  background: var(--brand-red-dark);
  border-color: #D11920;
  border-color: var(--brand-red-dark);
  transform: translateY(-1px);
}

/* Previous and Next links */

.pagination__link--prev,
.pagination__link--next {
  min-width: auto;
  padding: 0 0.75rem;
  padding: 0 var(--spacing-3);
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.pagination__link--prev:hover,
.pagination__link--next:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-color: #D1D5DB;
  border-color: var(--brand-gray-300);
}

.pagination__item--disabled {
  color: #D1D5DB;
  color: var(--brand-gray-300);
  cursor: not-allowed;
  pointer-events: none;
}

.pagination__item--disabled:hover {
  background: #FFFFFF;
  background: var(--brand-white);
  transform: none;
}

/* Navigation buttons (prev/next) */

.pagination__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  padding: 0 var(--spacing-3);
  color: #4B5563;
  color: var(--brand-gray-600);
  text-decoration: none;
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  background: #FFFFFF;
  background: var(--brand-white);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.pagination__nav:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #111827;
  color: var(--brand-gray-900);
  border-color: #D1D5DB;
  border-color: var(--brand-gray-300);
  transform: translateY(-1px);
}

.pagination__nav--disabled {
  color: #D1D5DB;
  color: var(--brand-gray-300);
  border-color: #F3F4F6;
  border-color: var(--brand-gray-100);
  cursor: not-allowed;
  pointer-events: none;
}

.pagination__nav--disabled:hover {
  background: #FFFFFF;
  background: var(--brand-white);
  transform: none;
}

.pagination__nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Ellipsis */

.pagination__ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: #9CA3AF;
  color: var(--brand-gray-400);
  cursor: default;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Info text */

.pagination__info {
  color: #6B7280;
  color: var(--brand-gray-500);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  margin: 0 1rem;
  margin: 0 var(--spacing-4);
  white-space: nowrap;
}

/* Rounded variant */

.pagination--rounded .pagination__item,
.pagination--rounded .pagination__nav {
  border-radius: 9999px;
  border-radius: var(--radius-full);
}

/* Responsive */

@media (max-width: 768px) {
  .pagination {
    gap: 1px;
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
  }

  .pagination__item,
  .pagination__nav {
    min-width: 36px;
    height: 36px;
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
  }

  .pagination__nav {
    padding: 0 0.5rem;
    padding: 0 var(--spacing-2);
  }

  .pagination__info {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    margin: 0 0.5rem;
    margin: 0 var(--spacing-2);
  }


  /* Hide some items on mobile */
  .pagination__item:not(.pagination__item--active):not(.pagination__item--current-group) {
    display: none;
  }

  /* Show only current, prev, next, first, last on mobile */
  .pagination__item:first-child,
  .pagination__item:last-child,
  .pagination__item--active,
  .pagination__item[data-page="1"],
  .pagination__item[data-page="last"] {
    display: flex;
  }
}

@media (max-width: 480px) {
  .pagination__nav-text {
    display: none;
  }

  .pagination__info {
    display: none;
  }

}

/* Accessibility */

.pagination__item:focus,
.pagination__nav:focus {
  outline: 2px solid #ED1C24;
  outline: 2px solid var(--brand-red-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .pagination__item,
  .pagination__nav {
    transition: none;
  }
}

/* MM Medic Tabs Component
 * Tab navigation for switching between related content views
 */

.tabs {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
  border-bottom: 2px solid #E5E7EB;
  border-bottom: 2px solid var(--brand-gray-200);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

/* Hide scrollbar for Chrome, Safari and Opera */

.tabs::-webkit-scrollbar {
  height: 4px;
}

.tabs::-webkit-scrollbar-track {
  background: transparent;
}

.tabs::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  background: var(--brand-gray-300);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}

.tabs::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
  background: var(--brand-gray-400);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #4B5563;
  color: var(--brand-gray-600);
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--font-family-base);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  margin-bottom: -2px;
}

.tab:hover {
  color: #ED1C24;
  color: var(--brand-red-primary);
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

.tab--active {
  color: #ED1C24;
  color: var(--brand-red-primary);
  border-bottom-color: #ED1C24;
  border-bottom-color: var(--brand-red-primary);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.tab--disabled {
  color: #9CA3AF;
  color: var(--brand-gray-400);
  cursor: not-allowed;
  opacity: 0.6;
}

.tab--disabled:hover {
  color: #9CA3AF;
  color: var(--brand-gray-400);
  background: none;
}

/* Tab icon */

.tab .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Tab badge/counter */

.tab .badge {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  margin-left: 0.25rem;
  margin-left: var(--spacing-1);
}

/* Tab Content Panels */

.tab-content {
  display: none;
  animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeIn var(--transition-base);
}

.tab-content--active {
  display: block;
}

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

/* Tab Variants */

.tabs--sm .tab {
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.tabs--lg .tab {
  padding: 1rem 1.25rem;
  padding: var(--spacing-4) var(--spacing-5);
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
}

/* Pills Variant */

.tabs--pills {
  border-bottom: none;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.tabs--pills .tab {
  border-bottom: none;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  background: #F3F4F6;
  background: var(--brand-gray-100);
  margin-bottom: 0;
}

.tabs--pills .tab:hover {
  background: #E5E7EB;
  background: var(--brand-gray-200);
}

.tabs--pills .tab--active {
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
}

/* Boxed Variant */

.tabs--boxed {
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
  gap: 0;
}

.tabs--boxed .tab {
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-bottom: -1px;
}

.tabs--boxed .tab--active {
  background: #FFFFFF;
  background: var(--brand-white);
  border-color: #E5E7EB;
  border-color: var(--brand-gray-200);
  border-bottom-color: #FFFFFF;
  border-bottom-color: var(--brand-white);
}

/* Responsive */

@media (max-width: 639px) {
  .tabs {
    gap: 0.25rem;
    gap: var(--spacing-1);
  }

  .tab {
    padding: 0.5rem 0.75rem;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }

  .tabs--pills {
    flex-wrap: wrap;
  }
}

/* Modern Accordion Component - Premium Design */

.accordion {
  background: #FFFFFF;
  background: var(--brand-white);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
}

.accordion__item {
  border-bottom: 1px solid #F3F4F6;
  border-bottom: 1px solid var(--brand-gray-100);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__header {
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: all var(--transition-normal);
  background: #FFFFFF;
  background: var(--brand-white);
}

.accordion__header:hover {
  background: var(--brand-gray-25);
}

.accordion__header--active {
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

.accordion__trigger {
  width: 100%;
  padding: 1rem 1.25rem;
  padding: var(--spacing-4) var(--spacing-5);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  gap: var(--spacing-3);
  transition: all var(--transition-normal);
}

.accordion__title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
  line-height: 1.25;
  line-height: var(--line-height-tight);
  margin: 0;
  flex: 1;
}

.accordion__icon {
  width: 20px;
  height: 20px;
  color: #6B7280;
  color: var(--brand-gray-500);
  transform: rotate(0deg);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.accordion__header--active .accordion__icon {
  transform: rotate(90deg);
  color: #374151;
  color: var(--brand-gray-700);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
  background: #FFFFFF;
  background: var(--brand-white);
}

.accordion__content--open {
  max-height: 1000px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-slow);
}

.accordion__body {
  padding: 0 1.25rem 1rem 1.25rem;
  padding: 0 var(--spacing-5) var(--spacing-4) var(--spacing-5);
  color: #374151;
  color: var(--brand-gray-700);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

/* Smooth animations */

@media (prefers-reduced-motion: no-preference) {
  .accordion__content {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1) ease-out;
    transition: max-height var(--transition-slow) ease-out;
  }

  .accordion__icon {
    transition: transform var(--transition-normal) ease-out;
  }
}

/* Variants */

.accordion--minimal {
  box-shadow: none;
  border: none;
  background: transparent;
}

.accordion--minimal .accordion__item {
  background: #FFFFFF;
  background: var(--brand-white);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
}

.accordion--minimal .accordion__item:last-child {
  margin-bottom: 0;
}

/* Badge support */

.accordion__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.25rem;
  padding: 0 var(--spacing-1);
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #4B5563;
  color: var(--brand-gray-600);
  font-size: 11px;
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  margin-left: 0.5rem;
  margin-left: var(--spacing-2);
}

.accordion__header--active .accordion__badge {
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
}

/* Icon variants */

.accordion__icon--chevron {
  /* Default chevron style */
}

.accordion__icon--plus {
  transform: rotate(0deg);
}

.accordion__header--active .accordion__icon--plus {
  transform: rotate(45deg);
}

/* Responsive */

@media (max-width: 768px) {
  .accordion__trigger {
    padding: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
  }

  .accordion__body {
    padding: 0 1rem 0.75rem 1rem;
    padding: 0 var(--spacing-4) var(--spacing-3) var(--spacing-4);
  }

  .accordion__title {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }
}

/* Modern Steps Component - Clean Progress Indicator */

.steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  gap: var(--spacing-4);
  padding: 1rem 0;
  padding: var(--spacing-4) 0;
}

.steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  text-align: center;
}

.steps__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
  height: 2px;
  background: #E5E7EB;
  background: var(--brand-gray-200);
  z-index: 1;
  transition: background var(--transition-normal);
}

.steps__item--completed:not(:last-child)::after {
  background: #D1D5DB;
  background: var(--brand-gray-300);
}

.steps__item--active:not(:last-child)::after {
  background: linear-gradient(to right, #D1D5DB 50%, #E5E7EB 50%);
  background: linear-gradient(to right, var(--brand-gray-300) 50%, var(--brand-gray-200) 50%);
}

.steps__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  background: var(--brand-white);
  border: 2px solid #E5E7EB;
  border: 2px solid var(--brand-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #6B7280;
  color: var(--brand-gray-500);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
  transform-origin: center;
}

.steps__item--completed .steps__circle {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border-color: #D1D5DB;
  border-color: var(--brand-gray-300);
  color: #4B5563;
  color: var(--brand-gray-600);
}

.steps__item--active .steps__circle {
  background: #FFFFFF;
  background: var(--brand-white);
  border-color: #9CA3AF;
  border-color: var(--brand-gray-400);
  color: #374151;
  color: var(--brand-gray-700);
  transform: scale(1.1);
}

.steps__icon {
  width: 16px;
  height: 16px;
}

.steps__label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #374151;
  color: var(--brand-gray-700);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
  transition: color var(--transition-normal);
}

.steps__description {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  line-height: 1.25;
  line-height: var(--line-height-tight);
  max-width: 120px;
}

.steps__item--completed .steps__label {
  color: #374151;
  color: var(--brand-gray-700);
}

.steps__item--active .steps__label {
  color: #1F2937;
  color: var(--brand-gray-800);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.steps__item--active .steps__description {
  color: #374151;
  color: var(--brand-gray-700);
}

/* Vertical Steps */

.steps--vertical {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.steps--vertical .steps__item {
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  padding: 1rem 0;
  padding: var(--spacing-4) 0;
  border-left: 2px solid #E5E7EB;
  border-left: 2px solid var(--brand-gray-200);
  padding-left: 1.5rem;
  padding-left: var(--spacing-6);
  margin-left: 16px;
  position: relative;
}

.steps--vertical .steps__item:not(:last-child)::after {
  display: none;
}

.steps--vertical .steps__item--completed {
  border-left-color: #D1D5DB;
  border-left-color: var(--brand-gray-300);
}

.steps--vertical .steps__item--active {
  border-left-color: #9CA3AF;
  border-left-color: var(--brand-gray-400);
}

.steps--vertical .steps__circle {
  position: absolute;
  left: -17px;
  top: 1rem;
  top: var(--spacing-4);
  margin-bottom: 0;
  margin-right: 1rem;
  margin-right: var(--spacing-4);
}

.steps--vertical .steps__content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Compact variant */

.steps--compact .steps__circle {
  width: 40px;
  height: 40px;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.steps--compact .steps__label {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
}

.steps--compact .steps__description {
  font-size: 10px;
}

.steps--compact .steps__item:not(:last-child)::after {
  top: 20px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
}

/* Medical context styling */

.steps--medical .steps__item--completed .steps__circle {
  background: #10B981;
  background: var(--color-success);
  border-color: #10B981;
  border-color: var(--color-success);
  color: #FFFFFF;
  color: var(--brand-white);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2), 0 4px 12px rgba(16, 185, 129, 0.1);
  box-shadow: var(--shadow-success-medium);
}

.steps--medical .steps__item--active .steps__circle {
  background: #F59E0B;
  background: var(--color-warning);
  border-color: #F59E0B;
  border-color: var(--color-warning);
  color: #FFFFFF;
  color: var(--brand-white);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2), 0 4px 12px rgba(245, 158, 11, 0.1);
  box-shadow: var(--shadow-warning-medium);
  transform: scale(1.1);
}

.steps--medical .steps__item--completed:not(:last-child)::after {
  background: #10B981;
  background: var(--color-success);
}

.steps--medical .steps__item--completed .steps__label {
  color: #10B981;
  color: var(--color-success);
}

.steps--medical .steps__item--active .steps__label {
  color: #D97706;
  color: var(--color-warning-dark);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

/* Error state */

.steps__item--error .steps__circle {
  background: #ED1C24;
  background: var(--color-error);
  border-color: #ED1C24;
  border-color: var(--color-error);
  color: #FFFFFF;
  color: var(--brand-white);
  box-shadow: 0 0 12px rgba(237, 28, 36, 0.2), 0 4px 12px rgba(237, 28, 36, 0.1);
  box-shadow: var(--shadow-red-medium);
  animation: error-pulse 2s ease-in-out infinite;
}

.steps__item--error .steps__label {
  color: #ED1C24;
  color: var(--color-error);
}

@keyframes error-pulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(237, 28, 36, 0.2), 0 4px 12px rgba(237, 28, 36, 0.1);
    box-shadow: var(--shadow-red-medium);
  }
  50% {
    box-shadow: 0 0 16px rgba(237, 28, 36, 0.25), 0 6px 16px rgba(237, 28, 36, 0.15);
    box-shadow: var(--shadow-red-strong);
  }
}

/* Responsive */

@media (max-width: 768px) {
  .steps {
    gap: 0.5rem;
    gap: var(--spacing-2);
  }

  .steps__circle {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
  }

  .steps__label {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
  }

  .steps__description {
    font-size: 10px;
    max-width: 80px;
  }

  .steps__item:not(:last-child)::after {
    top: 14px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
  }

}

/* Accessibility */

.steps__item:focus-within .steps__circle {
  outline: 2px solid #9CA3AF;
  outline: 2px solid var(--brand-gray-400);
  outline-offset: 2px;
}

/* Hover effects for interactive steps */

.steps__item:hover .steps__circle {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
}

.steps__item--completed:hover .steps__circle {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) scale(1.05);
}

.steps__item--active:hover .steps__circle {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
  transform: scale(1.15) translateY(-1px);
}

/* Medical context hover effects */

.steps--medical .steps__item--completed:hover .steps__circle {
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25), 0 6px 16px rgba(16, 185, 129, 0.15);
  box-shadow: var(--shadow-success-strong);
  transform: translateY(-2px) scale(1.05);
}

.steps--medical .steps__item--active:hover .steps__circle {
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25), 0 6px 16px rgba(245, 158, 11, 0.15);
  box-shadow: var(--shadow-warning-strong);
  transform: scale(1.15) translateY(-1px);
}

/* Medical context for vertical steps */

.steps--vertical.steps--medical .steps__item--completed {
  border-left-color: #10B981;
  border-left-color: var(--color-success);
}

.steps--vertical.steps--medical .steps__item--active {
  border-left-color: #F59E0B;
  border-left-color: var(--color-warning);
}

/* MM Medic Admin Panel Components */

/* =================================================================
   ADMIN HEADER
   ================================================================= */

header.admin-header {
    position: fixed;
    top: 0;
    left: 280px; /* Width of sidebar */
    width: calc(100% - 280px);
    z-index: 1020;
    z-index: var(--z-sticky);
    background: #FFFFFF;
    background: var(--brand-white);
    border-bottom: 1px solid #E5E7EB;
    border-bottom: 1px solid var(--brand-gray-200);
    transition: left 0.2s cubic-bezier(0.4, 0, 0.2, 1), width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: left var(--transition-base), width var(--transition-base);
}

/* When sidebar is collapsed */

header.admin-header.admin-header--sidebar-collapsed {
    left: 80px; /* Width of collapsed sidebar */
    width: calc(100% - 80px);
}

/* Mobile: full width header */

@media (max-width: 1023px) {
    header.admin-header {
        left: 0;
        width: 100%;
    }
}

/* =================================================================
   ADMIN LAYOUT
   ================================================================= */

.admin-layout {
    background: #F9FAFB;
    background: var(--brand-gray-50);
    min-height: 100vh;
    padding-top: 64px; /* Height of header */
}

.admin-main {
    margin-left: 280px; /* Width of sidebar */
    min-height: 100vh;
    transition: margin-left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: margin-left var(--transition-base);
}

.admin-main__content {
    padding: 1.5rem 1.5rem 3rem;
    padding: var(--spacing-6) var(--spacing-6) var(--spacing-12);
}

/* When sidebar is collapsed */

.sidebar--collapsed ~ .admin-main,
.admin-main--sidebar-collapsed {
    margin-left: 80px; /* Width of collapsed sidebar */
}

/* Mobile: hide sidebar and remove margin */

@media (max-width: 1023px) {
    .admin-main {
        margin-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar--mobile-open {
        transform: translateX(0);
    }

    .admin-main__content {
        padding: 1rem;
        padding: var(--spacing-4);
    }
}

/* Desktop: ensure sidebar is visible */

@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }
}

/* Ultra-wide: more padding for main content */

@media (min-width: 1536px) {
    .admin-main__content {
        padding: 2rem 2rem 4rem;
        padding: var(--spacing-8) var(--spacing-8) var(--spacing-16);
    }
}

/* =================================================================
   ADMIN FILTER FORMS
   ================================================================= */

.admin-filter {
    background: #FFFFFF;
    background: var(--brand-white);
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-filter__header {
    padding: 1rem 1.5rem;
    padding: var(--spacing-4) var(--spacing-6);
    border-bottom: 1px solid #F3F4F6;
    border-bottom: 1px solid var(--brand-gray-100);
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
    background: linear-gradient(180deg, var(--brand-gray-50) 0%, var(--brand-white) 100%);
}

.admin-filter__title {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    color: #111827;
    color: var(--brand-gray-900);
    margin: 0;
}

.admin-filter__body {
    padding: 1.5rem;
    padding: var(--spacing-6);
}

.admin-filter__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    gap: var(--spacing-3);
    padding: 0.75rem;
    padding: var(--spacing-3);
}

/* Form Groups for Admin Filters */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    gap: var(--spacing-2);
}

.form-label {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #374151;
    color: var(--brand-gray-700);
    margin: 0;
}

.form-label--required::after {
    content: '*';
    color: #ED1C24;
    color: var(--color-error);
    margin-left: 0.25rem;
    margin-left: var(--spacing-1);
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 400;
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    color: #111827;
    color: var(--brand-gray-900);
    background: #FFFFFF;
    background: var(--brand-white);
    border: 1px solid #D1D5DB;
    border: 1px solid var(--brand-gray-300);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #ED1C24;
    border-color: var(--brand-red-primary);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.form-input:hover:not(:focus):not(:disabled),
.form-select:hover:not(:focus):not(:disabled),
.form-textarea:hover:not(:focus):not(:disabled) {
    border-color: #9CA3AF;
    border-color: var(--brand-gray-400);
}

.form-input::-moz-placeholder, .form-textarea::-moz-placeholder {
    color: #9CA3AF;
    color: var(--brand-gray-400);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9CA3AF;
    color: var(--brand-gray-400);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    background: #F9FAFB;
    background: var(--brand-gray-50);
    border-color: #E5E7EB;
    border-color: var(--brand-gray-200);
    color: #9CA3AF;
    color: var(--brand-gray-400);
    cursor: not-allowed;
}

/* Select specific styling */

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-position: right var(--spacing-2) center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2rem;
    padding-right: var(--spacing-8);
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Form Actions */

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
    margin-top: 1rem;
    margin-top: var(--spacing-4);
}

/* Admin Filter Grid Responsive */

@media (min-width: 640px) {
    .admin-filter__grid--2-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .admin-filter__grid--3-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .admin-filter__grid--4-cols {
        grid-template-columns: repeat(4, 1fr);
    }

    .admin-filter__grid--5-cols {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1280px) {
    .admin-filter__grid--6-cols {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* =================================================================
   ADMIN METRICS AND STATS
   ================================================================= */

.admin-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    gap: var(--spacing-4);
    margin-bottom: 1.5rem;
    margin-bottom: var(--spacing-6);
}

@media (min-width: 640px) {
    .admin-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .admin-metrics {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =================================================================
   ADMIN SEARCH FORM
   ================================================================= */

.admin-search {
    position: relative;
}

.admin-search__input {
    padding-left: 2.5rem;
    padding-left: var(--spacing-10);
    background: #FFFFFF;
    background: var(--brand-white);
}

.admin-search__icon {
    position: absolute;
    left: 0.75rem;
    left: var(--spacing-3);
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #9CA3AF;
    color: var(--brand-gray-400);
    pointer-events: none;
}

.admin-search__clear {
    position: absolute;
    right: 0.5rem;
    right: var(--spacing-2);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #9CA3AF;
    color: var(--brand-gray-400);
    cursor: pointer;
    border-radius: 9999px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
}

.admin-search__clear:hover {
    background: #F3F4F6;
    background: var(--brand-gray-100);
    color: #4B5563;
    color: var(--brand-gray-600);
}

/* =================================================================
   ADMIN FILTER BAR (COMPACT)
   ================================================================= */

.admin-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    gap: var(--spacing-3);
    padding: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
    background: #F9FAFB;
    background: var(--brand-gray-50);
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-4);
}

.admin-filter-bar__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
    white-space: nowrap;
}

.admin-filter-bar__label {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #4B5563;
    color: var(--brand-gray-600);
}

.admin-filter-bar__input {
    min-width: 120px;
    padding: 0.25rem 0.5rem;
    padding: var(--spacing-1) var(--spacing-2);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    border: 1px solid #D1D5DB;
    border: 1px solid var(--brand-gray-300);
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
}

.admin-filter-bar__select {
    min-width: 100px;
    padding: 0.25rem 1.5rem 0.25rem 0.5rem;
    padding: var(--spacing-1) var(--spacing-6) var(--spacing-1) var(--spacing-2);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    border: 1px solid #D1D5DB;
    border: 1px solid var(--brand-gray-300);
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.25rem center;
    background-position: right var(--spacing-1) center;
    background-repeat: no-repeat;
    background-size: 1em 1em;
}

.admin-filter-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
    margin-left: auto;
}

/* Mobile stacking for filter bar */

@media (max-width: 768px) {
    .admin-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        gap: var(--spacing-2);
    }

    .admin-filter-bar__item {
        justify-content: space-between;
    }

    .admin-filter-bar__actions {
        margin-left: 0;
        justify-content: center;
    }
}

/* =================================================================
   ADMIN BULK ACTIONS
   ================================================================= */

.admin-bulk-actions {
    background: #FDF2F2;
    background: var(--brand-red-lightest);
    border: 1px solid #F04951;
    border: 1px solid var(--brand-red-light);
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    padding: var(--spacing-4) var(--spacing-6);
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-4);
}

.admin-bulk-actions__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-bulk-actions__info {
    display: flex;
    align-items: center;
    gap: 1rem;
    gap: var(--spacing-4);
}

.admin-bulk-actions__count {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #ED1C24;
    color: var(--brand-red-primary);
}

.admin-bulk-actions__buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
}

.admin-bulk-actions__clear {
    color: #4B5563;
    color: var(--brand-gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    padding: 0.25rem 0.5rem;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
}

.admin-bulk-actions__clear:hover {
    background: #F3F4F6;
    background: var(--brand-gray-100);
    color: #1F2937;
    color: var(--brand-gray-800);
}

/* Mobile stacking for bulk actions */

@media (max-width: 640px) {
    .admin-bulk-actions__content {
        flex-direction: column;
        gap: 0.75rem;
        gap: var(--spacing-3);
        align-items: stretch;
    }

    .admin-bulk-actions__info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .admin-bulk-actions__buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* =================================================================
   ADMIN FORM VALIDATION STATES
   ================================================================= */

.form-group--error .form-label {
    color: #ED1C24;
    color: var(--color-error);
}

.form-group--error .form-input,
.form-group--error .form-select,
.form-group--error .form-textarea {
    border-color: #ED1C24;
    border-color: var(--color-error);
}

.form-group--error .form-input:focus,
.form-group--error .form-select:focus,
.form-group--error .form-textarea:focus {
    border-color: #ED1C24;
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group--success .form-label {
    color: #10B981;
    color: var(--color-success);
}

.form-group--success .form-input,
.form-group--success .form-select,
.form-group--success .form-textarea {
    border-color: #10B981;
    border-color: var(--color-success);
}

.form-error {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #ED1C24;
    color: var(--color-error);
    margin-top: 0.25rem;
    margin-top: var(--spacing-1);
}

.form-help {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #6B7280;
    color: var(--brand-gray-500);
    margin-top: 0.25rem;
    margin-top: var(--spacing-1);
}

/* =================================================================
   RESPONSIVE BREAKPOINTS (CLAUDE.md COMPLIANCE)
   ================================================================= */

/* Mobile: 320px - 639px (базовий розмір) */

.admin-filter__body {
    padding: 1rem;
    padding: var(--spacing-4);
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.5rem 0.75rem;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

/* Tablet: 640px - 1023px */

@media (min-width: 640px) {
    .admin-filter__grid--2-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 1024px - 1279px */

@media (min-width: 1024px) {
    .admin-filter__body {
        padding: 1.5rem;
        padding: var(--spacing-6);
    }

    .admin-filter__grid--3-cols {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-filter__grid--4-cols {
        grid-template-columns: repeat(4, 1fr);
    }

    .admin-filter__grid--5-cols {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Wide: 1280px - 1535px */

@media (min-width: 1280px) {
    .admin-filter__grid--6-cols {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Ultra-wide: 1536px+ (обов'язково за CLAUDE.md) */

@media (min-width: 1536px) {
    /* Фільтри адаптуються до ultra-wide екранів */
    .admin-filter__grid--auto {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* Більше простору для форм на широких екранах */
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.75rem 1rem;
        padding: var(--spacing-3) var(--spacing-4);
    }
}

/* =================================================================
   ADMIN REGISTRATIONS SEMANTIC CLASSES
   ================================================================= */

/* Registration filter form specific layout */

.registrations-filter__search {
    grid-column: span 1;
}

/* Responsive grid column spans for registration filters */

@media (min-width: 640px) {
    .registrations-filter__search {
        grid-column: span 2;
    }
}

@media (min-width: 1280px) {
    .registrations-filter__search {
        grid-column: span 2;
    }
}

/* Events calendar semantic classes */

.events-calendar-stats {
    /* Inherit grid behavior from design system */
}

/* Certificates semantic classes */

.certificates-stats {
    /* Inherit grid behavior from design system */
}

.certificates-filter__search {
    grid-column: span 1;
}

/* Responsive grid column spans for certificates filters */

@media (min-width: 640px) {
    .certificates-filter__search {
        grid-column: span 2;
    }
}

@media (min-width: 1280px) {
    .certificates-filter__search {
        grid-column: span 2;
    }
}

/* Carts semantic classes */

.carts-stats {
    /* Inherit grid behavior from design system */
}

.carts-filter__search {
    grid-column: span 1;
}

/* Responsive grid column spans for carts filters */

@media (min-width: 640px) {
    .carts-filter__search {
        grid-column: span 2;
    }
}

@media (min-width: 1280px) {
    .carts-filter__search {
        grid-column: span 2;
    }
}

/* Ultra-wide: 1536px+ (CLAUDE.md обов'язкова вимога) */

@media (min-width: 1536px) {
    /* Статистичні картки адаптуються до ultra-wide екранів */
    .registrations-stats,
    .events-calendar-stats,
    .certificates-stats,
    .carts-stats {
        gap: 2rem;
        gap: var(--spacing-8);
    }

    .registrations-stats .card--metric {
        padding: 1.5rem;
        padding: var(--spacing-6);
    }

    /* Фільтри на ultra-wide займають оптимальний простір */
    .registrations-filter__search,
    .certificates-filter__search,
    .carts-filter__search {
        grid-column: span 3; /* Більше простору для пошуку на широких екранах */
    }

    /* Таблиця оптимізована для ultra-wide */
    .registrations-table .table__cell,
    .certificates-table .table__cell,
    .carts-table .table__cell {
        padding: 1rem 1.25rem;
        padding: var(--spacing-4) var(--spacing-5);
    }

    .registrations-table .table__avatar,
    .certificates-table .table__avatar,
    .carts-table .table__avatar {
        gap: 1rem;
        gap: var(--spacing-4);
    }
}

/* Loading overlay for admin panel */

.admin-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all var(--transition-base);
}

.admin-loading-overlay--visible {
    opacity: 1;
    visibility: visible;
}

.admin-loading-overlay__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    gap: var(--spacing-4);
}

.admin-loading-overlay__text {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #374151;
    color: var(--brand-gray-700);
}

/* =================================================================
   ORDER DETAIL HEADER
   ================================================================= */

.order-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    gap: var(--spacing-6);
    margin-bottom: 1.5rem;
    margin-bottom: var(--spacing-6);
}

.order-detail-header__info {
    flex: 1;
    min-width: 0;
}

.order-detail-header__title {
    font-size: 1.5rem;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    font-weight: var(--font-weight-bold);
    color: #111827;
    color: var(--brand-gray-900);
    margin: 0 0 0.5rem 0;
    margin: 0 0 var(--spacing-2) 0;
}

.order-detail-header__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    gap: var(--spacing-3);
    flex-wrap: wrap;
}

.order-detail-header__date {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #4B5563;
    color: var(--brand-gray-600);
}

.order-detail-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
    flex-shrink: 0;
}

/* Mobile: stack actions vertically */

@media (max-width: 639px) {
    .order-detail-header {
        flex-direction: column;
        gap: 1rem;
        gap: var(--spacing-4);
    }

    .order-detail-header__actions {
        width: 100%;
        flex-direction: column;
    }

    .order-detail-header__actions .btn {
        width: 100%;
    }
}

/* =================================================================
   ORDER TOTALS
   ================================================================= */

.order-totals {
    border-top: 1px solid #E5E7EB;
    border-top: 1px solid var(--brand-gray-200);
    margin-top: 1.5rem;
    margin-top: var(--spacing-6);
    padding-top: 1rem;
    padding-top: var(--spacing-4);
}

.order-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    padding: var(--spacing-2) 0;
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

.order-totals__row--total {
    border-top: 2px solid #D1D5DB;
    border-top: 2px solid var(--brand-gray-300);
    margin-top: 0.5rem;
    margin-top: var(--spacing-2);
    padding-top: 0.75rem;
    padding-top: var(--spacing-3);
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
    font-weight: 700;
    font-weight: var(--font-weight-bold);
}

.order-totals__label {
    color: #374151;
    color: var(--brand-gray-700);
}

.order-totals__value {
    color: #111827;
    color: var(--brand-gray-900);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
}

.order-totals__value--discount {
    color: #10B981;
    color: var(--color-success);
}

.order-totals__row--total .order-totals__label,
.order-totals__row--total .order-totals__value {
    color: #111827;
    color: var(--brand-gray-900);
}

/* =================================================================
   ORDER STATUS FORM
   ================================================================= */

.order-status-form {
    border-top: 1px solid #E5E7EB;
    border-top: 1px solid var(--brand-gray-200);
    padding-top: 1.5rem;
    padding-top: var(--spacing-6);
    margin-top: 1.5rem;
    margin-top: var(--spacing-6);
}

.order-status-form .form {
    margin-top: 1rem;
    margin-top: var(--spacing-4);
}

/* =================================================================
   CUSTOMER INFO CARD
   ================================================================= */

.customer-info__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    gap: var(--spacing-4);
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-4);
    padding-bottom: 1rem;
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid #E5E7EB;
    border-bottom: 1px solid var(--brand-gray-200);
}

.customer-info__name {
    flex: 1;
    min-width: 0;
}

.customer-info__name h4 {
    margin: 0 0 0.25rem 0;
    margin: 0 0 var(--spacing-1) 0;
}

.customer-info__contacts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    gap: var(--spacing-2);
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-4);
    padding-bottom: 1rem;
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid #E5E7EB;
    border-bottom: 1px solid var(--brand-gray-200);
}

.customer-info__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #374151;
    color: var(--brand-gray-700);
}

.customer-info__item svg {
    flex-shrink: 0;
    color: #9CA3AF;
    color: var(--brand-gray-400);
}

.customer-info__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    gap: var(--spacing-4);
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-4);
}

.customer-info__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem;
    padding: var(--spacing-3);
    background: #F9FAFB;
    background: var(--brand-gray-50);
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
}

.customer-info__stat-label {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #4B5563;
    color: var(--brand-gray-600);
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
}

.customer-info__stat-value {
    font-size: 1.25rem;
    font-size: var(--font-size-xl);
    font-weight: 700;
    font-weight: var(--font-weight-bold);
    color: #111827;
    color: var(--brand-gray-900);
}

/* =================================================================
   ADDRESS CARD
   ================================================================= */

.address-card {
    display: flex;
    gap: 1rem;
    gap: var(--spacing-4);
}

.address-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    background: var(--brand-gray-100);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    color: #4B5563;
    color: var(--brand-gray-600);
}

.address-card__content {
    flex: 1;
    min-width: 0;
}

.address-card__name {
    font-size: 1rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    color: #111827;
    color: var(--brand-gray-900);
    margin: 0 0 0.25rem 0;
    margin: 0 0 var(--spacing-1) 0;
}

.address-card__company {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #374151;
    color: var(--brand-gray-700);
    margin: 0 0 0.5rem 0;
    margin: 0 0 var(--spacing-2) 0;
}

.address-card__line {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #374151;
    color: var(--brand-gray-700);
    margin: 0 0 0.25rem 0;
    margin: 0 0 var(--spacing-1) 0;
    line-height: 1.75;
    line-height: var(--line-height-relaxed);
}

.address-card__contacts {
    margin-top: 0.75rem;
    margin-top: var(--spacing-3);
    padding-top: 0.75rem;
    padding-top: var(--spacing-3);
    border-top: 1px solid #E5E7EB;
    border-top: 1px solid var(--brand-gray-200);
}

.address-card__contacts p {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #4B5563;
    color: var(--brand-gray-600);
    margin: 0 0 0.25rem 0;
    margin: 0 0 var(--spacing-1) 0;
}

/* =================================================================
   PAYMENT INFO
   ================================================================= */

.payment-info__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    padding: var(--spacing-2) 0;
    border-bottom: 1px solid #F3F4F6;
    border-bottom: 1px solid var(--brand-gray-100);
}

.payment-info__row:last-of-type {
    border-bottom: none;
}

.payment-info__label {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #4B5563;
    color: var(--brand-gray-600);
}

.payment-info__value {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #111827;
    color: var(--brand-gray-900);
    text-align: right;
}

.payment-info__value--amount {
    font-size: 1.25rem;
    font-size: var(--font-size-xl);
    font-weight: 700;
    font-weight: var(--font-weight-bold);
    color: #10B981;
    color: var(--color-success);
}

.payment-info__details {
    margin-top: 1rem;
    margin-top: var(--spacing-4);
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
}

.payment-info__details-summary {
    padding: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #374151;
    color: var(--brand-gray-700);
    cursor: pointer;
    background: #F9FAFB;
    background: var(--brand-gray-50);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: background var(--transition-fast);
}

.payment-info__details-summary:hover {
    background: #F3F4F6;
    background: var(--brand-gray-100);
}

.payment-info__details[open] .payment-info__details-summary {
    border-bottom: 1px solid #E5E7EB;
    border-bottom: 1px solid var(--brand-gray-200);
    border-radius: 0.375rem 0.375rem 0 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.payment-info__details-content {
    padding: 1rem;
    padding: var(--spacing-4);
    margin: 0;
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    font-family: 'Monaco', 'Courier New', monospace;
    background: #111827;
    background: var(--brand-gray-900);
    color: #FFFFFF;
    color: var(--brand-white);
    border-radius: 0 0 0.375rem 0.375rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow-x: auto;
}

/* =================================================================
   ADMIN NOTES FORM
   ================================================================= */

.admin-notes-form textarea {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-family: var(--font-family-base);
}

/* =================================================================
   ORDER TIMELINE EXTENSIONS (additional to profile-components.css)
   ================================================================= */

.order-timeline__author {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #6B7280;
    color: var(--brand-gray-500);
    margin-top: 0.25rem;
    margin-top: var(--spacing-1);
}

/* =================================================================
   RESPONSIVE BREAKPOINTS FOR ORDER DETAIL
   ================================================================= */

/* Mobile: 320px - 639px */

@media (max-width: 639px) {
    .order-detail-header__title {
        font-size: 1.25rem;
        font-size: var(--font-size-xl);
    }

    .customer-info__stats {
        gap: 0.5rem;
        gap: var(--spacing-2);
    }

    .customer-info__stat {
        padding: 0.5rem;
        padding: var(--spacing-2);
    }

    .customer-info__stat-value {
        font-size: 1.125rem;
        font-size: var(--font-size-lg);
    }
}

/* Tablet: 640px - 1023px */

@media (min-width: 640px) {
    .order-detail-header__actions {
        flex-direction: row;
    }
}

/* Desktop and beyond: maintain layout */

@media (min-width: 1024px) {
    .order-detail-header__title {
        font-size: 1.875rem;
        font-size: var(--font-size-3xl);
    }
}

/* Ultra-wide: 1536px+ (CLAUDE.md обов'язкова вимога) */

@media (min-width: 1536px) {
    .order-totals__row {
        padding: 0.75rem 0;
        padding: var(--spacing-3) 0;
    }

    .order-totals__row--total {
        padding-top: 1rem;
        padding-top: var(--spacing-4);
    }

    .customer-info__stats {
        gap: 1.5rem;
        gap: var(--spacing-6);
    }

    .customer-info__stat {
        padding: 1rem;
        padding: var(--spacing-4);
    }

    .payment-info__row {
        padding: 0.75rem 0;
        padding: var(--spacing-3) 0;
    }
}

/* =================================================================
   TOAST NOTIFICATIONS
   ================================================================= */

/**
 * NOTE: Toast styles moved to design-system/patterns/_alerts.css
 * Use existing .toast class from alerts.css (lines 158-200)
 *
 * Usage:
 * const toast = document.createElement('div');
 * toast.classList.add('alert', 'toast', 'alert--success');
 * toast.innerHTML = '<div class="alert__content"><div class="alert__message">Message</div></div>';
 * document.body.appendChild(toast);
 *
 * Auto-dismiss:
 * setTimeout(() => {
 *   toast.classList.add('toast--removing');
 *   setTimeout(() => toast.remove(), 300);
 * }, 3000);
 */

/* =================================================================
   DELIVERY CARD (Nova Poshta)
   ================================================================= */

.delivery-card {
    padding: 1.5rem;
    padding: var(--spacing-6);
}

.delivery-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-4);
}

.delivery-card__logo {
    height: 24px;
    width: auto;
}

.delivery-card__loading {
    padding: 1.5rem 0;
    padding: var(--spacing-6) 0;
    text-align: center;
    color: var(--text-muted);
}

.delivery-card__no-delivery {
    padding: 1.5rem 0;
    padding: var(--spacing-6) 0;
    text-align: center;
}

.delivery-card__no-delivery-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-4);
}

.delivery-card__button-group {
    display: flex;
    gap: 0.75rem;
    gap: var(--spacing-3);
    align-items: center;
    margin-top: 1rem;
    margin-top: var(--spacing-4);
}

.delivery-card__separator {
    color: var(--text-muted);
}

/* Delivery Info Grid */

.delivery-info-grid {
    display: grid;
    gap: 1rem;
    gap: var(--spacing-4);
}

.delivery-info-item__label {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
}

.delivery-info-item__value {
    font-weight: 500;
    font-weight: var(--font-weight-medium);
}

.delivery-info-item__value--ttn {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
}

.delivery-info-item__value--phone {
    color: var(--text-muted);
}

.delivery-info-actions {
    display: flex;
    gap: 0.75rem;
    gap: var(--spacing-3);
    margin-top: 1rem;
    margin-top: var(--spacing-4);
}

/* MM Medic Calendar Components - Clean Modern Style */

/* Following CLAUDE.md guidelines for design system components */

/* =================================================================
   BASE CALENDAR LAYOUT
   ================================================================= */

.calendar {
    background: #FFFFFF;
    background: var(--brand-white);
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
    border-radius: 1rem;
    border-radius: var(--radius-2xl);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    width: 100%;
}

.calendar__header {
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
    background: linear-gradient(180deg, var(--brand-gray-50) 0%, var(--brand-white) 100%);
    border-bottom: 1px solid #E5E7EB;
    border-bottom: 1px solid var(--brand-gray-200);
    padding: 1rem 1.5rem;
    padding: var(--spacing-4) var(--spacing-6);
}

.calendar__title {
    font-size: 1.25rem;
    font-size: var(--font-size-xl);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    color: #111827;
    color: var(--brand-gray-900);
    margin: 0;
}

.calendar__navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    gap: var(--spacing-4);
}

.calendar__month-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
    gap: var(--spacing-4);
}

/* Навігаційні кнопки календаря використовують btn--icon-only з дизайн-системи */

.calendar__current-period {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #111827;
    color: var(--brand-gray-900);
    min-width: 180px;
    text-align: center;
}

/* =================================================================
   CALENDAR GRID
   ================================================================= */

.calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-collapse: collapse;
}

.calendar__weekday-header {
    background: #F9FAFB;
    background: var(--brand-gray-50);
    border-bottom: 1px solid #E5E7EB;
    border-bottom: 1px solid var(--brand-gray-200);
    padding: 0.75rem 0.5rem;
    padding: var(--spacing-3) var(--spacing-2);
    text-align: center;
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #374151;
    color: var(--brand-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    letter-spacing: var(--tracking-wide);
}

.calendar__day {
    min-height: 120px;
    border-right: 1px solid #F3F4F6;
    border-right: 1px solid var(--brand-gray-100);
    border-bottom: 1px solid #F3F4F6;
    border-bottom: 1px solid var(--brand-gray-100);
    padding: 0.5rem;
    padding: var(--spacing-2);
    background: #FFFFFF;
    background: var(--brand-white);
    position: relative;
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
}

.calendar__day:hover {
    background: var(--brand-gray-25);
}

.calendar__day:nth-child(7n) {
    border-right: none;
}

.calendar__day--other-month {
    background: var(--brand-gray-25);
    color: #9CA3AF;
    color: var(--brand-gray-400);
}

.calendar__day--today {
    background: rgba(185, 28, 28, 0.05);
    border-color: #F04951;
    border-color: var(--brand-red-light);
}

.calendar__day--selected {
    background: #FDF2F2;
    background: var(--brand-red-lightest);
    border-color: #ED1C24;
    border-color: var(--brand-red-primary);
}

.calendar__day-number {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #111827;
    color: var(--brand-gray-900);
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
    line-height: 1;
}

.calendar__day--other-month .calendar__day-number {
    color: #9CA3AF;
    color: var(--brand-gray-400);
}

.calendar__day--today .calendar__day-number {
    color: #ED1C24;
    color: var(--brand-red-primary);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
}

/* =================================================================
   CALENDAR EVENTS
   ================================================================= */

.calendar__events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    gap: var(--spacing-1);
    min-height: 80px;
}

.calendar__event {
    padding: 0.25rem 0.5rem;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
    cursor: pointer;
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.calendar__event:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
}

/* Event types following MM Medic color system */

.calendar__event--masterclass {
    background: #DBEAFE;
    background: var(--color-info-bg);
    color: #2563EB;
    color: var(--color-info-dark);
    border-left-color: #3B82F6;
    border-left-color: var(--color-info);
}

.calendar__event--webinar {
    background: #D1FAE5;
    background: var(--color-success-bg);
    color: #059669;
    color: var(--color-success-dark);
    border-left-color: #10B981;
    border-left-color: var(--color-success);
}

.calendar__event--conference {
    background: #FDF2F2;
    background: var(--brand-red-lightest);
    color: #D11920;
    color: var(--brand-red-dark);
    border-left-color: #ED1C24;
    border-left-color: var(--brand-red-primary);
}

.calendar__event--workshop {
    background: #FEF3C7;
    background: var(--color-warning-bg);
    color: #D97706;
    color: var(--color-warning-dark);
    border-left-color: #F59E0B;
    border-left-color: var(--color-warning);
}

.calendar__event--course {
    background: #F3F4F6;
    background: var(--brand-gray-100);
    color: #1F2937;
    color: var(--brand-gray-800);
    border-left-color: #6B7280;
    border-left-color: var(--brand-gray-500);
}

.calendar__event-time {
    display: block;
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 400;
    font-weight: var(--font-weight-normal);
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
    opacity: 0.8;
}

.calendar__event-title {
    display: block;
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
}

.calendar__event-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    gap: var(--spacing-1);
    margin-top: 0.25rem;
    margin-top: var(--spacing-1);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    opacity: 0.8;
}

.calendar__event-participants {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    gap: var(--spacing-1);
}

/* =================================================================
   CALENDAR VIEWS
   ================================================================= */

.calendar__view-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
    margin-left: auto;
}

/* Використовуємо badge компоненти дизайн-системи для view controls */

.calendar__view-controls .badge {
    cursor: pointer;
}

.calendar__view-controls .badge--secondary {
    background: #FFFFFF;
    background: var(--brand-white);
    border-color: #D1D5DB;
    border-color: var(--brand-gray-300);
    color: #374151;
    color: var(--brand-gray-700);
}

.calendar__view-controls .badge--secondary:hover {
    background: #F9FAFB;
    background: var(--brand-gray-50);
    border-color: #9CA3AF;
    border-color: var(--brand-gray-400);
}

.calendar__view-controls .badge--primary {
    background: #ED1C24;
    background: var(--brand-red-primary);
    border-color: #ED1C24;
    border-color: var(--brand-red-primary);
    color: #FFFFFF;
    color: var(--brand-white);
}

.calendar__view-controls .badge--primary:hover {
    background: #D11920;
    background: var(--brand-red-dark);
    border-color: #D11920;
    border-color: var(--brand-red-dark);
}

/* Week view specific */

.calendar--week .calendar__grid {
    grid-template-columns: 80px repeat(7, 1fr);
}

.calendar__time-slot {
    border-right: 1px solid #E5E7EB;
    border-right: 1px solid var(--brand-gray-200);
    border-bottom: 1px solid #F3F4F6;
    border-bottom: 1px solid var(--brand-gray-100);
    padding: 0.5rem;
    padding: var(--spacing-2);
    background: var(--brand-gray-25);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #4B5563;
    color: var(--brand-gray-600);
    text-align: center;
}

/* =================================================================
   MINI CALENDAR (SIDEBAR)
   ================================================================= */

.calendar--mini {
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-xs);
}

.calendar--mini .calendar__header {
    padding: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
}

.calendar--mini .calendar__title {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
}

/* Кнопки міні календаря використовують btn--sm */

.calendar--mini .calendar__day {
    min-height: 32px;
    padding: 0.25rem;
    padding: var(--spacing-1);
}

.calendar--mini .calendar__day-number {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    text-align: center;
    margin: 0;
}

.calendar--mini .calendar__events {
    display: none;
}

.calendar--mini .calendar__day--has-events::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    bottom: var(--spacing-1);
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #ED1C24;
    background: var(--brand-red-primary);
    border-radius: 9999px;
    border-radius: var(--radius-full);
}

/* =================================================================
   RESPONSIVE DESIGN (CLAUDE.md compliance)
   ================================================================= */

/* Mobile: 320px - 639px (базовий розмір, mobile-first) */

.calendar__day {
    min-height: 80px;
    padding: 0.25rem;
    padding: var(--spacing-1);
}

.calendar__event {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    padding: 0.25rem;
    padding: var(--spacing-1);
}

.calendar__event-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tablet: 640px - 1023px */

@media (min-width: 640px) {
    .calendar__day {
        min-height: 100px;
        padding: 0.5rem;
        padding: var(--spacing-2);
    }

    .calendar__event {
        padding: 0.25rem 0.5rem;
        padding: var(--spacing-1) var(--spacing-2);
    }

    .calendar__event-title {
        white-space: normal;
    }

    .calendar__header {
        padding: 1.25rem 1.5rem;
        padding: var(--spacing-5) var(--spacing-6);
    }

    /* Навігаційні кнопки адаптуються через btn компонент */
}

/* Desktop: 1024px - 1279px */

@media (min-width: 1024px) {
    .calendar__day {
        min-height: 120px;
        padding: 0.75rem;
        padding: var(--spacing-3);
    }

    .calendar__event {
        font-size: 0.875rem;
        font-size: var(--font-size-sm);
        padding: 0.5rem 0.75rem;
        padding: var(--spacing-2) var(--spacing-3);
    }

    .calendar__events {
        gap: 0.5rem;
        gap: var(--spacing-2);
    }

    .calendar__header {
        padding: 1.5rem;
        padding: var(--spacing-6);
    }
}

/* Wide: 1280px - 1535px */

@media (min-width: 1280px) {
    .calendar__day {
        min-height: 140px;
        padding: 1rem;
        padding: var(--spacing-4);
    }

    .calendar__events {
        gap: 0.5rem;
        gap: var(--spacing-2);
        min-height: 100px;
    }
}

/* Ultra-wide: 1536px+ (обов'язково за CLAUDE.md) */

@media (min-width: 1536px) {
    .calendar__day {
        min-height: 160px;
        padding: 1.25rem;
        padding: var(--spacing-5);
    }

    .calendar__events {
        gap: 0.75rem;
        gap: var(--spacing-3);
        min-height: 120px;
    }

    .calendar__event {
        padding: 0.5rem 1rem;
        padding: var(--spacing-2) var(--spacing-4);
    }

    .calendar__event-meta {
        gap: 0.5rem;
        gap: var(--spacing-2);
    }

    /* На ultra-wide показуємо більше деталей */
    .calendar__event-location {
        display: inline;
    }

    .calendar__event-format {
        display: inline;
    }
}

/* =================================================================
   CALENDAR LEGEND
   ================================================================= */

.calendar__legend {
    padding: 1rem 1.5rem;
    padding: var(--spacing-4) var(--spacing-6);
    background: var(--brand-gray-25);
    border-top: 1px solid #E5E7EB;
    border-top: 1px solid var(--brand-gray-200);
}

.calendar__legend-title {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #374151;
    color: var(--brand-gray-700);
    margin: 0 0 0.75rem 0;
    margin: 0 0 var(--spacing-3) 0;
}

.calendar__legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    gap: var(--spacing-4);
}

.calendar__legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
}

.calendar__legend-color {
    width: 12px;
    height: 12px;
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.calendar__legend-color--masterclass {
    background: #3B82F6;
    background: var(--color-info);
}

.calendar__legend-color--webinar {
    background: #10B981;
    background: var(--color-success);
}

.calendar__legend-color--conference {
    background: #ED1C24;
    background: var(--brand-red-primary);
}

.calendar__legend-color--workshop {
    background: #F59E0B;
    background: var(--color-warning);
}

.calendar__legend-color--course {
    background: #6B7280;
    background: var(--brand-gray-500);
}

.calendar__legend-label {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #374151;
    color: var(--brand-gray-700);
}

/* =================================================================
   CALENDAR LOADING AND EMPTY STATES
   ================================================================= */

.calendar__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    flex-direction: column;
    gap: 1rem;
    gap: var(--spacing-4);
}

.calendar__loading-text {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
    color: #4B5563;
    color: var(--brand-gray-600);
}

.calendar__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    flex-direction: column;
    gap: 1rem;
    gap: var(--spacing-4);
    padding: 2rem;
    padding: var(--spacing-8);
    text-align: center;
}

.calendar__empty-icon {
    width: 64px;
    height: 64px;
    color: #9CA3AF;
    color: var(--brand-gray-400);
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
}

.calendar__empty-title {
    font-size: 1.25rem;
    font-size: var(--font-size-xl);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #374151;
    color: var(--brand-gray-700);
    margin: 0 0 0.5rem 0;
    margin: 0 0 var(--spacing-2) 0;
}

.calendar__empty-text {
    font-size: 1rem;
    font-size: var(--font-size-base);
    color: #4B5563;
    color: var(--brand-gray-600);
    margin: 0 0 1.5rem 0;
    margin: 0 0 var(--spacing-6) 0;
    max-width: 400px;
}

/* =================================================================
   CALENDAR TOOLBAR
   ================================================================= */

.calendar__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    gap: var(--spacing-4);
    padding: 1rem 1.5rem;
    padding: var(--spacing-4) var(--spacing-6);
    border-bottom: 1px solid #E5E7EB;
    border-bottom: 1px solid var(--brand-gray-200);
    background: #FFFFFF;
    background: var(--brand-white);
}

.calendar__toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    gap: var(--spacing-3);
}

.calendar__toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    gap: var(--spacing-3);
}

/* Всі кнопки календаря використовують btn компоненти дизайн-системи */

.calendar__filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
}

/* Фільтр селект використовує input компонент дизайн-системи */

/* =================================================================
   MOBILE RESPONSIVE OPTIMIZATIONS
   ================================================================= */

/* Мобільна адаптація календаря */

@media (max-width: 639px) {
    .calendar__header {
        padding: 0.75rem 1rem;
        padding: var(--spacing-3) var(--spacing-4);
    }

    .calendar__navigation {
        flex-direction: column;
        gap: 0.75rem;
        gap: var(--spacing-3);
    }

    /* Кнопки навігації місяця залишаються в один рядок навіть на мобільних */
    .calendar__month-navigation {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        gap: var(--spacing-3);
    }

    .calendar__current-period {
        font-size: 1rem;
        font-size: var(--font-size-base);
        min-width: auto;
    }

    .calendar__view-controls {
        margin-left: 0;
        justify-content: center;
    }

    .calendar__toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        gap: var(--spacing-3);
        padding: 0.75rem 1rem;
        padding: var(--spacing-3) var(--spacing-4);
    }

    .calendar__toolbar-left,
    .calendar__toolbar-right {
        justify-content: center;
    }

    .calendar__day {
        min-height: 60px;
        padding: 0.25rem;
        padding: var(--spacing-1);
    }

    .calendar__events {
        min-height: 40px;
        gap: 1px;
    }

    .calendar__event {
        padding: 2px 0.25rem;
        padding: 2px var(--spacing-1);
        font-size: 10px;
    }

    .calendar__event-time {
        display: none;
    }

    .calendar__event-meta {
        display: none;
    }

    .calendar__legend {
        padding: 0.75rem 1rem;
        padding: var(--spacing-3) var(--spacing-4);
    }

    .calendar__legend-items {
        gap: 0.5rem;
        gap: var(--spacing-2);
    }
}

/* Планшет - адаптація для touch */

@media (min-width: 640px) and (max-width: 1023px) {
    .calendar__day {
        min-height: 90px;
    }

    .calendar__nav-button {
        width: 48px;
        height: 48px;
    }

    .calendar__event {
        cursor: pointer;
        touch-action: manipulation;
    }
}

/* =================================================================
   CALENDAR ACCESSIBILITY
   ================================================================= */

.calendar__day:focus {
    outline: 2px solid #ED1C24;
    outline: 2px solid var(--brand-red-primary);
    outline-offset: -2px;
    z-index: 1;
}

.calendar__event:focus {
    outline: 2px solid #ED1C24;
    outline: 2px solid var(--brand-red-primary);
    outline-offset: 1px;
    z-index: 2;
}

/* Focus стилі для навігаційних кнопок вже є в btn компонентах */

/* Screen reader only elements */

.calendar__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =================================================================
   CALENDAR EVENT INDICATORS
   ================================================================= */

.calendar__event-indicator {
    position: absolute;
    top: 0.25rem;
    top: var(--spacing-1);
    right: 0.25rem;
    right: var(--spacing-1);
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    border-radius: var(--radius-full);
    background: #ED1C24;
    background: var(--brand-red-primary);
}

.calendar__day--has-many-events .calendar__event-indicator {
    background: #F59E0B;
    background: var(--color-warning);
}

.calendar__day--fully-booked .calendar__event-indicator {
    background: #ED1C24;
    background: var(--color-error);
}

/* More events indicator */

.calendar__more-events {
    padding: 0.25rem 0.5rem;
    padding: var(--spacing-1) var(--spacing-2);
    background: #F3F4F6;
    background: var(--brand-gray-100);
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #4B5563;
    color: var(--brand-gray-600);
    text-align: center;
    cursor: pointer;
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
}

.calendar__more-events:hover {
    background: #E5E7EB;
    background: var(--brand-gray-200);
    color: #1F2937;
    color: var(--brand-gray-800);
}

/* MM Medic Empty State Component */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  padding: var(--spacing-16) var(--spacing-4);
  gap: 1rem;
  gap: var(--spacing-4);
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  background-color: #F3F4F6;
  background-color: var(--brand-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state__icon svg,
.empty-state__icon .icon {
  width: 32px;
  height: 32px;
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

.empty-state__title {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
}

.empty-state__message {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #4B5563;
  color: var(--brand-gray-600);
  max-width: 400px;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.empty-state__text {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #4B5563;
  color: var(--brand-gray-600);
  max-width: 400px;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.empty-state__actions {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* Compact Variant */

.empty-state--compact {
  padding: 3rem 1rem;
  padding: var(--spacing-12) var(--spacing-4);
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.empty-state--compact .empty-state__icon {
  width: 48px;
  height: 48px;
}

.empty-state--compact .empty-state__icon svg,
.empty-state--compact .empty-state__icon .icon {
  width: 24px;
  height: 24px;
}

.empty-state--compact .empty-state__title {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
}

.empty-state--compact .empty-state__message,
.empty-state--compact .empty-state__text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

/* Responsive */

@media (max-width: 639px) {
  .empty-state {
    padding: 2rem 0.75rem;
    padding: var(--spacing-8) var(--spacing-3);
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .empty-state__icon {
    width: 56px;
    height: 56px;
  }

  .empty-state__icon svg,
  .empty-state__icon .icon {
    width: 28px;
    height: 28px;
  }

  .empty-state__title {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
  }

  .empty-state__message,
  .empty-state__text {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }

  .empty-state__actions {
    flex-direction: column;
    width: 100%;
  }

  .empty-state__actions .btn {
    width: 100%;
  }
}

/* MM Medic Error Pages Component */

/* Error Page Layout */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  padding: var(--spacing-16) 0;
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

.error-page__container {
  width: 100%;
}

.error-page__content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

/* Error Code Display */

.error-page__code {
  font-size: 8rem;
  font-size: var(--font-size-9xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: #ED1C24;
  color: var(--brand-red-primary);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.05em;
  letter-spacing: var(--tracking-tighter);
  text-shadow: 0 4px 12px rgba(237, 28, 36, 0.15);
}

.error-page__code--warning {
  color: #F59E0B;
  color: var(--color-warning);
  text-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.error-page__code--info {
  color: #3B82F6;
  color: var(--color-info);
  text-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.error-page__code--secondary {
  color: #9CA3AF;
  color: var(--brand-gray-400);
  text-shadow: 0 4px 12px rgba(156, 163, 175, 0.15);
}

/* Error Illustration Container */

.error-page__illustration {
  width: 240px;
  height: 240px;
  margin: 0 auto 2rem;
  margin: 0 auto var(--spacing-8);
  position: relative;
}

.error-page__illustration-bg {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #FDF2F2 0%, #F9FAFB 100%);
  background: linear-gradient(135deg, var(--brand-red-lightest) 0%, var(--brand-gray-50) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.error-page__illustration-bg::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(237, 28, 36, 0.1) 0%, transparent 70%);
}

.error-page__illustration-bg--warning {
  background: linear-gradient(135deg, #FEF3C7 0%, #F9FAFB 100%);
  background: linear-gradient(135deg, var(--color-warning-bg) 0%, var(--brand-gray-50) 100%);
}

.error-page__illustration-bg--info {
  background: linear-gradient(135deg, #DBEAFE 0%, #F9FAFB 100%);
  background: linear-gradient(135deg, var(--color-info-bg) 0%, var(--brand-gray-50) 100%);
}

.error-page__illustration-bg--success {
  background: linear-gradient(135deg, #D1FAE5 0%, #F9FAFB 100%);
  background: linear-gradient(135deg, var(--color-success-bg) 0%, var(--brand-gray-50) 100%);
}

.error-page__illustration-icon {
  width: 120px;
  height: 120px;
  color: #ED1C24;
  color: var(--brand-red-primary);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.error-page__illustration-icon--warning {
  color: #F59E0B;
  color: var(--color-warning);
}

.error-page__illustration-icon--info {
  color: #3B82F6;
  color: var(--color-info);
}

.error-page__illustration-icon--secondary {
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

/* Error Content */

.error-page__title {
  font-size: 2.25rem;
  font-size: var(--font-size-4xl);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  line-height: var(--line-height-tight);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.error-page__message {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  color: #4B5563;
  color: var(--brand-gray-600);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  margin-bottom: 2rem;
  margin-bottom: var(--spacing-8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Error Details (для технічної інформації) */

.error-page__details {
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  padding: var(--spacing-6);
  margin: 2rem auto;
  margin: var(--spacing-8) auto;
  text-align: left;
  max-width: 560px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.error-page__details-title {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  letter-spacing: var(--tracking-wide);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.error-page__details-title svg {
  width: 16px;
  height: 16px;
  color: #6B7280;
  color: var(--brand-gray-500);
}

.error-page__details-content {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #4B5563;
  color: var(--brand-gray-600);
  word-break: break-all;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  padding: 1rem;
  padding: var(--spacing-4);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
}

.error-page__details-row {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.error-page__details-row:last-child {
  margin-bottom: 0;
}

.error-page__details-label {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #374151;
  color: var(--brand-gray-700);
  min-width: 80px;
}

.error-page__details-value {
  color: #4B5563;
  color: var(--brand-gray-600);
  flex: 1;
}

.error-page__details-value--breakable {
  word-break: break-all;
  overflow-wrap: break-word;
}

/* Error Actions */

.error-page__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
  align-items: center;
  margin-bottom: 3rem;
  margin-bottom: var(--spacing-12);
}

/* Helpful Links Section */

.error-page__links {
  margin-top: 3rem;
  margin-top: var(--spacing-12);
  padding-top: 2rem;
  padding-top: var(--spacing-8);
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
}

.error-page__links-title {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #374151;
  color: var(--brand-gray-700);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
  text-align: center;
}

.error-page__links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  gap: var(--spacing-3);
  max-width: 600px;
  margin: 0 auto;
}

.error-page__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  color: #4B5563;
  color: var(--brand-gray-600);
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  padding: 0.75rem;
  padding: var(--spacing-3);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
}

.error-page__link:hover {
  color: #ED1C24;
  color: var(--brand-red-primary);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  background: #FDF2F2;
  background: var(--brand-red-lightest);
  transform: translateX(4px);
}

.error-page__link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Link disabled state (for non-clickable info items) */

.error-page__link--disabled {
  cursor: default;
  border-color: #E5E7EB;
  border-color: var(--brand-gray-200);
  pointer-events: none;
}

.error-page__link--disabled:hover {
  transform: none;
  color: #4B5563;
  color: var(--brand-gray-600);
  border-color: #E5E7EB;
  border-color: var(--brand-gray-200);
  background: #FFFFFF;
  background: var(--brand-white);
}

/* Search Box for 404 */

.error-page__search {
  max-width: 560px;
  margin: 2rem auto;
  margin: var(--spacing-8) auto;
  position: relative;
}

.error-page__search-input {
  width: 100%;
  padding-right: calc(3rem + 48px);
  padding-right: calc(var(--spacing-12) + 48px);
}

.error-page__search-btn {
  position: absolute;
  right: 0.5rem;
  right: var(--spacing-2);
  top: 50%;
  transform: translateY(-50%);
}

/* Countdown Timer for 429 */

.error-page__countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 1rem 1.5rem;
  padding: var(--spacing-4) var(--spacing-6);
  background: #FFFFFF;
  background: var(--brand-white);
  border: 2px solid #F59E0B;
  border: 2px solid var(--color-warning);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  font-size: 1.875rem;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #F59E0B;
  color: var(--color-warning);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-family: var(--font-family-mono);
  margin: 1.5rem 0;
  margin: var(--spacing-6) 0;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.15), 0 2px 8px rgba(245, 158, 11, 0.08);
  box-shadow: var(--shadow-warning-subtle);
}

.error-page__rate-limits {
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  padding: var(--spacing-6);
  margin: 2rem auto;
  margin: var(--spacing-8) auto;
  max-width: 480px;
  text-align: left;
}

.error-page__rate-limits-title {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.error-page__rate-limits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-page__rate-limits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 0.75rem 0;
  padding: var(--spacing-3) 0;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  border-bottom: 1px solid #F3F4F6;
  border-bottom: 1px solid var(--brand-gray-100);
}

.error-page__rate-limits-list li:last-child {
  border-bottom: none;
}

.error-page__rate-limits-list li::before {
  content: '•';
  color: #F59E0B;
  color: var(--color-warning);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
}

/* Support Contact Card */

.error-page__support {
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  padding: var(--spacing-6);
  margin: 2rem auto;
  margin: var(--spacing-8) auto;
  max-width: 480px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.error-page__support-title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.error-page__support-title svg {
  width: 20px;
  height: 20px;
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.error-page__support-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.error-page__support-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  color: #374151;
  color: var(--brand-gray-700);
  text-decoration: none;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  padding: 0.75rem;
  padding: var(--spacing-3);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.error-page__support-contact:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.error-page__support-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Mobile Responsiveness */

@media (max-width: 640px) {
  .error-page {
    padding: 3rem 0;
    padding: var(--spacing-12) 0;
  }

  .error-page__code {
    font-size: 4.5rem;
    font-size: var(--font-size-7xl);
  }

  .error-page__illustration {
    width: 180px;
    height: 180px;
    margin-bottom: 1.5rem;
    margin-bottom: var(--spacing-6);
  }

  .error-page__illustration-icon {
    width: 90px;
    height: 90px;
  }

  .error-page__title {
    font-size: 1.875rem;
    font-size: var(--font-size-3xl);
  }

  .error-page__message {
    font-size: 1rem;
    font-size: var(--font-size-base);
  }
}

/* Tablet Responsiveness */

@media (min-width: 640px) {
  .error-page__actions {
    flex-direction: row;
    justify-content: center;
  }

  .error-page__links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop Responsiveness */

@media (min-width: 1024px) {
  .error-page__illustration {
    width: 260px;
    height: 260px;
  }

  .error-page__illustration-icon {
    width: 130px;
    height: 130px;
  }

  .error-page__links-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Wide: 1280px+ */

@media (min-width: 1280px) {
  .error-page__content {
    max-width: 720px;
  }

  .error-page__links-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 800px;
  }

  .error-page__message {
    max-width: 600px;
  }
}

/* Ultra-wide: 1536px+ */

@media (min-width: 1536px) {
  .error-page__content {
    max-width: 800px;
  }

  .error-page__illustration {
    width: 280px;
    height: 280px;
  }

  .error-page__illustration-icon {
    width: 140px;
    height: 140px;
  }

  .error-page__links-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 1200px;
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .error-page__message {
    max-width: 640px;
  }

  .error-page__support,
  .error-page__details,
  .error-page__rate-limits {
    max-width: 640px;
  }
}

/*
 * Tested responsive breakpoints (CLAUDE.md compliance):
 * - Mobile: 375px (iPhone SE), 414px (iPhone Plus)
 * - Tablet: 768px (iPad), 820px (iPad Air)
 * - Laptop: 1366px (HD), 1440px (MacBook)
 * - Desktop: 1920px (FHD), 2560px (QHD)
 * - Ultra-wide: 3440px (UWQHD)
 */

/* Animation */

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

.error-page__content > * {
  animation: fadeInUp 0.6s ease-out backwards;
}

.error-page__code {
  animation-delay: 0.1s;
}

.error-page__illustration {
  animation-delay: 0.2s;
}

.error-page__title {
  animation-delay: 0.3s;
}

.error-page__message {
  animation-delay: 0.4s;
}

.error-page__actions {
  animation-delay: 0.5s;
}

.error-page__links {
  animation-delay: 0.6s;
}

/* Reduce motion support */

@media (prefers-reduced-motion: reduce) {
  .error-page__content > * {
    animation: none;
  }

  .error-page__link:hover {
    transform: none;
  }
}

/* =================================================================
   ERROR LOGS ADMIN PAGES
   Styles for error logging management interface
   ================================================================= */

/* Error Detail Page - Traceback Display */

.error-detail__traceback {
    background-color: #111827;
    background-color: var(--brand-gray-900);
    color: #F3F4F6;
    color: var(--brand-gray-100);
    padding: 1rem;
    padding: var(--spacing-4);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    line-height: 1.6;
}

.error-detail__traceback pre {
    margin: 0;
    white-space: pre;
    word-wrap: normal;
    overflow-x: auto;
}

/* Error Message Display */

.error-detail__message {
    background-color: #FDF2F2;
    background-color: var(--brand-red-lightest);
    border: 1px solid #F04951;
    border: 1px solid var(--brand-red-light);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    padding: 1rem;
    padding: var(--spacing-4);
}

.error-detail__message pre {
    margin: 0;
    color: var(--brand-red-700);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-family: var(--font-family-mono);
}

/* Request Data JSON Display */

.error-detail__json {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
    padding: 1rem;
    padding: var(--spacing-4);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.error-detail__json pre {
    margin: 0;
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-family: var(--font-family-mono);
    line-height: 1.6;
}

/* Similar Errors Links */

.error-detail__similar-item {
    display: block;
    padding: 0.75rem;
    padding: var(--spacing-3);
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-base);
}

.error-detail__similar-item:hover {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
}

/* Error Info Grid */

.error-detail__info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    gap: var(--spacing-6);
}

@media (min-width: 1024px) {
    .error-detail__info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Definition List Styles for Error Details */

.error-detail__dl {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    gap: var(--spacing-3);
}

.error-detail__dl-item {
    display: flex;
    flex-direction: column;
}

.error-detail__dl-item--row {
    flex-direction: row;
    align-items: baseline;
}

.error-detail__dt {
    min-width: 8rem;
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #4B5563;
    color: var(--brand-gray-600);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

.error-detail__dd {
    color: #111827;
    color: var(--brand-gray-900);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

/* Code Inline Display */

.error-detail__code {
    display: inline-block;
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
    padding: 0.25rem 0.5rem;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-family: var(--font-family-mono);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #1F2937;
    color: var(--brand-gray-800);
}

/* Error Statistics Cards */

.error-stats__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    padding: var(--spacing-4);
    background-color: #FFFFFF;
    background-color: var(--brand-white);
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-base);
}

.error-stats__card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.error-stats__value {
    font-size: 1.875rem;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    margin-top: 0.25rem;
    margin-top: var(--spacing-1);
}

.error-stats__label {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #4B5563;
    color: var(--brand-gray-600);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
}

.error-stats__icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

/* Color variants for statistics */

.error-stats__value--danger {
    color: var(--brand-red-600);
}

.error-stats__value--warning {
    color: #F59E0B;
    color: var(--color-warning);
}

.error-stats__value--info {
    color: #3B82F6;
    color: var(--color-info);
}

/* Error List Filters */

.error-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    gap: var(--spacing-4);
    align-items: flex-end;
}

.error-filters__field {
    flex: 1;
    min-width: 12rem;
}

/* Responsive adjustments */

@media (max-width: 639px) {
    .error-detail__info-grid {
        grid-template-columns: 1fr;
    }

    .error-detail__dl-item--row {
        flex-direction: column;
        align-items: flex-start;
    }

    .error-detail__dt {
        margin-bottom: 0.25rem;
        margin-bottom: var(--spacing-1);
    }

    .error-stats__card {
        padding: 0.75rem;
        padding: var(--spacing-3);
    }

    .error-stats__value {
        font-size: 1.5rem;
        font-size: var(--font-size-2xl);
    }

    .error-stats__icon {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Tablet: 640px - 1023px */

@media (min-width: 640px) and (max-width: 1023px) {
    .error-detail__info-grid {
        grid-template-columns: 1fr;
    }
}

/* Desktop and wider */

@media (min-width: 1024px) {
    .error-detail__traceback,
    .error-detail__json {
        font-size: 0.875rem;
        font-size: var(--font-size-sm);
    }
}

/* Ultra-wide: 1536px+ */

@media (min-width: 1536px) {
    .error-detail__info-grid {
        gap: 2rem;
        gap: var(--spacing-8);
    }

    .error-detail__traceback,
    .error-detail__json {
        max-height: 600px;
        overflow-y: auto;
    }
}

/**
 * Integration Pages Styles
 *
 * Specific styles for admin integration pages (Nova Poshta, LiqPay, KeyCRM, etc.)
 *
 * Following CLAUDE.md principles:
 * - Use CSS variables from vars.css
 * - No !important
 * - BEM naming convention
 * - Component--modifier pattern
 */

/* ==================== STATUS INDICATOR ==================== */

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
}

.status-indicator--success {
    background-color: #10B981;
    background-color: var(--color-success);
    animation: pulse-success 2s ease-in-out infinite;
}

.status-indicator--error {
    background-color: #ED1C24;
    background-color: var(--color-error);
    animation: pulse-error 2s ease-in-out infinite;
}

.status-indicator--warning {
    background-color: #F59E0B;
    background-color: var(--color-warning);
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-success {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0);
    }
}

@keyframes pulse-error {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
    }
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 4px rgba(251, 191, 36, 0);
    }
}

/* ==================== AUTOCOMPLETE ==================== */

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    background: var(--brand-white);
    border: 1px solid #D1D5DB;
    border: 1px solid var(--brand-gray-300);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    display: none;
}

.autocomplete-results--visible {
    display: block;
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
    cursor: pointer;
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
    border-bottom: 1px solid #F3F4F6;
    border-bottom: 1px solid var(--brand-gray-100);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #111827;
    color: var(--brand-gray-900);
}

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

.autocomplete-item:hover {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

.autocomplete-item:active {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
}

/* Autocomplete loading state */

.autocomplete-results--loading {
    padding: 1rem;
    padding: var(--spacing-4);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

/* Autocomplete empty state */

.autocomplete-results--empty {
    padding: 1rem;
    padding: var(--spacing-4);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

/* ==================== DELIVERY ITEM ==================== */

.delivery-item {
    padding: 0.75rem;
    padding: var(--spacing-3);
    border-bottom: 1px solid #E5E7EB;
    border-bottom: 1px solid var(--brand-gray-200);
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
}

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

.delivery-item:hover {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
}

.delivery-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
}

.delivery-item__tracking {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    color: #111827;
    color: var(--brand-gray-900);
    font-family: 'Courier New', monospace;
}

.delivery-item__meta {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ==================== TEST LOG ==================== */

.test-log {
    background-color: #111827;
    background-color: var(--brand-gray-900);
    color: #10B981;
    color: var(--color-success);
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    line-height: 1.4;
    padding: 0.75rem;
    padding: var(--spacing-3);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.test-log__line {
    margin-bottom: 2px;
}

.test-log__line--error {
    color: #ED1C24;
    color: var(--color-error);
}

.test-log__line--warning {
    color: #F59E0B;
    color: var(--color-warning);
}

.test-log__line--success {
    color: #10B981;
    color: var(--color-success);
}

.test-log__line--info {
    color: #3B82F6;
    color: var(--color-info);
}

/* ==================== INTEGRATION CARD VARIANTS ==================== */

.integration-card--connected {
    border-left: 4px solid #10B981;
    border-left: 4px solid var(--color-success);
}

.integration-card--disconnected {
    border-left: 4px solid #ED1C24;
    border-left: 4px solid var(--color-error);
}

.integration-card--warning {
    border-left: 4px solid #F59E0B;
    border-left: 4px solid var(--color-warning);
}

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

@media (max-width: 640px) {
    .autocomplete-results {
        max-height: 200px;
    }

    .delivery-item__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        gap: var(--spacing-1);
    }

    .status-indicator {
        width: 10px;
        height: 10px;
    }
}

/* Mobile optimization for warehouse select */

@media (max-width: 768px) {
    .autocomplete-item {
        padding: 0.5rem 0.75rem;
        padding: var(--spacing-2) var(--spacing-3);
        font-size: 0.75rem;
        font-size: var(--font-size-xs);
    }
}

/**
 * Admin Integrations Components Styles
 * Компоненти для управління інтеграціями в адмін-панелі MM Medic
 *
 * Архітектура:
 * - Семантичні класи для компонентів інтеграцій
 * - CSS variables з vars.css для всіх візуальних властивостей
 * - Mobile-first адаптивність
 * - Модифікатори для різних станів
 */

/* ==========================================================================
   Integration Status Badges
   ========================================================================== */

.integration-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
    padding: 0.5rem 0.75rem;
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
}

.integration-status__indicator {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    border-radius: var(--radius-full);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.integration-status__text {
    white-space: nowrap;
}

/* Status variants */

.integration-status--active {
    background-color: #D1FAE5;
    background-color: var(--color-success-bg);
    color: #059669;
    color: var(--color-success-dark);
}

.integration-status--active .integration-status__indicator {
    background-color: #10B981;
    background-color: var(--color-success);
}

.integration-status--inactive {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
    color: #4B5563;
    color: var(--brand-gray-600);
}

.integration-status--inactive .integration-status__indicator {
    background-color: #9CA3AF;
    background-color: var(--brand-gray-400);
    animation: none;
}

.integration-status--error {
    background-color: #FDF2F2;
    background-color: var(--color-error-bg);
    color: #D11920;
    color: var(--color-error-dark);
}

.integration-status--error .integration-status__indicator {
    background-color: #ED1C24;
    background-color: var(--color-error);
}

.integration-status--testing {
    background-color: #FEF3C7;
    background-color: var(--color-warning-bg);
    color: #D97706;
    color: var(--color-warning-dark);
}

.integration-status--testing .integration-status__indicator {
    background-color: #F59E0B;
    background-color: var(--color-warning);
}

/* ==========================================================================
   Integration Settings Card
   ========================================================================== */

.integration-card {
    background-color: #FFFFFF;
    background-color: var(--brand-white);
    border-radius: 0.75rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: box-shadow var(--transition-base);
}

.integration-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-md);
}

.integration-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    padding: var(--spacing-6);
    border-bottom: 1px solid #E5E7EB;
    border-bottom: 1px solid var(--brand-gray-200);
    gap: 1rem;
    gap: var(--spacing-4);
}

@media (max-width: 640px) {
    .integration-card__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.integration-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.integration-card__icon--google {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

.integration-card__section {
    padding: 1.5rem;
    padding: var(--spacing-6);
    border-bottom: 1px solid #E5E7EB;
    border-bottom: 1px solid var(--brand-gray-200);
}

.integration-card__section:last-of-type {
    border-bottom: none;
}

.integration-card__section-header {
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-4);
}

.integration-card__section-header h4 {
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
}

.integration-card__section-header p {
    color: #4B5563;
    color: var(--brand-gray-600);
}

.integration-card__section-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    gap: var(--spacing-4);
}

.integration-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    padding: var(--spacing-6);
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
    border-top: 1px solid #E5E7EB;
    border-top: 1px solid var(--brand-gray-200);
    gap: 1rem;
    gap: var(--spacing-4);
}

@media (max-width: 640px) {
    .integration-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .integration-card__footer > div {
        width: 100%;
    }

    .integration-card__footer button {
        width: 100%;
    }
}

/* ==========================================================================
   Credentials Input Group
   ========================================================================== */

.credentials-input-group {
    display: flex;
    gap: 0.5rem;
    gap: var(--spacing-2);
    align-items: center;
}

.credentials-input-group .input {
    flex: 1;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-family: var(--font-family-mono);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

.credentials-input-group__secret {
    letter-spacing: 0.1em;
}

.credentials-input-group__toggle,
.credentials-input-group__copy {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .credentials-input-group {
        flex-wrap: wrap;
    }

    .credentials-input-group .input {
        width: 100%;
        flex: none;
    }
}

/* ==========================================================================
   Config Read-Only List
   ========================================================================== */

.config-readonly-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    gap: var(--spacing-2);
}

.config-readonly-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    padding: var(--spacing-3);
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
    gap: 0.75rem;
    gap: var(--spacing-3);
}

.config-readonly-list__code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-family: var(--font-family-mono);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #374151;
    color: var(--brand-gray-700);
    word-break: break-all;
    flex: 1;
}

.config-readonly-list__copy {
    flex-shrink: 0;
}

/* ==========================================================================
   Integration Statistics
   ========================================================================== */

.integration-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    gap: var(--spacing-2);
    padding: 1rem;
    padding: var(--spacing-4);
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
}

.integration-stat__label {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #4B5563;
    color: var(--brand-gray-600);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
}

.integration-stat__value {
    font-size: 1.875rem;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    font-weight: var(--font-weight-bold);
    color: #111827;
    color: var(--brand-gray-900);
    line-height: 1;
}

.integration-stat__change {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    gap: var(--spacing-1);
}

.integration-stat__change--positive {
    color: #10B981;
    color: var(--color-success);
}

.integration-stat__change--negative {
    color: #ED1C24;
    color: var(--color-error);
}

.integration-stat__change--neutral {
    color: #4B5563;
    color: var(--brand-gray-600);
}

.integration-stat__change--positive::before {
    content: '↑';
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

.integration-stat__change--negative::before {
    content: '↓';
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .integration-card__section {
        padding: 1rem;
        padding: var(--spacing-4);
    }

    .integration-card__header,
    .integration-card__footer {
        padding: 1rem;
        padding: var(--spacing-4);
    }

    .integration-stat__value {
        font-size: 1.5rem;
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 480px) {
    .integration-stat {
        padding: 0.75rem;
        padding: var(--spacing-3);
    }

    .integration-stat__value {
        font-size: 1.25rem;
        font-size: var(--font-size-xl);
    }
}

/* ==========================================================================
   Utility Classes for Integration Pages
   ========================================================================== */

.integration-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    margin-bottom: var(--spacing-6);
    gap: 1rem;
    gap: var(--spacing-4);
}

@media (max-width: 640px) {
    .integration-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.integration-alert {
    margin-bottom: 1.5rem;
    margin-bottom: var(--spacing-6);
}

/* ==========================================================================
   Integration-specific Icons
   ========================================================================== */

.integration-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
}

.integration-icon--google {
    background-color: #4285F4;
    color: #FFFFFF;
    color: var(--brand-white);
}

.integration-icon--liqpay {
    background-color: #7FC02F;
    color: #FFFFFF;
    color: var(--brand-white);
}

.integration-icon--novaposhta {
    background-color: #ED1C24;
    color: #FFFFFF;
    color: var(--brand-white);
}

.integration-icon--keycrm {
    background-color: #5C68F8;
    color: #FFFFFF;
    color: var(--brand-white);
}

/**
 * Banner Management Styles
 *
 * Specific styles for banner management pages in admin panel
 *
 * Following CLAUDE.md principles:
 * - Use CSS variables from vars.css
 * - No !important
 * - BEM naming convention
 * - Component--modifier pattern
 */

/* ==================== IMAGE UPLOAD ZONE ==================== */

.image-upload-zone {
    position: relative;
    width: 100%;
    min-height: 200px;
    border: 2px dashed #D1D5DB;
    border: 2px dashed var(--brand-gray-300);
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
    cursor: pointer;
    overflow: hidden;
}

.image-upload-zone:hover {
    border-color: #ED1C24;
    border-color: var(--brand-red-primary);
    background-color: #FDF2F2;
    background-color: var(--brand-red-lightest);
}

.image-upload-zone--dragover {
    border-color: #ED1C24;
    border-color: var(--brand-red-primary);
    background-color: #FDF2F2;
    background-color: var(--brand-red-lightest);
    box-shadow: 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
    box-shadow: var(--shadow-red-subtle);
}

.image-upload-zone--loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Upload Placeholder */

.image-upload-zone__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding: var(--spacing-8);
    min-height: 200px;
    text-align: center;
}

.image-upload-zone__placeholder.hidden {
    display: none;
}

/* Upload Preview */

.image-upload-zone__preview {
    position: relative;
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding: var(--spacing-4);
    background-color: #FFFFFF;
    background-color: var(--brand-white);
}

.image-upload-zone__preview.hidden {
    display: none;
}

.image-upload-zone__image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-base);
}

.image-upload-zone__remove {
    position: absolute;
    top: 0.75rem;
    top: var(--spacing-3);
    right: 0.75rem;
    right: var(--spacing-3);
    width: 32px;
    height: 32px;
    background-color: #ED1C24;
    background-color: var(--brand-red-primary);
    border: none;
    border-radius: 9999px;
    border-radius: var(--radius-full);
    color: #FFFFFF;
    color: var(--brand-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-base);
}

.image-upload-zone__remove:hover {
    background-color: #D11920;
    background-color: var(--brand-red-dark);
    box-shadow: 0 0 16px rgba(237, 28, 36, 0.25), 0 6px 16px rgba(237, 28, 36, 0.15);
    box-shadow: var(--shadow-red-strong);
    transform: scale(1.1);
}

.image-upload-zone__remove:active {
    transform: scale(0.95);
}

/* ==================== BANNER THUMBNAIL ==================== */

.banner-thumbnail {
    position: relative;
    overflow: hidden;
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
}

.banner-thumbnail:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-base);
    transform: scale(1.05);
}

.banner-thumbnail img {
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-base);
}

.banner-thumbnail:hover img {
    transform: scale(1.1);
}

/* ==================== BANNER PREVIEW MODAL ==================== */

.banner-preview-modal {
    max-width: 1200px;
}

.banner-preview-modal__desktop {
    width: 100%;
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
    margin-bottom: var(--spacing-6);
}

.banner-preview-modal__mobile {
    max-width: 375px;
    margin: 0 auto;
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-lg);
}

.banner-preview-modal__device-label {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
    text-align: center;
}

/* ==================== ANALYTICS CARDS ==================== */

.analytics-card {
    padding: 1.5rem;
    padding: var(--spacing-6);
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
    background: linear-gradient(135deg, var(--brand-gray-50) 0%, var(--brand-white) 100%);
    border-radius: 0.75rem;
    border-radius: var(--radius-xl);
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
}

.analytics-card__value {
    font-size: 1.875rem;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
}

.analytics-card__value--impressions {
    color: #3B82F6;
    color: var(--color-info);
}

.analytics-card__value--clicks {
    color: #ED1C24;
    color: var(--brand-red-primary);
}

.analytics-card__value--ctr {
    color: #10B981;
    color: var(--color-success);
}

.analytics-card__label {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== SCHEDULE INDICATOR ==================== */

.schedule-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    gap: var(--spacing-1);
    padding: 0.25rem 0.5rem;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
}

.schedule-indicator--active {
    background-color: #D1FAE5;
    background-color: var(--color-success-bg);
    color: #10B981;
    color: var(--color-success);
}

.schedule-indicator--scheduled {
    background-color: #FEF3C7;
    background-color: var(--color-warning-bg);
    color: #F59E0B;
    color: var(--color-warning);
}

.schedule-indicator--expired {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
    color: var(--text-muted);
}

.schedule-indicator__dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    border-radius: var(--radius-full);
    background-color: currentColor;
}

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

@media (max-width: 768px) {
    .image-upload-zone {
        min-height: 150px;
    }

    .image-upload-zone__placeholder {
        padding: 1rem;
        padding: var(--spacing-4);
        min-height: 150px;
    }

    .image-upload-zone__preview {
        min-height: 150px;
    }

    .image-upload-zone__image {
        max-height: 250px;
    }

    .banner-thumbnail {
        width: 60px;
        height: 45px;
    }
}

/* Ultra-wide optimizations */

@media (min-width: 1536px) {
    .banner-preview-modal {
        max-width: 1400px;
    }
}

/**
 * Checkout Page Styles
 *
 * Styles for multi-step checkout process
 *
 * Following CLAUDE.md principles:
 * - Use CSS variables
 * - No !important
 * - BEM naming
 * - Responsive design
 */

/* ==================== CHECKOUT STEP CONTAINER ==================== */

.checkout-step {
    width: 100%;
    animation: fadeIn 0.3s ease-in-out;
}

.checkout-step.hidden {
    display: none;
}

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

/* ==================== CHECKOUT OPTION (Radio Cards) ==================== */

.checkout-option {
    position: relative;
    display: block;
    cursor: pointer;
    border: 2px solid #E5E7EB;
    border: 2px solid var(--brand-gray-200);
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    padding: 1rem;
    padding: var(--spacing-4);
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
    background-color: #FFFFFF;
    background-color: var(--brand-white);
}

.checkout-option:hover {
    border-color: #D1D5DB;
    border-color: var(--brand-gray-300);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
}

.checkout-option--active {
    border-color: #ED1C24;
    border-color: var(--brand-red-primary);
    background-color: #FDF2F2;
    background-color: var(--brand-red-lightest);
    box-shadow: 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
    box-shadow: var(--shadow-red-subtle);
}

.checkout-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkout-option__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    gap: var(--spacing-1);
    padding-left: 2rem;
    padding-left: var(--spacing-8);
}

.checkout-option__title {
    font-size: 1rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    color: #111827;
    color: var(--brand-gray-900);
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
}

.checkout-option--active .checkout-option__title {
    color: #ED1C24;
    color: var(--brand-red-primary);
}

.checkout-option__description {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.checkout-option__price {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #374151;
    color: var(--brand-gray-700);
    margin-top: 0.5rem;
    margin-top: var(--spacing-2);
}

.checkout-option--active .checkout-option__price {
    color: #D11920;
    color: var(--brand-red-dark);
}

.checkout-option__note {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: 0.25rem;
    margin-top: var(--spacing-1);
}

/* Radio indicator */

.checkout-option::before {
    content: '';
    position: absolute;
    top: 1rem;
    top: var(--spacing-4);
    left: 1rem;
    left: var(--spacing-4);
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border: 2px solid var(--brand-gray-300);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    background-color: #FFFFFF;
    background-color: var(--brand-white);
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
}

.checkout-option--active::before {
    border-color: #ED1C24;
    border-color: var(--brand-red-primary);
    border-width: 6px;
}

/* ==================== CHECKOUT REVIEW SECTION ==================== */

.checkout-review-section {
    padding: 1rem;
    padding: var(--spacing-4);
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
}

.checkout-review-section p {
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
}

.checkout-review-section p:last-child {
    margin-bottom: 0;
}

/* ==================== CHECKOUT CART ITEM (Summary) ==================== */

.checkout-cart-item {
    padding: 0.75rem;
    padding: var(--spacing-3);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

.checkout-cart-item__image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 0.75rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-color: #FFFFFF;
    background-color: var(--brand-white);
}

.checkout-cart-item__image img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
}

.checkout-cart-item__name {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #111827;
    color: var(--brand-gray-900);
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
}

.checkout-cart-item__quantity {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
}

.checkout-cart-item__price {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    color: #ED1C24;
    color: var(--brand-red-primary);
}

/* ==================== AUTOCOMPLETE (Nova Poshta) ==================== */

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    background: var(--brand-white);
    border: 1px solid #D1D5DB;
    border: 1px solid var(--brand-gray-300);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    display: none;
}

.autocomplete-results--visible {
    display: block;
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
    cursor: pointer;
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-fast);
    border-bottom: 1px solid #F3F4F6;
    border-bottom: 1px solid var(--brand-gray-100);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #111827;
    color: var(--brand-gray-900);
}

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

.autocomplete-item:hover {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

.autocomplete-item:active {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
}

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

@media (max-width: 640px) {
    .checkout-option {
        padding: 0.75rem;
        padding: var(--spacing-3);
    }

    .checkout-option__title {
        font-size: 0.875rem;
        font-size: var(--font-size-sm);
    }

    .checkout-option::before {
        width: 16px;
        height: 16px;
        top: 0.75rem;
        top: var(--spacing-3);
        left: 0.75rem;
        left: var(--spacing-3);
    }

    .checkout-option--active::before {
        border-width: 5px;
    }

    .checkout-option__content {
        padding-left: 1.5rem;
        padding-left: var(--spacing-6);
    }

    .checkout-cart-item {
        padding: 0.5rem;
        padding: var(--spacing-2);
    }

    .checkout-cart-item__image {
        width: 50px;
        height: 50px;
    }

    .autocomplete-results {
        max-height: 200px;
    }
}

/* ==================== STICKY SUMMARY (Desktop) ==================== */

@media (min-width: 1024px) {
    .checkout-summary {
        position: sticky;
        top: 100px;
    }
}

/* ==================== LOADING STATES ==================== */

.checkout-option--loading {
    pointer-events: none;
    opacity: 0.6;
}

.checkout-step--processing {
    pointer-events: none;
    opacity: 0.8;
}

/* ==================== SUCCESS/ERROR STATES ==================== */

.checkout-success-icon {
    width: 96px;
    height: 96px;
    background-color: #D1FAE5;
    background-color: var(--color-success-bg);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    margin: 0 auto var(--spacing-6);
}

.checkout-error-icon {
    width: 96px;
    height: 96px;
    background-color: #FDF2F2;
    background-color: var(--color-error-bg);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    margin: 0 auto var(--spacing-6);
}

/* ==================== TRUST BADGES ==================== */

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.trust-badge__icon {
    width: 16px;
    height: 16px;
    color: #10B981;
    color: var(--color-success);
    flex-shrink: 0;
}

/* ==================== FORM ENHANCEMENTS ==================== */

.checkout-form-field--error .input {
    border-color: #ED1C24;
    border-color: var(--color-error);
}

.checkout-form-field--error .form-field__help {
    color: #ED1C24;
    color: var(--color-error);
}

.checkout-form-field--success .input {
    border-color: #10B981;
    border-color: var(--color-success);
}

/* ==================== WAREHOUSE TYPE INDICATORS ==================== */

.warehouse-type-label {
    font-size: var(--text-xs);
}

.warehouse-type-label--postomat {
    color: var(--brand-primary-500);
}

.warehouse-type-label--branch {
    color: var(--text-muted);
}

.warehouse-info-note {
    font-style: italic;
    color: var(--text-muted);
}

/* ==================== CARD MODIFIERS FOR CHECKOUT ==================== */

.card--padded-lg {
    padding: 2rem;
    padding: var(--spacing-8);
}

.card--padded {
    padding: 1.5rem;
    padding: var(--spacing-6);
}

.card--sticky-summary {
    position: sticky;
    top: 100px;
    padding: 1.5rem;
    padding: var(--spacing-6);
}

/* ==================== ICON/SVG UTILITIES ==================== */

.icon--ml {
    margin-left: 0.5rem;
    margin-left: var(--spacing-2);
}

.icon--mr {
    margin-right: 0.5rem;
    margin-right: var(--spacing-2);
}

.logo--sm {
    height: 24px;
}

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

.text-gray-700 {
    color: #374151;
    color: var(--brand-gray-700);
}

.text-primary {
    color: #ED1C24;
    color: var(--brand-red-primary);
}

/* ==================== DIVIDER UTILITIES ==================== */

.divider {
    border-top: 1px solid #E5E7EB;
    border-top: 1px solid var(--brand-gray-200);
}

.divider--bold {
    border-top: 2px solid #D1D5DB;
    border-top: 2px solid var(--brand-gray-300);
}

/* ==================== LINK UTILITIES ==================== */

.link--primary-underline {
    color: #ED1C24;
    color: var(--brand-red-primary);
    text-decoration: underline;
}

/* ==================== IMAGE PLACEHOLDER ==================== */

.product-image-placeholder {
    background: #F3F4F6;
    background: var(--brand-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* MM Medic Profile Components
 * Компоненти особистого кабінету
 * Відповідає файлу: design-components/profile-components.html
 */

/* ============================================
   STAT CARDS - Dashboard Metrics
   ============================================ */

.stat-card {
  background: #FFFFFF;
  background: var(--brand-white);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 1rem;
  padding: var(--spacing-4);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  gap: var(--spacing-4);
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card__icon--primary {
  background: #FDF2F2;
  background: var(--color-error-bg);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.stat-card__icon--success {
  background: #D1FAE5;
  background: var(--color-success-bg);
  color: #10B981;
  color: var(--color-success);
}

.stat-card__icon--info {
  background: #DBEAFE;
  background: var(--color-info-bg);
  color: #3B82F6;
  color: var(--color-info);
}

.stat-card__icon--warning {
  background: #FEF3C7;
  background: var(--color-warning-bg);
  color: #F59E0B;
  color: var(--color-warning);
}

.stat-card__content {
  flex: 1;
  min-width: 0;
}

.stat-card__label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.stat-card__value {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

@media (max-width: 639px) {
  .stat-card {
    padding: 0.75rem;
    padding: var(--spacing-3);
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .stat-card__icon {
    width: 40px;
    height: 40px;
  }

  .stat-card__value {
    font-size: 1.25rem;
    font-size: var(--font-size-xl);
  }
}

/* ============================================
   ORDER CARDS - Картки замовлень
   ============================================ */

.order-card {
  background: #FFFFFF;
  background: var(--brand-white);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: box-shadow var(--transition-fast);
}

.order-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
}

.order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  padding: var(--spacing-6);
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
}

.order-card__number {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

.order-card__date {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
}

.order-card__body {
  padding: 1.5rem;
  padding: var(--spacing-6);
}

.order-card__items {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.order-card__total {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
}

.order-card__footer {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
  flex-wrap: wrap;
  padding: 1.5rem;
  padding: var(--spacing-6);
  padding-top: 1rem;
  padding-top: var(--spacing-4);
  border-top: 1px solid #F3F4F6;
  border-top: 1px solid var(--brand-gray-100);
}

/* Order Card Full (для списку замовлень) */

.order-card--full .order-card__header {
  flex-wrap: wrap;
  gap: 1rem;
  gap: var(--spacing-4);
}

.order-card--full .order-card__header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.order-card--full .order-card__header-right {
  display: flex;
  align-items: center;
}

/* Order Items Preview (mini) */

.order-items-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.order-item-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
}

.order-item-mini__name {
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.order-item-mini__quantity {
  color: #4B5563;
  color: var(--brand-gray-600);
}

.order-items-preview__more {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  font-style: italic;
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
}

/* Order Summary */

.order-summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
  padding-top: 1rem;
  padding-top: var(--spacing-4);
  border-top: 1px solid #F3F4F6;
  border-top: 1px solid var(--brand-gray-100);
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
}

.order-summary__label {
  font-weight: 400;
  font-weight: var(--font-weight-normal);
}

.order-summary__value {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.order-summary__row--total {
  padding-top: 0.5rem;
  padding-top: var(--spacing-2);
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
}

.order-summary__value--total {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Order Tracking Number */

.order-tracking {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding-top: 1rem;
  padding-top: var(--spacing-4);
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
}

.order-tracking__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.order-tracking__number {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  border-radius: 0.125rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: background-color var(--transition-base);
}

.order-tracking__number:hover {
  background-color: #F3F4F6;
  background-color: var(--brand-gray-100);
}

.order-tracking__number:active {
  transform: scale(0.98);
}

.order-tracking__code {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: var(--brand-primary-600);
  letter-spacing: 0.5px;
}

.order-tracking__copy-icon {
  color: #9CA3AF;
  color: var(--brand-gray-400);
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-base);
}

.order-tracking__number:hover .order-tracking__copy-icon {
  color: var(--brand-primary-600);
}

/* Copied state animation */

.order-tracking__number--copied {
  background-color: #34D399;
  background-color: var(--color-success-light);
}

.order-tracking__number--copied .order-tracking__code {
  color: #10B981;
  color: var(--color-success);
}

/* ============================================
   QUICK ACTIONS GRID
   ============================================ */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding: var(--spacing-4);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #374151;
  color: var(--brand-gray-700);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.quick-action:hover {
  background: #FDF2F2;
  background: var(--color-error-bg);
  color: #ED1C24;
  color: var(--brand-red-primary);
  transform: translateY(-2px);
}

.quick-action__icon {
  width: 32px;
  height: 32px;
}

.quick-action span {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  text-align: center;
}

@media (max-width: 639px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   LOYALTY COMPONENTS
   ============================================ */

/* Loyalty Summary */

.loyalty-summary {
  text-align: center;
}

.loyalty-summary__balance {
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.loyalty-summary__points {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #ED1C24;
  color: var(--brand-red-primary);
  line-height: 1;
}

.loyalty-summary__label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
}

.loyalty-summary__level {
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.badge--gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #996515;
  padding: 0.5rem 1rem;
  padding: var(--spacing-2) var(--spacing-4);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
}

.loyalty-summary__progress {
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.progress-bar {
  height: 8px;
  background: #E5E7EB;
  background: var(--brand-gray-200);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.progress-bar__fill {
  height: 100%;
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: width var(--transition-base);
}

.loyalty-summary__progress-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
}

/* Loyalty Transactions */

.loyalty-transactions {
  display: flex;
  flex-direction: column;
}

.loyalty-transaction {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 1rem;
  padding: var(--spacing-4);
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: background-color var(--transition-fast);
}

.loyalty-transaction:last-child {
  border-bottom: none;
}

.loyalty-transaction:hover {
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
}

.loyalty-transaction__icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.loyalty-transaction__icon--earn {
  background: #D1FAE5;
  background: var(--color-success-bg);
  color: #10B981;
  color: var(--color-success);
}

.loyalty-transaction__icon--spend {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #4B5563;
  color: var(--brand-gray-600);
}

.loyalty-transaction__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.loyalty-transaction__description {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
}

.loyalty-transaction__meta {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
  align-items: center;
}

.loyalty-transaction__points {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  align-self: center;
}

.loyalty-transaction__points--positive {
  color: #10B981;
  color: var(--color-success);
}

.loyalty-transaction__points--negative {
  color: #4B5563;
  color: var(--brand-gray-600);
}

/* Earning Rules */

.earning-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

.earning-rules__item {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  align-items: flex-start;
}

.earning-rules__icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  background: #FDF2F2;
  background: var(--color-error-bg);
  color: #ED1C24;
  color: var(--brand-red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.earning-rules__content {
  flex: 1;
}

.earning-rules__title {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.earning-rules__points {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #ED1C24;
  color: var(--brand-red-primary);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.earning-rules__description {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #4B5563;
  color: var(--brand-gray-600);
}

/* ============================================
   ORDER DETAIL COMPONENTS
   ============================================ */

/* Order Items List (детальна сторінка замовлення) */

.order-items-list {
  display: flex;
  flex-direction: column;
}

.order-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  gap: var(--spacing-4);
  padding: 1rem;
  padding: var(--spacing-4);
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
}

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

@media (max-width: 639px) {
  .order-item {
    grid-template-columns: 60px 1fr;
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .order-item__pricing {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    margin-top: var(--spacing-2);
    padding-top: 0.5rem;
    padding-top: var(--spacing-2);
    border-top: 1px solid #F3F4F6;
    border-top: 1px solid var(--brand-gray-100);
  }
}

.order-item__image {
  width: 80px;
  height: 80px;
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #F3F4F6;
  background: var(--brand-gray-100);
}

@media (max-width: 639px) {
  .order-item__image {
    width: 60px;
    height: 60px;
  }
}

.order-item__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.order-item__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

.order-item__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.order-item__name {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.order-item__sku {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.order-item__quantity {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
}

.order-item__pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.25rem;
  gap: var(--spacing-1);
  text-align: right;
}

.order-item__price {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
}

.order-item__discount {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #10B981;
  color: var(--color-success);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.order-item__total {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
}

/* Order Timeline */

.order-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
  padding-left: 0.5rem;
  padding-left: var(--spacing-2);
}

.order-timeline__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.75rem;
  gap: var(--spacing-3);
  position: relative;
}

.order-timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: calc(-1 * 1rem);
  bottom: calc(-1 * var(--spacing-4));
  width: 2px;
  background: #E5E7EB;
  background: var(--brand-gray-200);
}

.order-timeline__marker {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  background: var(--brand-white);
  border: 3px solid #ED1C24;
  border: 3px solid var(--brand-red-primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
}

.order-timeline__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.order-timeline__status {
  display: inline-flex;
}

.order-timeline__time {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
}

.order-timeline__notes {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Order Summary (dl/dt/dd) */

.order-summary__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #374151;
  color: var(--brand-gray-700);
}

.order-summary__row dt {
  font-weight: 400;
  font-weight: var(--font-weight-normal);
}

.order-summary__row dd {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.order-summary__row--discount {
  color: #10B981;
  color: var(--color-success);
}

.order-summary__row--discount dd {
  color: #10B981;
  color: var(--color-success);
}

.order-summary__row--total {
  padding-top: 0.75rem;
  padding-top: var(--spacing-3);
  border-top: 2px solid #E5E7EB;
  border-top: 2px solid var(--brand-gray-200);
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
}

.order-summary__row--total dd {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Delivery Tracking */

.delivery-tracking {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.delivery-tracking__provider {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #111827;
  color: var(--brand-gray-900);
}

.delivery-tracking__number {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.delivery-tracking__code {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  padding: 0.5rem;
  padding: var(--spacing-2);
  border-radius: 0.125rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.delivery-tracking__status {
  display: inline-flex;
}

.delivery-tracking__estimate {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.delivery-tracking__estimate time {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

/* Order Address */

.order-address {
  font-style: normal;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  color: #374151;
  color: var(--brand-gray-700);
}

.order-address > div {
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.order-address__name {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  font-size: 1rem;
  font-size: var(--font-size-base);
}

.order-address__company {
  color: #374151;
  color: var(--brand-gray-700);
}

.order-address__street,
.order-address__city,
.order-address__postal {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.order-address__phone {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
}

/* ============================================
   PROTOCOL ITEM - List View for Favorites
   ============================================ */

.protocol-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

.protocol-item {
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 1rem;
  padding: var(--spacing-4);
  position: relative;
  display: flex;
  gap: 1rem;
  gap: var(--spacing-4);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.protocol-item:hover {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.protocol-item__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.protocol-item__title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  margin: 0;
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

.protocol-item__title a {
  color: #111827;
  color: var(--brand-gray-900);
  text-decoration: none;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast);
}

.protocol-item__title a:hover {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.protocol-item__description {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.protocol-item__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  flex-wrap: wrap;
}

.protocol-item__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  flex-shrink: 0;
}

/* Favorite Button for Items */

.favorite-btn {
  position: absolute;
  top: 0.75rem;
  top: var(--spacing-3);
  right: 0.75rem;
  right: var(--spacing-3);
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

.favorite-btn:hover {
  background: #FDF2F2;
  background: var(--color-error-bg);
  color: #ED1C24;
  color: var(--brand-red-primary);
  border-color: #F04951;
  border-color: var(--brand-red-light);
}

.favorite-btn--active {
  background: #FDF2F2;
  background: var(--color-error-bg);
  color: #ED1C24;
  color: var(--brand-red-primary);
  border-color: #F04951;
  border-color: var(--brand-red-light);
}

@media (max-width: 639px) {
  .protocol-item {
    flex-direction: column;
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .protocol-item__actions {
    width: 100%;
  }

  .protocol-item__actions .btn {
    flex: 1;
  }
}

/* ============================================
   PROFILE SIDEBAR & NAVIGATION
   ============================================ */

.profile-sidebar {
  background: #FFFFFF;
  background: var(--brand-white);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  padding: var(--spacing-6);
  height: -moz-fit-content;
  height: fit-content;
  position: sticky;
  top: 80px;
}

@media (max-width: 1023px) {
  .profile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: left var(--transition-base);
    border-radius: 0;
    overflow-y: auto;
  }

  .profile-sidebar--open {
    left: 0;
  }
}

.profile-sidebar__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 1rem;
  padding-bottom: var(--spacing-4);
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.profile-sidebar__avatar {
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.profile-sidebar__name {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.profile-sidebar__email {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.profile-sidebar__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

/* Profile Navigation */

.profile-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-nav__item {
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.profile-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  color: #374151;
  color: var(--brand-gray-700);
  text-decoration: none;
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  font-size: 1rem;
  font-size: var(--font-size-base);
}

.profile-nav__link:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.profile-nav__item--active .profile-nav__link {
  background: #FDF2F2;
  background: var(--color-error-bg);
  color: #ED1C24;
  color: var(--brand-red-primary);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.profile-nav__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.profile-nav__divider {
  height: 1px;
  background: #E5E7EB;
  background: var(--brand-gray-200);
  margin: 0.75rem 0;
  margin: var(--spacing-3) 0;
}

.profile-nav__link--danger:hover {
  background: #FDF2F2;
  background: var(--color-error-bg);
  color: #ED1C24;
  color: var(--color-error);
}

/* ============================================
   SETTINGS COMPONENTS
   ============================================ */

/* Avatar Upload */

.avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  gap: var(--spacing-4);
}

.avatar-upload__preview {
  width: 120px;
  height: 120px;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #F3F4F6;
  background: var(--brand-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-upload__preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-upload__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
  width: 100%;
}

.avatar-upload__input {
  display: none;
}

.avatar-upload__hint {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #4B5563;
  color: var(--brand-gray-600);
  text-align: center;
}

/* Account Info (dl/dt/dd list) */

.account-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.account-info__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  padding-bottom: 0.75rem;
  padding-bottom: var(--spacing-3);
  border-bottom: 1px solid #F3F4F6;
  border-bottom: 1px solid var(--brand-gray-100);
}

.account-info__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.account-info__row dt {
  color: #4B5563;
  color: var(--brand-gray-600);
  font-weight: 400;
  font-weight: var(--font-weight-normal);
}

.account-info__row dd {
  color: #111827;
  color: var(--brand-gray-900);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  margin: 0;
  text-align: right;
}

/* Benefits List */

.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.benefits-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  gap: var(--spacing-2);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

.benefits-list__item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* MM Medic Profile Pages Layout and Structure
 * Стилі для структури сторінок профілю
 * Відповідає файлам: design-components/profile-orders.html, profile-order-detail.html
 */

/* ============================================
   PROFILE LAYOUT - Main Container
   ============================================ */

.profile-layout {
  display: flex;
  gap: 2rem;
  gap: var(--spacing-8);
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem;
  padding: var(--spacing-6);
}

.profile-layout__sidebar {
  width: 280px;
  flex-shrink: 0;
}

.profile-layout__content {
  flex: 1;
  min-width: 0; /* Prevent content overflow */
}

/* Mobile Layout */

@media (max-width: 1023px) {
  .profile-layout {
    padding: 1rem;
    padding: var(--spacing-4);
    gap: 0;
  }

  .profile-layout__sidebar {
    display: none; /* Hidden on mobile, shown via hamburger menu */
  }

  .profile-layout__content {
    width: 100%;
  }
}

/* ============================================
   PROFILE CONTENT HEADER
   ============================================ */

.profile-content__header {
  background: #FFFFFF;
  background: var(--brand-white);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  padding: var(--spacing-6);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  gap: var(--spacing-4);
}

.profile-content__title-section {
  flex: 1;
  min-width: 0;
}

.profile-content__title {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.5rem 0;
  margin: 0 0 var(--spacing-2) 0;
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

.profile-content__subtitle {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0;
}

.profile-content__actions {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  align-items: center;
}

.profile-content__status {
  display: flex;
  align-items: center;
}

/* Header with status variant */

.profile-content__header--with-status {
  align-items: center;
}

@media (max-width: 639px) {
  .profile-content__header {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    padding: var(--spacing-4);
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .profile-content__title {
    font-size: 1.25rem;
    font-size: var(--font-size-xl);
  }

  .profile-content__actions {
    justify-content: flex-end;
  }
}

/* ============================================
   ORDERS GRID - List Layout
   ============================================ */

.orders-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
  margin-bottom: 2rem;
  margin-bottom: var(--spacing-8);
}

/* ============================================
   PROFILE DETAIL LAYOUT - Two Column
   ============================================ */

.profile-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  gap: var(--spacing-6);
}

.profile-detail-layout__main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  gap: var(--spacing-6);
  min-width: 0;
}

.profile-detail-layout__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

@media (max-width: 1279px) {
  .profile-detail-layout {
    grid-template-columns: 1fr 320px;
    gap: 1rem;
    gap: var(--spacing-4);
  }
}

@media (max-width: 1023px) {
  .profile-detail-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .profile-detail-layout__main {
    order: 2;
  }

  .profile-detail-layout__sidebar {
    order: 1;
  }
}

/* ============================================
   DROPDOWN COMPONENT
   ============================================ */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  position: relative;
}

.dropdown__arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-fast);
}

.dropdown--open .dropdown__arrow {
  transform: rotate(180deg);
}

.dropdown__content {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
  min-width: 200px;
  background: #FFFFFF;
  background: var(--brand-white);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-lg);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.dropdown--open .dropdown__content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  padding: var(--spacing-2);
}

.dropdown__item {
  margin: 0;
}

.dropdown__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  color: #374151;
  color: var(--brand-gray-700);
  text-decoration: none;
  border-radius: 0.125rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.dropdown__link:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.dropdown__item--active .dropdown__link {
  background: #FDF2F2;
  background: var(--color-error-bg);
  color: #ED1C24;
  color: var(--brand-red-primary);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

/* ============================================
   ORDER ACTIONS - Button Group
   ============================================ */

.order-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

/* ============================================
   PAYMENT INFO - For Pending Orders
   ============================================ */

.payment-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 0.5rem;
  padding: var(--spacing-2);
}

.payment-info__message {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Hidden class for SVG sprites and other elements */

.hidden {
  display: none !important;
}

/* Block button modifier */

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

/* Text utilities (semantic, not Tailwind) */

.text-sm {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.text-secondary {
  color: #4B5563;
  color: var(--brand-gray-600);
}

/* Section spacing utilities */

.p-0 {
  padding: 0;
}

/* MM Medic Profile Dashboard Components
 * Компоненти для сторінки панелі керування профілю
 * Dashboard layout, stats grid, widgets
 */

/* ============================================
   STATS GRID - Dashboard Metrics Grid
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  gap: var(--spacing-4);
  margin-bottom: 2rem;
  margin-bottom: var(--spacing-8);
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   DASHBOARD LAYOUT - 3 Column Layout
   ============================================ */

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  gap: var(--spacing-6);
}

.dashboard-layout__main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  gap: var(--spacing-6);
}

.dashboard-layout__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  gap: var(--spacing-6);
}

@media (min-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 2fr 1fr;
  }
}

/* ============================================
   ORDER LIST - Dashboard Orders Widget
   ============================================ */

.order-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.order-card__header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

/* ============================================
   EVENT LIST - Dashboard Events Widget
   ============================================ */

.event-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

/* ============================================
   PROTOCOL LIST COMPACT - Dashboard Protocols
   ============================================ */

.protocol-list--compact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.protocol-list--compact .protocol-item {
  padding: 0.75rem;
  padding: var(--spacing-3);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
}

.protocol-list--compact .protocol-item__content {
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.protocol-list--compact .protocol-item__title {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.protocol-list--compact .protocol-item__meta {
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.protocol-item__price {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* ============================================
   BUTTON MODIFIERS
   ============================================ */

.btn--icon {
  padding: 0.5rem;
  padding: var(--spacing-2);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--outline-primary {
  background: transparent;
  color: #ED1C24;
  color: var(--brand-red-primary);
  border: 1px solid #ED1C24;
  border: 1px solid var(--brand-red-primary);
}

.btn--outline-primary:hover {
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
}

/* ============================================
   TEXT UTILITIES (Semantic, not Tailwind)
   ============================================ */

.text--small {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.text--muted {
  color: #4B5563;
  color: var(--brand-gray-600);
}

.text-body {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #374151;
  color: var(--brand-gray-700);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

.text-center {
  text-align: center;
}

/* ============================================
   BADGE SOFT VARIANTS
   ============================================ */

.badge--warning-soft {
  background: #FEF3C7;
  background: var(--color-warning-bg);
  color: #F59E0B;
  color: var(--color-warning);
  border: 1px solid var(--color-warning-border);
}

.badge--info-soft {
  background: #DBEAFE;
  background: var(--color-info-bg);
  color: #3B82F6;
  color: var(--color-info);
  border: 1px solid var(--color-info-border);
}

.badge--primary-soft {
  background: #FDF2F2;
  background: var(--color-error-bg);
  color: #ED1C24;
  color: var(--brand-red-primary);
  border: 1px solid #F04951;
  border: 1px solid var(--brand-red-light);
}

.badge--success-soft {
  background: #D1FAE5;
  background: var(--color-success-bg);
  color: #10B981;
  color: var(--color-success);
  border: 1px solid var(--color-success-border);
}

.badge--secondary-soft {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #374151;
  color: var(--brand-gray-700);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
}

/* MM Medic Profile Favorites Components
 * Компоненти для сторінки улюблених товарів, протоколів та подій
 * Grids, cards, tabs
 */

/* ============================================
   FAVORITES GRID - Products Grid
   ============================================ */

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  gap: var(--spacing-4);
}

@media (max-width: 639px) {
  .favorites-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PRODUCT CARD FAVORITE - Product Card for Favorites
   ============================================ */

.product-card-favorite {
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 1rem;
  padding: var(--spacing-4);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.product-card-favorite:hover {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.product-card-favorite__image {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

.product-card-favorite__image-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

.product-card-favorite__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.product-card-favorite__title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  margin: 0;
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

.product-card-favorite__title a {
  color: #111827;
  color: var(--brand-gray-900);
  text-decoration: none;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast);
}

.product-card-favorite__title a:hover {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.product-card-favorite__description {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.product-card-favorite__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-top: var(--spacing-3);
  border-top: 1px solid #F3F4F6;
  border-top: 1px solid var(--brand-gray-100);
  margin-top: auto;
}

.product-card-favorite__price {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* ============================================
   EVENTS GRID - Events Grid Layout
   ============================================ */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  gap: var(--spacing-4);
}

@media (max-width: 639px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   EVENT DATE - Event Date Badge
   ============================================ */

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #FDF2F2;
  background: var(--color-error-bg);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  border-left: 4px solid #ED1C24;
  border-left: 4px solid var(--brand-red-primary);
  flex-shrink: 0;
}

.event-date__day {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #ED1C24;
  color: var(--brand-red-primary);
  line-height: 1;
}

.event-date__month {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #374151;
  color: var(--brand-gray-700);
  text-transform: uppercase;
}

.event-card__date {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  padding: var(--spacing-3) 0;
}

/* ============================================
   TABS ENHANCEMENT - Additional Tab Styles
   ============================================ */

.tabs {
  display: flex;
  gap: 0.25rem;
  gap: var(--spacing-1);
  border-bottom: 2px solid #E5E7EB;
  border-bottom: 2px solid var(--brand-gray-200);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #4B5563;
  color: var(--brand-gray-600);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  margin-bottom: -2px;
}

.tab:hover {
  color: #111827;
  color: var(--brand-gray-900);
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

.tab--active {
  color: #ED1C24;
  color: var(--brand-red-primary);
  border-bottom-color: #ED1C24;
  border-bottom-color: var(--brand-red-primary);
  background: transparent;
}

.tab .badge {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  padding: 0.25rem 0.5rem;
  padding: var(--spacing-1) var(--spacing-2);
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   TAB CONTENT - Tab Panels
   ============================================ */

.tab-content {
  display: none;
  animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeIn var(--transition-base);
}

.tab-content--active {
  display: block;
}

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

/* MM Medic Product Edit Components */

/* ========================================
   Product Image Upload Component
   ======================================== */

.product-image-upload {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

.product-image-upload__header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.product-image-upload__title {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
}

.product-image-upload__description {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0;
}

/* Dropzone */

.product-image-upload__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 2rem;
  padding: var(--spacing-8);
  border: 2px dashed #D1D5DB;
  border: 2px dashed var(--brand-gray-300);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.product-image-upload__dropzone:hover {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  background: var(--brand-red-50);
}

.product-image-upload__dropzone--drag-over {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  background: var(--brand-red-50);
  transform: scale(1.02);
}

.product-image-upload__dropzone-icon {
  color: #9CA3AF;
  color: var(--brand-gray-400);
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast);
}

.product-image-upload__dropzone:hover .product-image-upload__dropzone-icon,
.product-image-upload__dropzone--drag-over .product-image-upload__dropzone-icon {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.product-image-upload__dropzone-text {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #374151;
  color: var(--brand-gray-700);
  margin: 0;
}

.product-image-upload__dropzone-hint {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  margin: 0;
}

/* Image Gallery */

.product-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  gap: var(--spacing-4);
}

/* Image Item */

.product-image-item {
  position: relative;
  background: #FFFFFF;
  background: var(--brand-white);
  border: 2px solid #E5E7EB;
  border: 2px solid var(--brand-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  cursor: move;
}

.product-image-item:hover {
  border-color: #D1D5DB;
  border-color: var(--brand-gray-300);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-image-item--primary {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
}

.product-image-item--dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.product-image-item__preview {
  position: relative;
  aspect-ratio: 1;
  background: #F9FAFB;
  background: var(--brand-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  padding: var(--spacing-2);
}

.product-image-item__preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.product-image-item__badge {
  position: absolute;
  top: 0.5rem;
  top: var(--spacing-2);
  left: 0.5rem;
  left: var(--spacing-2);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  gap: var(--spacing-1);
  padding: 0.25rem 0.5rem;
  padding: var(--spacing-1) var(--spacing-2);
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}

.product-image-item__actions {
  position: absolute;
  top: 0.5rem;
  top: var(--spacing-2);
  right: 0.5rem;
  right: var(--spacing-2);
  display: flex;
  gap: 0.25rem;
  gap: var(--spacing-1);
  opacity: 0;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity var(--transition-fast);
}

.product-image-item:hover .product-image-item__actions {
  opacity: 1;
}

.product-image-item__action {
  width: 32px;
  height: 32px;
  background: #FFFFFF;
  background: var(--brand-white);
  border: none;
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4B5563;
  color: var(--brand-gray-600);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.product-image-item__action:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #111827;
  color: var(--brand-gray-900);
  transform: scale(1.1);
}

.product-image-item__action--danger {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.product-image-item__action--danger:hover {
  background: var(--brand-red-50);
  color: #D11920;
  color: var(--brand-red-dark);
}

.product-image-item__drag-handle {
  position: absolute;
  bottom: 0.5rem;
  bottom: var(--spacing-2);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 20px;
  background: #FFFFFF;
  background: var(--brand-white);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  color: #9CA3AF;
  color: var(--brand-gray-400);
  opacity: 0;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity var(--transition-fast);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.product-image-item:hover .product-image-item__drag-handle {
  opacity: 1;
}

/* Loading State */

.product-image-upload__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 2rem;
  padding: var(--spacing-8);
}

.product-image-upload__loading-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0;
}

/* ========================================
   Price Matrix Component
   ======================================== */

.price-matrix {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

.price-matrix__header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.price-matrix__title {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
}

.price-matrix__description {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0;
}

/* Table Layout - Mobile First */

.price-matrix__table {
  display: flex;
  flex-direction: column;
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.price-matrix__row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  padding: 0.75rem;
  padding: var(--spacing-3);
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: background-color var(--transition-fast);
}

.price-matrix__row:last-child {
  border-bottom: none;
}

.price-matrix__row:hover:not(.price-matrix__row--header):not(.price-matrix__row--disabled) {
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

.price-matrix__row--header {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

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

.price-matrix__cell {
  display: flex;
  align-items: center;
}

.price-matrix__cell--label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
}

.price-matrix__cell--price {
  justify-content: flex-start;
}

.price-matrix__cell--actions {
  justify-content: flex-start;
}

/* User Type Display */

.price-matrix__user-type {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.price-matrix__user-type-icon {
  width: 40px;
  height: 40px;
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5563;
  color: var(--brand-gray-600);
  flex-shrink: 0;
}

.price-matrix__user-type-name {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.25rem 0;
  margin: 0 0 var(--spacing-1) 0;
}

.price-matrix__user-type-desc {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  margin: 0;
}

/* Summary - Mobile First */

.price-matrix__summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
  padding: 1rem;
  padding: var(--spacing-4);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
}

.price-matrix__summary-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.price-matrix__summary-label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
}

.price-matrix__summary-value {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

/* Compact Version - Grid Layout */

.price-matrix--compact .price-matrix__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.price-matrix__grid-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.price-matrix__grid-label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #374151;
  color: var(--brand-gray-700);
}

/* ========================================
   Translation Tabs Component
   ======================================== */

.translation-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

.translation-tabs__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  gap: var(--spacing-4);
}

.translation-tabs__title {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
}

/* Tab Navigation - Mobile First */

.translation-tabs__nav {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
  background: #F3F4F6;
  background: var(--brand-gray-100);
  padding: 0.25rem;
  padding: var(--spacing-1);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  width: 100%;
}

.translation-tabs__tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  padding: 0.5rem 1rem;
  padding: var(--spacing-2) var(--spacing-4);
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #4B5563;
  color: var(--brand-gray-600);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  position: relative;
}

.translation-tabs__tab:hover {
  color: #111827;
  color: var(--brand-gray-900);
  background: #E5E7EB;
  background: var(--brand-gray-200);
}

.translation-tabs__tab--active {
  background: #FFFFFF;
  background: var(--brand-white);
  color: #111827;
  color: var(--brand-gray-900);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.translation-tabs__flag {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Tab Status Indicators */

.translation-tabs__status {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: 0.25rem;
  margin-left: var(--spacing-1);
}

.translation-tabs__status--complete {
  background: var(--brand-green-50);
  color: var(--brand-green-primary);
}

.translation-tabs__status--error {
  background: var(--brand-red-50);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Tab Panels */

.translation-tabs__content {
  position: relative;
}

.translation-tabs__panel {
  display: none;
}

.translation-tabs__panel--active {
  display: block;
}

/* SEO Section */

.translation-tabs__seo {
  margin-top: 1rem;
  margin-top: var(--spacing-4);
  padding: 1rem;
  padding: var(--spacing-4);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
}

.translation-tabs__seo-title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.75rem 0;
  margin: 0 0 var(--spacing-3) 0;
}

/* Pills Style */

.translation-tabs__nav--pills {
  background: transparent;
  padding: 0;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.translation-tabs__pill {
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #4B5563;
  color: var(--brand-gray-600);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.translation-tabs__pill:hover {
  background: #E5E7EB;
  background: var(--brand-gray-200);
  border-color: #D1D5DB;
  border-color: var(--brand-gray-300);
  color: #111827;
  color: var(--brand-gray-900);
}

.translation-tabs__pill--active {
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
}

/* ========================================
   Template Selector Component
   ======================================== */

.template-selector {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

.template-selector__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.template-selector__help {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0;
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-left: 3px solid #3B82F6;
  border-left: 3px solid var(--color-info);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
}

/* Template Preview */

.template-preview {
  border: 2px solid #E5E7EB;
  border: 2px solid var(--brand-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  background: var(--brand-white);
  min-height: 300px;
  overflow: hidden;
  transition: border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: border-color var(--transition-fast);
}

.template-preview:hover {
  border-color: #D1D5DB;
  border-color: var(--brand-gray-300);
}

.template-preview--loading {
  border-color: #3B82F6;
  border-color: var(--color-info);
}

.template-preview--error {
  border-color: #ED1C24;
  border-color: var(--color-error);
}

.template-preview__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  padding: var(--spacing-4);
  background: linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%);
  background: linear-gradient(180deg, var(--brand-gray-50) 0%, var(--brand-gray-100) 100%);
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
}

.template-preview__title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.template-preview__title-icon {
  width: 20px;
  height: 20px;
  color: #6B7280;
  color: var(--brand-gray-500);
}

.template-preview__actions {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.template-preview__content {
  padding: 1rem;
  padding: var(--spacing-4);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  max-height: 500px;
  overflow-y: auto;
}

.template-preview__content::-webkit-scrollbar {
  width: 8px;
}

.template-preview__content::-webkit-scrollbar-track {
  background-color: #F3F4F6;
  background-color: var(--brand-gray-100);
  border-radius: 0.125rem;
  border-radius: var(--radius-sm);
}

.template-preview__content::-webkit-scrollbar-thumb {
  background-color: #D1D5DB;
  background-color: var(--brand-gray-300);
  border-radius: 0.125rem;
  border-radius: var(--radius-sm);
}

.template-preview__content::-webkit-scrollbar-thumb:hover {
  background-color: #9CA3AF;
  background-color: var(--brand-gray-400);
}

/* Loading State */

.template-preview__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 2rem;
  padding: var(--spacing-8);
  min-height: 200px;
}

.template-preview__loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #E5E7EB;
  border: 3px solid var(--brand-gray-200);
  border-top-color: #ED1C24;
  border-top-color: var(--brand-red-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.template-preview__loading-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0;
}

/* Empty State */

.template-preview__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  padding: 2rem;
  padding: var(--spacing-8);
  min-height: 200px;
  text-align: center;
}

.template-preview__empty-icon {
  width: 48px;
  height: 48px;
  color: #D1D5DB;
  color: var(--brand-gray-300);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.template-preview__empty-title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #374151;
  color: var(--brand-gray-700);
  margin: 0;
}

.template-preview__empty-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #6B7280;
  color: var(--brand-gray-500);
  margin: 0;
}

/* Error State */

.template-preview__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  padding: 1.5rem;
  padding: var(--spacing-6);
  background: #FDF2F2;
  background: var(--color-error-bg);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  margin: 1rem;
  margin: var(--spacing-4);
}

.template-preview__error-icon {
  width: 32px;
  height: 32px;
  color: #ED1C24;
  color: var(--color-error);
}

.template-preview__error-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #ED1C24;
  color: var(--color-error);
  margin: 0;
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

/* ========================================
   Product Description (used in templates)
   ======================================== */

.product-description {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  gap: var(--spacing-6);
  color: #111827;
  color: var(--brand-gray-900);
  line-height: 1.6;
}

.product-description__section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.product-description__section--warning {
  padding: 1rem;
  padding: var(--spacing-4);
  background: #FEF3C7;
  background: var(--color-warning-bg);
  border-left: 4px solid #F59E0B;
  border-left: 4px solid var(--color-warning);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
}

.product-description__heading {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #ED1C24;
  color: var(--brand-red-primary);
  margin: 0;
}

.product-description__subheading {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #1F2937;
  color: var(--brand-gray-800);
  margin: 0;
}

.product-description__text {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #374151;
  color: var(--brand-gray-700);
  margin: 0;
}

.product-description__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
  margin: 0;
  padding-left: 1.5rem;
  padding-left: var(--spacing-6);
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #374151;
  color: var(--brand-gray-700);
}

.product-description__list--ordered {
  list-style-type: decimal;
}

.product-description__list li {
  padding-left: 0.5rem;
  padding-left: var(--spacing-2);
}

.product-description__list li::marker {
  color: #ED1C24;
  color: var(--brand-red-primary);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

/* ========================================
   Product Edit Layout - Mobile First
   ======================================== */

.product-edit-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  gap: var(--spacing-4);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.product-edit-header__title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.product-edit-header__main {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
}

.product-edit-header__subtitle {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0;
}

.product-edit-header__actions {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  width: 100%;
}

.product-edit-header__actions .btn {
  flex: 1;
}

.product-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  gap: var(--spacing-6);
}

.product-edit-section {
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  padding: var(--spacing-6);
}

.product-edit-section__title {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 1rem 0;
  margin: 0 0 var(--spacing-4) 0;
  padding-bottom: 0.75rem;
  padding-bottom: var(--spacing-3);
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
}

.product-edit-section__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

/* Form Grid Layouts - Mobile First */

.product-edit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  gap: var(--spacing-4);
}

.product-edit-grid--3 {
  grid-template-columns: 1fr;
}

.product-edit-grid__full {
  grid-column: 1 / -1;
}

/* Form Input States */

.form-input--readonly {
  background-color: #F3F4F6;
  background-color: var(--brand-gray-100);
  cursor: not-allowed;
}

/* Responsive - Mobile First Approach */

/* Mobile (320px - 639px) - базові стилі вже визначені вище */

/* Tablet (640px+) */

@media (min-width: 640px) {
  .product-image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .price-matrix__summary {
    flex-direction: row;
    gap: 1.5rem;
    gap: var(--spacing-6);
  }

  .translation-tabs__nav {
    width: auto;
  }
}

/* Desktop (768px+) */

@media (min-width: 768px) {
  .product-edit-header {
    flex-direction: row;
    align-items: center;
  }

  .product-edit-header__actions {
    width: auto;
  }

  .product-edit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-edit-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-matrix__row {
    grid-template-columns: 1fr 160px 100px;
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .price-matrix__cell--price,
  .price-matrix__cell--actions {
    justify-content: center;
  }

  .translation-tabs__header {
    flex-direction: row;
    align-items: center;
  }

  .product-image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* Desktop Wide (1024px+) */

@media (min-width: 1024px) {
  .product-edit-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-matrix__row {
    grid-template-columns: 1fr 200px 120px;
  }

  .product-image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

.product-page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  gap: var(--spacing-8);
}

.product-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  gap: var(--spacing-6);
  align-items: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

.product-gallery__primary {
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  padding: 1rem;
  padding: var(--spacing-4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  width: 100%;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: box-shadow var(--transition-fast);
}

.product-gallery__primary--interactive {
  cursor: pointer;
}

.product-gallery__primary--interactive:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
}

.product-gallery__primary::after {
  content: '';
  display: block;
  padding-bottom: 0;
}

.product-gallery__image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 280px;
  -o-object-fit: contain;
     object-fit: contain;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity var(--transition-fast);
}

.product-gallery__thumbs {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  overflow-x: auto;
  padding-bottom: 0.25rem;
  padding-bottom: var(--spacing-1);
}

.product-gallery__thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  background: #FFFFFF;
  background: var(--brand-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.product-gallery__thumb:hover {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
  transform: translateY(-2px);
}

.product-gallery__thumb--active {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
}

/* Lightbox integration - clickable primary image */

.product-gallery__primary--clickable {
  cursor: pointer;
  position: relative;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-gallery__primary--clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-lg);
}

.product-gallery__primary--clickable:active {
  transform: translateY(0);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
}

/* Zoom icon hint on hover */

.product-gallery__primary--clickable::after {
  content: '';
  position: absolute;
  top: 1rem;
  top: var(--spacing-4);
  right: 1rem;
  right: var(--spacing-4);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM10 7v6m3-3H7'/%3E%3C/svg%3E");
  background-size: 24px;
  background-position: center;
  background-repeat: no-repeat;
}

.product-gallery__primary--clickable:hover::after {
  opacity: 1;
  transform: scale(1.1);
}

/* Focus states for accessibility */

.product-gallery__primary--clickable:focus-visible {
  outline: 2px solid #ED1C24;
  outline: 2px solid var(--brand-red-primary);
  outline-offset: 4px;
}

.product-info {
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  padding: var(--spacing-6);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  gap: var(--spacing-6);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.product-info__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.product-info__title {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
}

.product-info__sku {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B7280;
  color: var(--brand-gray-500);
}

.product-info__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  gap: var(--spacing-3);
  font-size: 1.875rem;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
}

.product-info__price-old {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #6B7280;
  color: var(--brand-gray-500);
  text-decoration: line-through;
}

.product-info__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  padding: 0.25rem 0.5rem;
  padding: var(--spacing-1) var(--spacing-2);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}

.product-info__status svg {
  width: 16px;
  height: 16px;
}

.product-info__status--available {
  color: #10B981;
  color: var(--color-success);
  background: #D1FAE5;
  background: var(--color-success-bg);
}

.product-info__status--unavailable {
  color: #ED1C24;
  color: var(--color-error);
  background: #FDF2F2;
  background: var(--color-error-bg);
}

.product-info__description {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #374151;
  color: var(--brand-gray-700);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.product-keypoints {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
  margin: 0;
  padding-left: 1.25rem;
  padding-left: var(--spacing-5);
  color: #374151;
  color: var(--brand-gray-700);
}

.product-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  gap: var(--spacing-3);
  margin: 0;
}

.product-specs__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  gap: var(--spacing-4);
  padding: 0.75rem 0;
  padding: var(--spacing-3) 0;
  border-bottom: 1px solid #F3F4F6;
  border-bottom: 1px solid var(--brand-gray-100);
}

.product-specs__item:last-child {
  border-bottom: none;
}

.product-specs__term {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #4B5563;
  color: var(--brand-gray-600);
  flex: 1;
  margin: 0;
}

.product-specs__value {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #111827;
  color: var(--brand-gray-900);
  flex: 1;
  margin: 0;
  text-align: right;
}

.product-info__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

.product-info__actions .product-card__counter {
  max-width: 200px;
}

.product-info__pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.product-price-card {
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  padding: 1rem;
  padding: var(--spacing-4);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  transition: border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.product-price-card--active {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  background: #FFFFFF;
  background: var(--brand-white);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.product-price-card__label {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B7280;
  color: var(--brand-gray-500);
}

.product-price-card__value {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

.product-price-card__note {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
}

.product-info__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  gap: var(--spacing-2);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
}

.product-description {
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  padding: var(--spacing-6);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.product-related {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

.product-related__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.product-related__title {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
}

@media (min-width: 640px) {
  .product-gallery__image {
    max-height: 340px;
  }

  .product-info__pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-specs__value {
    text-align: left;
  }
}

@media (min-width: 768px) {
  .product-info__actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    gap: var(--spacing-6);
  }

  .product-info__actions .btn {
    min-width: 200px;
  }
}

@media (min-width: 1024px) {
  .product-page__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2rem;
    gap: var(--spacing-8);
  }

  .product-gallery__primary {
    min-height: 420px;
  }

  .product-gallery__image {
    max-height: 420px;
  }

  .product-info__pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    gap: var(--spacing-4);
  }
}

@media (min-width: 1366px) {
  .product-page {
    gap: 2.5rem;
    gap: var(--spacing-10);
  }

  .product-gallery__image {
    max-height: 520px;
  }

  .product-info__title {
    font-size: 1.875rem;
    font-size: var(--font-size-3xl);
  }
}

/* MM Medic Product Content Components */

/* Rich visual components for product description pages */

/* ========================================
   Product Highlight Box
   Акцентований блок для ключової інформації
   ======================================== */

.product-highlight-box {
  background: linear-gradient(135deg, var(--brand-red-50) 0%, #FFFFFF 100%);
  background: linear-gradient(135deg, var(--brand-red-50) 0%, var(--brand-white) 100%);
  border: 2px solid var(--brand-red-100);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  padding: var(--spacing-6);
  display: flex;
  gap: 1rem;
  gap: var(--spacing-4);
  align-items: flex-start;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.product-highlight-box:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-highlight-box__icon {
  width: 3rem;
  width: var(--icon-size-xl);
  height: 3rem;
  height: var(--icon-size-xl);
  flex-shrink: 0;
  background: #FFFFFF;
  background: var(--brand-white);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ED1C24;
  color: var(--brand-red-primary);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
}

.product-highlight-box__icon svg {
  width: 1.5rem;
  width: var(--icon-size-base);
  height: 1.5rem;
  height: var(--icon-size-base);
}

.product-highlight-box__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.product-highlight-box__title {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #D11920;
  color: var(--brand-red-dark);
  margin: 0;
}

.product-highlight-box__text {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #374151;
  color: var(--brand-gray-700);
  margin: 0;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

/* ========================================
   Product Content Card
   Інформаційна картка з іконкою
   ======================================== */

.product-content-card {
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  padding: var(--spacing-5);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  height: 100%;
}

.product-content-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: #D1D5DB;
  border-color: var(--brand-gray-300);
}

.product-content-card__icon-wrapper {
  width: 2.5rem;
  width: var(--icon-size-lg);
  height: 2.5rem;
  height: var(--icon-size-lg);
  background: linear-gradient(135deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(135deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 100%);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  color: var(--brand-white);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.product-content-card__icon {
  width: 1.5rem;
  width: var(--icon-size-base);
  height: 1.5rem;
  height: var(--icon-size-base);
}

.product-content-card__icon-wrapper svg,
.product-content-card__icon svg {
  width: 1.5rem;
  width: var(--icon-size-base);
  height: 1.5rem;
  height: var(--icon-size-base);
}

/* Icon color modifiers */

.product-content-card__icon--primary {
  background: linear-gradient(135deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(135deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 100%);
}

.product-content-card__icon--success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
}

.product-content-card__icon--info {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  background: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-dark) 100%);
}

.product-content-card__icon--warning {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-dark) 100%);
}

.product-content-card__title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
}

.product-content-card__text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

.product-content-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-content-card__list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  gap: var(--spacing-2);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
}

.product-content-card__list-item::before {
  content: '\2713';
  color: #ED1C24;
  color: var(--brand-red-primary);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
}

/* ========================================
   Product Feature Grid
   Сітка переваг/характеристик
   ======================================== */

.product-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  gap: var(--spacing-4);
}

/* ========================================
   Product Step Card
   Картка для кроків протоколу
   ======================================== */

.product-step-card {
  background: #FFFFFF;
  background: var(--brand-white);
  border: 2px solid #E5E7EB;
  border: 2px solid var(--brand-gray-200);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  padding: var(--spacing-5);
  display: flex;
  gap: 1rem;
  gap: var(--spacing-4);
  align-items: flex-start;
  position: relative;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.product-step-card:hover {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.product-step-card__number {
  width: 2.5rem;
  width: var(--icon-size-lg);
  height: 2.5rem;
  height: var(--icon-size-lg);
  flex-shrink: 0;
  background: linear-gradient(135deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(135deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  color: var(--brand-white);
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.product-step-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.product-step-card__title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
}

.product-step-card__text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

/* ========================================
   Product Comparison Card
   Візуальне порівняння (замість таблиці)
   ======================================== */

.product-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  gap: var(--spacing-4);
}

.product-comparison-card {
  background: #FFFFFF;
  background: var(--brand-white);
  border: 2px solid #E5E7EB;
  border: 2px solid var(--brand-gray-200);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  padding: var(--spacing-6);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.product-comparison-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(90deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 100%);
}

.product-comparison-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
}

.product-comparison-card--primary {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  background: linear-gradient(135deg, #FFFFFF 0%, var(--brand-red-50) 100%);
  background: linear-gradient(135deg, var(--brand-white) 0%, var(--brand-red-50) 100%);
}

.product-comparison-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding-bottom: 0.75rem;
  padding-bottom: var(--spacing-3);
  border-bottom: 2px solid #F3F4F6;
  border-bottom: 2px solid var(--brand-gray-100);
}

.product-comparison-card__badge {
  padding: 0.25rem 0.75rem;
  padding: var(--spacing-1) var(--spacing-3);
  background: linear-gradient(135deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(135deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 100%);
  color: #FFFFFF;
  color: var(--brand-white);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  letter-spacing: var(--tracking-wider);
}

.product-comparison-card__title {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
}

.product-comparison-card__specs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.product-comparison-card__spec {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  align-items: flex-start;
}

.product-comparison-card__spec-icon {
  width: 1.25rem;
  width: var(--icon-size-sm);
  height: 1.25rem;
  height: var(--icon-size-sm);
  flex-shrink: 0;
  color: #ED1C24;
  color: var(--brand-red-primary);
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
}

.product-comparison-card__spec-content {
  flex: 1;
}

.product-comparison-card__spec-label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.25rem 0;
  margin: 0 0 var(--spacing-1) 0;
}

.product-comparison-card__spec-value {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

/* Comparison card additional BEM elements */

.product-comparison-card__side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.product-comparison-card__subtitle {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.5rem 0;
  margin: 0 0 var(--spacing-2) 0;
}

.product-comparison-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-comparison-card__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  gap: var(--spacing-2);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
  padding-left: 1rem;
  padding-left: var(--spacing-4);
  position: relative;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

.product-comparison-card__item::before {
  content: '•';
  position: absolute;
  left: 0;
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

.product-comparison-card__item--positive::before {
  content: '✓';
  color: #10B981;
  color: var(--color-success);
}

.product-comparison-card__item--neutral::before {
  content: '−';
  color: #6B7280;
  color: var(--brand-gray-500);
}

/* ========================================
   Product Warning Banner
   Виразний банер застережень
   ======================================== */

.product-warning-banner {
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFFFF 100%);
  background: linear-gradient(135deg, var(--color-warning-bg) 0%, var(--brand-white) 100%);
  border: 2px solid #F59E0B;
  border: 2px solid var(--color-warning);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  padding: var(--spacing-6);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.product-warning-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background: #F59E0B;
  background: var(--color-warning);
}

.product-warning-banner__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding-left: 0.5rem;
  padding-left: var(--spacing-2);
}

.product-warning-banner__icon {
  width: 2rem;
  width: var(--icon-size-md);
  height: 2rem;
  height: var(--icon-size-md);
  flex-shrink: 0;
  color: #F59E0B;
  color: var(--color-warning);
}

.product-warning-banner__icon svg {
  width: 100%;
  height: 100%;
}

.product-warning-banner__title {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #D97706;
  color: var(--color-warning-dark);
  margin: 0;
}

.product-warning-banner__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
  margin: 0;
  padding-left: 2rem;
  padding-left: var(--spacing-8);
  list-style: none;
}

.product-warning-banner__list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  gap: var(--spacing-3);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  position: relative;
}

.product-warning-banner__list-item::before {
  content: '\26A0';
  color: #F59E0B;
  color: var(--color-warning);
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
  margin-top: calc(0.25rem * -0.5);
  margin-top: calc(var(--spacing-1) * -0.5);
}

/* Warning banner color modifiers */

.product-warning-banner--info {
  background: linear-gradient(135deg, #DBEAFE 0%, #FFFFFF 100%);
  background: linear-gradient(135deg, var(--color-info-bg) 0%, var(--brand-white) 100%);
  border-color: #3B82F6;
  border-color: var(--color-info);
}

.product-warning-banner--info::before {
  background: #3B82F6;
  background: var(--color-info);
}

.product-warning-banner--info .product-warning-banner__icon {
  color: #3B82F6;
  color: var(--color-info);
}

.product-warning-banner--info .product-warning-banner__title {
  color: #2563EB;
  color: var(--color-info-dark);
}

.product-warning-banner--error {
  background: linear-gradient(135deg, #FDF2F2 0%, #FFFFFF 100%);
  background: linear-gradient(135deg, var(--color-error-bg) 0%, var(--brand-white) 100%);
  border-color: #ED1C24;
  border-color: var(--color-error);
}

.product-warning-banner--error::before {
  background: #ED1C24;
  background: var(--color-error);
}

.product-warning-banner--error .product-warning-banner__icon {
  color: #ED1C24;
  color: var(--color-error);
}

.product-warning-banner--error .product-warning-banner__title {
  color: #D11920;
  color: var(--color-error-dark);
}

/* ========================================
   Backward Compatibility for Old Structure
   Legacy support for centrifuge and prf templates
   ======================================== */

/* Old structure wrapper (deprecated, but supported) */

.product-warning-banner__icon-wrapper {
  width: 2rem;
  width: var(--icon-size-md);
  height: 2rem;
  height: var(--icon-size-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Old structure content wrapper */

.product-warning-banner__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

/* Old structure message paragraph */

.product-warning-banner__message {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
  margin: 0;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

/* ========================================
   Product Info Box
   Інформаційний блок з іконкою
   ======================================== */

.product-info-box {
  background: linear-gradient(135deg, #DBEAFE 0%, #FFFFFF 100%);
  background: linear-gradient(135deg, var(--color-info-bg) 0%, var(--brand-white) 100%);
  border: 2px solid #3B82F6;
  border: 2px solid var(--color-info);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  padding: var(--spacing-5);
  display: flex;
  gap: 1rem;
  gap: var(--spacing-4);
  align-items: flex-start;
}

.product-info-box__icon {
  width: 2rem;
  width: var(--icon-size-md);
  height: 2rem;
  height: var(--icon-size-md);
  flex-shrink: 0;
  color: #3B82F6;
  color: var(--color-info);
}

.product-info-box__icon svg {
  width: 100%;
  height: 100%;
}

.product-info-box__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.product-info-box__title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #2563EB;
  color: var(--color-info-dark);
  margin: 0;
}

.product-info-box__text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
  margin: 0;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

/* Info box color modifiers */

.product-info-box--info {
  background: linear-gradient(135deg, #DBEAFE 0%, #FFFFFF 100%);
  background: linear-gradient(135deg, var(--color-info-bg) 0%, var(--brand-white) 100%);
  border-color: #3B82F6;
  border-color: var(--color-info);
}

.product-info-box--info .product-info-box__icon {
  color: #3B82F6;
  color: var(--color-info);
}

.product-info-box--info .product-info-box__title {
  color: #2563EB;
  color: var(--color-info-dark);
}

.product-info-box--warning {
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFFFF 100%);
  background: linear-gradient(135deg, var(--color-warning-bg) 0%, var(--brand-white) 100%);
  border-color: #F59E0B;
  border-color: var(--color-warning);
}

.product-info-box--warning .product-info-box__icon {
  color: #F59E0B;
  color: var(--color-warning);
}

.product-info-box--warning .product-info-box__title {
  color: #D97706;
  color: var(--color-warning-dark);
}

/* Support for info box without icon (backward compatibility) */

.product-info-box:not(:has(.product-info-box__icon)) {
  display: block;
}

.product-info-box:not(:has(.product-info-box__icon)) .product-info-box__content {
  flex: none;
}

/* ========================================
   Product Spec Grid
   Сітка технічних характеристик
   ======================================== */

.product-spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.product-spec-item {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 1rem;
  padding: var(--spacing-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  gap: var(--spacing-4);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.product-spec-item:hover {
  background: #FFFFFF;
  background: var(--brand-white);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.product-spec-item__label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0;
}

.product-spec-item__value {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
  text-align: right;
}

/* ===================================
   Product Data Table Wrapper
   ================================ */

.product-data-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ========================================
   Responsive - Mobile First
   ======================================== */

/* Tablet (640px+) */

@media (min-width: 640px) {
  .product-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-comparison {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px+) */

@media (min-width: 1024px) {
  .product-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-highlight-box {
    padding: 2rem;
    padding: var(--spacing-8);
  }

  .product-highlight-box__icon {
    width: 3.5rem;
    width: var(--icon-size-2xl);
    height: 3.5rem;
    height: var(--icon-size-2xl);
  }

  .product-highlight-box__icon svg {
    width: 2rem;
    width: var(--icon-size-md);
    height: 2rem;
    height: var(--icon-size-md);
  }
}

/* Wide (1280px+) */

@media (min-width: 1280px) {
  .product-comparison {
    gap: 1.5rem;
    gap: var(--spacing-6);
  }

  .product-highlight-box {
    padding: 2.5rem;
    padding: var(--spacing-10);
  }

  .product-warning-banner {
    padding: 2rem;
    padding: var(--spacing-8);
  }
}

/* Ultra-wide (1536px+) */

@media (min-width: 1536px) {
  .product-feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================================
   Product Data Table
   ================================ */

.product-data-table {
  width: 100%;
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1rem 0;
  margin: var(--spacing-4) 0;
  background: var(--color-white);
}

.product-data-table__row {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  border-bottom: 1px solid #F3F4F6;
  border-bottom: 1px solid var(--brand-gray-100);
  align-items: center;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: background-color var(--transition-base);
}

.product-data-table__row:last-child {
  border-bottom: none;
}

.product-data-table__row:nth-child(even) {
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

.product-data-table__row:hover {
  background: var(--brand-red-50);
}

.product-data-table__cell {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
}

.product-data-table__cell:first-child {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

.product-data-table__cell:nth-child(2),
.product-data-table__cell:nth-child(3) {
  text-align: center;
}

/* Mobile: stack vertically */

@media (max-width: 639px) {
  .product-data-table__row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    gap: var(--spacing-2);
  }

  .product-data-table__cell:nth-child(2),
  .product-data-table__cell:nth-child(3) {
    text-align: left;
    padding-left: 1rem;
    padding-left: var(--spacing-4);
  }

  .product-data-table__cell:nth-child(2)::before {
    content: "\2022\0020";
    color: #ED1C24;
    color: var(--brand-red-primary);
  }
}

/* Tablet (640px-1023px) */

@media (min-width: 640px) and (max-width: 1023px) {
  .product-data-table__row {
    padding: 1rem;
    padding: var(--spacing-4);
  }
}

/* ===================================
   Product List
   ================================ */

.product-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  margin: var(--spacing-4) 0;
}

.product-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  gap: var(--spacing-3);
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #374151;
  color: var(--brand-gray-700);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

.product-list__marker {
  flex-shrink: 0;
  width: 1.25rem;
  width: var(--icon-size-sm);
  height: 1.25rem;
  height: var(--icon-size-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ED1C24;
  color: var(--brand-red-primary);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  font-size: var(--font-size-base);
}

.product-list__marker::before {
  content: "\2713";
}

.product-list__text {
  flex: 1;
}

/* Mobile */

@media (max-width: 639px) {
  .product-list__item {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    gap: 0.5rem;
    gap: var(--spacing-2);
  }
}

/* ===================================
   Product Badge
   ================================ */

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  padding: 0.25rem 0.75rem;
  padding: var(--spacing-1) var(--spacing-3);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  letter-spacing: var(--tracking-wider);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
}

.product-badge--success {
  background: #D1FAE5;
  background: var(--color-success-bg);
  color: #059669;
  color: var(--color-success-dark);
  border: 1px solid #10B981;
  border: 1px solid var(--color-success);
}

.product-badge--info {
  background: #DBEAFE;
  background: var(--color-info-bg);
  color: #2563EB;
  color: var(--color-info-dark);
  border: 1px solid #3B82F6;
  border: 1px solid var(--color-info);
}

.product-badge--warning {
  background: #FEF3C7;
  background: var(--color-warning-bg);
  color: #D97706;
  color: var(--color-warning-dark);
  border: 1px solid #F59E0B;
  border: 1px solid var(--color-warning);
}

.product-badge--primary {
  background: var(--brand-red-50);
  color: #D11920;
  color: var(--brand-red-dark);
  border: 1px solid #ED1C24;
  border: 1px solid var(--brand-red-primary);
}

.product-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

/* Mobile */

@media (max-width: 639px) {
  .product-badge {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    padding: 0.25rem 0.5rem;
    padding: var(--spacing-1) var(--spacing-2);
  }
}

/* ========================================
   Product Description Section
   Секції опису продукту
   ======================================== */

.product-description__section {
  margin: 2rem 0;
  margin: var(--spacing-8) 0;
  padding: 1.5rem 0;
  padding: var(--spacing-6) 0;
  border-bottom: 1px solid #F3F4F6;
  border-bottom: 1px solid var(--brand-gray-100);
}

.product-description__section:first-child {
  margin-top: 0;
  padding-top: 0;
}

.product-description__section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.product-description__heading {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 1.5rem 0;
  margin: 0 0 var(--spacing-6) 0;
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

.product-description__subheading {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 1rem 0;
  margin: 0 0 var(--spacing-4) 0;
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

.product-description__text {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #374151;
  color: var(--brand-gray-700);
  margin: 0 0 1rem 0;
  margin: 0 0 var(--spacing-4) 0;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  max-width: 65ch;
  max-width: var(--prose-width);
}

.product-description__text:last-child {
  margin-bottom: 0;
}

/* Mobile adjustments */

@media (max-width: 639px) {
  .product-description__section {
    margin: 1.5rem 0;
    margin: var(--spacing-6) 0;
    padding: 1rem 0;
    padding: var(--spacing-4) 0;
  }

  .product-description__heading {
    font-size: 1.25rem;
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-4);
  }

  .product-description__subheading {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
    margin-bottom: 0.75rem;
    margin-bottom: var(--spacing-3);
  }

  .product-description__text {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }
}

/* MM Medic Inventory Page - Mobile First Design */

/* =================================================================
   MODAL MODIFIERS
   ================================================================= */

.modal--large {
  max-width: 800px;
}

/* =================================================================
   INVENTORY METRICS - Mobile First
   ================================================================= */

/* Base mobile styles (320px+) */

.inventory-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  gap: var(--spacing-4);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

/* Tablet (640px+) */

@media (min-width: 640px) {
  .inventory-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px+) */

@media (min-width: 1024px) {
  .inventory-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =================================================================
   INVENTORY FILTERS - Mobile First
   ================================================================= */

.inventory-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  gap: var(--spacing-4);
}

/* Tablet (640px+) */

@media (min-width: 640px) {
  .inventory-filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (768px+) */

@media (min-width: 768px) {
  .inventory-filters {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =================================================================
   STOCK INPUT STATES
   ================================================================= */

.stock-input--changed {
  border-color: #F59E0B !important;
  border-color: var(--color-warning) !important;
  background-color: #FEF3C7 !important;
  background-color: var(--color-warning-bg) !important;
}

.stock-input--saving {
  opacity: 0.6;
  cursor: wait;
}

/* =================================================================
   TABLE CELL STYLES (replacing Tailwind utilities)
   ================================================================= */

.table__code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #4B5563;
  color: var(--brand-gray-600);
  padding: 0.25rem 0.5rem;
  padding: var(--spacing-1) var(--spacing-2);
  background-color: #F3F4F6;
  background-color: var(--brand-gray-100);
  border-radius: 0.125rem;
  border-radius: var(--radius-sm);
}

.table__text--muted {
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

.table__text--secondary {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  margin-left: 0.5rem;
  margin-left: var(--spacing-2);
}

.table__text--subdued {
  color: #4B5563;
  color: var(--brand-gray-600);
}

.table__text--medium {
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #374151;
  color: var(--brand-gray-700);
}

/* =================================================================
   STOCK UPDATE BAR ICONS AND ELEMENTS
   ================================================================= */

.stock-update-bar__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #F59E0B;
  color: var(--color-warning);
  margin-right: 0.75rem;
  margin-right: var(--spacing-3);
}

/* =================================================================
   INVENTORY TABLE MOBILE OPTIMIZATION
   ================================================================= */

/* Mobile: Stack table cells vertically */

@media (max-width: 767px) {
  .inventory-table {
    display: block;
  }

  .inventory-table thead {
    display: none;
  }

  .inventory-table tbody {
    display: block;
  }

  .inventory-table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-4);
    padding: 0.75rem;
    padding: var(--spacing-3);
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    background: var(--brand-white);
  }

  .inventory-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    padding: var(--spacing-2) 0;
    border: none;
  }

  .inventory-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    color: #4B5563;
    color: var(--brand-gray-600);
    margin-right: 0.5rem;
    margin-right: var(--spacing-2);
  }

  .inventory-table td.table__cell--checkbox {
    order: -1;
  }

  .inventory-table td.table__cell--center {
    justify-content: flex-end;
  }

  /* Product info takes full width on mobile */
  .inventory-table .table__avatar {
    flex-direction: row;
    width: 100%;
  }

  .inventory-table .table__actions {
    justify-content: flex-end;
    width: 100%;
  }
}

/* =================================================================
   STOCK UPDATE ACTIONS BAR
   ================================================================= */

.stock-update-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #FFFFFF;
  background: var(--brand-white);
  border-top: 2px solid #F59E0B;
  border-top: 2px solid var(--color-warning);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  padding: var(--spacing-4);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.stock-update-bar__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.stock-update-bar__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.stock-update-bar__actions {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
  flex-wrap: wrap;
}

/* Mobile adjustments */

@media (max-width: 640px) {
  .stock-update-bar__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .stock-update-bar__actions {
    width: 100%;
  }

  .stock-update-bar__actions .btn {
    flex: 1;
  }
}

/* =================================================================
   INVENTORY HISTORY MODAL
   ================================================================= */

.inventory-history {
  max-height: 400px;
  overflow-y: auto;
}

.inventory-history__change--positive {
  color: #10B981;
  color: var(--color-success);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.inventory-history__change--negative {
  color: #ED1C24;
  color: var(--color-error);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.inventory-history__cell {
  padding: 0.5rem 0;
  padding: var(--spacing-2) 0;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.inventory-history__cell--center {
  text-align: center;
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.inventory-history__cell--muted {
  color: #6B7280;
  color: var(--brand-gray-500);
}

.inventory-history__summary {
  padding: 0.75rem;
  padding: var(--spacing-3);
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.inventory-history__summary-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
}

/* Mobile: Simplify history table */

@media (max-width: 640px) {
  .inventory-history table {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
  }

  .inventory-history th,
  .inventory-history td {
    padding: 0.25rem 0.5rem;
    padding: var(--spacing-1) var(--spacing-2);
  }

  /* Hide less critical columns on mobile */
  .inventory-history th:nth-child(6),
  .inventory-history td:nth-child(6) {
    display: none;
  }
}

/* =================================================================
   EMPTY STATE
   ================================================================= */

.inventory-empty {
  text-align: center;
  padding: 2rem 1rem;
  padding: var(--spacing-8) var(--spacing-4);
}

.inventory-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  margin: 0 auto var(--spacing-4);
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

.inventory-empty__title {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
  color: #111827;
  color: var(--brand-gray-900);
}

.inventory-empty__text {
  color: #4B5563;
  color: var(--brand-gray-600);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

/* =================================================================
   TOUCH-FRIENDLY ENHANCEMENTS
   ================================================================= */

/* Ensure buttons are touch-friendly (min 44px height) */

@media (max-width: 1023px) {
  .inventory-table .table__action,
  .stock-input,
  .min-stock-input {
    min-height: 44px;
    min-width: 44px;
  }

  .inventory-table input[type="number"] {
    font-size: 16px; /* Prevent iOS zoom on focus */
  }
}

/* =================================================================
   LOADING STATES
   ================================================================= */

.inventory-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.inventory-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 3px solid #E5E7EB;
  border: 3px solid var(--brand-gray-200);
  border-top-color: #ED1C24;
  border-top-color: var(--brand-red-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* =================================================================
   CERTIFICATE MANAGEMENT PAGE - Admin Panel
   Following CLAUDE.MD guidelines for semantic CSS
   ================================================================= */

/* =================================================================
   ICON SIZE UTILITIES (replacing inline style attributes)
   ================================================================= */

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

/* =================================================================
   CERTIFICATE TABLE SPECIFIC STYLES
   ================================================================= */

.certificates-table {
  /* Inherits from table base styles */
}

/* Table rows with selection highlight */

.certificates-table .table__row--selected {
  background-color: #DBEAFE;
  background-color: var(--color-info-bg);
}

/* Certificate number display with avatar pattern */

.certificate-number {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-family: var(--font-family-mono);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

.certificate-verification-code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
}

/* =================================================================
   CERTIFICATE STATS CARDS (using existing card--metric pattern)
   ================================================================= */

.certificates-stats {
  /* Grid layout handled by Tailwind utilities */
}

/* =================================================================
   CERTIFICATE FILTERS
   ================================================================= */

.certificates-filter__search {
  /* Wider search input on desktop */
}

@media (min-width: 1024px) {
  .certificates-filter__search {
    grid-column: span 2;
  }
}

/* =================================================================
   CERTIFICATE VERIFICATION BADGE
   ================================================================= */

.verification-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  padding: var(--spacing-1) var(--spacing-3);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.verification-badge--verified {
  background-color: #D1FAE5;
  background-color: var(--color-success-bg);
  color: #10B981;
  color: var(--color-success);
}

.verification-badge--pending {
  background-color: #FEF3C7;
  background-color: var(--color-warning-bg);
  color: #F59E0B;
  color: var(--color-warning);
}

.verification-badge__icon {
  margin-right: 0.25rem;
  margin-right: var(--spacing-1);
}

/* =================================================================
   CERTIFICATE ACTIONS PANEL
   ================================================================= */

.certificate-actions {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
  align-items: center;
  justify-content: center;
}

.certificate-actions__button {
  padding: 0.5rem;
  padding: var(--spacing-2);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: var(--transition-fast);
  color: #4B5563;
  color: var(--brand-gray-600);
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.certificate-actions__button:hover {
  background-color: #F3F4F6;
  background-color: var(--brand-gray-100);
  color: #111827;
  color: var(--brand-gray-900);
}

.certificate-actions__button--primary {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.certificate-actions__button--primary:hover {
  background-color: var(--brand-red-50);
  color: #D11920;
  color: var(--brand-red-dark);
}

.certificate-actions__button--danger {
  color: #ED1C24;
  color: var(--color-error);
}

.certificate-actions__button--danger:hover {
  background-color: #FDF2F2;
  background-color: var(--color-error-bg);
  color: #D11920;
  color: var(--color-error-dark);
}

/* =================================================================
   CERTIFICATE EMPTY STATE
   ================================================================= */

.certificate-empty {
  text-align: center;
  padding: 3rem 2rem;
  padding: var(--spacing-12) var(--spacing-8);
}

.certificate-empty__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  margin: 0 auto var(--spacing-6);
  color: #D1D5DB;
  color: var(--brand-gray-300);
}

.certificate-empty__title {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.certificate-empty__description {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #4B5563;
  color: var(--brand-gray-600);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  margin: 0 auto var(--spacing-6);
}

/* =================================================================
   GRADE BADGES (A, B, C, Pass, Fail)
   ================================================================= */

.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
}

.grade-badge--a {
  background-color: #D1FAE5;
  background-color: var(--color-success-bg);
  color: #10B981;
  color: var(--color-success);
}

.grade-badge--b {
  background-color: #DBEAFE;
  background-color: var(--color-info-bg);
  color: #3B82F6;
  color: var(--color-info);
}

.grade-badge--c {
  background-color: #FEF3C7;
  background-color: var(--color-warning-bg);
  color: #F59E0B;
  color: var(--color-warning);
}

.grade-badge--pass {
  background-color: #D1FAE5;
  background-color: var(--color-success-bg);
  color: #10B981;
  color: var(--color-success);
}

.grade-badge--fail {
  background-color: #FDF2F2;
  background-color: var(--color-error-bg);
  color: #ED1C24;
  color: var(--color-error);
}

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

/* Mobile (320px - 639px) */

@media (max-width: 639px) {
  .certificates-table {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }

  .certificate-actions {
    flex-direction: column;
    gap: 0.25rem;
    gap: var(--spacing-1);
  }

  .certificate-empty__icon {
    width: 60px;
    height: 60px;
  }

  .certificate-empty__title {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
  }
}

/* Tablet (640px - 1023px) */

@media (min-width: 640px) and (max-width: 1023px) {
  .certificates-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px+) */

@media (min-width: 1024px) {
  .certificates-stats {
    grid-template-columns: repeat(4, 1fr);
  }

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

/* Ultra-wide (1536px+) */

@media (min-width: 1536px) {
  .certificate-empty__description {
    max-width: 800px;
  }
}

/* =================================================================
   TOUCH-FRIENDLY MOBILE INTERACTIONS
   ================================================================= */

@media (max-width: 1023px) {
  .certificate-actions__button {
    min-width: 44px;
    min-height: 44px;
  }

  .certificates-table .checkbox__box {
    width: 24px;
    height: 24px;
  }
}

/* MM Medic Ecosystem Pillars Component */

/* Інфографічна секція "Три стовпи MM MEDIC" */

.ecosystem {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  padding: 3rem 0;
  padding: var(--spacing-12) 0;
  margin-bottom: 2rem;
  margin-bottom: var(--spacing-8);
}

/* Diagram Container */

.ecosystem__diagram {
  position: relative;
  margin-bottom: 2.5rem;
  margin-bottom: var(--spacing-10);
}

/* Center Element */

.ecosystem__center {
  text-align: center;
  margin-bottom: 2.5rem;
  margin-bottom: var(--spacing-10);
}

.ecosystem__center-icon {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(135deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 100%);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  margin: 0 auto var(--spacing-4);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-lg);
  color: #FFFFFF;
  color: var(--brand-white);
}

.ecosystem__center-title {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
  letter-spacing: 0.05em;
}

.ecosystem__center-subtitle {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #4B5563;
  color: var(--brand-gray-600);
  max-width: 20rem;
  margin: 0 auto;
}

/* Pillars Container */

.ecosystem__pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  gap: var(--spacing-8);
  margin-bottom: 2.5rem;
  margin-bottom: var(--spacing-10);
}

@media (min-width: 640px) {
  .ecosystem__pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    gap: var(--spacing-6);
  }
}

@media (min-width: 1024px) {
  .ecosystem__pillars {
    gap: 2rem;
    gap: var(--spacing-8);
  }
}

/* Individual Pillar - тепер використовує .card.card--pillar з _cards.css */

/* ВИДАЛЕНО: дублювання стилів згідно CLAUDE.md §1.3 - використання існуючих компонентів */

/* Content Text Block */

.ecosystem__content {
  text-align: center;
  margin-bottom: 2rem;
  margin-bottom: var(--spacing-8);
}

.ecosystem__content .text-body-lg {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: #374151;
  color: var(--brand-gray-700);
}

/* Actions Buttons */

.ecosystem__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .ecosystem__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Variant with Connected Arrows */

.ecosystem--with-arrows .ecosystem__diagram {
  position: relative;
}

@media (min-width: 1024px) {
  /* Desktop horizontal layout with center in middle */
  .ecosystem--with-arrows .ecosystem__diagram--connected {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    gap: var(--spacing-12);
    align-items: center;
  }

  .ecosystem--with-arrows .ecosystem__center {
    margin-bottom: 0;
    order: 2;
  }

  .ecosystem--with-arrows .ecosystem__pillars {
    grid-template-columns: 1fr;
    gap: 2rem;
    gap: var(--spacing-8);
    margin-bottom: 0;
  }

  .ecosystem--with-arrows .ecosystem__pillars::before,
  .ecosystem--with-arrows .ecosystem__pillars::after {
    display: none;
  }

  /* Розташування стовпів: перший ліворуч, два інші праворуч */
  .ecosystem--with-arrows .ecosystem__diagram--connected .ecosystem__pillars:first-child {
    order: 1;
  }

  .ecosystem--with-arrows .ecosystem__diagram--connected .ecosystem__pillars:last-child {
    order: 3;
    grid-template-columns: 1fr;
  }
}

/* Connection lines (декоративні елементи через псевдоелементи) */

@media (min-width: 1024px) {
  .ecosystem--with-arrows .ecosystem__pillar {
    position: relative;
  }

  /* Стрілки можна додати через SVG або CSS, поки залишаю простір для майбутньої імплементації */
  .ecosystem--with-arrows .ecosystem__center::before,
  .ecosystem--with-arrows .ecosystem__center::after {
    content: '';
    position: absolute;
    width: 4rem;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #D1D5DB 50%, transparent 100%);
    background: linear-gradient(90deg, transparent 0%, var(--brand-gray-300) 50%, transparent 100%);
    top: 50%;
    transform: translateY(-50%);
  }

  .ecosystem--with-arrows .ecosystem__center::before {
    left: -5rem;
  }

  .ecosystem--with-arrows .ecosystem__center::after {
    right: -5rem;
  }
}

/* Responsive Typography */

@media (min-width: 768px) {
  .ecosystem__center-title {
    font-size: 1.875rem;
    font-size: var(--font-size-3xl);
  }
}

@media (min-width: 1024px) {
  .ecosystem__center-icon {
    width: 6rem;
    height: 6rem;
  }
}

/* Accessibility */

.ecosystem__center-icon {
  position: relative;
}

/* Print styles */

@media print {
  .ecosystem {
    background: transparent;
    page-break-inside: avoid;
  }

  .ecosystem__center-icon {
    box-shadow: none;
    border: 1px solid #D1D5DB;
    border: 1px solid var(--brand-gray-300);
  }
}

/* MM Medic CTA (Call to Action) Section */

/* Секція заклику до дії з формою або блоками */

.cta-section {
  background: linear-gradient(135deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(135deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 100%);
  padding: 3rem 0;
  padding: var(--spacing-12) 0;
  margin-bottom: 3rem;
  margin-bottom: var(--spacing-12);
  color: #FFFFFF;
  color: var(--brand-white);
}

/* Container */

.cta-section__container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  padding: 2rem;
  padding: var(--spacing-8);
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .cta-section__container {
    padding: 2.5rem;
    padding: var(--spacing-10);
  }
}

/* Content Area */

.cta-section__content {
  text-align: center;
  margin-bottom: 2rem;
  margin-bottom: var(--spacing-8);
}

.cta-section__title {
  font-size: 1.875rem;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #FFFFFF;
  color: var(--brand-white);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .cta-section__title {
    font-size: 2.25rem;
    font-size: var(--font-size-4xl);
  }
}

.cta-section__description {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto;
}

/* Form Styles */

.cta-section__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  gap: var(--spacing-6);
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .cta-section__form {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Повна ширина для message та кнопки */
  .cta-section__form .form-group:nth-last-child(2),
  .cta-section__form .btn {
    grid-column: 1 / -1;
  }
}

/* Override input styles for CTA section */

.cta-section .input {
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
  color: #111827;
  color: var(--brand-gray-900);
}

.cta-section .input::-moz-placeholder {
  color: #6B7280;
  color: var(--brand-gray-500);
}

.cta-section .input::placeholder {
  color: #6B7280;
  color: var(--brand-gray-500);
}

.cta-section .input:focus {
  background: #FFFFFF;
  background: var(--brand-white);
  border-color: #FFFFFF;
  border-color: var(--brand-white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.cta-section .form-label {
  color: #FFFFFF;
  color: var(--brand-white);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

/* CTA Button in form */

.cta-section__form .btn {
  justify-self: center;
}

@media (min-width: 640px) {
  .cta-section__form .btn {
    justify-self: start;
  }
}

/* Variant B: Split Grid Layout */

.cta-section--split .cta-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  gap: var(--spacing-6);
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cta-section--split .cta-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    gap: var(--spacing-8);
  }
}

/* CTA Block */

.cta-section__block {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  padding: 2rem;
  padding: var(--spacing-8);
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.cta-section__block:hover {
  transform: translateY(-0.25rem);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-section__block-icon {
  width: 5rem;
  height: 5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  margin: 0 auto var(--spacing-6);
  color: #FFFFFF;
  color: var(--brand-white);
}

.cta-section__block-title {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #FFFFFF;
  color: var(--brand-white);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.cta-section__block-text {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.cta-section__block .btn {
  background: #FFFFFF;
  background: var(--brand-white);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.cta-section__block .btn:hover {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #D11920;
  color: var(--brand-red-dark);
}

/* Alternative Background Variants */

.cta-section--gradient-blue {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  background: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-dark) 100%);
}

.cta-section--gradient-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
}

.cta-section--solid {
  background: #ED1C24;
  background: var(--brand-red-primary);
}

/* Overlay pattern (optional) */

.cta-section--pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.cta-section--pattern .cta-section__container {
  position: relative;
  z-index: 1;
}

/* Loading State */

.cta-section__form.is-loading .btn {
  position: relative;
  pointer-events: none;
}

.cta-section__form.is-loading .btn::after {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 50%;
  left: 50%;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner 0.6s linear infinite;
}

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

/* Success Message */

.cta-section__success {
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 1rem;
  padding: var(--spacing-4);
  text-align: center;
  color: #FFFFFF;
  color: var(--brand-white);
  display: none;
}

.cta-section__success.is-visible {
  display: block;
}

.cta-section__success-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  margin: 0 auto var(--spacing-3);
  color: #34D399;
  color: var(--color-success-light);
}

/* Accessibility */

.cta-section .form-group {
  position: relative;
}

.cta-section .input:focus + .form-label {
  color: #FFFFFF;
  color: var(--brand-white);
}

/* Print Styles */

@media print {
  .cta-section {
    background: #F3F4F6;
    background: var(--brand-gray-100);
    color: #111827;
    color: var(--brand-gray-900);
    page-break-inside: avoid;
  }

  .cta-section__container {
    background: #FFFFFF;
    background: var(--brand-white);
    border: 1px solid #D1D5DB;
    border: 1px solid var(--brand-gray-300);
  }

  .cta-section__title,
  .cta-section__description,
  .cta-section__block-title,
  .cta-section__block-text,
  .cta-section .form-label {
    color: #111827;
    color: var(--brand-gray-900);
  }
}

/**
 * Admin Payments Components
 *
 * Components for payment management in admin panel:
 * - Payment confirmation modal
 * - Payment history timeline
 * - Payment status indicators
 *
 * Following CLAUDE.md principles: BEM methodology, no Tailwind for visual properties
 */

/* ========================================
   Payment Confirmation Button
   ======================================== */

.payment-confirm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  background-color: var(--brand-success-500);
  color: #FFFFFF;
  color: var(--brand-white);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
}

.payment-confirm-btn:hover {
  background-color: var(--brand-success-600);
  transform: translateY(-1px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.payment-confirm-btn:disabled {
  background-color: #D1D5DB;
  background-color: var(--brand-gray-300);
  cursor: not-allowed;
  transform: none;
}

.payment-confirm-btn .icon {
  width: 1rem;
  height: 1rem;
}

/* ========================================
   Payment Confirmation Modal
   ======================================== */

.payment-confirm-modal {
  /* Modal inherits base styles from modal component */
}

.payment-confirm-modal .modal__content {
  max-width: 600px;
}

.payment-confirm-details {
  padding: 1rem 0;
  padding: var(--spacing-4) 0;
}

.payment-confirm-details__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  gap: var(--spacing-4);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.payment-confirm-details__item {
  display: flex;
  flex-direction: column;
}

.payment-confirm-details__label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.payment-confirm-details__value {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

.payment-confirm-details__value--amount {
  color: var(--brand-success-600);
}

.payment-confirm-details__customer {
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.payment-confirm-details__customer-name {
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.payment-confirm-details__customer-email {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #6B7280;
  color: var(--brand-gray-500);
}

/* ========================================
   Payment History Timeline
   ======================================== */

.payment-history {
  position: relative;
  padding-left: 2.5rem;
  padding-left: var(--spacing-10);
}

.payment-history::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #E5E7EB;
  background-color: var(--brand-gray-200);
}

.payment-history__item {
  position: relative;
  padding-bottom: 1.5rem;
  padding-bottom: var(--spacing-6);
}

.payment-history__item:last-child {
  padding-bottom: 0;
}

.payment-history__icon {
  position: absolute;
  left: -30px;
  width: 40px;
  height: 40px;
  background-color: #FFFFFF;
  background-color: var(--brand-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #E5E7EB;
  border: 2px solid var(--brand-gray-200);
}

.payment-history__icon--success {
  background-color: var(--brand-success-50);
  border-color: var(--brand-success-500);
  color: var(--brand-success-600);
}

.payment-history__icon--primary {
  background-color: var(--brand-primary-50);
  border-color: var(--brand-primary-500);
  color: var(--brand-primary-600);
}

.payment-history__icon--warning {
  background-color: var(--brand-warning-50);
  border-color: var(--brand-warning-500);
  color: var(--brand-warning-600);
}

.payment-history__icon--error {
  background-color: var(--brand-error-50);
  border-color: var(--brand-error-500);
  color: var(--brand-error-600);
}

.payment-history__content {
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
  padding: 1rem;
  padding: var(--spacing-4);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
}

.payment-history__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.payment-history__header strong {
  color: #111827;
  color: var(--brand-gray-900);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.payment-history__header .text-sm {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #6B7280;
  color: var(--brand-gray-500);
}

.payment-history__details {
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
}

.payment-history__details p {
  margin: 0.25rem 0;
  margin: var(--spacing-1) 0;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
}

.payment-history__details p.text-gray-600 {
  color: #4B5563;
  color: var(--brand-gray-600);
  font-style: italic;
}

/* ========================================
   Payment Method Selector
   ======================================== */

.payment-method-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  gap: var(--spacing-3);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.payment-method-option {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  background-color: #FFFFFF;
  background-color: var(--brand-white);
  border: 2px solid #E5E7EB;
  border: 2px solid var(--brand-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.payment-method-option:hover {
  border-color: var(--brand-primary-300);
  background-color: var(--brand-primary-50);
}

.payment-method-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method-option__input:checked + .payment-method-option__label {
  border-color: var(--brand-primary-500);
  background-color: var(--brand-primary-50);
}

.payment-method-option__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  width: 100%;
}

.payment-method-option__icon {
  width: 24px;
  height: 24px;
  color: #4B5563;
  color: var(--brand-gray-600);
}

.payment-method-option__input:checked ~ .payment-method-option__icon {
  color: var(--brand-primary-600);
}

.payment-method-option__text {
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
}

/* ========================================
   Payment Status Filters
   ======================================== */

.payment-status-filters {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  flex-wrap: wrap;
}

.payment-status-filter {
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  background-color: #FFFFFF;
  background-color: var(--brand-white);
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.payment-status-filter:hover {
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
  border-color: #9CA3AF;
  border-color: var(--brand-gray-400);
}

.payment-status-filter--active {
  background-color: var(--brand-primary-500);
  border-color: var(--brand-primary-500);
  color: #FFFFFF;
  color: var(--brand-white);
}

.payment-status-filter__count {
  display: inline-block;
  margin-left: 0.25rem;
  margin-left: var(--spacing-1);
  padding: 0 0.5rem;
  padding: 0 var(--spacing-2);
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

/* ========================================
   Payment Amount Display
   ======================================== */

.payment-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.payment-amount__value {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

.payment-amount__refund {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: var(--brand-error-600);
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
}

/* ========================================
   Mobile Responsive
   ======================================== */

@media (max-width: 768px) {
  .payment-confirm-details__grid {
    grid-template-columns: 1fr;
  }

  .payment-history {
    padding-left: 2rem;
    padding-left: var(--spacing-8);
  }

  .payment-history__icon {
    left: -24px;
    width: 32px;
    height: 32px;
  }

  .payment-history::before {
    left: 16px;
  }

  .payment-method-selector {
    grid-template-columns: 1fr;
  }

  .payment-status-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

/* Profile Payment Retry Components */

/* Payment Retry Button */

.payment-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  padding: 0.5rem 1rem;
  padding: var(--spacing-2) var(--spacing-4);
  background-color: var(--brand-primary-500);
  color: var(--white);
  border: none;
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.payment-retry-btn:hover:not(:disabled) {
  background-color: var(--brand-primary-600);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
}

.payment-retry-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.payment-retry-btn--loading {
  pointer-events: none;
  opacity: 0.8;
}

.payment-retry-btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Payment Retry Modal */

.payment-retry-modal {
  background-color: var(--white);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 500px;
  width: 100%;
}

.payment-retry-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  padding: var(--spacing-6);
  border-bottom: 1px solid var(--gray-200);
}

.payment-retry-modal__title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--gray-900);
  margin: 0;
}

.payment-retry-modal__body {
  padding: 1.5rem;
  padding: var(--spacing-6);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  gap: var(--spacing-6);
}

.payment-retry-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 1.5rem;
  padding: var(--spacing-6);
  border-top: 1px solid var(--gray-200);
  background-color: var(--gray-50);
}

/* Payment Summary */

.payment-summary {
  background-color: var(--gray-50);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 1rem;
  padding: var(--spacing-4);
}

.payment-summary__title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--gray-700);
  margin: 0 0 0.75rem 0;
  margin: 0 0 var(--spacing-3) 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.payment-summary__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.payment-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
}

.payment-summary__row--total {
  padding-top: 0.5rem;
  padding-top: var(--spacing-2);
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
  border-top: 1px solid var(--gray-300);
  font-weight: var(--font-medium);
}

.payment-summary__label {
  color: var(--gray-600);
}

.payment-summary__value {
  color: var(--gray-900);
}

.payment-summary__value--amount {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--brand-primary-600);
}

/* Payment Method Selection */

.payment-method {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.payment-method__title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--gray-700);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.payment-method__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.payment-option {
  display: block;
  cursor: pointer;
}

.payment-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-option__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 0.75rem;
  padding: var(--spacing-3);
  border: 2px solid var(--gray-300);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--white);
  transition: all var(--transition-normal);
}

.payment-option__input:checked + .payment-option__content {
  border-color: var(--brand-primary-500);
  background-color: var(--brand-primary-50);
}

.payment-option__content:hover {
  border-color: var(--brand-primary-400);
}

.payment-option__icon {
  width: 48px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  padding: 0.5rem;
  padding: var(--spacing-2);
}

.payment-option__icon img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.payment-option__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.payment-option__name {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-900);
}

.payment-option__description {
  font-size: var(--text-xs);
  color: var(--gray-600);
}

/* Payment Status Messages */

.payment-status {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  gap: var(--spacing-4);
  padding: 1.5rem;
  padding: var(--spacing-6);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--white);
  border: 1px solid var(--gray-200);
}

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

.payment-status__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.payment-status__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--gray-900);
  margin: 0;
}

.payment-status__message {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}

.payment-status__actions {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  margin-top: 0.75rem;
  margin-top: var(--spacing-3);
}

.payment-status--processing {
  border-color: var(--brand-primary-200);
  background-color: var(--brand-primary-50);
}

.payment-status--processing .payment-status__icon {
  color: var(--brand-primary-500);
}

.payment-status--success {
  border-color: var(--success-200);
  background-color: var(--success-50);
}

.payment-status--success .payment-status__icon {
  color: var(--success-500);
}

.payment-status--error {
  border-color: var(--error-200);
  background-color: var(--error-50);
}

.payment-status--error .payment-status__icon {
  color: var(--error-500);
}

/* Payment History Timeline */

.payment-history {
  background-color: var(--white);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 1rem;
  padding: var(--spacing-4);
  border: 1px solid var(--gray-200);
}

.payment-history__title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--gray-700);
  margin: 0 0 1rem 0;
  margin: 0 0 var(--spacing-4) 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.payment-history__timeline {
  position: relative;
  padding-left: 1.5rem;
  padding-left: var(--spacing-6);
}

.payment-history__timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--gray-200);
}

.payment-attempt {
  position: relative;
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.payment-attempt:last-child {
  margin-bottom: 0;
}

.payment-attempt__marker {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  background-color: var(--white);
  border: 2px solid var(--gray-400);
}

.payment-attempt--failed .payment-attempt__marker {
  border-color: var(--error-500);
  background-color: var(--error-100);
}

.payment-attempt--pending .payment-attempt__marker {
  border-color: var(--gray-400);
  background-color: var(--gray-100);
}

.payment-attempt--success .payment-attempt__marker {
  border-color: var(--success-500);
  background-color: var(--success-100);
}

.payment-attempt__content {
  background-color: var(--gray-50);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  padding: var(--spacing-3);
}

.payment-attempt__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.payment-attempt__date {
  font-size: var(--text-xs);
  color: var(--gray-600);
}

.payment-attempt__status {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  padding: var(--spacing-1) var(--spacing-2);
  border-radius: 0.125rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}

.payment-attempt__status--failed {
  background-color: var(--error-100);
  color: var(--error-700);
}

.payment-attempt__status--pending {
  background-color: var(--gray-100);
  color: var(--gray-700);
}

.payment-attempt__status--success {
  background-color: var(--success-100);
  color: var(--success-700);
}

.payment-attempt__details {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  font-size: var(--text-sm);
}

.payment-attempt__method {
  color: var(--gray-900);
  font-weight: var(--font-medium);
}

.payment-attempt__error {
  color: var(--error-600);
}

/* Responsive */

@media (max-width: 640px) {
  .order-card__header {
    flex-direction: column;
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .order-card__actions {
    width: 100%;
  }

  .payment-retry-btn {
    width: 100%;
    justify-content: center;
  }

  .payment-retry-modal {
    border-radius: 0;
    height: 100%;
    max-width: 100%;
  }

  .payment-retry-modal__footer {
    flex-direction: column-reverse;
  }

  .payment-retry-modal__footer .btn {
    width: 100%;
  }

  .payment-status__actions {
    flex-direction: column;
  }

  .payment-status__actions .btn {
    width: 100%;
  }
}

/* Admin Dashboard Specific Patterns */

/* ==================================================
   METRIC CARDS
   ================================================== */

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  gap: var(--spacing-6);
  margin-bottom: 2rem;
  margin-bottom: var(--spacing-8);
}

.admin-metric-card {
  position: relative;
  background: #FFFFFF;
  background: var(--brand-white);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  padding: var(--spacing-6);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
}

.admin-metric-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.admin-metric-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.admin-metric-card__icon--sales {
  background: linear-gradient(135deg, #34D399, #10B981);
  background: linear-gradient(135deg, var(--color-success-light), var(--color-success));
  color: #FFFFFF;
  color: var(--brand-white);
}

.admin-metric-card__icon--orders {
  background: linear-gradient(135deg, var(--brand-blue-light), var(--brand-blue));
  color: #FFFFFF;
  color: var(--brand-white);
}

.admin-metric-card__icon--users {
  background: linear-gradient(135deg, #F04951, #ED1C24);
  background: linear-gradient(135deg, var(--brand-red-light), var(--brand-red-primary));
  color: #FFFFFF;
  color: var(--brand-white);
}

.admin-metric-card__icon--conversion {
  background: linear-gradient(135deg, #D1D5DB, #6B7280);
  background: linear-gradient(135deg, var(--brand-gray-300), var(--brand-gray-500));
  color: #FFFFFF;
  color: var(--brand-white);
}

.admin-metric-card__value {
  font-size: 1.875rem;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
  line-height: 1.2;
}

.admin-metric-card__label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.admin-metric-card__change {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  gap: var(--spacing-1);
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
}

.admin-metric-card__change--positive {
  color: #10B981;
  color: var(--color-success);
}

.admin-metric-card__change--negative {
  color: #ED1C24;
  color: var(--color-error);
}

.admin-metric-card__change--neutral {
  color: #6B7280;
  color: var(--brand-gray-500);
}

/* ==================================================
   LOADING STATE
   ================================================== */

.admin-metric-card--loading {
  pointer-events: none;
  position: relative;
  overflow: hidden;
}

.admin-metric-card--loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.5s infinite;
  z-index: 1;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.admin-metric-card--loading .admin-metric-card__value,
.admin-metric-card--loading .admin-metric-card__label {
  opacity: 0.5;
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

.admin-metric-card--loading .admin-metric-card__icon {
  opacity: 0.5;
}

/* ==================================================
   ERROR STATE
   ================================================== */

.admin-metric-card--error {
  border-color: #F04951;
  border-color: var(--color-error-light);
  background: #FDF2F2;
  background: var(--color-error-bg);
}

.admin-metric-card--error::after {
  content: '';
  position: absolute;
  top: 0.5rem;
  top: var(--spacing-2);
  right: 0.5rem;
  right: var(--spacing-2);
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc2626' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.admin-metric-card--error .admin-metric-card__value {
  color: #D11920;
  color: var(--color-error-dark);
}

.admin-metric-card--error .admin-metric-card__label {
  color: #ED1C24;
  color: var(--color-error);
}

/* ==================================================
   UPDATED STATE (Animation)
   ================================================== */

.admin-metric-card__value--updated {
  animation: pulse 1s ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* ==================================================
   DASHBOARD WIDGETS
   ================================================== */

.admin-widget {
  background: #FFFFFF;
  background: var(--brand-white);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  padding: var(--spacing-6);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
}

.admin-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  padding-bottom: 1rem;
  padding-bottom: var(--spacing-4);
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
}

.admin-widget__title {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

.admin-widget__actions {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.admin-widget__content {
  min-height: 200px;
}

.admin-widget--loading .admin-widget__content {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

/* ==================================================
   DASHBOARD CHARTS
   ================================================== */

.admin-chart-container {
  position: relative;
  height: 300px;
  margin-top: 1rem;
  margin-top: var(--spacing-4);
}

.admin-chart-container canvas {
  max-width: 100%;
  height: auto !important;
}

.admin-chart--loading {
  position: relative;
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.admin-chart--loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  animation: shimmer 1.5s infinite;
}

/* ==================================================
   QUICK STATS
   ================================================== */

.admin-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  gap: var(--spacing-4);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.admin-quick-stat {
  padding: 1rem;
  padding: var(--spacing-4);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  border-left: 4px solid #ED1C24;
  border-left: 4px solid var(--brand-red-primary);
}

.admin-quick-stat__value {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.admin-quick-stat__label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
}

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

@media (max-width: 768px) {
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .admin-metric-card {
    padding: 1rem;
    padding: var(--spacing-4);
  }

  .admin-metric-card__value {
    font-size: 1.5rem;
    font-size: var(--font-size-2xl);
  }

  .admin-chart-container {
    height: 250px;
  }
}

@media (max-width: 640px) {
  .admin-widget {
    padding: 1rem;
    padding: var(--spacing-4);
  }

  .admin-widget__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    gap: var(--spacing-2);
  }
}

/**
 * Google Sign-In Button Styles
 * State management for Google Identity Services buttons
 * Following CLAUDE.md: CSS classes for JavaScript state control
 */

/* Google Sign-In button container */

[id^="google-signin-"] {
  min-height: 40px;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity var(--transition-base), filter var(--transition-base);
}

/* Loading state - disabled interaction */

.google-signin--loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

/* Disabled state */

.google-signin--disabled {
  opacity: 0.5 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  filter: grayscale(100%);
}

/* Error state */

.google-signin--error {
  opacity: 0.7 !important;
  border: 2px solid var(--color-danger) !important;
  border-radius: var(--border-radius-sm);
}

/* Success state (brief animation after successful sign-in) */

.google-signin--success {
  opacity: 1 !important;
  animation: googleSigninSuccess 0.3s ease-out;
}

@keyframes googleSigninSuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* MM Medic Invoice Component
 * Компонент для відображення та друку рахунків-фактур
 * Design System Pattern: Invoice
 *
 * Features:
 * - Повний та компактний варіанти
 * - Оптимізація для друку (A4)
 * - Адаптивний дизайн
 * - BEM методологія
 */

/* ============================================
   INVOICE CONTAINER
   ============================================ */

.invoice {
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 2rem;
  padding: var(--spacing-8);
  max-width: 210mm; /* A4 width */
  margin: 0 auto 1.5rem;
  margin: 0 auto var(--spacing-6);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   INVOICE HEADER
   ============================================ */

.invoice__header {
  border-bottom: 2px solid #E5E7EB;
  border-bottom: 2px solid var(--brand-gray-200);
  padding-bottom: 1.5rem;
  padding-bottom: var(--spacing-6);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.invoice__company {
  display: flex;
  gap: 1.5rem;
  gap: var(--spacing-6);
  align-items: flex-start;
}

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

.invoice__logo-img {
  max-width: 120px;
  height: auto;
}

.invoice__company-details {
  flex: 1;
}

.invoice__company-name {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.5rem 0;
  margin: 0 0 var(--spacing-2) 0;
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

.invoice__company-info {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
  margin: 0.25rem 0;
  margin: var(--spacing-1) 0;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

/* Compact variant header */

.invoice--compact .invoice__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invoice__title {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
}

.invoice__date {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0;
}

/* ============================================
   INVOICE META
   ============================================ */

.invoice__meta {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 1rem;
  padding: var(--spacing-4);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.invoice__meta-row {
  display: flex;
  gap: 1rem;
  gap: var(--spacing-4);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.invoice__meta-row:last-child {
  margin-bottom: 0;
}

.invoice__meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  flex: 1;
}

.invoice__meta-item--full {
  flex: none;
  width: 100%;
}

.invoice__meta-label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #374151;
  color: var(--brand-gray-700);
}

.invoice__meta-value {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

/* ============================================
   PARTIES (Buyer & Seller)
   ============================================ */

.invoice__parties {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  gap: var(--spacing-6);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.invoice__party {
  padding: 1rem;
  padding: var(--spacing-4);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

.invoice__party-title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.75rem 0;
  margin: 0 0 var(--spacing-3) 0;
  border-bottom: 1px solid #D1D5DB;
  border-bottom: 1px solid var(--brand-gray-300);
  padding-bottom: 0.5rem;
  padding-bottom: var(--spacing-2);
}

.invoice__party-details {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

.invoice__party-details p {
  margin: 0.25rem 0;
  margin: var(--spacing-1) 0;
}

.invoice__party-details strong {
  color: #111827;
  color: var(--brand-gray-900);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

/* Compact variant customer */

.invoice__customer {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  padding: 1rem;
  padding: var(--spacing-4);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

.invoice__customer p {
  margin: 0.25rem 0;
  margin: var(--spacing-1) 0;
}

/* ============================================
   ITEMS TABLE
   ============================================ */

.invoice__items {
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
  overflow-x: auto;
}

.invoice__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.invoice__th {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #111827;
  color: var(--brand-gray-900);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  text-align: left;
  padding: 0.75rem 0.5rem;
  padding: var(--spacing-3) var(--spacing-2);
  border-bottom: 2px solid #D1D5DB;
  border-bottom: 2px solid var(--brand-gray-300);
}

.invoice__th--number {
  width: 50px;
  text-align: center;
}

.invoice__th--name {
  width: auto;
}

.invoice__th--quantity {
  width: 100px;
  text-align: center;
}

.invoice__th--price {
  width: 120px;
  text-align: right;
}

.invoice__th--total {
  width: 120px;
  text-align: right;
}

.invoice__item-row {
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: background-color var(--transition-fast);
}

.invoice__item-row:hover {
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
}

.invoice__td {
  padding: 0.75rem 0.5rem;
  padding: var(--spacing-3) var(--spacing-2);
  vertical-align: top;
  color: #374151;
  color: var(--brand-gray-700);
}

.invoice__td--number {
  text-align: center;
  color: #4B5563;
  color: var(--brand-gray-600);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.invoice__td--name {
  /* Auto width */
}

.invoice__td--quantity {
  text-align: center;
}

.invoice__td--price {
  text-align: right;
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.invoice__td--total {
  text-align: right;
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

.invoice__item-name {
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.invoice__item-sku {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #4B5563;
  color: var(--brand-gray-600);
  font-style: italic;
}

/* Simple table variant */

.invoice__table--simple .invoice__th {
  background: transparent;
  border-bottom: 1px solid #D1D5DB;
  border-bottom: 1px solid var(--brand-gray-300);
  padding: 0.5rem;
  padding: var(--spacing-2);
}

.invoice__table--simple .invoice__td {
  padding: 0.5rem;
  padding: var(--spacing-2);
}

/* ============================================
   SUMMARY
   ============================================ */

.invoice__summary {
  max-width: 400px;
  margin-left: auto;
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.invoice__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.invoice__summary-row:last-child {
  border-bottom: none;
}

.invoice__summary-label {
  color: #374151;
  color: var(--brand-gray-700);
}

.invoice__summary-value {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

/* Discount row */

.invoice__summary-row--discount .invoice__summary-value {
  color: #10B981;
  color: var(--color-success);
}

/* Total row */

.invoice__summary-row--total {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
  padding: 1rem;
  padding: var(--spacing-4);
  font-size: 1rem;
  font-size: var(--font-size-base);
}

.invoice__summary-row--total .invoice__summary-label {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

.invoice__summary-row--total .invoice__summary-value {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Compact variant summary */

.invoice__summary--compact {
  max-width: 100%;
}

/* ============================================
   NOTES
   ============================================ */

.invoice__notes {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-left: 4px solid #ED1C24;
  border-left: 4px solid var(--brand-red-primary);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  padding: 1rem;
  padding: var(--spacing-4);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.invoice__notes-title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0 0 0.5rem 0;
  margin: 0 0 var(--spacing-2) 0;
}

.invoice__notes-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  margin: 0.5rem 0;
  margin: var(--spacing-2) 0;
}

/* ============================================
   FOOTER & SIGNATURES
   ============================================ */

.invoice__footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  gap: var(--spacing-6);
  margin-top: 2rem;
  margin-top: var(--spacing-8);
  padding-top: 1.5rem;
  padding-top: var(--spacing-6);
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
}

.invoice__footer-section {
  /* Grid item */
}

.invoice__signature-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.invoice__signature-label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #374151;
  color: var(--brand-gray-700);
  white-space: nowrap;
}

.invoice__signature-blank {
  flex: 1;
  border-bottom: 1px solid #9CA3AF;
  border-bottom: 1px solid var(--brand-gray-400);
  min-width: 150px;
  text-align: center;
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
}

/* Print footer */

.invoice__print-footer {
  margin-top: 1.5rem;
  margin-top: var(--spacing-6);
  padding-top: 1rem;
  padding-top: var(--spacing-4);
  border-top: 1px dashed #D1D5DB;
  border-top: 1px dashed var(--brand-gray-300);
  text-align: center;
}

.invoice__print-footer-text {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  margin: 0.25rem 0;
  margin: var(--spacing-1) 0;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

/* ============================================
   INVOICE ACTIONS (Print buttons, etc)
   ============================================ */

.invoice-actions {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  justify-content: flex-end;
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
  .invoice {
    padding: 1rem;
    padding: var(--spacing-4);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
  }

  .invoice__company {
    flex-direction: column;
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .invoice__logo-img {
    max-width: 100px;
  }

  .invoice__company-name {
    font-size: 1.25rem;
    font-size: var(--font-size-xl);
  }

  .invoice__parties {
    grid-template-columns: 1fr;
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .invoice__meta-row {
    flex-direction: column;
    gap: 0.5rem;
    gap: var(--spacing-2);
  }

  .invoice__meta-item {
    width: 100%;
  }

  /* Table scroll on mobile */
  .invoice__items {
    margin-left: calc(1rem * -1);
    margin-left: calc(var(--spacing-4) * -1);
    margin-right: calc(1rem * -1);
    margin-right: calc(var(--spacing-4) * -1);
  }

  .invoice__table {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
  }

  .invoice__th,
  .invoice__td {
    padding: 0.5rem 0.25rem;
    padding: var(--spacing-2) var(--spacing-1);
  }

  /* Hide number column on mobile */
  .invoice__th--number,
  .invoice__td--number {
    display: none;
  }

  .invoice__summary {
    max-width: 100%;
  }

  .invoice__footer {
    grid-template-columns: 1fr;
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .invoice-actions {
    flex-direction: column;
  }

  .invoice-actions .btn {
    width: 100%;
  }
}

/* ============================================
   PRINT MEDIA QUERIES
   ============================================ */

@media print {
  /* Hide non-printable elements - using body prefix for specificity instead of !important */
  body .navbar,
  body .footer,
  body .profile-layout__sidebar,
  body .no-print,
  body .invoice-actions {
    display: none;
  }

  /* Page setup */
  @page {
    size: A4;
    margin: 15mm;
  }

  /* Reset body */
  body {
    background: white;
    margin: 0;
    padding: 0;
  }

  /* Invoice full width */
  .invoice {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
  }

  /* Reset profile layout */
  .profile-layout {
    display: block;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .profile-layout__content {
    width: 100%;
    padding: 0;
  }

  .profile-content__header {
    box-shadow: none;
    border: none;
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-4);
  }

  /* Invoice elements */
  .invoice__header {
    border-bottom: 2px solid #000;
  }

  .invoice__company-name,
  .invoice__meta-value,
  .invoice__party-title,
  .invoice__item-name,
  .invoice__summary-label,
  .invoice__summary-value {
    color: #000;
  }

  .invoice__company-info,
  .invoice__party-details,
  .invoice__notes-text {
    color: #333;
  }

  /* Table */
  .invoice__th {
    background: #f0f0f0;
    border-bottom: 2px solid #000;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .invoice__item-row {
    border-bottom: 1px solid #ccc;
    page-break-inside: avoid;
  }

  /* Prevent page breaks */
  .invoice__header,
  .invoice__meta,
  .invoice__parties,
  .invoice__party,
  .invoice__summary,
  .invoice__notes,
  .invoice__footer {
    page-break-inside: avoid;
  }

  /* Summary */
  .invoice__summary-row--total {
    background: #f0f0f0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .invoice__summary-row--total .invoice__summary-value {
    color: #c00;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Notes */
  .invoice__notes {
    background: #fafafa;
    border-left: 4px solid #c00;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Footer signatures */
  .invoice__signature-blank {
    border-bottom: 1px solid #000;
  }

  /* Print footer always at bottom */
  .invoice__print-footer {
    margin-top: 20mm;
    page-break-before: auto;
  }
}

/* Forms */

/* MM Medic Profile Forms Components
 * Компоненти форм для налаштувань профілю
 * Form groups, inputs, labels, help text
 */

/* ============================================
   FORM LAYOUT - Settings Form Layout
   ============================================ */

.settings-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  gap: var(--spacing-6);
}

.settings-layout__main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  gap: var(--spacing-6);
}

.settings-layout__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  gap: var(--spacing-6);
}

@media (min-width: 1024px) {
  .settings-layout {
    grid-template-columns: 2fr 1fr;
  }
}

/* ============================================
   FORM GRID - Two Column Form Layout
   ============================================ */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  gap: var(--spacing-4);
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   FORM GROUP - Form Field Container
   ============================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.form-group:last-child {
  margin-bottom: 0;
}

/* ============================================
   FORM LABEL - Field Labels
   ============================================ */

.form-label {
  display: block;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #374151;
  color: var(--brand-gray-700);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.form-label--required::after {
  content: " *";
  color: #ED1C24;
  color: var(--color-error);
}

/* ============================================
   FORM INPUT - Text Inputs
   ============================================ */

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: 1.5;
  line-height: var(--line-height-normal);
  color: #111827;
  color: var(--brand-gray-900);
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-input:hover {
  border-color: #9CA3AF;
  border-color: var(--brand-gray-400);
}

.form-input:focus {
  outline: none;
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 0 0 3px #FDF2F2;
  box-shadow: 0 0 0 3px var(--color-error-bg);
}

.form-input:disabled {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #6B7280;
  color: var(--brand-gray-500);
  cursor: not-allowed;
}

.form-input--error {
  border-color: #ED1C24;
  border-color: var(--color-error);
}

.form-input--error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ============================================
   FORM SELECT - Dropdown Selects
   ============================================ */

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  padding-right: 2.5rem;
  padding-right: var(--spacing-10);
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: 1.5;
  line-height: var(--line-height-normal);
  color: #111827;
  color: var(--brand-gray-900);
  background: #FFFFFF;
  background: var(--brand-white);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-position: right var(--spacing-3) center;
  background-size: 12px;
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

.form-select:hover {
  border-color: #9CA3AF;
  border-color: var(--brand-gray-400);
}

.form-select:focus {
  outline: none;
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 0 0 3px #FDF2F2;
  box-shadow: 0 0 0 3px var(--color-error-bg);
}

/* ============================================
   FORM TEXTAREA - Text Areas
   ============================================ */

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  color: #111827;
  color: var(--brand-gray-900);
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  resize: vertical;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-textarea:hover {
  border-color: #9CA3AF;
  border-color: var(--brand-gray-400);
}

.form-textarea:focus {
  outline: none;
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 0 0 3px #FDF2F2;
  box-shadow: 0 0 0 3px var(--color-error-bg);
}

/* ============================================
   FORM CHECKBOX - Checkboxes
   ============================================ */

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  gap: var(--spacing-2);
  cursor: pointer;
}

.form-checkbox__input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  border: 2px solid #D1D5DB;
  border: 2px solid var(--brand-gray-300);
  border-radius: 0.125rem;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  background: var(--brand-white);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
}

.form-checkbox__input:hover {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
}

.form-checkbox__input:checked {
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
}

.form-checkbox__input:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: solid #FFFFFF;
  border: solid var(--brand-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox__label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  cursor: pointer;
}

/* ============================================
   FORM RADIO - Radio Buttons
   ============================================ */

.form-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  gap: var(--spacing-2);
  cursor: pointer;
}

.form-radio__input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  border: 2px solid #D1D5DB;
  border: 2px solid var(--brand-gray-300);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  background: var(--brand-white);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
}

.form-radio__input:hover {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
}

.form-radio__input:checked {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
}

.form-radio__input:checked::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  background: #ED1C24;
  background: var(--brand-red-primary);
}

.form-radio__label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  cursor: pointer;
}

/* ============================================
   FORM HELP TEXT - Helper Text
   ============================================ */

.form-help-text {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #4B5563;
  color: var(--brand-gray-600);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
}

.form-error-text {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #ED1C24;
  color: var(--color-error);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
}

/* ============================================
   FORM ACTIONS - Form Buttons Container
   ============================================ */

.form-actions {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  margin-top: 1.5rem;
  margin-top: var(--spacing-6);
  padding-top: 1.5rem;
  padding-top: var(--spacing-6);
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
}

.form-actions--right {
  justify-content: flex-end;
}

.form-actions--center {
  justify-content: center;
}

@media (max-width: 639px) {
  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* ============================================
   EMAIL DISPLAY - Email Status Display
   ============================================ */

.email-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  padding: var(--spacing-4);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
}

.email-display__address {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.email-display__status {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
}

/* ============================================
   ACCOUNT INFO - Account Information List
   ============================================ */

.account-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.account-info__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.75rem;
  padding-bottom: var(--spacing-3);
  border-bottom: 1px solid #F3F4F6;
  border-bottom: 1px solid var(--brand-gray-100);
}

.account-info__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.account-info__row dt {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #4B5563;
  color: var(--brand-gray-600);
}

.account-info__row dd {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
  text-align: right;
}

/**
 * Code Input Component
 *
 * Monospace input field with copy-to-clipboard button
 * Used for displaying/entering promocodes, API keys, etc.
 *
 * Usage:
 * <div class="code-input">
 *   <input type="text" class="code-input__field" value="PROMO2024" readonly>
 *   <button type="button" class="code-input__copy" title="Копіювати">
 *     <svg class="code-input__icon"><use href="#icon-actions-copy"></use></svg>
 *   </button>
 *   <span class="code-input__feedback">Скопійовано!</span>
 * </div>
 *
 * Variants:
 * - .code-input--sm (small size)
 * - .code-input--lg (large size)
 * - .code-input--error (error state)
 * - .code-input--success (success state)
 */

.code-input {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.code-input__field {
  flex: 1;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.05em;
  line-height: 1.5;
  line-height: var(--line-height-normal);
  padding: 0.75rem 3rem 0.75rem 0.75rem;
  padding: var(--spacing-3) var(--spacing-12) var(--spacing-3) var(--spacing-3);
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
  color: #111827;
  color: var(--brand-gray-900);
  transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: var(--transition-fast);
}

.code-input__field:focus {
  outline: none;
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 0 0 3px #F04951;
  box-shadow: 0 0 0 3px var(--brand-red-light);
  background-color: #FFFFFF;
  background-color: var(--brand-white);
}

.code-input__field:hover:not(:focus) {
  border-color: #9CA3AF;
  border-color: var(--brand-gray-400);
}

.code-input__field::-moz-selection {
  background-color: #F04951;
  background-color: var(--brand-red-light);
  color: #111827;
  color: var(--brand-gray-900);
}

.code-input__field::selection {
  background-color: #F04951;
  background-color: var(--brand-red-light);
  color: #111827;
  color: var(--brand-gray-900);
}

.code-input__copy {
  position: absolute;
  right: 0.25rem;
  right: var(--spacing-1);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  background-color: transparent;
  color: #4B5563;
  color: var(--brand-gray-600);
  cursor: pointer;
  transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: var(--transition-fast);
}

.code-input__copy:hover {
  background-color: #F3F4F6;
  background-color: var(--brand-gray-100);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.code-input__copy:active {
  background-color: #E5E7EB;
  background-color: var(--brand-gray-200);
  transform: translateY(-50%) scale(0.95);
}

.code-input__copy:focus {
  outline: none;
  box-shadow: 0 0 0 3px #F04951;
  box-shadow: 0 0 0 3px var(--brand-red-light);
}

.code-input__icon {
  width: 18px;
  height: 18px;
}

.code-input__feedback {
  position: absolute;
  right: 3rem;
  right: var(--spacing-12);
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem 0.5rem;
  padding: var(--spacing-1) var(--spacing-2);
  border-radius: 0.125rem;
  border-radius: var(--radius-sm);
  background-color: #10B981;
  background-color: var(--color-success);
  color: #FFFFFF;
  color: var(--brand-white);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity var(--transition-fast);
}

.code-input__feedback--visible {
  opacity: 1;
}

/* Size Variants */

.code-input--sm .code-input__field {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  padding: 0.5rem 2.5rem 0.5rem 0.5rem;
  padding: var(--spacing-2) var(--spacing-10) var(--spacing-2) var(--spacing-2);
}

.code-input--sm .code-input__copy {
  width: 32px;
  height: 32px;
}

.code-input--sm .code-input__icon {
  width: 16px;
  height: 16px;
}

.code-input--lg .code-input__field {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  padding: 1rem var(--spacing-14) 1rem 1rem;
  padding: var(--spacing-4) var(--spacing-14) var(--spacing-4) var(--spacing-4);
}

.code-input--lg .code-input__copy {
  width: 40px;
  height: 40px;
}

.code-input--lg .code-input__icon {
  width: 20px;
  height: 20px;
}

/* State Variants */

.code-input--error .code-input__field {
  border-color: #ED1C24;
  border-color: var(--color-error);
  background-color: #FDF2F2;
  background-color: var(--color-error-bg);
}

.code-input--error .code-input__field:focus {
  border-color: #ED1C24;
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px #F04951;
  box-shadow: 0 0 0 3px var(--color-error-light);
}

.code-input--success .code-input__field {
  border-color: #10B981;
  border-color: var(--color-success);
  background-color: #D1FAE5;
  background-color: var(--color-success-bg);
}

.code-input--success .code-input__field:focus {
  border-color: #10B981;
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px #34D399;
  box-shadow: 0 0 0 3px var(--color-success-light);
}

/* Disabled State */

.code-input__field:disabled {
  background-color: #F3F4F6;
  background-color: var(--brand-gray-100);
  color: #6B7280;
  color: var(--brand-gray-500);
  cursor: not-allowed;
  opacity: 0.6;
}

.code-input__field:disabled ~ .code-input__copy {
  pointer-events: none;
  opacity: 0.4;
}

/* Read-only State (slightly different from disabled) */

.code-input__field:-moz-read-only {
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
  cursor: text;
}

.code-input__field:read-only {
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
  cursor: text;
}

/* Mobile Responsive */

@media (max-width: 639px) {
  .code-input__field {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    padding-right: 2.5rem;
    padding-right: var(--spacing-10);
  }

  .code-input__copy {
    width: 32px;
    height: 32px;
  }

  .code-input__icon {
    width: 16px;
    height: 16px;
  }

  .code-input__feedback {
    font-size: var(--font-size-2xs);
    right: 2.5rem;
    right: var(--spacing-10);
  }
}

/* Navigation */

/* MM Medic Header Navigation - Clean Modern Style */

/* Main Header */

.header {
  background: #FFFFFF;
  background: var(--brand-white);
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
  position: sticky;
  top: 0;
  z-index: 1020;
  z-index: var(--z-sticky);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header__container {
  padding: 0 1rem;
  padding: 0 var(--spacing-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 2rem;
  gap: var(--spacing-8);
}

/* Logo Section */

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(135deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 100%);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  color: var(--brand-white);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
}

.header__logo-text {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  letter-spacing: -0.025em;
  letter-spacing: var(--tracking-tight);
}

.header__logo-subtitle {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  letter-spacing: var(--tracking-wide);
  margin-top: 2px;
}

/* Main Navigation */

.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main__item {
  position: relative;
}

.nav-main__link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.5rem;
  padding: var(--spacing-2) var(--spacing-2);
  color: #6B7280;
  color: var(--brand-gray-500);
  text-decoration: none;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 400;
  font-weight: var(--font-weight-normal);
  border-radius: 0.5rem 0.5rem 0 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  letter-spacing: 0em;
  letter-spacing: var(--tracking-normal);
  white-space: nowrap;
}

.nav-main__link:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #111827;
  color: var(--brand-gray-900);
}

.nav-main__link--active {
  color: #ED1C24;
  color: var(--brand-red-primary);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  position: relative;
}

.nav-main__link--active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-radius: 1px;
}

.nav-main__link--active:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #D11920;
  color: var(--brand-red-dark);
}

/* User Actions Section */

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  gap: var(--spacing-4);
  flex-shrink: 0;
}

.header__language {
  /* Uses toggle--extended toggle--language classes */
}

/* Header icons now use standard btn--icon-only classes */

/* Admin Panel Button - Special styling for admin access */

.header__icon-btn--admin {
  position: relative;
  background: linear-gradient(135deg, #ED1C24 0%, #D11920 100%) !important;
  background: linear-gradient(135deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 100%) !important;
  color: #FFFFFF !important;
  color: var(--brand-white) !important;
  border: none !important;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.header__icon-btn--admin:hover {
  background: linear-gradient(135deg, #D11920 0%, #b91c1c 100%) !important;
  background: linear-gradient(135deg, var(--brand-red-dark) 0%, #b91c1c 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
}

.header__icon-btn--admin:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

/* Subtle pulse animation for admin button to draw attention */

@keyframes admin-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0);
  }
}

.header__icon-btn--admin:not(:hover) {
  animation: admin-pulse 3s ease-in-out infinite;
}

/* Legacy badge classes - replaced by btn--with-badge */

/* Auth Buttons */

.header__auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.header__auth .btn {
  white-space: nowrap;
}

/* Header User Dropdown - Avatar only styling */

.header__user-dropdown .dropdown__trigger {
  border: none;
  background: transparent;
  padding: 0;
  min-width: auto;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.header__user-dropdown .dropdown__trigger:hover {
  background: transparent;
  border: none;
}

.header__user-dropdown .dropdown__trigger:focus {
  outline: none;
  border: none;
}

.header__user-dropdown.dropdown--open .dropdown__trigger {
  border: none;
}

/* Mobile Menu Button */

.header__mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  color: #374151;
  color: var(--brand-gray-700);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  position: relative;
  justify-content: center;
  align-items: center;
}

.header__mobile-toggle:hover {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Mobile toggle icons */

.header__mobile-toggle-icon {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Show menu icon by default, hide close icon */

.header__mobile-toggle-icon--open {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.header__mobile-toggle-icon--close {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.8);
}

/* When active, hide menu icon and show close icon */

.header__mobile-toggle--active .header__mobile-toggle-icon--open {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.8);
}

.header__mobile-toggle--active .header__mobile-toggle-icon--close {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* Mobile Navigation */

.header__mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  background: var(--brand-white);
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  padding: var(--spacing-4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

/* Більш специфічний селектор замість !important - CLAUDE.md §2.1 compliance */

.header .header__mobile-nav.header__mobile-nav--open {
  display: block;
  animation: mobile-nav-slide-down 0.3s ease-out;
}

@keyframes mobile-nav-slide-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.nav-mobile__link {
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  color: #374151;
  color: var(--brand-gray-700);
  text-decoration: none;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.nav-mobile__link:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #111827;
  color: var(--brand-gray-900);
}

.nav-mobile__link--active {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.header__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding-top: 1rem;
  padding-top: var(--spacing-4);
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
}

.header__mobile-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  gap: var(--spacing-4);
}

/* Responsive */

@media (max-width: 1024px) {
  .header__container {
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .nav-main {
    gap: 0.5rem;
    gap: var(--spacing-2);
  }

  .nav-main__link {
    padding: 0.5rem 0.75rem;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 768px) {
  .header__container {
    padding: 0 0.75rem;
    padding: 0 var(--spacing-3);
    min-height: 64px;
  }

  /* Приховати desktop навігацію */
  .header__nav {
    display: none;
  }

  /* Приховати language toggle - буде в mobile menu */
  .header__language {
    display: none;
  }

  /* Приховати auth секцію (Увійти/Реєстрація + User dropdown) - буде в mobile menu */
  .header__auth {
    display: none;
  }

  /* Показати mobile menu toggle */
  .header__mobile-toggle {
    display: flex;
  }

  /* Оптимізувати spacing - тільки кошик і меню кнопка */
  .header__actions {
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  /* Mobile nav container - приховано за замовчуванням */
  .header__mobile-nav {
    display: none;
  }
}

/* Header Mobile Icons */

.header__mobile-icons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

/* Mobile User Icons - hidden on desktop, shown on mobile */

.header__profile-btn,
.header__admin-btn {
  display: none;
}

@media (max-width: 768px) {
  .header__profile-btn,
  .header__admin-btn {
    display: flex;
  }

  /* Hide favorites on desktop header, keep only on mobile */
  .header__favorites-btn {
    display: none;
  }
}

/* MM Medic Admin Sidebar - Clean Modern Style */

/* Sidebar Container */

.sidebar {
  width: 280px;
  background: #FFFFFF;
  background: var(--brand-white);
  border-right: 1px solid #E5E7EB;
  border-right: 1px solid var(--brand-gray-200);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1030;
  z-index: var(--z-fixed);
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
  overflow: hidden;
}

.sidebar--collapsed {
  width: 80px;
}

/* Sidebar Header */

.sidebar__header {
  padding: 1.5rem 1rem;
  padding: var(--spacing-6) var(--spacing-4);
  border-bottom: 1px solid #F3F4F6;
  border-bottom: 1px solid var(--brand-gray-100);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  min-height: 80px;
  transition: padding 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: padding var(--transition-base);
}

.sidebar--collapsed .sidebar__header {
  padding: 1rem 0.5rem;
  padding: var(--spacing-4) var(--spacing-2);
  justify-content: center;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  text-decoration: none;
  flex: 1;
}

.sidebar__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(135deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 100%);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  color: var(--brand-white);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  font-size: var(--font-size-base);
  flex-shrink: 0;
}

.sidebar__logo-text {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  white-space: nowrap;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity var(--transition-fast);
}

.sidebar--collapsed .sidebar__logo-text {
  opacity: 0;
}

.sidebar__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
  padding: var(--spacing-3) 0;
}

.sidebar__collapse-btn {
  width: 32px;
  height: 32px;
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4B5563;
  color: var(--brand-gray-600);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.sidebar__collapse-btn:hover {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #111827;
  color: var(--brand-gray-900);
}

.sidebar__collapse-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-base);
}

.sidebar--collapsed .sidebar__collapse-icon {
  transform: rotate(180deg);
}

/* Sidebar Navigation */

.sidebar__nav {
  flex: 1;
  padding: 0.5rem;
  padding: var(--spacing-2);
  overflow-y: auto;
  transition: padding 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: padding var(--transition-base);
}

.sidebar--collapsed .sidebar__nav {
  padding: 0.25rem;
  padding: var(--spacing-1);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.sidebar-nav__section {
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.sidebar-nav__section-title {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #6B7280;
  color: var(--brand-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  letter-spacing: var(--tracking-wider);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
  padding: 0 0.75rem;
  padding: 0 var(--spacing-3);
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity var(--transition-fast);
}

.sidebar--collapsed .sidebar-nav__section-title {
  opacity: 0;
}

.sidebar-nav__item {
  position: relative;
}

.sidebar-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 0.75rem;
  padding: var(--spacing-3);
  color: #374151;
  color: var(--brand-gray-700);
  text-decoration: none;
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  position: relative;
  overflow: hidden;
}

.sidebar--collapsed .sidebar-nav__link {
  padding: 0.5rem;
  padding: var(--spacing-2);
  justify-content: center;
  gap: 0;
}

.sidebar-nav__link:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

.sidebar-nav__link--active {
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
  box-shadow: 0 0 8px rgba(237, 28, 36, 0.15), 0 2px 8px rgba(237, 28, 36, 0.08);
  box-shadow: var(--shadow-red-subtle);
}

.sidebar-nav__link--active:hover {
  background: #D11920;
  background: var(--brand-red-dark);
}

.sidebar-nav__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-fast);
}

.sidebar-nav__text {
  white-space: nowrap;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1), width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity var(--transition-fast), width var(--transition-fast);
}

.sidebar--collapsed .sidebar-nav__text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar-nav__badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 0.25rem;
  padding: 0 var(--spacing-1);
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
  font-size: 10px;
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1), width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity var(--transition-fast), width var(--transition-fast);
}

.sidebar--collapsed .sidebar-nav__badge {
  opacity: 0;
  width: 0;
  min-width: 0;
  padding: 0;
  margin-left: 0;
  overflow: hidden;
}

.sidebar-nav__link--active .sidebar-nav__badge {
  background: #FFFFFF;
  background: var(--brand-white);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Submenu */

.sidebar-nav__submenu {
  margin-left: 2rem;
  margin-left: var(--spacing-8);
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.sidebar-nav__item--expanded .sidebar-nav__submenu {
  display: flex;
}

.sidebar-nav__submenu-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  color: #4B5563;
  color: var(--brand-gray-600);
  text-decoration: none;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.sidebar-nav__submenu-link:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #111827;
  color: var(--brand-gray-900);
}

.sidebar-nav__submenu-link--active {
  background: rgba(237, 28, 36, 0.1);
  background: var(--nav-active-bg);
  color: #ED1C24;
  color: var(--brand-red-primary);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

/* Sidebar Footer */

.sidebar__footer {
  padding: 1rem;
  padding: var(--spacing-4);
  border-top: 1px solid #F3F4F6;
  border-top: 1px solid var(--brand-gray-100);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  transition: padding 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: padding var(--transition-base);
}

.sidebar--collapsed .sidebar__footer {
  padding: 0.5rem;
  padding: var(--spacing-2);
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 0.75rem;
  padding: var(--spacing-3);
  background: #FFFFFF;
  background: var(--brand-white);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.sidebar--collapsed .sidebar__user {
  padding: 0.5rem;
  padding: var(--spacing-2);
  justify-content: center;
}

.sidebar__user:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

.sidebar__avatar {
  width: 40px;
  height: 40px;
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  color: var(--brand-white);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  flex-shrink: 0;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.sidebar--collapsed .sidebar__avatar {
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.sidebar__user-info {
  flex: 1;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity var(--transition-fast);
}

.sidebar--collapsed .sidebar__user-info {
  opacity: 0;
}

.sidebar__user-name {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 2px;
}

.sidebar__user-role {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
}

/* Tooltip for collapsed state */

.sidebar--collapsed .sidebar-nav__link {
  position: relative;
}

.sidebar--collapsed .sidebar-nav__link:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: #111827;
  background: var(--brand-gray-900);
  color: #FFFFFF;
  color: var(--brand-white);
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  white-space: nowrap;
  z-index: 1070;
  z-index: var(--z-tooltip);
  margin-left: 0.5rem;
  margin-left: var(--spacing-2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-base);
}

/* Main Content Adjustment */

.main-content {
  margin-left: 280px;
  transition: margin-left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: margin-left var(--transition-base);
}

.main-content--sidebar-collapsed {
  margin-left: 80px;
}

/* Mobile Sidebar */

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 1050;
    z-index: var(--z-modal);
  }

  .sidebar--open {
    transform: translateX(0);
  }

  .main-content,
  .main-content--sidebar-collapsed {
    margin-left: 0;
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    background: var(--nav-overlay);
    z-index: 1040;
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all var(--transition-base);
  }

  .sidebar-overlay--open {
    opacity: 1;
    visibility: visible;
  }
}

/* MM Medic Mobile Navigation - Clean Modern Style */

/* Mobile Header */

.mobile-header {
  background: #FFFFFF;
  background: var(--brand-white);
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
  position: sticky;
  top: 0;
  z-index: 1020;
  z-index: var(--z-sticky);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-header__container {
  padding: 0 1rem;
  padding: 0 var(--spacing-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

/* Mobile Logo */

.mobile-header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  text-decoration: none;
}

.mobile-header__logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(135deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 100%);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  color: var(--brand-white);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  font-size: 14px;
}

.mobile-header__logo-text {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

/* Mobile Actions */

.mobile-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.mobile-header__icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  color: #4B5563;
  color: var(--brand-gray-600);
}

.mobile-header__icon-btn:hover {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #111827;
  color: var(--brand-gray-900);
}

.mobile-header__icon-btn--active {
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
}

/* Mobile Menu Toggle */

.mobile-menu-toggle {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
}

.mobile-menu-toggle:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

.mobile-menu-toggle__line {
  width: 20px;
  height: 2px;
  background: #374151;
  background: var(--brand-gray-700);
  border-radius: 1px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.mobile-menu-toggle--open .mobile-menu-toggle__line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle--open .mobile-menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle--open .mobile-menu-toggle__line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  background: var(--nav-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
}

.mobile-menu-overlay--open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: #FFFFFF;
  background: var(--brand-white);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-base);
  z-index: 1050;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
}

.mobile-menu--open {
  transform: translateX(0);
}

/* Mobile Menu Header */

.mobile-menu__header {
  padding: 1rem;
  padding: var(--spacing-4);
  border-bottom: 1px solid #F3F4F6;
  border-bottom: 1px solid var(--brand-gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.mobile-menu__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.mobile-menu__close {
  width: 32px;
  height: 32px;
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6B7280;
  color: var(--brand-gray-500);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.mobile-menu__close:hover {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #374151;
  color: var(--brand-gray-700);
}

/* Mobile Menu Navigation */

.mobile-menu__nav {
  flex: 1;
  padding: 1rem;
  padding: var(--spacing-4);
  overflow-y: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  color: #374151;
  color: var(--brand-gray-700);
  text-decoration: none;
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  font-size: 1rem;
  font-size: var(--font-size-base);
}

.mobile-nav__link:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #111827;
  color: var(--brand-gray-900);
}

.mobile-nav__link--active {
  color: #ED1C24;
  color: var(--brand-red-primary);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  background: #F3F4F6;
  background: var(--brand-gray-100);
}

/* Mobile Menu Footer */

.mobile-menu__footer {
  padding: 1rem;
  padding: var(--spacing-4);
  border-top: 1px solid #F3F4F6;
  border-top: 1px solid var(--brand-gray-100);
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

.mobile-menu__language {
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.mobile-menu__user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 0.75rem;
  padding: var(--spacing-3);
  background: #FFFFFF;
  background: var(--brand-white);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.mobile-menu__avatar {
  width: 40px;
  height: 40px;
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  color: var(--brand-white);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.mobile-menu__user-name {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #111827;
  color: var(--brand-gray-900);
}

.mobile-menu__user-email {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
}

/* Mobile Menu Icons */

.mobile-menu__icon-section {
  padding: 1rem 0;
  padding: var(--spacing-4) 0;
  border-bottom: 1px solid #F3F4F6;
  border-bottom: 1px solid var(--brand-gray-100);
}

.mobile-menu__icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  gap: var(--spacing-4);
}

.mobile-menu__icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  padding: 0.75rem;
  padding: var(--spacing-3);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  color: #4B5563;
  color: var(--brand-gray-600);
}

.mobile-menu__icon-item:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #111827;
  color: var(--brand-gray-900);
}

.mobile-menu__icon-item--active {
  background: rgba(237, 28, 36, 0.1);
  background: var(--nav-active-bg);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.mobile-menu__icon {
  position: relative;
  width: 40px;
  height: 40px;
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.mobile-menu__icon-item:hover .mobile-menu__icon {
  background: #E5E7EB;
  background: var(--brand-gray-200);
}

.mobile-menu__icon-item--active .mobile-menu__icon {
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
}

.mobile-menu__icon-label {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  text-align: center;
}

.mobile-menu__icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
  font-size: 10px;
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */

@keyframes mobile-menu-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes mobile-menu-slide-out {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

/* Responsive */

@media (max-width: 480px) {
  .mobile-menu {
    width: 100%;
    right: 0;
  }

  .mobile-menu__icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Content */

/* ==========================================================================
   Legal Content Component
   Компонент для відображення юридичних документів:
   - Умови використання
   - Політика конфіденційності
   - Договори та угоди
   ========================================================================== */

/* Base Container */

.legal-document {
  max-width: 100%;
  background-color: #FFFFFF;
  background-color: var(--brand-white);
  padding: 1.5rem;
  padding: var(--spacing-6);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--font-family-base);
  color: #1F2937;
  color: var(--brand-gray-800);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

@media (min-width: 768px) {
  .legal-document {
    padding: 2.5rem;
    padding: var(--spacing-10);
  }
}

@media (min-width: 1024px) {
  .legal-document {
    padding: 3rem 4rem;
    padding: var(--spacing-12) var(--spacing-16);
  }
}

@media (min-width: 1280px) {
  .legal-document {
    padding: 4rem 5rem;
    padding: var(--spacing-16) var(--spacing-20);
  }

  .legal-document__title {
    font-size: 3rem;
    font-size: var(--font-size-5xl);
  }

  .legal-document__section-title {
    font-size: 2.25rem;
    font-size: var(--font-size-4xl);
  }
}

@media (min-width: 1536px) {
  .legal-document {
    padding: 5rem 6rem;
    padding: var(--spacing-20) var(--spacing-24);
  }

  .legal-document__title {
    font-size: 3.75rem;
    font-size: var(--font-size-6xl);
  }

  .legal-document__section-title {
    font-size: 2.25rem;
    font-size: var(--font-size-4xl);
  }

  .legal-document__contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Document Header */

.legal-document__header {
  text-align: center;
  padding-bottom: 2rem;
  padding-bottom: var(--spacing-8);
  margin-bottom: 2rem;
  margin-bottom: var(--spacing-8);
  border-bottom: 2px solid #E5E7EB;
  border-bottom: 2px solid var(--brand-gray-200);
}

.legal-document__title {
  font-size: 1.875rem;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  line-height: 1.25;
  line-height: var(--line-height-tight);
  letter-spacing: -0.025em;
  letter-spacing: var(--tracking-tight);
}

@media (min-width: 768px) {
  .legal-document__title {
    font-size: 2.25rem;
    font-size: var(--font-size-4xl);
  }
}

.legal-document__subtitle {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #ED1C24;
  color: var(--brand-red-primary);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.legal-document__date {
  display: inline-block;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #6B7280;
  color: var(--brand-gray-500);
  font-style: italic;
  padding: 0.5rem 1rem;
  padding: var(--spacing-2) var(--spacing-4);
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
  border-radius: 0.25rem;
  border-radius: var(--radius-base);
}

/* Icon Wrapper for Document Header */

.legal-document__icon-wrapper {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  margin: 0 auto var(--spacing-4);
  background-color: #FDF2F2;
  background-color: var(--brand-red-lightest);
}

.legal-document__icon-wrapper svg {
  width: 2rem;
  height: 2rem;
  color: #ED1C24;
  color: var(--brand-red-primary);
  fill: currentColor;
}

/* Preamble */

.legal-document__preamble {
  max-width: 65ch;
  max-width: var(--prose-width);
  margin: 0 auto 2.5rem;
  margin: 0 auto var(--spacing-10);
  padding: 1.5rem;
  padding: var(--spacing-6);
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
  border-left: 4px solid #ED1C24;
  border-left: 4px solid var(--brand-red-primary);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
}

.legal-document__preamble .legal-document__paragraph {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  color: #374151;
  color: var(--brand-gray-700);
}

/* Content Container */

.legal-document__content {
  max-width: 100%;
}

/* Sections */

.legal-document__section {
  margin-bottom: 3rem;
  margin-bottom: var(--spacing-12);
}

.legal-document__section:last-child {
  margin-bottom: 0;
}

.legal-document__section-title {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
  padding-bottom: 0.75rem;
  padding-bottom: var(--spacing-3);
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  gap: var(--spacing-3);
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

@media (min-width: 768px) {
  .legal-document__section-title {
    font-size: 1.875rem;
    font-size: var(--font-size-3xl);
  }
}

.legal-document__section-number {
  color: #ED1C24;
  color: var(--brand-red-primary);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

/* Articles / Subsections */

.legal-document__article {
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
  padding-left: 1.5rem;
  padding-left: var(--spacing-6);
}

.legal-document__article-title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #D11920;
  color: var(--brand-red-dark);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.legal-document__article--nested {
  margin-left: 1rem;
  margin-left: var(--spacing-4);
}

/* Paragraphs */

.legal-document__paragraph {
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  color: #374151;
  color: var(--brand-gray-700);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  max-width: 65ch;
  max-width: var(--prose-width);
}

.legal-document__paragraph:last-child {
  margin-bottom: 0;
}

/* Text Emphasis */

.legal-document__emphasis {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

.legal-document__company-name {
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Definition Lists */

.legal-document__definition-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  margin: var(--spacing-6) 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

.legal-document__definition-item {
  padding: 1rem;
  padding: var(--spacing-4);
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
  border-left: 3px solid #ED1C24;
  border-left: 3px solid var(--brand-red-primary);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

@media (min-width: 768px) {
  .legal-document__definition-item {
    flex-direction: row;
    gap: 1rem;
    gap: var(--spacing-4);
  }
}

.legal-document__term {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  flex-shrink: 0;
  min-width: 200px;
}

.legal-document__definition {
  color: #374151;
  color: var(--brand-gray-700);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

/* Ordered Lists */

.legal-document__ordered-list {
  list-style: none;
  counter-reset: legal-counter;
  padding-left: 0;
  margin: 1.5rem 0;
  margin: var(--spacing-6) 0;
}

.legal-document__list-item {
  counter-increment: legal-counter;
  position: relative;
  padding-left: 2.5rem;
  padding-left: var(--spacing-10);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  color: #374151;
  color: var(--brand-gray-700);
}

.legal-document__list-item::before {
  content: counter(legal-counter) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #ED1C24;
  color: var(--brand-red-primary);
  min-width: 2rem;
  min-width: var(--spacing-8);
}

/* Notice Boxes */

.legal-document__notice {
  padding: 1.25rem;
  padding: var(--spacing-5);
  margin: 1.5rem 0;
  margin: var(--spacing-6) 0;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid;
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
}

.legal-document__notice-title {
  display: block;
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.legal-document__notice-text {
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Notice Variants */

.legal-document__notice--info {
  border-left-color: #3B82F6;
  border-left-color: var(--color-info);
  background-color: #DBEAFE;
  background-color: var(--color-info-bg);
}

.legal-document__notice--info .legal-document__notice-title {
  color: #2563EB;
  color: var(--color-info-dark);
}

.legal-document__notice--info .legal-document__notice-text {
  color: #2563EB;
  color: var(--color-info-dark);
}

.legal-document__notice--success {
  border-left-color: #10B981;
  border-left-color: var(--color-success);
  background-color: #D1FAE5;
  background-color: var(--color-success-bg);
}

.legal-document__notice--success .legal-document__notice-title {
  color: #059669;
  color: var(--color-success-dark);
}

.legal-document__notice--success .legal-document__notice-text {
  color: #059669;
  color: var(--color-success-dark);
}

.legal-document__notice--warning {
  border-left-color: #F59E0B;
  border-left-color: var(--color-warning);
  background-color: #FEF3C7;
  background-color: var(--color-warning-bg);
}

.legal-document__notice--warning .legal-document__notice-title {
  color: #D97706;
  color: var(--color-warning-dark);
}

.legal-document__notice--warning .legal-document__notice-text {
  color: #D97706;
  color: var(--color-warning-dark);
}

.legal-document__notice--error {
  border-left-color: #ED1C24;
  border-left-color: var(--color-error);
  background-color: #FDF2F2;
  background-color: var(--color-error-bg);
}

.legal-document__notice--error .legal-document__notice-title {
  color: #D11920;
  color: var(--color-error-dark);
}

.legal-document__notice--error .legal-document__notice-text {
  color: #D11920;
  color: var(--color-error-dark);
}

/* Table Wrapper for Responsive Tables */

.legal-document__table-wrapper {
  margin: 1.5rem 0;
  margin: var(--spacing-6) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

/* Table Specific Styles for Legal Documents */

.table--legal {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.table--legal .table__header-cell {
  background-color: #F3F4F6;
  background-color: var(--brand-gray-100);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  border-bottom: 2px solid #D1D5DB;
  border-bottom: 2px solid var(--brand-gray-300);
}

.table--legal .table__cell {
  color: #374151;
  color: var(--brand-gray-700);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

.table--legal .table__row:hover {
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
}

/* Footer and Contacts */

.legal-document__footer {
  margin-top: 3rem;
  margin-top: var(--spacing-12);
  padding-top: 2rem;
  padding-top: var(--spacing-8);
  border-top: 2px solid #E5E7EB;
  border-top: 2px solid var(--brand-gray-200);
}

.legal-document__contacts {
  padding: 1.5rem;
  padding: var(--spacing-6);
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.legal-document__contacts-title {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 1.25rem;
  margin-bottom: var(--spacing-5);
  text-align: center;
}

.legal-document__contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  gap: var(--spacing-4);
}

@media (min-width: 768px) {
  .legal-document__contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.legal-document__contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
  padding: 0.75rem;
  padding: var(--spacing-3);
}

@media (min-width: 768px) {
  .legal-document__contact-item {
    flex-direction: row;
    gap: 0.75rem;
    gap: var(--spacing-3);
  }
}

.legal-document__contact-label {
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #4B5563;
  color: var(--brand-gray-600);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  min-width: 150px;
  flex-shrink: 0;
}

.legal-document__contact-value {
  font-weight: 400;
  font-weight: var(--font-weight-normal);
  color: #111827;
  color: var(--brand-gray-900);
  font-size: 1rem;
  font-size: var(--font-size-base);
  word-break: break-word;
}

/* Signature Block */

.legal-document__signature {
  padding: 1.5rem;
  padding: var(--spacing-6);
  background-color: #FDF2F2;
  background-color: var(--brand-red-lightest);
  border-left: 4px solid #ED1C24;
  border-left: 4px solid var(--brand-red-primary);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.legal-document__signature-text {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #1F2937;
  color: var(--brand-gray-800);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  margin: 0;
  max-width: 65ch;
  max-width: var(--prose-width);
  margin-left: auto;
  margin-right: auto;
}

/* Print Styles */

@media print {
  .legal-document {
    padding: 0;
    box-shadow: none;
  }

  .legal-document__section {
    page-break-inside: avoid;
  }

  .legal-document__notice {
    border: 1px solid #D1D5DB;
    border: 1px solid var(--brand-gray-300);
  }

  .legal-document__table-wrapper {
    overflow: visible;
  }
}

/* Layout */

/* MM Medic Layout Containers - Reserved for future use */

/* MM Medic Footer Styles */

/* Main Footer */

.footer {
  background: #FFFFFF;
  background: var(--brand-white);
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
  padding: 3rem 0 0 0;
  padding: var(--spacing-12) 0 0 0;
}

.footer__container {
  padding: 0 1rem;
  padding: 0 var(--spacing-4);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  gap: var(--spacing-8);
}

.footer__section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  gap: var(--spacing-6);
}

/* Logo Section */

.footer__logo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

.footer__description {
  color: #4B5563;
  color: var(--brand-gray-600);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  max-width: 280px;
}

/* Social Links */

.footer__social {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5563;
  color: var(--brand-gray-600);
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
  transform: translateY(-2px);
}

/* Footer Sections */

.footer__title {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.footer__link {
  color: #4B5563;
  color: var(--brand-gray-600);
  text-decoration: none;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Contact Information */

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

.footer__contact-item {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  line-height: var(--line-height-normal);
}

.footer__contact-item strong {
  color: #111827;
  color: var(--brand-gray-900);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.footer__contact-link {
  color: #ED1C24;
  color: var(--brand-red-primary);
  text-decoration: none;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast);
}

.footer__contact-link:hover {
  color: #D11920;
  color: var(--brand-red-dark);
}

.footer__address {
  font-style: normal;
  color: #4B5563;
  color: var(--brand-gray-600);
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
}

/* Bottom Section */

.footer__bottom {
  margin-top: 2rem;
  margin-top: var(--spacing-8);
  padding: 1.5rem 0;
  padding: var(--spacing-6) 0;
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
}

.footer__bottom-content {
  padding: 0 1rem;
  padding: 0 var(--spacing-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  gap: var(--spacing-4);
}

.footer__copyright {
  color: #6B7280;
  color: var(--brand-gray-500);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
  gap: var(--spacing-6);
}

.footer__legal-link {
  color: #6B7280;
  color: var(--brand-gray-500);
  text-decoration: none;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: #374151;
  color: var(--brand-gray-700);
}

/* Compact Footer Variant */

.footer--compact {
  padding: 1.5rem 0;
  padding: var(--spacing-6) 0;
}

.footer--compact .footer__container {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.footer--compact .footer__bottom {
  margin-top: 1rem;
  margin-top: var(--spacing-4);
  padding: 1rem 0;
  padding: var(--spacing-4) 0;
}

.footer--compact .footer__social {
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.footer--compact .footer__social-link {
  width: 36px;
  height: 36px;
}

/* Responsive */

@media (max-width: 1024px) {
  .footer__container {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    gap: var(--spacing-6);
  }

  .footer__section:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 2rem 0 0 0;
    padding: var(--spacing-8) 0 0 0;
  }

  .footer__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    gap: var(--spacing-6);
    padding: 0 0.75rem;
    padding: 0 var(--spacing-3);
  }

  .footer__bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    gap: var(--spacing-4);
    padding: 0 0.75rem;
    padding: 0 var(--spacing-3);
  }

  .footer__legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .footer--compact .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Pages */

/**
 * Profile Page Styles
 * Семантичні класи для сторінки Особистого кабінету
 *
 * ВАЖЛИВО: Цей файл містить ЛИШЕ layout контейнер профілю.
 * ВСІ компоненти профілю знаходяться в design-system/patterns/_profile-components.css
 * та мають HTML приклади в design-components/profile-components.html
 */

/* ============================================
   PROFILE CONTAINER LAYOUT
   ============================================ */

.profile-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  gap: var(--spacing-6);
  padding: 1.5rem 1rem;
  padding: var(--spacing-6) var(--spacing-4);
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

@media (max-width: 1023px) {
  .profile-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    gap: var(--spacing-4);
    padding: 1rem;
    padding: var(--spacing-4);
  }
}

@media (max-width: 639px) {
  .profile-container {
    padding: 0.75rem;
    padding: var(--spacing-3);
  }
}

/* ============================================
   PROFILE CONTENT AREA
   ============================================ */

.profile-content {
  min-width: 0;
}

.profile-content__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
  flex-wrap: wrap;
  gap: 1rem;
  gap: var(--spacing-4);
}

@media (max-width: 639px) {
  .profile-content__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.profile-content__title {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
  margin: 0;
}

.profile-content__subtitle {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
}

.profile-content__body {
  /* Container for profile page content */
}

/* ============================================
   MOBILE SIDEBAR TOGGLE
   ============================================ */

.profile-sidebar__toggle {
  position: fixed;
  bottom: 1rem;
  bottom: var(--spacing-4);
  right: 1rem;
  right: var(--spacing-4);
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  background: #ED1C24;
  background: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
  border: none;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.profile-sidebar__toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(237, 28, 36, 0.25), 0 6px 16px rgba(237, 28, 36, 0.15);
  box-shadow: var(--shadow-red-strong);
}

@media (max-width: 1023px) {
  .profile-sidebar__toggle {
    display: flex;
  }
}

/* ============================================
   UTILITY CLASSES (Profile-Specific)
   ============================================ */

/* Text Color Utilities */

.text-muted {
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

.text-secondary {
  color: #4B5563;
  color: var(--brand-gray-600);
}

.text-body {
  color: #374151;
  color: var(--brand-gray-700);
}

.text-primary-text {
  color: #111827;
  color: var(--brand-gray-900);
}

.text-success {
  color: #10B981;
  color: var(--color-success);
}

.text-error {
  color: #ED1C24;
  color: var(--color-error);
}

.text-warning {
  color: #F59E0B;
  color: var(--color-warning);
}

.text-info {
  color: #3B82F6;
  color: var(--color-info);
}

/* Background Utilities */

.bg-surface {
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
}

.bg-surface-elevated {
  background-color: #FFFFFF;
  background-color: var(--brand-white);
}

/* Dynamic State Modifiers */

.progress-bar__fill[data-progress] {
  width: 0%;
  width: var(--progress-width, 0%);
}

/**
 * Admin Reports Pages Styles
 * Specific styles for reports pages (users, sales, products, finances)
 */

/* Select with custom dropdown arrow */

.select--styled {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url('data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'none\' viewBox=\'0 0 20 20\'%3e%3cpath stroke=\'%236b7280\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'1.5\' d=\'m6 8 4 4 4-4\'/%3e%3c/svg%3e');
  background-position: right 0.75rem center;
  background-position: right var(--spacing-3) center;
  background-repeat: no-repeat;
  background-size: 1.5em;
  padding-right: 2.5rem;
  padding-right: var(--spacing-10);
}

/* Form field spanning 2 columns in grid */

.form-field--span-2 {
  grid-column: span 2;
}

/* Report chart container */

.report-chart {
  position: relative;
  width: 100%;
  min-height: 300px;
}

/* Chart canvas specific styles */

.report-chart__canvas {
  max-height: 300px;
}

/* Text styles for reports */

.report-text--muted {
  color: #6B7280;
  color: var(--brand-gray-500);
}

.report-text--subtle {
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

.report-text--primary {
  color: #3B82F6;
  color: var(--color-info);
}

.report-text--primary:hover {
  color: #2563EB;
  color: var(--color-info-dark);
}

.report-text--success {
  color: #10B981;
  color: var(--color-success);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

/* Link styles for reports */

.report-link {
  color: #3B82F6;
  color: var(--color-info);
  text-decoration: none;
  transition: color 0.2s ease;
}

.report-link:hover {
  color: #2563EB;
  color: var(--color-info-dark);
}

/* Empty state styles */

.report-empty__icon {
  color: #9CA3AF;
  color: var(--brand-gray-400);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.report-empty__title {
  color: #4B5563;
  color: var(--brand-gray-600);
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
}

.report-empty__description {
  color: #6B7280;
  color: var(--brand-gray-500);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
}

/* Period selector specific styles */

.report-period-label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #374151;
  color: var(--brand-gray-700);
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
  margin-right: var(--spacing-2);
}

/* Product image styles for reports */

.report-product-image {
  width: 48px;
  height: 48px;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: var(--border-radius-md);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
}

.report-product-placeholder {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F3F4F6;
  background-color: var(--brand-gray-100);
  border-radius: var(--border-radius-md);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

/* Text variants */

.report-text--warning {
  color: #F59E0B;
  color: var(--color-warning);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.report-text--success {
  color: #10B981;
  color: var(--color-success);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.report-text--subtle {
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

.report-text--muted {
  color: #6B7280;
  color: var(--brand-gray-500);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

/* Icon with warning color */

.report-icon--warning {
  color: #F59E0B;
  color: var(--color-warning);
}

/* Report link */

.report-link {
  color: #ED1C24;
  color: var(--brand-red-primary);
  text-decoration: none;
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.report-link:hover {
  text-decoration: underline;
}

/**
 * KeyCRM Integration Page Styles
 *
 * Semantic classes for /admin/integrations/keycrm page
 * Following CLAUDE.md: no inline styles, use CSS variables, no !important
 */

/* ==================== PAGE-SPECIFIC UTILITIES ==================== */

.keycrm-page__card {
    padding: 1.5rem;
    padding: var(--spacing-6);
}

.keycrm-page__header-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

.keycrm-page__badge-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    gap: var(--spacing-3);
}

/* ==================== CONNECTION STATUS ==================== */

.keycrm-connection__status-message {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ==================== FORM ELEMENTS ==================== */

.keycrm-form__help-link {
    color: #ED1C24;
    color: var(--brand-red-primary);
    text-decoration: underline;
}

.keycrm-form__help-link:hover {
    color: #D11920;
    color: var(--brand-red-dark);
}

.keycrm-form__source-selector {
    display: flex;
    gap: 0.5rem;
    gap: var(--spacing-2);
}

/* ==================== SOURCES LIST ==================== */

.sources-list-container {
    margin-top: 0.5rem;
    margin-top: var(--spacing-2);
    display: none;
}

.sources-list-container--visible {
    display: block;
}

/* ==================== TEST LOG ==================== */

.keycrm-test__log {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background-color: #111827;
    background-color: var(--brand-gray-900);
    color: #10B981;
    color: var(--color-success);
}

/* ==================== STATISTICS ==================== */

.keycrm-stats__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.keycrm-stats__label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

.keycrm-stats__divider {
    margin-top: 1rem;
    margin-top: var(--spacing-4);
    padding-top: 1rem;
    padding-top: var(--spacing-4);
    border-top: 1px solid #E5E7EB;
    border-top: 1px solid var(--brand-gray-200);
}

.keycrm-stats__note {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-align: center;
}

/* ==================== RECENT SYNCS ==================== */

.keycrm-syncs__empty {
    text-align: center;
    padding: 1.5rem 0;
    padding: var(--spacing-6) 0;
    color: var(--text-muted);
}

.keycrm-syncs__empty-text {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

/* ==================== HELP CARDS ==================== */

.keycrm-help__warning {
    background-color: #FEF3C7;
    background-color: var(--color-warning-bg);
}

.keycrm-help__warning-title {
    color: #F59E0B;
    color: var(--color-warning);
}

.keycrm-help__warning-text {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #D97706;
    color: var(--color-warning-dark);
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
}

.keycrm-help__warning-list {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #D97706;
    color: var(--color-warning-dark);
    margin-left: 1rem;
    margin-left: var(--spacing-4);
    list-style: disc;
}

.keycrm-help__info {
    background-color: #DBEAFE;
    background-color: var(--color-info-bg);
}

.keycrm-help__info-title {
    color: #3B82F6;
    color: var(--color-info);
}

.keycrm-help__info-text {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #2563EB;
    color: var(--color-info-dark);
    margin-bottom: 0.75rem;
    margin-bottom: var(--spacing-3);
}

.keycrm-help__info-button {
    background-color: #3B82F6;
    background-color: var(--color-info);
    color: #FFFFFF;
    color: var(--brand-white);
    width: 100%;
}

/* ==================== TOAST NOTIFICATIONS ==================== */

.toast-container {
    position: fixed;
    top: 1rem;
    top: var(--spacing-4);
    right: 1rem;
    right: var(--spacing-4);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    gap: var(--spacing-2);
    pointer-events: none;
}

.toast {
    background-color: #FFFFFF;
    background-color: var(--brand-white);
    color: #111827;
    color: var(--brand-gray-900);
    padding: 1rem 1.25rem;
    padding: var(--spacing-4) var(--spacing-5);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(400px);
    transition: all var(--transition-normal);
    pointer-events: auto;
    border-left: 4px solid #9CA3AF;
    border-left: 4px solid var(--brand-gray-400);
}

.toast--visible {
    opacity: 1;
    transform: translateX(0);
}

.toast--success {
    border-left-color: #10B981;
    border-left-color: var(--color-success);
}

.toast--error {
    border-left-color: #ED1C24;
    border-left-color: var(--color-error);
}

.toast--warning {
    border-left-color: #F59E0B;
    border-left-color: var(--color-warning);
}

.toast--info {
    border-left-color: #3B82F6;
    border-left-color: var(--color-info);
}

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

/* Mobile */

@media (max-width: 640px) {
    .toast-container {
        left: 1rem;
        left: var(--spacing-4);
        right: 1rem;
        right: var(--spacing-4);
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* Tablet */

@media (min-width: 641px) and (max-width: 1023px) {
    .toast {
        min-width: 250px;
        max-width: 400px;
    }
}

/**
 * LiqPay Integration Page Styles
 *
 * Semantic classes for /admin/integrations/liqpay page
 * Following CLAUDE.md: no inline styles, use CSS variables, no !important
 *
 * Structure:
 * - Page-specific utilities
 * - Connection status
 * - Form elements
 * - Payment items list
 * - Statistics display
 * - Empty states
 * - Help cards
 * - Toast notifications
 * - Responsive breakpoints
 */

/* ==================== PAGE-SPECIFIC UTILITIES ==================== */

.liqpay-page__card {
    padding: 1.5rem;
    padding: var(--spacing-6);
}

.liqpay-page__card--hidden {
    display: none;
}

.liqpay-page__header-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    line-height: 1.75;
    line-height: var(--line-height-relaxed);
}

.liqpay-page__badge-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    gap: var(--spacing-3);
    flex-wrap: wrap;
}

/* ==================== CONNECTION STATUS ==================== */

.liqpay-connection__status-message {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.75;
    line-height: var(--line-height-relaxed);
}

/* ==================== FORM ELEMENTS ==================== */

.liqpay-form__help-link {
    color: #ED1C24;
    color: var(--brand-red-primary);
    text-decoration: underline;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: color var(--transition-fast);
}

.liqpay-form__help-link:hover {
    color: #D11920;
    color: var(--brand-red-dark);
}

.liqpay-form__help-link:focus {
    outline: 2px solid #ED1C24;
    outline: 2px solid var(--brand-red-primary);
    outline-offset: 2px;
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
}

/* Toggle styles inherited from design-system/components/_toggles.css */

/* ==================== PAYMENT ITEMS LIST ==================== */

.liqpay-payment-item {
    padding: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
    border-bottom: 1px solid #E5E7EB;
    border-bottom: 1px solid var(--brand-gray-200);
    transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

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

.liqpay-payment-item:hover {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
    transform: translateX(2px);
}

.liqpay-payment-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
    gap: 0.5rem;
    gap: var(--spacing-2);
}

.liqpay-payment-item__order {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    color: #111827;
    color: var(--brand-gray-900);
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
}

.liqpay-payment-item__meta {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
}

/* ==================== STATISTICS DISPLAY ==================== */

.liqpay-stats__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    padding: var(--spacing-2) 0;
}

.liqpay-stats__label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 400;
    font-weight: var(--font-weight-normal);
}

.liqpay-stats__value {
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    color: #111827;
    color: var(--brand-gray-900);
}

.liqpay-stats__divider {
    margin-top: 1rem;
    margin-top: var(--spacing-4);
    padding-top: 1rem;
    padding-top: var(--spacing-4);
    border-top: 1px solid #E5E7EB;
    border-top: 1px solid var(--brand-gray-200);
}

/* Statistics value colors - used in HTML with heading-5 */

.liqpay-stats__value--success {
    color: #10B981;
    color: var(--color-success);
}

.liqpay-stats__value--error {
    color: #ED1C24;
    color: var(--color-error);
}

.liqpay-stats__value--warning {
    color: #F59E0B;
    color: var(--color-warning);
}

.liqpay-stats__value--info {
    color: #3B82F6;
    color: var(--color-info);
}

/* ==================== EMPTY STATE ==================== */

.liqpay-syncs__empty {
    text-align: center;
    padding: 2rem 1rem;
    padding: var(--spacing-8) var(--spacing-4);
    color: var(--text-muted);
}

.liqpay-syncs__empty-text {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    line-height: 1.75;
    line-height: var(--line-height-relaxed);
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
}

.liqpay-syncs__empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    margin: 0 auto var(--spacing-3);
    opacity: 0.3;
}

/* ==================== HELP CARDS ==================== */

/* Warning card (sandbox mode) */

.liqpay-help__warning {
    background-color: #FEF3C7;
    background-color: var(--color-warning-bg);
    border-left: 4px solid #F59E0B;
    border-left: 4px solid var(--color-warning);
    padding: 1rem;
    padding: var(--spacing-4);
}

.liqpay-help__warning-title {
    color: #F59E0B;
    color: var(--color-warning);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
}

.liqpay-help__warning-text {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #D97706;
    color: var(--color-warning-dark);
    line-height: 1.75;
    line-height: var(--line-height-relaxed);
}

.liqpay-help__warning-list {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #D97706;
    color: var(--color-warning-dark);
    margin: 0.5rem 0 0 1rem;
    margin: var(--spacing-2) 0 0 var(--spacing-4);
    list-style: disc;
    line-height: 1.75;
    line-height: var(--line-height-relaxed);
}

/* Info card (documentation) */

.liqpay-help__info {
    background-color: #DBEAFE;
    background-color: var(--color-info-bg);
    border-left: 4px solid #3B82F6;
    border-left: 4px solid var(--color-info);
    padding: 1rem;
    padding: var(--spacing-4);
}

.liqpay-help__info-title {
    color: #3B82F6;
    color: var(--color-info);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
}

.liqpay-help__info-text {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #2563EB;
    color: var(--color-info-dark);
    line-height: 1.75;
    line-height: var(--line-height-relaxed);
}

.liqpay-help__info-button {
    background-color: #3B82F6;
    background-color: var(--color-info);
    color: #FFFFFF;
    color: var(--brand-white);
    width: 100%;
    text-align: center;
    transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.liqpay-help__info-button:hover {
    background-color: #2563EB;
    background-color: var(--color-info-dark);
    transform: translateY(-1px);
}

.liqpay-help__info-button:active {
    transform: translateY(0);
}

/* ==================== TOAST NOTIFICATIONS ==================== */

.toast-container {
    position: fixed;
    top: 1rem;
    top: var(--spacing-4);
    right: 1rem;
    right: var(--spacing-4);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    gap: var(--spacing-2);
    pointer-events: none;
}

.toast {
    background-color: #FFFFFF;
    background-color: var(--brand-white);
    color: #111827;
    color: var(--brand-gray-900);
    padding: 1rem 1.25rem;
    padding: var(--spacing-4) var(--spacing-5);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(400px);
    transition: all var(--transition-normal);
    pointer-events: auto;
    border-left: 4px solid #9CA3AF;
    border-left: 4px solid var(--brand-gray-400);
}

.toast--visible {
    opacity: 1;
    transform: translateX(0);
}

.toast--success {
    border-left-color: #10B981;
    border-left-color: var(--color-success);
}

.toast--error {
    border-left-color: #ED1C24;
    border-left-color: var(--color-error);
}

.toast--warning {
    border-left-color: #F59E0B;
    border-left-color: var(--color-warning);
}

.toast--info {
    border-left-color: #3B82F6;
    border-left-color: var(--color-info);
}

/* ==================== LOADING STATE ==================== */

.liqpay-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.liqpay-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid #D1D5DB;
    border: 3px solid var(--brand-gray-300);
    border-top-color: #ED1C24;
    border-top-color: var(--brand-red-primary);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    animation: liqpay-spin 0.8s linear infinite;
}

@keyframes liqpay-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

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

/* Mobile (320px - 639px) */

@media (max-width: 639px) {
    .liqpay-page__card {
        padding: 1rem;
        padding: var(--spacing-4);
    }

    .liqpay-page__badge-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        gap: var(--spacing-2);
    }

    .liqpay-payment-item__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        gap: var(--spacing-1);
    }

    .liqpay-stats__row {
        padding: 0.25rem 0;
        padding: var(--spacing-1) 0;
    }

    .toast-container {
        left: 1rem;
        left: var(--spacing-4);
        right: 1rem;
        right: var(--spacing-4);
    }

    .toast {
        min-width: auto;
        width: 100%;
        font-size: 0.875rem;
        font-size: var(--font-size-sm);
    }

    .liqpay-syncs__empty {
        padding: 1.5rem 0.75rem;
        padding: var(--spacing-6) var(--spacing-3);
    }
}

/* Tablet (640px - 1023px) */

@media (min-width: 640px) and (max-width: 1023px) {
    .liqpay-page__card {
        padding: 1.25rem;
        padding: var(--spacing-5);
    }

    .toast {
        min-width: 250px;
        max-width: 400px;
    }

    .liqpay-payment-item {
        padding: 0.75rem;
        padding: var(--spacing-3);
    }
}

/* Desktop (1024px - 1279px) */

@media (min-width: 1024px) and (max-width: 1279px) {
    .liqpay-page__card {
        padding: 1.5rem;
        padding: var(--spacing-6);
    }
}

/* Wide (1280px - 1535px) */

@media (min-width: 1280px) and (max-width: 1535px) {
    /* Optimal spacing for wide screens */
    .liqpay-page__card {
        padding: 1.5rem;
        padding: var(--spacing-6);
    }
}

/* Ultra-wide (1536px+) */

@media (min-width: 1536px) {
    .liqpay-page__card {
        padding: 2rem;
        padding: var(--spacing-8);
    }

    .liqpay-stats__row {
        padding: 0.75rem 0;
        padding: var(--spacing-3) 0;
    }

    .liqpay-payment-item {
        padding: 1rem 1.25rem;
        padding: var(--spacing-4) var(--spacing-5);
    }
}

/* ==================== PRINT STYLES ==================== */

@media print {
    .liqpay-page__badge-container,
    .toast-container,
    button {
        display: none;
    }

    .liqpay-page__card {
        box-shadow: none;
        border: 1px solid #D1D5DB;
        border: 1px solid var(--brand-gray-300);
        page-break-inside: avoid;
    }

    .liqpay-payment-item {
        border-bottom: 1px solid #D1D5DB;
        border-bottom: 1px solid var(--brand-gray-300);
    }
}

/* ==================== ACCESSIBILITY ENHANCEMENTS ==================== */

/* Focus visible for keyboard navigation */

.liqpay-help__info-button:focus-visible {
    outline: 3px solid #ED1C24;
    outline: 3px solid var(--brand-red-primary);
    outline-offset: 2px;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .toast,
    .liqpay-payment-item,
    .liqpay-help__info-button {
        transition: none;
    }

    .liqpay-loading::after {
        animation: none;
    }
}

/* High contrast mode */

@media (prefers-contrast: high) {
    .liqpay-page__card {
        border: 2px solid #111827;
        border: 2px solid var(--brand-gray-900);
    }

    .liqpay-payment-item {
        border-bottom: 2px solid #111827;
        border-bottom: 2px solid var(--brand-gray-900);
    }

    .liqpay-help__warning,
    .liqpay-help__info {
        border-left-width: 6px;
    }
}

/* Product Import/Export Page Styles */

/* Drop zone for file upload */

.drop-zone {
  border: 2px dashed #D1D5DB;
  border: 2px dashed var(--brand-gray-300);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 2rem;
  padding: var(--spacing-8);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
}

.drop-zone:hover,
.drop-zone--active {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  background: #FDF2F2;
  background: var(--brand-red-lightest);
}

/* Progress bar component for import/export operations */

.import-progress {
  width: 100%;
  height: 12px;
  background: #E5E7EB;
  background: var(--brand-gray-200);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.import-progress__bar {
  height: 100%;
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: width var(--transition-slow);
}

/* Statistics cards for import results */

.stat-card {
  text-align: center;
  padding: 1rem;
  padding: var(--spacing-4);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
}

.stat-card__value {
  font-size: 1.875rem;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.stat-card__label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
}

/* Stat card variants */

.stat-card--success {
  background: #34D399;
  background: var(--color-success-light);
}

.stat-card--success .stat-card__value {
  color: #10B981;
  color: var(--color-success);
}

.stat-card--info {
  background: #60A5FA;
  background: var(--color-info-light);
}

.stat-card--info .stat-card__value {
  color: #3B82F6;
  color: var(--color-info);
}

.stat-card--warning {
  background: #FBBF24;
  background: var(--color-warning-light);
}

.stat-card--warning .stat-card__value {
  color: #F59E0B;
  color: var(--color-warning);
}

.stat-card--error {
  background: #F04951;
  background: var(--color-error-light);
}

.stat-card--error .stat-card__value {
  color: #ED1C24;
  color: var(--color-error);
}

/* Changelog section */

.changelog-item {
  padding: 0.75rem;
  padding: var(--spacing-3);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.25rem;
  border-radius: var(--radius-base);
  border-left: 3px solid #D1D5DB;
  border-left: 3px solid var(--brand-gray-300);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
}

.changelog-item:hover {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border-left-color: #ED1C24;
  border-left-color: var(--brand-red-primary);
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.changelog-changes {
  list-style: disc;
  padding-left: 1.25rem;
  padding-left: var(--spacing-5);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
}

.changelog-changes li {
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
}

/* Error details list container */

.error-details-list {
  max-height: 16rem;
  overflow-y: auto;
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.25rem;
  border-radius: var(--radius-base);
  padding: 0.75rem;
  padding: var(--spacing-3);
}

/* Success icon color override */

.icon--success {
  color: #10B981;
  color: var(--color-success);
}

/* Warning text color */

.text--warning {
  color: #D97706;
  color: var(--color-warning-dark);
}

.text--error {
  color: #ED1C24;
  color: var(--color-error);
}

/* Import mode selection */

.import-mode-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.import-mode-option {
  padding: 1rem;
  padding: var(--spacing-4);
  border: 2px solid #D1D5DB;
  border: 2px solid var(--brand-gray-300);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
}

.import-mode-option:hover {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

.import-mode-option input:checked ~ .import-mode-content {
  border-left: 4px solid #ED1C24;
  border-left: 4px solid var(--brand-red-primary);
  padding-left: 0.75rem;
  padding-left: var(--spacing-3);
}

.import-mode-option input:checked {
  accent-color: #ED1C24;
  accent-color: var(--brand-red-primary);
}

/* Alert animations */

.alert--show {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
  opacity: 1;
  transform: translateY(0);
}

.alert--hide {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(-10px);
}

/* Responsive adjustments */

@media (max-width: 640px) {
  .drop-zone {
    padding: 1.5rem;
    padding: var(--spacing-6);
  }

  .stat-card {
    padding: 0.75rem;
    padding: var(--spacing-3);
  }

  .stat-card__value {
    font-size: 1.5rem;
    font-size: var(--font-size-2xl);
  }
}

/* ==========================================================================
   Sitemap Page Component
   Minimal custom styles - uses Design System card components + Tailwind
   ========================================================================== */

/* Sitemap Link - Custom interactive link component for sitemap entries */

.sitemap-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 0.75rem;
  padding: var(--spacing-3);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #374151;
  color: var(--brand-gray-700);
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: 1.5;
  line-height: var(--line-height-normal);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sitemap-link:hover {
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.sitemap-link:active {
  background-color: #F3F4F6;
  background-color: var(--brand-gray-100);
}

/* Print Styles */

@media print {
  .sitemap-link {
    padding: 0.5rem;
    padding: var(--spacing-2);
  }

  .sitemap-link:hover {
    background-color: transparent;
  }
}

/* Authentication and Registration */

/* @import 'auth/registration.css'; */

/*# sourceMappingURL=main.css.map */