/* 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: rgba(16, 185, 129, 0.1);

  --color-warning: #F59E0B;
  --color-warning-light: #FBBF24;
  --color-warning-dark: #D97706;
  --color-warning-bg: rgba(245, 158, 11, 0.1);

  --color-error: #ED1C24;
  --color-error-light: #F04951;
  --color-error-dark: #D11920;
  --color-error-bg: rgba(237, 28, 36, 0.1);

  --color-info: #3B82F6;
  --color-info-light: #60A5FA;
  --color-info-dark: #2563EB;
  --color-info-bg: rgba(59, 130, 246, 0.1);
  --color-info-bg-light: rgba(59, 130, 246, 0.05);
  --color-info-border: rgba(59, 130, 246, 0.2);

  /* 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-snug: 1.375;
  --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;
  --z-notification: 10000;

  /* 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 Design System - Dark Theme Variables */

[data-theme="dark"] {
  /* Brand Colors - Adjusted for Dark Mode */
  /* Red stays vibrant as brand accent, but lighter variants adapted */
  --brand-red-primary: #ED1C24;
  --brand-red-dark: #D11920;
  --brand-red-darker: #B5161C;
  --brand-red-light: #F04951;
  --brand-red-lighter: #F3767E;
  --brand-red-lightest: #2D1617; /* Dark mode: deep red background instead of light pink */

  /* Gray Scale - Dark Mode with Warm Tones and Depth Hierarchy */
  /* Теплі відтінки сірого з правильною ієрархією глибини */

  /* Text colors - світлі для читабельності */
  --brand-gray-900: #F5F5F4; /* Primary text - warm light gray */
  --brand-gray-800: #E7E5E4; /* Secondary text - slightly darker */
  --brand-gray-700: #D6D3D1; /* Tertiary text */
  --brand-gray-600: #A8A29E; /* Muted text */
  --brand-gray-500: #78716C; /* Very muted text */

  /* Surface colors - від темного до світлого (depth hierarchy) */
  --brand-gray-400: #57534E; /* Subtle borders */
  --brand-gray-300: #44403C; /* Borders and dividers */
  --brand-gray-200: #3A3634; /* Slightly elevated - hover states */
  --brand-gray-100: #2D2A28; /* Elevated surfaces - cards, header (warm dark gray) */
  --brand-gray-50: #1C1917;  /* Body background - deepest warm black */

  /* Brand white - використовується для cards та header */
  --brand-white: #2D2A28;    /* Elevated warm gray - lighter than body для depth */

  /* Semantic Colors - Adjusted for Dark Backgrounds */
  /* Success Green - Slightly brighter for visibility on dark */
  --color-success: #34D399;      /* Lighter green for better visibility */
  --color-success-light: #6EE7B7; /* Even lighter for highlights */
  --color-success-dark: #10B981;  /* Darker variant still readable */
  --color-success-bg: #064E3B;    /* Dark green background */

  /* Warning Yellow - Warmer and more vibrant */
  --color-warning: #FBBF24;      /* Brighter yellow for dark mode */
  --color-warning-light: #FCD34D; /* Light yellow for highlights */
  --color-warning-dark: #F59E0B;  /* Standard orange-yellow */
  --color-warning-bg: #78350F;    /* Dark amber background */

  /* Error Red - Uses brand red, adjusted backgrounds */
  --color-error: #F87171;        /* Lighter red for better contrast */
  --color-error-light: #FCA5A5;  /* Soft red for highlights */
  --color-error-dark: #DC2626;   /* Darker red variant */
  --color-error-bg: #3D1516;     /* Deep red background */

  /* Info Blue - Brighter for dark mode visibility */
  --color-info: #60A5FA;         /* Lighter blue */
  --color-info-light: #93C5FD;   /* Soft blue for highlights */
  --color-info-dark: #3B82F6;    /* Standard blue */
  --color-info-bg: #1E3A5F;      /* Dark blue background */

  /* Typography - No changes needed, these are size/weight values */
  --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;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  --font-size-7xl: 4.5rem;
  --font-size-8xl: 6rem;
  --font-size-9xl: 8rem;

  --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 - No changes needed */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;

  /* Spacing - No changes needed */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  --spacing-24: 6rem;

  /* Icon Sizes - No changes needed */
  --icon-size-xs: 1rem;
  --icon-size-sm: 1.25rem;
  --icon-size-base: 1.5rem;
  --icon-size-md: 2rem;
  --icon-size-lg: 2.5rem;
  --icon-size-xl: 3rem;
  --icon-size-2xl: 3.5rem;

  /* Border Radius - No changes needed */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-base: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows - Lighter and more subtle for dark backgrounds */
  /* Dark mode shadows need to be lighter with white tint instead of black */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);

  /* Text Shadows - Subtle glow effect for dark mode */
  --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);

  /* Red Shadows - Stronger glow for dark backgrounds */
  --shadow-red-subtle: 0 0 12px rgba(237, 28, 36, 0.25), 0 2px 8px rgba(237, 28, 36, 0.15);
  --shadow-red-medium: 0 0 16px rgba(237, 28, 36, 0.35), 0 4px 12px rgba(237, 28, 36, 0.2);
  --shadow-red-strong: 0 0 24px rgba(237, 28, 36, 0.45), 0 6px 16px rgba(237, 28, 36, 0.25);

  /* Success (Green) Shadows - Enhanced glow for visibility */
  --shadow-success-subtle: 0 0 12px rgba(52, 211, 153, 0.25), 0 2px 8px rgba(52, 211, 153, 0.15);
  --shadow-success-medium: 0 0 16px rgba(52, 211, 153, 0.35), 0 4px 12px rgba(52, 211, 153, 0.2);
  --shadow-success-strong: 0 0 24px rgba(52, 211, 153, 0.45), 0 6px 16px rgba(52, 211, 153, 0.25);

  /* Warning (Yellow) Shadows - Warm glow for dark mode */
  --shadow-warning-subtle: 0 0 12px rgba(251, 191, 36, 0.25), 0 2px 8px rgba(251, 191, 36, 0.15);
  --shadow-warning-medium: 0 0 16px rgba(251, 191, 36, 0.35), 0 4px 12px rgba(251, 191, 36, 0.2);
  --shadow-warning-strong: 0 0 24px rgba(251, 191, 36, 0.45), 0 6px 16px rgba(251, 191, 36, 0.25);

  /* Button specific colors and effects */
  /* Overlays need to be lighter (white-based) for dark backgrounds */
  --button-hover-overlay: rgba(255, 255, 255, 0.1);   /* Light overlay on dark */
  --button-active-overlay: rgba(255, 255, 255, 0.15); /* Stronger light overlay */
  --button-divider: rgba(255, 255, 255, 0.15);        /* Visible dividers */
  --button-ghost-hover: var(--brand-gray-200);        /* Elevated surface on hover */
  --button-ghost-active: rgba(237, 28, 36, 0.15);     /* Red tint on active */
  --button-soft-primary-bg: rgba(237, 28, 36, 0.15);  /* Visible on dark */
  --button-soft-primary-hover: rgba(237, 28, 36, 0.25); /* Stronger on hover */
  --button-soft-success-hover: rgba(52, 211, 153, 0.2); /* Green tint */
  --button-soft-destructive-hover: rgba(248, 113, 113, 0.2); /* Red tint */
  --gradient-red-deep: linear-gradient(135deg, #D11920 0%, #B5161C 100%);
  --gradient-red-darker: linear-gradient(135deg, #B5161C 0%, #9B1318 100%);
  --gradient-success-deep: linear-gradient(135deg, #059669 0%, #047857 100%);

  /* Badge specific colors */
  --badge-primary-soft-bg: rgba(237, 28, 36, 0.2);    /* More visible on dark */
  --badge-primary-soft-border: rgba(237, 28, 36, 0.4); /* Stronger border */
  --badge-success-soft-border: rgba(52, 211, 153, 0.4);
  --badge-warning-soft-border: rgba(251, 191, 36, 0.4);
  --badge-error-soft-border: rgba(248, 113, 113, 0.4);
  --badge-info-soft-border: rgba(96, 165, 250, 0.4);
  --badge-remove-hover: rgba(255, 255, 255, 0.15);    /* Light overlay on hover */

  /* Navigation specific colors */
  --nav-active-bg: rgba(237, 28, 36, 0.2);            /* Red active state */
  --nav-overlay: rgba(0, 0, 0, 0.7);                  /* Darker overlay */
  --nav-active-light: rgba(237, 28, 36, 0.1);         /* Subtle active state */

  /* Header/Navbar background - warm dark gray (slightly lighter than body) */
  --header-bg: #2A2D35;                               /* Same as card bg for consistency */

  /* Alert specific colors */
  /* Alerts need darker backgrounds with better contrast */
  --alert-backdrop: rgba(17, 24, 39, 0.95);           /* Dark backdrop */
  --alert-backdrop-solid: rgba(17, 24, 39, 1);        /* Solid dark */
  --alert-success-bg: rgba(6, 78, 59, 0.9);           /* Dark green bg */
  --alert-success-shadow: 0 4px 16px rgba(52, 211, 153, 0.2);
  --alert-warning-bg: rgba(120, 53, 15, 0.9);         /* Dark amber bg */
  --alert-warning-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
  --alert-error-bg: rgba(61, 21, 22, 0.9);            /* Dark red bg */
  --alert-error-shadow: 0 4px 16px rgba(248, 113, 113, 0.2);
  --alert-info-bg: rgba(30, 58, 95, 0.9);             /* Dark blue bg */
  --alert-info-shadow: 0 4px 16px rgba(96, 165, 250, 0.2);
  --alert-critical-bg: rgba(61, 21, 22, 0.95);        /* Deep red for critical */
  --alert-critical-glow: 0 0 24px rgba(237, 28, 36, 0.5); /* Strong glow */

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

  /* Lightbox specific colors and effects */
  --lightbox-overlay: rgba(0, 0, 0, 0.92);            /* Nearly black overlay */
  --lightbox-blur: blur(12px);
  --lightbox-nav-size: 48px;
  --lightbox-nav-bg: rgba(255, 255, 255, 0.1);        /* Light buttons on dark */
  --lightbox-nav-hover-bg: rgba(255, 255, 255, 0.2);  /* Brighter on hover */
  --lightbox-caption-bg: rgba(0, 0, 0, 0.8);          /* Dark caption bg */
  --lightbox-caption-blur: blur(8px);

  /* Focus Ring - More visible on dark backgrounds */
  --focus-ring: 0 0 0 3px rgba(237, 28, 36, 0.4);     /* Stronger red glow */

  /* Transitions - No changes needed */
  --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 - No changes needed */
  --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 - No changes needed */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* Content width constraints - No changes needed */
  --prose-width: 65ch;
  --prose-width-narrow: 45ch;
  --prose-width-wide: 75ch;

  /* Medical/Healthcare specific variables - Adapted for dark theme */
  --medical-cross-color: var(--brand-red-primary);    /* Red stays vibrant */
  --medical-bg-sterile: var(--brand-gray-100);        /* Dark surface */
  --medical-border-clean: var(--brand-gray-300);      /* Visible borders */
  --medical-text-professional: var(--brand-gray-700);  /* Light text */
}

/*
 * Dark Theme Implementation Notes:
 *
 * 1. Color Inversion Strategy:
 *    - Gray scale completely inverted (50 becomes 900, 900 becomes 50)
 *    - Text colors are now light (gray-900 through gray-600)
 *    - Backgrounds are now dark (gray-50 through gray-200)
 *
 * 2. Brand Red (#ED1C24):
 *    - Kept vibrant as primary accent color
 *    - Works excellently on dark backgrounds
 *    - Shadows and glows enhanced for better visibility
 *
 * 3. Semantic Colors:
 *    - Made 1-2 shades lighter for better contrast on dark backgrounds
 *    - Background variants changed to deep, dark versions
 *    - Glow effects strengthened for visual hierarchy
 *
 * 4. Shadows:
 *    - Reduced opacity but increased spread
 *    - Changed from black-based to darker blacks with more intensity
 *    - Glow effects (red, green, yellow) made more prominent
 *
 * 5. Interactive Elements:
 *    - Hover overlays changed from dark to light (rgba white)
 *    - Active states use stronger opacity
 *    - Dividers and borders made more visible
 *
 * 6. Accessibility:
 *    - Maintained WCAG AA contrast ratios
 *    - Focus rings more visible with higher opacity
 *    - Text shadows adjusted for readability
 *
 * 7. Component-Specific:
 *    - Alerts: Dark backgrounds with colored glows
 *    - Modals: Darker overlays for better focus
 *    - Navigation: Enhanced active states
 *    - Badges: Stronger borders and backgrounds
 *    - Buttons: Light overlays on hover/active
 *
 * 8. Medical Theme:
 *    - Preserved professional appearance
 *    - Clean, clinical feel maintained
 *    - Red cross remains prominent
 */

/* 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: rgba(245, 158, 11, 0.1);
  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 (Mobile-first) */

.hero-title {
  font-size: 1.875rem;
  font-size: var(--font-size-3xl);
  font-weight: 600;
  line-height: 1.25;
  line-height: var(--line-height-tight);
  letter-spacing: -0.025em;
  letter-spacing: var(--tracking-tight);
  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 (Mobile-first) */

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

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

/* Tablet: sm breakpoint (640px+) */

@media (min-width: 640px) {
  .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);
  }
}

/* Desktop: lg breakpoint (1024px+) */

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3rem;
    font-size: var(--font-size-5xl);
  }
  .hero-title--large {
    font-size: 3.75rem;
    font-size: var(--font-size-6xl);
  }
  .hero-title--xl {
    font-size: 4.5rem;
    font-size: var(--font-size-7xl);
  }
}

/* Headings - Clean Minimalist Style (Mobile-first) */

.heading-1 {
  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.5rem 0;
  margin: 0 0 var(--spacing-6) 0;
  font-feature-settings: "kern" 1;
}

.heading-2 {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  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);
  font-feature-settings: "kern" 1;
}

.heading-3 {
  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;
}

/* Tablet: sm breakpoint (640px+) */

@media (min-width: 640px) {
  .heading-1 {
    font-size: 2.25rem;
    font-size: var(--font-size-4xl);
  }
  .heading-2 {
    font-size: 1.875rem;
    font-size: var(--font-size-3xl);
  }
  .heading-3 {
    font-size: 1.5rem;
    font-size: var(--font-size-2xl);
  }
}

.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 (Mobile-first) */

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

@media (min-width: 640px) {
  .text-lead {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
  }
}

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

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

/* Alias for .text-medium */

.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: 1.75;
  line-height: var(--line-height-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 - Mobile-first */

/* Note: Base heading sizes are for mobile (320px+)
   Desktop sizes scale up at 640px+ (sm) and 1024px+ (lg) breakpoints */

/* MM Medic Utility Classes - Semantic Spacing */

/* Content Spacing - NO MARGIN/PADDING between sections
   Spacing controlled by flex gap in <main> wrapper (base.html) */

.hero-section {
  /* No margin - spacing controlled by parent flex gap */
}

.section-spacing {
  /* No margin - spacing controlled by parent flex gap */
}

.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;
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* 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
   NOTE: .sr-only is also provided by Tailwind, but kept here for semantic clarity */

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

/* Display states - Use for JavaScript classList manipulation
   NOTE: Removed !important to avoid conflicts with Tailwind responsive utilities
   These classes are ONLY for JS-controlled visibility (classList.add/remove)
   For responsive design, use Tailwind utilities: hidden, md:flex, lg:block, etc. */

.display-block {
  display: block;
}

.display-flex {
  display: flex;
}

.display-inline {
  display: inline;
}

.display-inline-block {
  display: inline-block;
}

/* ============================================
   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;
}

/* Body modal state - prevents scroll when modal is open */

.body--modal-open {
  overflow: hidden;
  padding-right: 0;
  padding-right: var(--scrollbar-width, 0);
}

/* 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);
}

/* ============================================
   LOGO UTILITIES
   ============================================ */

/* Small logos (24px height) - for inline use with text */

.logo--sm {
  height: 24px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

/* Medium logos (32px height) */

.logo--md {
  height: 32px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

/* Large logos (48px height) */

.logo--lg {
  height: 48px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

/* 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 - JS-controlled visibility */

.hidden {
    display: none !important;
}

.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 - See _buttons.css for .btn--loading */

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

/* Component visibility helpers - controlled via JavaScript */

.notification--visible,
.alert--visible {
    display: block;
}

.notification--hidden,
.alert--hidden,
.form--hidden {
    display: none;
}

/* Button loading states - higher specificity to override component defaults */

.btn__text.loading--hidden,
.btn__loading.loading--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 - Mobile-first approach to match Tailwind
   NOTE: Use Tailwind responsive utilities (md:flex, lg:block, etc.) for layout.
   These helpers are for JS-controlled visibility only. */

/* Base (mobile): mobile--hidden visible, desktop--hidden hidden */

.desktop--hidden {
    display: none;
}

/* Tablet and up (768px+): invert visibility */

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

    .desktop--hidden {
        display: block;
    }
}

/* Print helpers */

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

/**
 * Color Utilities
 * Utility classes for text and background colors from design system variables
 */

/* Text Colors */

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

/* Font Weights */

.font-semibold {
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
}

.font-bold {
    font-weight: 700;
    font-weight: var(--font-weight-bold);
}

/* Font Sizes */

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

.text-base {
    font-size: 1rem;
    font-size: var(--font-size-base);
}

.text-lg {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
}

.text-xl {
    font-size: 1.25rem;
    font-size: var(--font-size-xl);
}

/* Background Colors */

.bg-subtle {
    background: var(--bg-subtle);
}

.bg-surface {
    background: var(--bg-surface);
}

/* Layout Utilities */

.dl-grid {
    display: grid;
    gap: 0.75rem;
    gap: var(--spacing-3);
}

.dl-grid-2 {
    display: grid;
    gap: 0.5rem;
    gap: var(--spacing-2);
}

.list-unstyled {
    list-style: none;
    padding: 0;
}

/* Text Utilities */

.pre-wrap {
    white-space: pre-wrap;
    font-family: monospace;
}

/* Card Utilities */

.card--no-shadow {
    box-shadow: none;
}

/* Toast Container */

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}

/* Payment Templates - CSP Compliance Utilities */

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

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

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

.text-info-dark {
    color: #2563EB;
    color: var(--color-info-dark);
}

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

.bg-info-light {
    background-color: rgba(59, 130, 246, 0.1);
    background-color: var(--color-info-bg);
}

.bg-gray-50 {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

.border-error-left {
    border-left: 4px solid #ED1C24;
    border-left: 4px solid var(--color-error);
}

.border-gray-200 {
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
}

.border-top-gray {
    border-top: 1px solid #E5E7EB;
    border-top: 1px solid var(--brand-gray-200);
}

.icon-flex-shrink {
    flex-shrink: 0;
    margin-top: 2px;
}

.font-mono {
    font-family: 'Courier New', monospace;
}

.font-mono-sm {
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.bg-dark-log {
    background-color: #111827;
    background-color: var(--brand-gray-900);
    color: #10B981;
    color: var(--color-success);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    border-radius: var(--radius-full);
    margin-top: 6px;
}

.status-dot--success {
    background: #10B981;
    background: var(--color-success);
}

.status-dot--warning {
    background: #F59E0B;
    background: var(--color-warning);
}

.status-dot--info {
    background: #3B82F6;
    background: var(--color-info);
}

.status-dot--error {
    background: #ED1C24;
    background: var(--color-error);
}

/* Table cell width constraints for mobile card headers */

.table__cell--constrained {
    width: 1%;
    white-space: nowrap;
}

.table__cell-content--constrained {
    min-width: 280px;
    max-width: 400px;
}

/* Toast Animations */

.toast-hidden {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all var(--transition-base);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    box-shadow: var(--shadow-xl);
}

.toast-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Cursor Utilities */

.cursor-pointer {
    cursor: pointer;
}

/**
 * REMOVED TAILWIND UTILITY DUPLICATES
 *
 * The following utilities have been removed because they duplicate Tailwind's
 * functionality and violate the project architecture (CLAUDE.md):
 *
 * Layout utilities (use Tailwind instead):
 * - .inline-flex → use Tailwind: inline-flex
 * - .items-center → use Tailwind: items-center
 * - .gap-2 → use Tailwind: gap-2
 *
 * Spacing utilities (use Tailwind instead):
 * - .py-12 → use Tailwind: py-12
 * - .mb-4 → use Tailwind: mb-4
 * - .mx-auto → use Tailwind: mx-auto
 *
 * Typography utilities (use Tailwind instead):
 * - .font-medium → use Tailwind: font-medium
 * - .text-xs → use Tailwind: text-xs
 *
 * ARCHITECTURE: Only semantic, design-system-specific utilities belong here.
 * All layout/spacing/typography utilities should come from Tailwind.
 */

/* Card Border Utilities */

.card--bordered {
    box-shadow: none;
    border: 1px solid var(--border-color);
}

/* Text Color Utilities */

.text-primary-color {
    color: var(--color-primary);
}

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

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

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

/* Additional text colors from brand palette */

.text-gray-500 {
    color: #6B7280;
    color: var(--brand-gray-500);
}

.text-gray-700 {
    color: #374151;
    color: var(--brand-gray-700);
}

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

.text-blue-600 {
    color: #3B82F6;
    color: var(--color-info);
}

.text-blue-700 {
    color: #2563EB;
    color: var(--color-info-dark);
}

.text-blue-800 {
    color: #2563EB;
    color: var(--color-info-dark);
}

.text-blue-900 {
    color: #2563EB;
    color: var(--color-info-dark);
}

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

.text-green-600 {
    color: #10B981;
    color: var(--color-success);
}

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

.text-secondary {
    color: #4B5563;
    color: var(--brand-gray-600);
}

/* Background colors - extended */

.bg-gray-100 {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
}

.bg-gray-200 {
    background-color: #E5E7EB;
    background-color: var(--brand-gray-200);
}

.bg-gray-900 {
    background-color: #111827;
    background-color: var(--brand-gray-900);
}

.bg-blue-50 {
    background-color: rgba(59, 130, 246, 0.05);
    background-color: var(--color-info-bg-light);
}

.bg-blue-100 {
    background-color: rgba(59, 130, 246, 0.1);
    background-color: var(--color-info-bg);
}

.bg-red-50 {
    background-color: #FDF2F2;
    background-color: var(--brand-red-lightest);
}

.bg-red-100 {
    background-color: rgba(237, 28, 36, 0.1);
    background-color: var(--color-error-bg);
}

.bg-green-100 {
    background-color: rgba(16, 185, 129, 0.1);
    background-color: var(--color-success-bg);
}

.bg-yellow-100 {
    background-color: rgba(245, 158, 11, 0.1);
    background-color: var(--color-warning-bg);
}

.bg-white {
    background-color: #FFFFFF;
    background-color: var(--brand-white);
}

/* Border colors - extended */

.border-blue-200 {
    border-color: rgba(59, 130, 246, 0.2);
    border-color: var(--color-info-border);
}

.border-red-200 {
    border-color: rgba(237, 28, 36, 0.2);
}

/* Border radius utilities */

.rounded-sm {
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
}

.rounded {
    border-radius: 0.25rem;
    border-radius: var(--radius-base);
}

.rounded-md {
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
}

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

.rounded-2xl {
    border-radius: 1rem;
    border-radius: var(--radius-2xl);
}

.rounded-full {
    border-radius: 9999px;
    border-radius: var(--radius-full);
}

/* Box shadow utilities */

.shadow-xs {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-xs);
}

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

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

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

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

.shadow-xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    box-shadow: var(--shadow-xl);
}

/* Hover shadow utilities */

.hover\:shadow-lg: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);
}

/* Transition utilities */

.transition-shadow {
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: box-shadow var(--transition-base);
}

/* Font weight utilities - extended */

.font-medium {
    font-weight: 500;
    font-weight: var(--font-weight-medium);
}

/* Font size utilities - extended */

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

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

/* Gradient backgrounds */

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--gradient-from-color), var(--gradient-to-color));
}

.from-red-50 {
    --gradient-from-color: var(--brand-red-lightest);
}

.to-red-100 {
    --gradient-to-color: var(--color-error-bg);
}

/**
 * Border Utilities
 *
 * Семантичні utility класи для бордерів з кольорами з дизайн-системи.
 * Використовуються для розділових ліній, акцентів, індикаторів статусу.
 */

/* Base border directions */

.border--top {
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
}

.border--right {
  border-right: 1px solid #E5E7EB;
  border-right: 1px solid var(--brand-gray-200);
}

.border--bottom {
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
}

.border--left {
  border-left: 1px solid #E5E7EB;
  border-left: 1px solid var(--brand-gray-200);
}

/* Border colors for directions */

.border--top-gray {
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
}

.border--top-light {
  border-top: 1px solid #F3F4F6;
  border-top: 1px solid var(--brand-gray-100);
}

.border--bottom-gray {
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
}

.border--bottom-light {
  border-bottom: 1px solid #F3F4F6;
  border-bottom: 1px solid var(--brand-gray-100);
}

/* Accent left borders (4px width для статусів) */

.border--error-left {
  border-left: 4px solid #ED1C24;
  border-left: 4px solid var(--color-error);
}

.border--success-left {
  border-left: 4px solid #10B981;
  border-left: 4px solid var(--color-success);
}

.border--warning-left {
  border-left: 4px solid #F59E0B;
  border-left: 4px solid var(--color-warning);
}

.border--info-left {
  border-left: 4px solid #3B82F6;
  border-left: 4px solid var(--color-info);
}

.border--primary-left {
  border-left: 4px solid #ED1C24;
  border-left: 4px solid var(--brand-red-primary);
}

/* Accent top borders */

.border--error-top {
  border-top: 4px solid #ED1C24;
  border-top: 4px solid var(--color-error);
}

.border--success-top {
  border-top: 4px solid #10B981;
  border-top: 4px solid var(--color-success);
}

.border--warning-top {
  border-top: 4px solid #F59E0B;
  border-top: 4px solid var(--color-warning);
}

.border--info-top {
  border-top: 4px solid #3B82F6;
  border-top: 4px solid var(--color-info);
}

/* Card modifiers with colored borders */

.card--error-border {
  border-left: 4px solid #ED1C24;
  border-left: 4px solid var(--color-error);
}

.card--success-border {
  border-left: 4px solid #10B981;
  border-left: 4px solid var(--color-success);
}

.card--warning-border {
  border-left: 4px solid #F59E0B;
  border-left: 4px solid var(--color-warning);
}

.card--info-border {
  border-left: 4px solid #3B82F6;
  border-left: 4px solid var(--color-info);
}

/* Divider utilities (для розділення контенту) */

.divider--horizontal {
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
  padding-bottom: 1rem;
  padding-bottom: var(--spacing-4);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.divider--vertical {
  border-right: 1px solid #E5E7EB;
  border-right: 1px solid var(--brand-gray-200);
  padding-right: 1rem;
  padding-right: var(--spacing-4);
  margin-right: 1rem;
  margin-right: var(--spacing-4);
}

/* Remove last child border (для списків) */

.border--last-none:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/**
 * Semantic Utility Classes
 * Заміна Tailwind візуальних класів на семантичні (згідно CLAUDE.md)
 *
 * ЗАБОРОНЕНО використовувати Tailwind: bg-*, text-*, border-*-color
 * ДОЗВОЛЕНО використовувати Tailwind: layout utilities (flex, grid, spacing)
 */

/* =================================================================
   STATUS BADGES
   ================================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    border: 1px solid;
    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);
}

.status-badge--success {
    background: rgba(16, 185, 129, 0.1);
    background: var(--color-success-bg);
    color: #059669;
    color: var(--color-success-dark);
    border-color: #34D399;
    border-color: var(--color-success-light);
}

.status-badge--warning {
    background: rgba(245, 158, 11, 0.1);
    background: var(--color-warning-bg);
    color: #D97706;
    color: var(--color-warning-dark);
    border-color: #FBBF24;
    border-color: var(--color-warning-light);
}

.status-badge--error {
    background: rgba(237, 28, 36, 0.1);
    background: var(--color-error-bg);
    color: #D11920;
    color: var(--color-error-dark);
    border-color: #F04951;
    border-color: var(--color-error-light);
}

.status-badge--info {
    background: rgba(59, 130, 246, 0.1);
    background: var(--color-info-bg);
    color: #2563EB;
    color: var(--color-info-dark);
    border-color: #60A5FA;
    border-color: var(--color-info-light);
}

.status-badge--neutral {
    background: #F3F4F6;
    background: var(--brand-gray-100);
    color: #1F2937;
    color: var(--brand-gray-800);
    border-color: #D1D5DB;
    border-color: var(--brand-gray-300);
}

.status-badge--primary {
    background: #FDF2F2;
    background: var(--brand-red-lightest);
    color: #ED1C24;
    color: var(--brand-red-primary);
    border-color: #F04951;
    border-color: var(--brand-red-light);
}

/* =================================================================
   TEXT COLORS (Semantic)
   ================================================================= */

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

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

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

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

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

.text-muted {
    color: #4B5563;
    color: var(--brand-gray-600);
}

.text-light {
    color: #6B7280;
    color: var(--brand-gray-500);
}

.text-dark {
    color: #111827;
    color: var(--brand-gray-900);
}

/* =================================================================
   BACKGROUND COLORS (Semantic)
   ================================================================= */

.bg-success {
    background-color: rgba(16, 185, 129, 0.1);
    background-color: var(--color-success-bg);
}

.bg-warning {
    background-color: rgba(245, 158, 11, 0.1);
    background-color: var(--color-warning-bg);
}

.bg-error {
    background-color: rgba(237, 28, 36, 0.1);
    background-color: var(--color-error-bg);
}

.bg-info {
    background-color: rgba(59, 130, 246, 0.1);
    background-color: var(--color-info-bg);
}

.bg-light {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

.bg-lighter {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
}

.bg-white {
    background-color: #FFFFFF;
    background-color: var(--brand-white);
}

/* =================================================================
   BORDER COLORS (Semantic)
   ================================================================= */

.border-success {
    border-color: #34D399;
    border-color: var(--color-success-light);
}

.border-warning {
    border-color: #FBBF24;
    border-color: var(--color-warning-light);
}

.border-error {
    border-color: #F04951;
    border-color: var(--color-error-light);
}

.border-info {
    border-color: #60A5FA;
    border-color: var(--color-info-light);
}

.border-light {
    border-color: #E5E7EB;
    border-color: var(--brand-gray-200);
}

.border-lighter {
    border-color: #F3F4F6;
    border-color: var(--brand-gray-100);
}

/* =================================================================
   ALERT BOXES
   Note: Currently unused in templates. Consider using existing .alert
   component from design-system/patterns/_alerts.css instead.
   ================================================================= */

.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    gap: var(--spacing-3);
    padding: 1rem;
    padding: var(--spacing-4);
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid;
}

.alert-box__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.alert-box__content {
    flex: 1;
    min-width: 0;
}

.alert-box__title {
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
}

.alert-box__text {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

.alert-box--success {
    background: rgba(16, 185, 129, 0.1);
    background: var(--color-success-bg);
    color: #059669;
    color: var(--color-success-dark);
    border-color: #34D399;
    border-color: var(--color-success-light);
}

.alert-box--warning {
    background: rgba(245, 158, 11, 0.1);
    background: var(--color-warning-bg);
    color: #D97706;
    color: var(--color-warning-dark);
    border-color: #FBBF24;
    border-color: var(--color-warning-light);
}

.alert-box--error {
    background: rgba(237, 28, 36, 0.1);
    background: var(--color-error-bg);
    color: #D11920;
    color: var(--color-error-dark);
    border-color: #F04951;
    border-color: var(--color-error-light);
}

.alert-box--info {
    background: rgba(59, 130, 246, 0.1);
    background: var(--color-info-bg);
    color: #2563EB;
    color: var(--color-info-dark);
    border-color: #60A5FA;
    border-color: var(--color-info-light);
}

/* =================================================================
   METRIC CHANGE INDICATORS
   ================================================================= */

.metric-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    gap: var(--spacing-1);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
}

.metric-change__icon {
    width: 16px;
    height: 16px;
}

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

/* =================================================================
   HIGHLIGHTED TEXT / LABELS
   ================================================================= */

.text-highlight {
    padding: 0.25rem 0.5rem;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
}

.text-highlight--success {
    background: rgba(16, 185, 129, 0.1);
    background: var(--color-success-bg);
    color: #059669;
    color: var(--color-success-dark);
}

.text-highlight--warning {
    background: rgba(245, 158, 11, 0.1);
    background: var(--color-warning-bg);
    color: #D97706;
    color: var(--color-warning-dark);
}

.text-highlight--error {
    background: rgba(237, 28, 36, 0.1);
    background: var(--color-error-bg);
    color: #D11920;
    color: var(--color-error-dark);
}

.text-highlight--info {
    background: rgba(59, 130, 246, 0.1);
    background: var(--color-info-bg);
    color: #2563EB;
    color: var(--color-info-dark);
}

/* =================================================================
   SECTION BACKGROUNDS
   ================================================================= */

.section-bg {
    background-color: #FFFFFF;
    background-color: var(--brand-white);
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
}

.section-bg--light {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

.section-bg--neutral {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
}

/* =================================================================
   DIVIDERS / SEPARATORS
   ================================================================= */

.divider {
    height: 1px;
    background-color: #E5E7EB;
    background-color: var(--brand-gray-200);
    border: none;
}

.divider--light {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
}

.divider--dark {
    background-color: #D1D5DB;
    background-color: var(--brand-gray-300);
}

/* =================================================================
   HOVER STATES (Semantic)
   ================================================================= */

.hover-bg-light:hover {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

.hover-bg-lighter:hover {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
}

.hover-text-info:hover {
    color: #2563EB;
    color: var(--color-info-dark);
}

.hover-text-success:hover {
    color: #059669;
    color: var(--color-success-dark);
}

.hover-text-warning:hover {
    color: #D97706;
    color: var(--color-warning-dark);
}

.hover-text-error:hover {
    color: #D11920;
    color: var(--color-error-dark);
}

/* =================================================================
   UTILITY COMBINATIONS (Common patterns)
   ================================================================= */

/* Success box (green background with border) */

.success-box {
    background: rgba(16, 185, 129, 0.1);
    background: var(--color-success-bg);
    border: 1px solid #34D399;
    border: 1px solid var(--color-success-light);
    color: #059669;
    color: var(--color-success-dark);
    padding: 0.75rem;
    padding: var(--spacing-3);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
}

/* Warning box (yellow background with border) */

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    background: var(--color-warning-bg);
    border: 1px solid #FBBF24;
    border: 1px solid var(--color-warning-light);
    color: #D97706;
    color: var(--color-warning-dark);
    padding: 0.75rem;
    padding: var(--spacing-3);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
}

/* Error box (red background with border) */

.error-box {
    background: rgba(237, 28, 36, 0.1);
    background: var(--color-error-bg);
    border: 1px solid #F04951;
    border: 1px solid var(--color-error-light);
    color: #D11920;
    color: var(--color-error-dark);
    padding: 0.75rem;
    padding: var(--spacing-3);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
}

/* Note: .info-box is defined in design-system/patterns/_admin.css (lines 1292-1309) */

/* with additional modifiers (--sm, --lg) and comprehensive implementation */

/* =================================================================
   CONTENT DISPLAY UTILITIES
   ================================================================= */

.content-preview {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
}

/* =================================================================
   RESPONSIVE UTILITIES - Mobile-first
   ================================================================= */

/* Base (mobile): mobile-only visible, mobile-hidden hidden */

.mobile-only {
    display: block;
}

.mobile-hidden {
    display: none;
}

/* Tablet and up (640px+): invert visibility */

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

    .mobile-hidden {
        display: block;
    }
}

/* =================================================================
   LEGACY CLEANUP NOTES
   ================================================================= */

/**
 * ЗАБОРОНЕНІ класи (Tailwind візуальні):
 * - bg-green-50, bg-red-100, bg-blue-200, etc.
 * - text-green-600, text-red-800, etc.
 * - border-green-200, border-red-300, etc.
 *
 * Використовуйте замість них:
 * - .bg-success, .bg-warning, .bg-error, .bg-info
 * - .text-success, .text-warning, .text-error, .text-info
 * - .border-success, .border-warning, .border-error, .border-info
 *
 * ДОЗВОЛЕНІ Tailwind класи (layout):
 * - flex, grid, gap-*, p-*, m-*, w-*, h-*, etc.
 */

/* Animation Utilities - CSP-Compliant
 * Universal animation classes for transitions and effects
 */

/* Fade animations */

.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

/* Modal animations */

.modal--opening {
  opacity: 0;
}

.modal--closing {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Slide animations */

.slide-up {
  transform: translateY(-10px);
  transition: transform 0.3s ease-out;
}

.slide-down {
  transform: translateY(10px);
  transition: transform 0.3s ease-out;
}

.slide-left {
  transform: translateX(-10px);
  transition: transform 0.3s ease-out;
}

.slide-right {
  transform: translateX(10px);
  transition: transform 0.3s ease-out;
}

/* Scale animations */

.scale-in {
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.scale-out {
  transform: scale(1.05);
  opacity: 0;
  transition: transform 0.2s ease-in, opacity 0.2s ease-in;
}

/* Rotate animations */

.rotate-90 {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.rotate-270 {
  transform: rotate(270deg);
  transition: transform 0.3s ease;
}

/* Combined animations */

.fade-slide-up {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.fade-slide-down {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Loading states */

.loading-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Shimmer effect for loading skeletons */

.loading-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Bounce animations */

.bounce-in {
  animation: bounce-in 0.5s ease-out;
}

@keyframes bounce-in {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Shake animation for errors */

.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Utility classes for animation control
   !important is justified here - these are utility classes designed to override
   any existing animations/transitions regardless of specificity (CLAUDE.md compliant) */

.animate-none {
  animation: none !important;
  transition: none !important;
}

.animate-fast {
  animation-duration: 0.15s !important;
  transition-duration: 0.15s !important;
}

.animate-slow {
  animation-duration: 0.5s !important;
  transition-duration: 0.5s !important;
}

/* Pointer events utilities */

.pointer-events-none {
  pointer-events: none;
}

.pointer-events-auto {
  pointer-events: auto;
}

/* Opacity utilities */

.opacity-0 {
  opacity: 0;
}

.opacity-60 {
  opacity: 0.6;
}

.opacity-100 {
  opacity: 1;
}

/* 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;
  gap: 0.5rem;
  gap: var(--spacing-2);
  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);
}

/* Export - Success Green (for export buttons) */

.btn--export {
  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--export: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--export: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: rgba(16, 185, 129, 0.1);
  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: rgba(237, 28, 36, 0.1);
  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 - Higher specificity without !important */

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

/* Error State - Higher specificity without !important */

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

/* Disabled State */

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

/* Icon Buttons */

.btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  padding: var(--spacing-2);
  min-width: 36px;
  min-height: 36px;
}

.btn--icon.btn--xs {
  padding: 0.25rem;
  padding: var(--spacing-1);
  min-width: 28px;
  min-height: 28px;
}

.btn--icon.btn--sm {
  padding: 0.5rem;
  padding: var(--spacing-2);
  min-width: 32px;
  min-height: 32px;
}

.btn--icon.btn--md {
  padding: 0.5rem;
  padding: var(--spacing-2);
  min-width: 36px;
  min-height: 36px;
}

.btn--icon.btn--lg {
  padding: 0.75rem;
  padding: var(--spacing-3);
  min-width: 44px;
  min-height: 44px;
}

.btn--icon.btn--xl {
  padding: 1rem;
  padding: var(--spacing-4);
  min-width: 48px;
  min-height: 48px;
}

/* Block button - full width */

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

/* Icon Only Buttons (square, no text) */

.btn--icon-only {
  padding: 0.5rem;
  padding: var(--spacing-2); /* 8px - default/md size */
  aspect-ratio: 1;
}

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

.btn--icon-only.btn--md {
  padding: 0.5rem;
  padding: var(--spacing-2); /* 8px */
}

.btn--icon-only.btn--lg {
  padding: 0.75rem;
  padding: var(--spacing-3); /* 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 Button - Mobile-first */

/* Base (mobile): full width, larger touch target */

.btn--responsive {
  padding: 12px 16px;
  font-size: 16px;
  width: 100%;
}

/* Tablet and up (640px+): reset to default button behavior */

@media (min-width: 640px) {
  .btn--responsive {
    padding: 0.5rem 1rem;
    padding: var(--spacing-2) var(--spacing-4);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    width: auto;
  }
}

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

/* ============================================
   CATEGORY BUTTONS - Mobile-first
   ============================================ */

/* Base (mobile): icon-only compact buttons */

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

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

/* Mobile: show mobile-only icons */

.btn--category .btn__icon--mobile-only {
  display: inline-flex;
}

/* Mobile: hide desktop text, show mobile text */

.btn__text {
  display: inline;
}

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

.btn--category .btn__text--mobile {
  display: inline;
}

.btn__loading {
  display: inline;
}

/* Loading state controlled via .loading--hidden helper class from _helpers.css */

/* Tablet and up (640px+): show text, hide mobile icons */

@media (min-width: 640px) {
  .btn--category {
    padding: 0.5rem 1rem;
    padding: var(--spacing-2) var(--spacing-4);
    min-width: auto;
    min-height: auto;
    justify-content: flex-start;
  }

  .btn--category .btn__icon--mobile-only {
    display: none;
  }

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

  /* Show text on desktop */
  .btn--category .btn__text,
  .btn--category .btn__text--desktop {
    display: inline;
  }
}

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

/* ============================================
   ACTIVE STATE MODIFIER
   ============================================ */

/* Active button state - used for toggleable buttons like tube type filter */

.btn--active {
  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(-1px);
}

/* Active state variants for soft buttons */

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

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

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

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

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

/* Base Input */

.input {
  display: block;
  width: 100%;
  padding: 0.5rem;
  padding: var(--spacing-2); /* Mobile-first: compact */
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 400;
  font-weight: var(--font-weight-normal);
  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: 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 - Higher specificity without !important */

textarea.textarea,
textarea.input,
textarea.form-field__textarea,
.textarea {
  resize: vertical;
  min-height: 80px;
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  width: 100%;
}

.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 Container */

.search-input {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-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;
  z-index: 1;
}

.search-input__field {
  padding-left: 2.5rem;
  padding-left: var(--spacing-10);
  width: 100%;
}

.search-input__field:focus ~ .search-input__icon,
.search-input__field:focus + .search-input__icon {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Search Input with Icon Button on Right */

.search-input--icon-right .search-input__icon {
  left: auto;
  right: 0.25rem;
  right: var(--spacing-1);
  pointer-events: auto;
}

.search-input--icon-right .search-input__field {
  padding-left: 1rem;
  padding-left: var(--spacing-4);
  padding-right: calc(2.5rem + 0.5rem);
  padding-right: calc(var(--spacing-10) + var(--spacing-2));
}

.search-input__button {
  position: absolute;
  right: 0.25rem;
  right: var(--spacing-1);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

/* Search Input (legacy class) */

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

.form-field--inline {
  margin-bottom: 0;
}

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

/* Inline required marker (for manual placement) */

.field-required-marker {
  color: #ED1C24;
  color: var(--color-error);
  margin-left: 0.25rem;
  margin-left: var(--spacing-1);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

/* Form Field Input */

.form-field__input {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  padding: var(--spacing-2) var(--spacing-4);
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 400;
  font-weight: var(--font-weight-normal);
  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: 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;
}

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

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

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

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

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

/* Form Field Select */

.form-field__select {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  padding: var(--spacing-2) var(--spacing-4);
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 400;
  font-weight: var(--font-weight-normal);
  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: 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;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-position: right var(--spacing-3) center;
  padding-right: 2rem;
  padding-right: var(--spacing-8);
}

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

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

.form-field__select: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;
}

/* Form Field Textarea */

.form-field__textarea {
  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: 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.75rem;
  border-radius: var(--radius-xl);
  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;
  resize: vertical;
  min-height: 80px;
}

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

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

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

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

.form-field__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;
  resize: none;
}

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

/* Compact select variant (for pagination, filters) */

select.input--sm {
  background-position: right 0.5rem center;
  background-position: right var(--spacing-2) center;
  background-size: 1.25em;
  padding-right: 2rem;
  padding-right: var(--spacing-8);
}

/* Code input style (monospace font for codes) */

.input--code {
  font-family: 'Courier New', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 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);
}

/* ==========================================================================
   Radio Buttons
   ========================================================================== */

/* Radio Button Container */

.radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  min-height: 24px;
}

/* Hidden Native Input */

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

/* Custom Radio Circle */

.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: 9999px;
  border-radius: var(--radius-full);
  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 */

.radio__label {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 400;
  font-weight: var(--font-weight-normal);
  color: #111827;
  color: var(--brand-gray-900);
  line-height: 1.5;
  line-height: var(--line-height-normal);
  cursor: pointer;
}

/* Hover State */

.radio:hover .radio__circle {
  border-color: #9CA3AF;
  border-color: var(--brand-gray-400);
}

/* Checked State */

.radio__input:checked + .radio__circle {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
}

.radio__input:checked + .radio__circle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

/* Focus State */

.radio__input:focus + .radio__circle {
  outline: 2px solid #ED1C24;
  outline: 2px solid var(--brand-red-primary);
  outline-offset: 2px;
}

/* Disabled State */

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

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

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

/* Radio Group */

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

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

/* Radio Sizes */

.radio--sm .radio__circle {
  width: 16px;
  height: 16px;
}

.radio--sm .radio__input:checked + .radio__circle::after {
  width: 8px;
  height: 8px;
}

.radio--sm .radio__label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.radio--lg .radio__circle {
  width: 24px;
  height: 24px;
}

.radio--lg .radio__input:checked + .radio__circle::after {
  width: 12px;
  height: 12px;
}

.radio--lg .radio__label {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
}

/* Radio States */

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

.radio--error .radio__input:checked + .radio__circle {
  border-color: #ED1C24;
  border-color: var(--color-error);
}

.radio--error .radio__input:checked + .radio__circle::after {
  background: #ED1C24;
  background: var(--color-error);
}

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

.radio--success .radio__input:checked + .radio__circle {
  border-color: #10B981;
  border-color: var(--color-success);
}

.radio--success .radio__input:checked + .radio__circle::after {
  background: #10B981;
  background: var(--color-success);
}

/* ==========================================================================
   Input Groups with Addons
   ========================================================================== */

/* Input Group Container */

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

.input-group .form-field__input,
.input-group .input {
  flex: 1;
  min-width: 0;
}

/* Input Group Addon */

.input-group__addon {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  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);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  white-space: nowrap;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

/* Left Addon */

.input-group__addon--left {
  border-right: none;
  border-radius: 9999px 0 0 9999px;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.input-group__addon--left + .form-field__input,
.input-group__addon--left + .input {
  border-radius: 0 9999px 9999px 0;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

/* Right Addon */

.input-group__addon--right {
  border-left: none;
  border-radius: 0 9999px 9999px 0;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.form-field__input + .input-group__addon--right,
.input + .input-group__addon--right {
  border-radius: 0 9999px 9999px 0;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.input-group .form-field__input:has(+ .input-group__addon--right),
.input-group .input:has(+ .input-group__addon--right) {
  border-radius: 9999px 0 0 9999px;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
}

/* Addon Icons */

.input-group__addon .icon {
  width: 20px;
  height: 20px;
  color: #6B7280;
  color: var(--brand-gray-500);
}

/* Attached Input Group (no gap between elements) */

.input-group--attached .form-field__input,
.input-group--attached .input {
  border-radius: 0;
}

.input-group--attached .input-group__addon--left {
  border-radius: 0.5rem 0 0 0.5rem;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.input-group--attached .input-group__addon--right {
  border-radius: 0 0.5rem 0.5rem 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* Focus State for Input Groups */

.input-group .form-field__input:focus,
.input-group .input:focus {
  z-index: 1;
}

.input-group .form-field__input:focus ~ .input-group__addon,
.input-group .input:focus ~ .input-group__addon {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
}

/* Button Addon */

.input-group__addon--button {
  padding: 0;
  background: transparent;
  border: none;
}

.input-group__addon--button .btn {
  border-radius: 0 9999px 9999px 0;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  height: 100%;
}

.input-group__addon--left.input-group__addon--button .btn {
  border-radius: 9999px 0 0 9999px;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
}

/* Addon Sizes */

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

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

/* Addon States */

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

.input-group__addon--success {
  background: #34D399;
  background: var(--color-success-light);
  color: #10B981;
  color: var(--color-success);
  border-color: #10B981;
  border-color: var(--color-success);
}

.input-group__addon--warning {
  background: #FBBF24;
  background: var(--color-warning-light);
  color: #F59E0B;
  color: var(--color-warning);
  border-color: #F59E0B;
  border-color: var(--color-warning);
}

.input-group__addon--error {
  background: #F04951;
  background: var(--color-error-light);
  color: #ED1C24;
  color: var(--color-error);
  border-color: #ED1C24;
  border-color: var(--color-error);
}

/* Multiple Addons */

.input-group .input-group__addon + .input-group__addon {
  border-left: 1px solid #E5E7EB;
  border-left: 1px solid var(--brand-gray-200);
}

/* ============================================
   RESPONSIVE - Mobile-first
   ============================================ */

/* Base (mobile): compact inputs already applied above */

.radio-group--inline {
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

/* Tablet and up (640px+): larger inputs */

@media (min-width: 640px) {
  .input {
    padding: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
  }

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

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

/* ==========================================================================
   Result State (for calculators)
   ========================================================================== */

.form-field__input--result {
  background-color: rgba(16, 185, 129, 0.1);
  background-color: var(--color-success-bg);
  border-color: #10B981;
  border-color: var(--color-success);
  color: #10B981;
  color: var(--color-success);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

[data-theme="dark"] .form-field__input--result {
  background-color: rgba(16, 185, 129, 0.1);
  background-color: var(--color-success-bg);
  border-color: #10B981;
  border-color: var(--color-success);
  color: #34D399;
  color: var(--color-success-light);
}

/* 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: 1.5;
  line-height: var(--line-height-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: translate(-50%, -60%) rotate(45deg) scale(0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -60%) rotate(45deg) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -60%) 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: 44px; /* Mobile-first: compact */
  height: 26px; /* Mobile-first: compact */
  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);
  border: 2px solid transparent;
}

.toggle__slider {
  position: absolute;
  top: 2px;
  left: 1px;
  width: 18px; /* Mobile-first: compact */
  height: 18px; /* Mobile-first: compact */
  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: 1.5;
  line-height: var(--line-height-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 - Accessibility */

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

.toggle__input:focus-visible + .toggle__switch {
  outline: 2px solid #ED1C24;
  outline: 2px solid var(--brand-red-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.1);
}

.toggle__input:focus-visible:checked + .toggle__switch {
  outline: 2px solid #D11920;
  outline: 2px solid var(--brand-red-dark);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.15);
}

/* 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);
}

/* 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 - Mobile-first
   ============================================ */

/* Note: Base toggle styles above use desktop sizes.
   Mobile-first overrides apply compact sizes as base,
   then scale up on larger screens. */

/* Tablet and up (640px+): larger toggles */

@media (min-width: 640px) {
  .toggle__switch {
    width: 48px;
    height: 29px;
  }

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

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

  .toggle--labeled .toggle__switch {
    width: 64px;
    height: 34px;
  }

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

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

  .toggle-group--inline {
    flex-direction: row;
  }
}

/* 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);
  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);
}

/* Language Toggle - Same background style as theme toggle */

.toggle--language .toggle__switch {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.toggle--language .toggle__input:checked + .toggle__switch {
  background: #374151;
  background: var(--brand-gray-700);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Hover effects for language toggle - same as theme toggle */

.toggle--language:hover .toggle__switch {
  background: #E5E7EB;
  background: var(--brand-gray-200);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.toggle--language:hover .toggle__input:checked + .toggle__switch {
  background: #1F2937;
  background: var(--brand-gray-800);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* MM Medic Range Slider Component */

/* Modern styled range input with brand colors */

/*
 * NOTE: CSS custom properties (variables) are NOT reliably supported
 * in pseudo-elements like ::-webkit-slider-thumb and ::-moz-range-thumb
 * across all browsers. Therefore, we use hardcoded hex color values
 * (#ED1C24, #C41519) in these selectors for maximum compatibility.
 *
 * Brand colors used:
 * - Primary: #ED1C24 (--brand-red-primary)
 * - Dark: #C41519 (close to --brand-red-darker)
 */

/* Container for range slider with value display */

.range-slider {
  display: flex;
  align-items: center;
  gap: 1rem;
  gap: var(--spacing-4);
  width: 100%;
}

.range-slider__track {
  flex: 1;
  position: relative;
  min-width: 200px;
}

/* Base range input styling - Reset ALL browser defaults */

.range-slider__input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: #E5E7EB;
  background: var(--brand-gray-200);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: none;
}

/* Webkit (Chrome, Safari, Edge) - Track */

.range-slider__input::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: #E5E7EB;
  background: var(--brand-gray-200);
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

/* Webkit - Thumb */

.range-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  background: #ED1C24;
  background: linear-gradient(135deg, #ED1C24 0%, #C41519 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 3px solid #fff;
  margin-top: -8px;
  -webkit-transition: transform 0.15s ease, box-shadow 0.15s ease;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.range-slider__input::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.4);
}

.range-slider__input::-webkit-slider-thumb:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(237, 28, 36, 0.5);
}

/* Firefox - Track */

.range-slider__input::-moz-range-track {
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: #E5E7EB;
  background: var(--brand-gray-200);
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

/* Firefox - Thumb */

.range-slider__input::-moz-range-thumb {
  -moz-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  background: #ED1C24;
  background: linear-gradient(135deg, #ED1C24 0%, #C41519 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 3px solid #fff;
  -moz-transition: transform 0.15s ease, box-shadow 0.15s ease;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.range-slider__input::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.4);
}

/* Firefox - Progress (filled portion) */

.range-slider__input::-moz-range-progress {
  height: 10px;
  background: linear-gradient(90deg, #ED1C24 0%, #C41519 100%);
  border-radius: 5px 0 0 5px;
}

/* MS Edge legacy */

.range-slider__input::-ms-track {
  width: 100%;
  height: 10px;
  background: transparent;
  border-color: transparent;
  color: transparent;
  cursor: pointer;
}

.range-slider__input::-ms-fill-lower {
  background: linear-gradient(90deg, #ED1C24 0%, #C41519 100%);
  border-radius: 5px;
}

.range-slider__input::-ms-fill-upper {
  background: #E5E7EB;
  background: var(--brand-gray-200);
  border-radius: 5px;
}

.range-slider__input::-ms-thumb {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #ED1C24 0%, #C41519 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 3px solid #fff;
  margin-top: 0;
}

/* Focus state */

.range-slider__input:focus {
  outline: none;
}

.range-slider__input:focus-visible::-webkit-slider-thumb {
  outline: 2px solid #ED1C24;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.15);
}

.range-slider__input:focus-visible::-moz-range-thumb {
  outline: 2px solid #ED1C24;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.15);
}

/* Value display */

.range-slider__value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  flex-shrink: 0;
}

.range-slider__value-input {
  width: 70px;
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  text-align: center;
  background: #FFFFFF;
  background: var(--brand-white);
  transition: all 0.15s ease;
}

.range-slider__value-input:focus {
  outline: none;
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.15);
  box-shadow: var(--focus-ring);
}

.range-slider__value-unit {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #4B5563;
  color: var(--brand-gray-600);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

/* Labels below slider */

.range-slider__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
  padding: 0 0.25rem;
  padding: 0 var(--spacing-1);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #6B7280;
  color: var(--brand-gray-500);
}

/* Size variants */

.range-slider--sm .range-slider__input,
.range-slider--sm .range-slider__input::-webkit-slider-runnable-track,
.range-slider--sm .range-slider__input::-moz-range-track {
  height: 6px;
}

.range-slider--sm .range-slider__input::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-width: 2px;
}

.range-slider--sm .range-slider__input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.range-slider--lg .range-slider__input,
.range-slider--lg .range-slider__input::-webkit-slider-runnable-track,
.range-slider--lg .range-slider__input::-moz-range-track {
  height: 12px;
}

.range-slider--lg .range-slider__input::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: -9px;
  border-width: 4px;
}

.range-slider--lg .range-slider__input::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-width: 4px;
}

/* Disabled state */

.range-slider--disabled .range-slider__input {
  cursor: not-allowed;
  opacity: 0.5;
}

.range-slider--disabled .range-slider__input::-webkit-slider-thumb {
  background: #9CA3AF;
  background: var(--brand-gray-400);
  cursor: not-allowed;
}

.range-slider--disabled .range-slider__input::-moz-range-thumb {
  background: #9CA3AF;
  background: var(--brand-gray-400);
  cursor: not-allowed;
}

/* Responsive - larger slider on desktop */

@media (min-width: 640px) {
  .range-slider__track {
    min-width: 300px;
  }

  .range-slider__value-input {
    width: 80px;
  }
}

@media (min-width: 1024px) {
  .range-slider__track {
    min-width: 400px;
  }
}

/* MM Medic 3-Position Language Slider Component */

/* Container */

.language-slider {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Track */

.language-slider__track {
  position: relative;
  display: flex;
  align-items: center;
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border-radius: 40px;
  padding: 3px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

/* Labels Container */

.language-slider__labels {
  position: relative;
  display: flex;
  gap: 0;
  z-index: 2;
}

/* Base (mobile): Individual Label (clickable area) */

.language-slider__label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 30px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  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);
  z-index: 2;
}

/* Hide radio inputs */

.language-slider__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Base (mobile): Slider (animated indicator) */

.language-slider__slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 40px;
  height: 30px;
  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;
  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);
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-fast);
  z-index: 1;
}

/* Base (mobile): Slider positions (40px label width) */

.language-slider__input[value="uk"]:checked ~ .language-slider__slider {
  transform: translateX(0);
}

.language-slider__input[value="ru"]:checked ~ .language-slider__slider {
  transform: translateX(40px);
}

.language-slider__input[value="en"]:checked ~ .language-slider__slider {
  transform: translateX(80px);
}

/* Active label text color */

.language-slider__input[value="uk"]:checked ~ .language-slider__labels .language-slider__label[data-lang="uk"],
.language-slider__input[value="ru"]:checked ~ .language-slider__labels .language-slider__label[data-lang="ru"],
.language-slider__input[value="en"]:checked ~ .language-slider__labels .language-slider__label[data-lang="en"] {
  color: #FFFFFF;
  color: var(--brand-white);
}

/* Hover effects */

.language-slider:hover .language-slider__track {
  background: #E5E7EB;
  background: var(--brand-gray-200);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.language-slider__label:hover {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.language-slider__input:checked ~ .language-slider__labels .language-slider__label:hover {
  color: #FFFFFF;
  color: var(--brand-white);
}

/* Small variant for mobile */

.language-slider--sm .language-slider__track {
  padding: 2px;
}

.language-slider--sm .language-slider__label {
  width: 38px;
  height: 28px;
  font-size: 10px;
}

.language-slider--sm .language-slider__slider {
  width: 38px;
  height: 28px;
  top: 2px;
  left: 2px;
}

.language-slider--sm .language-slider__input[value="uk"]:checked ~ .language-slider__slider {
  transform: translateX(0);
}

.language-slider--sm .language-slider__input[value="ru"]:checked ~ .language-slider__slider {
  transform: translateX(38px);
}

.language-slider--sm .language-slider__input[value="en"]:checked ~ .language-slider__slider {
  transform: translateX(76px);
}

/* Tablet and up (640px+): larger language slider */

@media (min-width: 640px) {
  .language-slider__label {
    width: 44px;
    height: 32px;
    font-size: 11px;
  }

  .language-slider__slider {
    width: 44px;
    height: 32px;
  }

  .language-slider__input[value="uk"]:checked ~ .language-slider__slider {
    transform: translateX(0);
  }

  .language-slider__input[value="ru"]:checked ~ .language-slider__slider {
    transform: translateX(44px);
  }

  .language-slider__input[value="en"]:checked ~ .language-slider__slider {
    transform: translateX(88px);
  }
}

/* MM Medic 3-Position Tube Type Slider Component */

/* Three-color slider: PRF (red), PRP (blue), PPP (green) */

/* Container */

.tube-type-slider {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  width: 100%;
}

/* Base (mobile): Track */

.tube-type-slider__track {
  position: relative;
  display: flex;
  align-items: center;
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border-radius: 40px;
  padding: 3px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  width: 100%;
}

/* Labels Container */

.tube-type-slider__labels {
  position: relative;
  display: flex;
  gap: 0;
  z-index: 2;
  width: 100%;
}

/* Base (mobile): Individual Label (clickable area) */

.tube-type-slider__label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 46px;
  padding: 3px 6px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  z-index: 2;
}

/* Base (mobile): Label text styles */

.tube-type-slider__label-main {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #374151;
  color: var(--brand-gray-700);
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast);
  line-height: 1;
  margin-bottom: 2px;
}

.tube-type-slider__label-sub {
  font-size: 10px;
  font-weight: 500;
  color: #6B7280;
  color: var(--brand-gray-500);
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast);
  line-height: 1;
}

/* Hide radio inputs */

.tube-type-slider__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Base (mobile): Slider (animated indicator) */

.tube-type-slider__slider {
  position: absolute;
  top: 3px;
  left: 3px;
  height: 46px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  z-index: 1;
  width: calc(33.33% - 6px / 3);
}

/* PRF - Red gradient */

.tube-type-slider__input[value="PRF"]:checked ~ .tube-type-slider__slider {
  background: linear-gradient(135deg, #ED1C24 0%, #C41519 100%);
  box-shadow: 0 2px 12px rgba(237, 28, 36, 0.3);
  transform: translateX(0);
}

/* Base (mobile): PRP - Blue gradient */

.tube-type-slider__input[value="PRP"]:checked ~ .tube-type-slider__slider {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
  transform: translateX(calc(100% + 3px));
}

/* Base (mobile): PPP - Green gradient */

.tube-type-slider__input[value="PPP"]:checked ~ .tube-type-slider__slider {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
  transform: translateX(calc(200% + 6px));
}

/* Active label text color - White when selected */

.tube-type-slider__input[value="PRF"]:checked ~ .tube-type-slider__labels .tube-type-slider__label[data-tube-type="PRF"] .tube-type-slider__label-main,
.tube-type-slider__input[value="PRF"]:checked ~ .tube-type-slider__labels .tube-type-slider__label[data-tube-type="PRF"] .tube-type-slider__label-sub,
.tube-type-slider__input[value="PRP"]:checked ~ .tube-type-slider__labels .tube-type-slider__label[data-tube-type="PRP"] .tube-type-slider__label-main,
.tube-type-slider__input[value="PRP"]:checked ~ .tube-type-slider__labels .tube-type-slider__label[data-tube-type="PRP"] .tube-type-slider__label-sub,
.tube-type-slider__input[value="PPP"]:checked ~ .tube-type-slider__labels .tube-type-slider__label[data-tube-type="PPP"] .tube-type-slider__label-main,
.tube-type-slider__input[value="PPP"]:checked ~ .tube-type-slider__labels .tube-type-slider__label[data-tube-type="PPP"] .tube-type-slider__label-sub {
  color: #FFFFFF;
  color: var(--brand-white);
}

/* Hover effects */

.tube-type-slider:hover .tube-type-slider__track {
  background: #E5E7EB;
  background: var(--brand-gray-200);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Hover colors for non-selected labels */

.tube-type-slider__label[data-tube-type="PRF"]:hover .tube-type-slider__label-main {
  color: #ED1C24;
}

.tube-type-slider__label[data-tube-type="PRP"]:hover .tube-type-slider__label-main {
  color: #3B82F6;
}

.tube-type-slider__label[data-tube-type="PPP"]:hover .tube-type-slider__label-main {
  color: #10B981;
}

/* Keep white on hover when selected */

.tube-type-slider__input:checked ~ .tube-type-slider__labels .tube-type-slider__label:hover .tube-type-slider__label-main,
.tube-type-slider__input:checked ~ .tube-type-slider__labels .tube-type-slider__label:hover .tube-type-slider__label-sub {
  color: #FFFFFF;
  color: var(--brand-white);
}

/* Tablet and up (640px+): larger sizes */

@media (min-width: 640px) {
  .tube-type-slider__track {
    padding: 4px;
  }

  .tube-type-slider__label {
    height: 50px;
    padding: 4px 8px;
  }

  .tube-type-slider__slider {
    height: 50px;
    top: 4px;
    left: 4px;
    width: calc(33.33% - 8px / 3);
  }

  .tube-type-slider__label-main {
    font-size: 15px;
  }

  .tube-type-slider__label-sub {
    font-size: 11px;
  }

  .tube-type-slider__input[value="PRP"]:checked ~ .tube-type-slider__slider {
    transform: translateX(calc(100% + 4px));
  }

  .tube-type-slider__input[value="PPP"]:checked ~ .tube-type-slider__slider {
    transform: translateX(calc(200% + 8px));
  }
}

/* Desktop (1024px+): full sizes */

@media (min-width: 1024px) {
  .tube-type-slider__label {
    height: 52px;
  }

  .tube-type-slider__slider {
    height: 52px;
  }

  .tube-type-slider__label-main {
    font-size: 16px;
  }
}

/* MM Medic Theme Toggle Component - Icon-Based Dark/Light Mode Toggle */

/*
  Theme Toggle Component
  ---------------------
  Extends .toggle--extended pattern for theme switching functionality.
  Uses SVG icons (sun/moon) instead of text labels.
  Provides smooth transitions between light and dark themes.

  Usage:
  ------
  <label class="toggle toggle--extended toggle--theme">
    <input type="checkbox" class="toggle__input" id="theme-toggle">
    <span class="toggle__switch">
      <span class="toggle__slider">
        <svg class="toggle__icon"><use href="#sun"></use></svg>
      </span>
    </span>
  </label>
*/

/* Base Theme Toggle Structure - Extends toggle--extended */

.toggle--theme {
  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--theme .toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Base (mobile): Theme Toggle Switch Track */

.toggle--theme .toggle__switch {
  position: relative;
  width: 90px;
  height: 33px;
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border-radius: 40px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
  border: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  overflow: visible;
  margin-right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  padding: 0 var(--spacing-2);
}

/* Base (mobile): Theme Toggle Slider */

.toggle--theme .toggle__slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 27px;
  height: 27px;
  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%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
  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);
  z-index: 2;
  pointer-events: none;
}

/* Base (mobile): Theme Icons */

.toggle--theme .theme-icon {
  width: 16px;
  height: 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
  pointer-events: none;
  z-index: 3;
  flex-shrink: 0;
}

/* Light Theme Mode (Unchecked) - Background is light gray */

.toggle--theme .toggle__input:not(:checked) ~ .toggle__switch .theme-icon--light {
  color: #FFFFFF; /* White sun on light background */
}

.toggle--theme .toggle__input:not(:checked) ~ .toggle__switch .theme-icon--dark {
  color: #6B7280;
  color: var(--brand-gray-500); /* Gray moon - visible on light background */
}

/* Dark Theme Mode (Checked) - Background is dark gray */

.toggle--theme .toggle__input:checked ~ .toggle__switch .theme-icon--light {
  color: #9CA3AF;
  color: var(--brand-gray-400); /* Light gray sun - visible on dark background */
}

.toggle--theme .toggle__input:checked ~ .toggle__switch .theme-icon--dark {
  color: #FFFFFF; /* White moon on dark background */
}

/* Base (mobile): Dark Theme State (Checked) */

.toggle--theme .toggle__input:checked + .toggle__switch {
  background: #374151;
  background: var(--brand-gray-700);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle--theme .toggle__input:checked + .toggle__switch .toggle__slider {
  transform: translateX(57px);
  background: linear-gradient(135deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(135deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 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);
}

/* Hover States */

.toggle--theme:hover .toggle__switch {
  background: #E5E7EB;
  background: var(--brand-gray-200);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.toggle--theme:hover .toggle__input:checked + .toggle__switch {
  background: #1F2937;
  background: var(--brand-gray-800);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle--theme:hover .toggle__slider {
  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--theme:hover .toggle__input:checked + .toggle__switch .toggle__slider {
  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);
}

/* Active/Pressed State */

.toggle--theme:active .toggle__slider {
  transform: scale(0.95);
}

/* Base (mobile): Active pressed with checked */

.toggle--theme .toggle__input:checked:active + .toggle__switch .toggle__slider {
  transform: translateX(57px) scale(0.95);
}

/* Focus State - Accessibility */

.toggle--theme .toggle__input:focus + .toggle__switch {
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.toggle--theme .toggle__input:focus:checked + .toggle__switch {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle--theme .toggle__input:focus-visible + .toggle__switch {
  outline: 2px solid #ED1C24;
  outline: 2px solid var(--brand-red-primary);
  outline-offset: 2px;
}

/* Disabled State */

.toggle--theme .toggle__input:disabled + .toggle__switch {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  cursor: not-allowed;
  opacity: 0.5;
}

.toggle--theme .toggle__input:disabled + .toggle__switch .toggle__slider {
  background: #9CA3AF;
  background: var(--brand-gray-400);
  box-shadow: none;
}

/* Small Size Variant - For Compact Layouts */

.toggle--theme.toggle--sm .toggle__switch {
  width: 56px;
  height: 30px;
  padding: 0 var(--spacing-1-5);
}

.toggle--theme.toggle--sm .toggle__slider {
  width: 24px;
  height: 24px;
  top: 3px;
  left: 3px;
}

.toggle--theme.toggle--sm .theme-icon {
  width: 14px;
  height: 14px;
}

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

.toggle--theme.toggle--sm .toggle__input:checked:active + .toggle__switch .toggle__slider {
  transform: translateX(26px) scale(0.95);
}

/* Large Size Variant - For Prominent Placement */

.toggle--theme.toggle--lg .toggle__switch {
  width: 80px;
  height: 44px;
  padding: 0 var(--spacing-2-5);
}

.toggle--theme.toggle--lg .toggle__slider {
  width: 38px;
  height: 38px;
  top: 3px;
  left: 3px;
}

.toggle--theme.toggle--lg .theme-icon {
  width: 22px;
  height: 22px;
}

.toggle--theme.toggle--lg .toggle__input:checked + .toggle__switch .toggle__slider {
  transform: translateX(36px);
}

.toggle--theme.toggle--lg .toggle__input:checked:active + .toggle__switch .toggle__slider {
  transform: translateX(36px) scale(0.95);
}

/* Theme Toggle with Label Text */

.toggle--theme.toggle--with-label {
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.toggle--theme .toggle__label {
  color: #374151;
  color: var(--brand-gray-700);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  line-height: var(--line-height-normal);
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast);
}

/* Loading State - During Theme Transition */

.toggle--theme.toggle--loading .toggle__slider {
  animation: theme-toggle-pulse 1s ease-in-out infinite;
}

@keyframes theme-toggle-pulse {
  0%, 100% {
    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);
  }
  50% {
    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);
  }
}

/* Smooth Theme Transition Animation */

.toggle--theme .toggle__switch,
.toggle--theme .toggle__slider,
.toggle--theme .theme-icon {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon visibility transitions handled by opacity rules above */

/* Base (mobile): Touch-friendly hit area */

.toggle--theme {
  padding: 0.5rem;
  padding: var(--spacing-2);
  margin: calc(0.5rem * -1);
  margin: calc(var(--spacing-2) * -1);
}

/* Base (mobile): Small variant */

.toggle--theme.toggle--sm .toggle__switch {
  width: 52px;
  height: 28px;
}

.toggle--theme.toggle--sm .toggle__slider {
  width: 22px;
  height: 22px;
}

.toggle--theme.toggle--sm .theme-icon {
  width: 12px;
  height: 12px;
}

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

/* Base (mobile): Large variant */

.toggle--theme.toggle--lg .toggle__switch {
  width: 72px;
  height: 40px;
}

.toggle--theme.toggle--lg .toggle__slider {
  width: 34px;
  height: 34px;
}

.toggle--theme.toggle--lg .theme-icon {
  width: 20px;
  height: 20px;
}

.toggle--theme.toggle--lg .toggle__input:checked + .toggle__switch .toggle__slider {
  transform: translateX(32px);
}

/* Tablet and up (640px+): larger desktop sizes */

@media (min-width: 640px) {
  .toggle--theme {
    padding: 0;
    margin: 0;
  }

  .toggle--theme .toggle__switch {
    height: 37px;
  }

  .toggle--theme .toggle__slider {
    width: 31px;
    height: 31px;
  }

  .toggle--theme .theme-icon {
    width: 18px;
    height: 18px;
  }

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

  .toggle--theme .toggle__input:checked:active + .toggle__switch .toggle__slider {
    transform: translateX(53px) scale(0.95);
  }

  /* Hover effects only on non-touch devices */
  @media (hover: hover) {
    .toggle--theme:hover .toggle__slider {
      transform: scale(1.05);
    }

    .toggle--theme .toggle__input:checked:hover + .toggle__switch .toggle__slider {
      transform: translateX(53px) scale(1.05);
    }

    .toggle--theme.toggle--sm .toggle__input:checked:hover + .toggle__switch .toggle__slider {
      transform: translateX(26px) scale(1.05);
    }

    .toggle--theme.toggle--lg .toggle__input:checked:hover + .toggle__switch .toggle__slider {
      transform: translateX(36px) scale(1.05);
    }
  }
}

/* High Contrast Mode Support */

@media (prefers-contrast: high) {
  .toggle--theme .toggle__switch {
    border: 2px solid #111827;
    border: 2px solid var(--brand-gray-900);
  }

  .toggle--theme .toggle__slider {
    border: 2px solid #FFFFFF;
    border: 2px solid var(--brand-white);
  }

}

/* Reduced Motion Support */

@media (prefers-reduced-motion: reduce) {
  .toggle--theme .toggle__switch,
  .toggle--theme .toggle__slider,
  .toggle--theme .theme-icon {
    transition: none;
  }

  .toggle--theme.toggle--loading .toggle__slider {
    animation: none;
  }
}

/* Print Styles */

@media print {
  .toggle--theme {
    display: none;
  }
}

/* MM Medic Currency Toggle Component - Symbol-Based UAH/EUR Toggle */

/*
  Currency Toggle Component
  -------------------------
  Extends .toggle pattern for currency switching functionality.
  Uses currency symbols (₴/€) instead of icons.
  Provides smooth transitions between UAH and EUR.

  Usage:
  ------
  <label class="toggle toggle--currency">
    <input type="checkbox" class="toggle__input" id="currency-toggle">
    <div class="toggle__switch">
      <span class="currency-symbol currency-symbol--uah">₴</span>
      <div class="toggle__slider"></div>
      <span class="currency-symbol currency-symbol--eur">€</span>
    </div>
  </label>
*/

/* Base Currency Toggle Structure */

.toggle--currency {
  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--currency .toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Currency Toggle Switch Track */

.toggle--currency .toggle__switch {
  position: relative;
  width: 90px;
  height: 37px;
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border-radius: 40px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
  border: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  overflow: visible;
  margin-right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  padding: 0 var(--spacing-2);
}

/* Currency Toggle Slider - Circle that Moves */

.toggle--currency .toggle__slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 31px;
  height: 31px;
  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%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
  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);
  z-index: 2;
  pointer-events: none;
}

/* Currency Symbols - Positioned in Switch Track */

.toggle--currency .currency-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
  pointer-events: none;
  z-index: 3;
  flex-shrink: 0;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--font-family-base);
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* UAH Mode (Unchecked) - Background is light gray */

.toggle--currency .toggle__input:not(:checked) ~ .toggle__switch .currency-symbol--uah {
  color: #FFFFFF; /* White ₴ under red slider */
}

.toggle--currency .toggle__input:not(:checked) ~ .toggle__switch .currency-symbol--eur {
  color: #4B5563;
  color: var(--brand-gray-600); /* Dark gray € - visible on light background */
}

/* EUR Mode (Checked) - Background stays light gray */

.toggle--currency .toggle__input:checked ~ .toggle__switch .currency-symbol--uah {
  color: #4B5563;
  color: var(--brand-gray-600); /* Dark gray ₴ - visible on light background */
}

.toggle--currency .toggle__input:checked ~ .toggle__switch .currency-symbol--eur {
  color: #FFFFFF; /* White € under red slider */
}

/* EUR State (Checked) - Keep same background as UAH state */

.toggle--currency .toggle__input:checked + .toggle__switch {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.toggle--currency .toggle__input:checked + .toggle__switch .toggle__slider {
  transform: translateX(53px);
  background: linear-gradient(135deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(135deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 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);
}

/* Hover States */

.toggle--currency:hover .toggle__switch {
  background: #E5E7EB;
  background: var(--brand-gray-200);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.toggle--currency:hover .toggle__input:checked + .toggle__switch {
  background: #E5E7EB;
  background: var(--brand-gray-200);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.toggle--currency:hover .toggle__slider {
  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--currency:hover .toggle__input:checked + .toggle__switch .toggle__slider {
  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);
}

/* Active/Pressed State */

.toggle--currency:active .toggle__slider {
  transform: scale(0.95);
}

.toggle--currency .toggle__input:checked:active + .toggle__switch .toggle__slider {
  transform: translateX(53px) scale(0.95);
}

/* Focus State - Accessibility */

.toggle--currency .toggle__input:focus + .toggle__switch {
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.toggle--currency .toggle__input:focus:checked + .toggle__switch {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle--currency .toggle__input:focus-visible + .toggle__switch {
  outline: 2px solid #ED1C24;
  outline: 2px solid var(--brand-red-primary);
  outline-offset: 2px;
}

/* Disabled State */

.toggle--currency .toggle__input:disabled + .toggle__switch {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  cursor: not-allowed;
  opacity: 0.5;
}

.toggle--currency .toggle__input:disabled + .toggle__switch .toggle__slider {
  background: #9CA3AF;
  background: var(--brand-gray-400);
  box-shadow: none;
}

/* Loading State - During Currency Change */

.toggle--currency.toggle--loading .toggle__slider {
  animation: currency-toggle-pulse 1s ease-in-out infinite;
}

@keyframes currency-toggle-pulse {
  0%, 100% {
    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);
  }
  50% {
    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);
  }
}

/* Smooth Currency Transition Animation */

.toggle--currency .toggle__switch,
.toggle--currency .toggle__slider,
.toggle--currency .currency-symbol {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESPONSIVE - Mobile-first
   ============================================ */

/* Base (mobile): touch-friendly hit area */

.toggle--currency {
  padding: 0.5rem;
  padding: var(--spacing-2);
  margin: calc(0.5rem * -1);
  margin: calc(var(--spacing-2) * -1);
}

/* Tablet and up (640px+): remove extra padding, add hover effects */

@media (min-width: 640px) {
  .toggle--currency {
    padding: 0;
    margin: 0;
  }

  /* Hover effects only on non-touch devices */
  @media (hover: hover) {
    .toggle--currency:hover .toggle__slider {
      transform: scale(1.05);
    }

    .toggle--currency .toggle__input:checked:hover + .toggle__switch .toggle__slider {
      transform: translateX(53px) scale(1.05);
    }
  }
}

/* High Contrast Mode Support */

@media (prefers-contrast: high) {
  .toggle--currency .toggle__switch {
    border: 2px solid #111827;
    border: 2px solid var(--brand-gray-900);
  }

  .toggle--currency .toggle__slider {
    border: 2px solid #FFFFFF;
    border: 2px solid var(--brand-white);
  }
}

/* Reduced Motion Support */

@media (prefers-reduced-motion: reduce) {
  .toggle--currency .toggle__switch,
  .toggle--currency .toggle__slider,
  .toggle--currency .currency-symbol {
    transition: none;
  }

  .toggle--currency.toggle--loading .toggle__slider {
    animation: none;
  }
}

/* Print Styles */

@media print {
  .toggle--currency {
    display: none;
  }
}

/* MM Medic Badge Components - Clean Modern Style
 *
 * Default badges use semi-transparent backgrounds (rgba 0.1 opacity)
 * Use --solid variants for opaque backgrounds
 * Status badges include animated indicator dots with glow effect
 */

/* ============================================
   BASE BADGE STYLES
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  padding: var(--spacing-2) var(--spacing-4);
  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);
  line-height: 1.25;
  line-height: var(--line-height-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);
}

/* ============================================
   COLOR VARIANTS - Soft by default
   ============================================ */

/* Primary Badge */

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

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

/* Secondary Badge */

.badge--secondary,
.badge--secondary-soft {
  background: rgba(107, 114, 128, 0.1);
  color: #374151;
  color: var(--brand-gray-700);
  border-color: rgba(107, 114, 128, 0.2);
}

.badge--secondary-solid {
  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,
.badge--success-soft {
  background: rgba(16, 185, 129, 0.1);
  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);
}

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

/* Warning Badge */

.badge--warning,
.badge--warning-soft {
  background: rgba(245, 158, 11, 0.1);
  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);
}

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

/* Error Badge */

.badge--error,
.badge--error-soft {
  background: rgba(237, 28, 36, 0.1);
  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);
}

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

/* Info Badge */

.badge--info,
.badge--info-soft {
  background: rgba(59, 130, 246, 0.1);
  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);
}

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

/* Neutral Badge */

.badge--neutral,
.badge--neutral-soft {
  background: rgba(107, 114, 128, 0.1);
  color: #374151;
  color: var(--brand-gray-700);
  border-color: rgba(107, 114, 128, 0.2);
}

.badge--neutral-solid {
  background: #6B7280;
  background: var(--brand-gray-500);
  color: #FFFFFF;
  color: var(--brand-white);
  border-color: #6B7280;
  border-color: var(--brand-gray-500);
}

/* Cyan Badge (for Finance Manager) */

.badge--cyan {
  background: #0891b2;
  color: #FFFFFF;
  color: var(--brand-white);
  border-color: #0891b2;
}

.badge--cyan-soft {
  background: rgba(8, 145, 178, 0.1);
  color: #0e7490;
  border-color: rgba(8, 145, 178, 0.2);
}

/* Purple Badge (for Sales Manager) */

.badge--purple {
  background: #7c3aed;
  color: #FFFFFF;
  color: var(--brand-white);
  border-color: #7c3aed;
}

.badge--purple-soft {
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.2);
}

/* Pink Badge (for Events Manager) */

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

.badge--pink-soft {
  background: rgba(219, 39, 119, 0.1);
  color: #be185d;
  border-color: rgba(219, 39, 119, 0.2);
}

/* Lime Badge (for Warehouse Manager) */

.badge--lime {
  background: #65a30d;
  color: #FFFFFF;
  color: var(--brand-white);
  border-color: #65a30d;
}

.badge--lime-soft {
  background: rgba(101, 163, 13, 0.1);
  color: #4d7c0f;
  border-color: rgba(101, 163, 13, 0.2);
}

/* ============================================
   SIZE VARIANTS
   ============================================ */

.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 animated indicator dots
   ============================================ */

.badge--status {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  gap: var(--spacing-2);
  padding-left: 0.75rem;
  padding-left: var(--spacing-3);
  padding-right: 0.75rem;
  padding-right: var(--spacing-3);
}

.badge--status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor, 0 0 4px currentColor;
  flex-shrink: 0;
  order: -1;
}

/* ============================================
   MEDICAL/HEALTHCARE STATUS BADGES
   ============================================ */

.badge--available {
  background: rgba(16, 185, 129, 0.1);
  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);
}

.badge--busy {
  background: rgba(245, 158, 11, 0.1);
  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);
}

.badge--offline {
  background: rgba(107, 114, 128, 0.1);
  color: #4B5563;
  color: var(--brand-gray-600);
  border-color: rgba(107, 114, 128, 0.2);
}

.badge--emergency {
  background: rgba(237, 28, 36, 0.1);
  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);
  animation: badge-pulse 2s infinite;
}

.badge--emergency-solid {
  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;
  }
}

/* ============================================
   SPECIAL BADGE TYPES
   ============================================ */

/* 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 & GROUPING
   ============================================ */

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

/* Removing State */

.badge--removing {
  opacity: 0;
  transform: scale(0.8);
  transition: all 200ms ease-out;
}

/* ============================================
   RESPONSIVE - Mobile-first
   ============================================ */

/* Base (mobile): badges use xs font, compact spacing */

/* Note: .badge already uses --font-size-xs by default (line 18) */

/* Mobile-specific adjustments for large badges */

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

/* Tablet and up (640px+): restore larger sizes */

@media (min-width: 640px) {
  .badge--lg {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    padding: 0.5rem 1rem;
    padding: var(--spacing-2) var(--spacing-4);
  }

  .badge-group {
    gap: 0.5rem;
    gap: var(--spacing-2);
  }
}

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

/* Badge base styles - Mobile-first */

.cart-badge {
  position: absolute;
  top: -4px; /* Mobile-first: compact */
  right: -4px; /* Mobile-first: compact */
  min-width: 16px; /* Mobile-first: compact */
  height: 16px; /* Mobile-first: compact */
  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: 10px; /* Mobile-first: compact */
  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);
}

/* Tablet and up (768px+): larger badge */

@media (min-width: 768px) {
  .cart-badge {
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
  }
}

/* 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);
}

.btn .icon:last-child {
  margin-left: 0;
}

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

/* ==================== SPINNER DOTS ==================== */

/**
 * Animated bouncing dots spinner
 * Use for inline loading states or when circular spinner is too prominent
 *
 * Usage:
 * <div class="spinner-dots">
 *     <div class="spinner-dots__dot"></div>
 *     <div class="spinner-dots__dot"></div>
 *     <div class="spinner-dots__dot"></div>
 * </div>
 */

@keyframes spinner-dots-bounce {
    0%,
    80%,
    100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.spinner-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
    height: 2.5rem;
}

.spinner-dots__dot {
    width: 0.75rem;
    height: 0.75rem;
    background: #ED1C24;
    background: var(--brand-red-primary);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    animation: spinner-dots-bounce 1.4s ease-in-out infinite both;
}

.spinner-dots__dot:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-dots__dot:nth-child(2) {
    animation-delay: -0.16s;
}

.spinner-dots__dot:nth-child(3) {
    animation-delay: 0s;
}

/* Size variants */

.spinner-dots--sm {
    height: 1.5rem;
    gap: 0.25rem;
    gap: var(--spacing-1);
}

.spinner-dots--sm .spinner-dots__dot {
    width: 0.5rem;
    height: 0.5rem;
}

.spinner-dots--lg {
    height: 3rem;
    gap: 0.75rem;
    gap: var(--spacing-3);
}

.spinner-dots--lg .spinner-dots__dot {
    width: 1rem;
    height: 1rem;
}

/* Color variants */

.spinner-dots--white .spinner-dots__dot {
    background: #FFFFFF;
    background: var(--brand-white);
}

.spinner-dots--gray .spinner-dots__dot {
    background: #9CA3AF;
    background: var(--brand-gray-400);
}

/* MM Medic Gauge Component
 * Progress bars and gauges with dynamic values via CSS custom properties
 * CSP-compliant: uses CSS variables and classes instead of inline styles
 */

/* Gauge container */

.gauge {
  width: 100%;
  height: 24px;
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

/* Gauge bar - uses CSS custom property for width */

.gauge__bar {
  height: 100%;
  width: 0%;
  width: var(--gauge-width, 0%);
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: width var(--transition-base), background-color var(--transition-fast);
  border-radius: 9999px;
  border-radius: var(--radius-full);
}

/* State modifiers for colors */

.gauge--success {
  background-color: rgb(34, 197, 94); /* green-500 */
}

.gauge--warning {
  background-color: rgb(251, 191, 36); /* amber-400 */
}

.gauge--critical {
  background-color: rgb(239, 68, 68); /* red-500 */
}

/* Gauge value label */

.gauge__value {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  right: var(--spacing-3);
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
  text-shadow: 0 0 2px #FFFFFF;
  text-shadow: 0 0 2px var(--brand-white);
}

/* Small gauge variant */

.gauge--sm {
  height: 16px;
}

.gauge--sm .gauge__value {
  font-size: var(--font-size-2xs);
  right: 0.5rem;
  right: var(--spacing-2);
}

/* Large gauge variant */

.gauge--lg {
  height: 32px;
}

.gauge--lg .gauge__value {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  right: 1rem;
  right: var(--spacing-4);
}

/* Striped animation for active gauges */

.gauge--animated .gauge__bar {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
  animation: gauge-progress 1s linear infinite;
}

@keyframes gauge-progress {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 1rem 1rem;
  }
}

/* Gauge with label */

.gauge-with-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.gauge-with-label__label {
  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);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.gauge-with-label__value {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #111827;
  color: var(--brand-gray-900);
}

/**
 * Autocomplete Component
 *
 * Universal autocomplete component for search suggestions
 * Used for: customers, products, cities, warehouses, etc.
 *
 * Features:
 * - Dropdown with search results
 * - Hover/active states
 * - Loading spinner
 * - Empty state message
 * - Keyboard navigation support (via JS)
 */

.autocomplete {
  position: relative;
  width: 100%;
}

/* Input */

.autocomplete__input {
  width: 100%;
}

/* Loading indicator (optional icon inside input) */

.autocomplete__input--loading {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23D32F2F' d='M8 0a8 8 0 1 0 8 8 8 8 0 0 0-8-8zm0 14a6 6 0 1 1 6-6 6 6 0 0 1-6 6z' opacity='0.3'/%3E%3Cpath fill='%23D32F2F' d='M8 0a8 8 0 0 1 8 8h-2A6 6 0 0 0 8 2z'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 8 8' to='360 8 8' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-position: right var(--spacing-3) center;
  background-size: 16px 16px;
  padding-right: calc(0.75rem + 20px);
  padding-right: calc(var(--spacing-3) + 20px);
}

/* Dropdown container */

.autocomplete__dropdown {
  position: absolute;
  top: calc(100% + 0.25rem);
  top: calc(100% + var(--spacing-1));
  left: 0;
  right: 0;
  z-index: 100;
  max-height: 280px; /* Mobile-first: compact height */
  overflow-y: auto;

  /* Match input width - uses left: 0 and right: 0 to span full container */
  width: 100%;

  background: #FFFFFF;

  background: var(--brand-white);
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  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);

  /* Hidden by default */
  display: none;

  /* Smooth animation */
  opacity: 0;
  transform: translateY(-4px);
  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);
}

.autocomplete__dropdown--visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Dropdown scrollbar styling */

.autocomplete__dropdown::-webkit-scrollbar {
  width: 6px;
}

.autocomplete__dropdown::-webkit-scrollbar-track {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
}

.autocomplete__dropdown::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  background: var(--brand-gray-300);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
}

.autocomplete__dropdown::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
  background: var(--brand-gray-400);
}

/* Individual items */

.autocomplete__item {
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  cursor: pointer;

  font-size: 0.875rem;

  font-size: var(--font-size-sm);
  color: #111827;
  color: var(--brand-gray-900);

  transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s cubic-bezier(0.4, 0, 0.2, 1);

  transition: background var(--transition-fast), color var(--transition-fast);

  /* Border between items */
  border-bottom: 1px solid #F3F4F6;
  border-bottom: 1px solid var(--brand-gray-100);
}

.autocomplete__item:last-child {
  border-bottom: none;
}

.autocomplete__item:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

.autocomplete__item--active {
  background: #FDF2F2;
  background: var(--brand-red-lightest);
  color: #D11920;
  color: var(--brand-red-dark);
}

.autocomplete__item--selected {
  background: #F04951;
  background: var(--brand-red-light);
  color: #FFFFFF;
  color: var(--brand-white);
}

/* Item with multi-line content */

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

.autocomplete__item--active .autocomplete__item-title {
  color: #D11920;
  color: var(--brand-red-dark);
}

.autocomplete__item-meta {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #4B5563;
  color: var(--brand-gray-600);
}

.autocomplete__item--active .autocomplete__item-meta {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.autocomplete__item-highlight {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Empty state */

.autocomplete__empty {
  padding: 1.5rem 1rem;
  padding: var(--spacing-6) var(--spacing-4);
  text-align: center;

  font-size: 0.875rem;

  font-size: var(--font-size-sm);
  color: #6B7280;
  color: var(--brand-gray-500);
}

.autocomplete__empty-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 0.75rem;
  margin: 0 auto var(--spacing-3);
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

/* Loading state */

.autocomplete__loading {
  padding: 1.5rem 1rem;
  padding: var(--spacing-6) var(--spacing-4);
  text-align: center;

  font-size: 0.875rem;

  font-size: var(--font-size-sm);
  color: #6B7280;
  color: var(--brand-gray-500);
}

.autocomplete__loading-spinner {
  width: 24px;
  height: 24px;
  margin: 0 auto 0.5rem;
  margin: 0 auto var(--spacing-2);

  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: rotate(360deg);
  }
}

/* Error state */

.autocomplete__error {
  padding: 1rem;
  padding: var(--spacing-4);

  background: var(--color-error-lightest);
  border: 1px solid #F04951;
  border: 1px solid var(--color-error-light);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);

  font-size: 0.875rem;

  font-size: var(--font-size-sm);
  color: #D11920;
  color: var(--color-error-dark);
  text-align: center;
}

/* Category headers in dropdown */

.autocomplete__category {
  padding: 0.5rem 1rem;
  padding: var(--spacing-2) var(--spacing-4);

  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.5px;

  background: #F9FAFB;

  background: var(--brand-gray-50);

  /* Sticky header */
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Badge for item type */

.autocomplete__item-badge {
  display: inline-block;
  padding: 2px 0.5rem;
  padding: 2px var(--spacing-2);
  margin-left: 0.5rem;
  margin-left: var(--spacing-2);

  font-size: 0.75rem;

  font-size: var(--font-size-xs);
  font-weight: 500;
  font-weight: var(--font-weight-medium);

  background: #F3F4F6;

  background: var(--brand-gray-100);
  color: #374151;
  color: var(--brand-gray-700);
  border-radius: 0.125rem;
  border-radius: var(--radius-sm);
}

.autocomplete__item--active .autocomplete__item-badge {
  background: #F04951;
  background: var(--brand-red-light);
  color: #FFFFFF;
  color: var(--brand-white);
}

/* Item with image (for products) */

.autocomplete__item-with-image {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  width: 100%;
}

.autocomplete__item-image {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  background: #F3F4F6;
  background: var(--brand-gray-100);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
}

.autocomplete__item-with-image .autocomplete__item-details {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* ============================================
   RESPONSIVE - Mobile-first
   ============================================ */

/* Base (mobile): smaller dropdown, compact items */

/* Note: Override base max-height for mobile */

/* Tablet and up (640px+): taller dropdown allowed */

@media (min-width: 640px) {
  .autocomplete__dropdown {
    max-height: 320px;
  }
}

/* Disabled state */

.autocomplete--disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.autocomplete--disabled .autocomplete__input {
  background-color: #F3F4F6;
  background-color: var(--brand-gray-100);
  cursor: not-allowed;
}

/* Focus state for dropdown */

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

/* Multi-column layout for wide dropdowns (optional) */

.autocomplete__dropdown--wide {
  width: 600px;
  max-width: calc(100vw - 40px);
}

.autocomplete__dropdown--wide .autocomplete__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

/* For complex items (e.g., customers with multiple fields) */

.autocomplete__item-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
  min-width: 0;
}

.autocomplete__item-details > * {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete__item-actions {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
  align-items: center;
}

/* Icons in items */

.autocomplete__item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: 0.5rem;
  margin-right: var(--spacing-2);
  color: #6B7280;
  color: var(--brand-gray-500);
}

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

/* Accessibility: keyboard focus indicator */

.autocomplete__item:focus {
  outline: 2px solid #ED1C24;
  outline: 2px solid var(--brand-red-primary);
  outline-offset: -2px;
  background: #FDF2F2;
  background: var(--brand-red-lightest);
}

/**
 * Number Circle Component
 *
 * Використовується для численних індикаторів в step processes, checkout flows та інших UI елементах.
 * Замінює комбінації 9+ utility класів одним семантичним компонентом.
 *
 * @example
 * <div class="number-circle number-circle--primary">1</div>
 * <div class="number-circle number-circle--success number-circle--lg">2</div>
 */

/* Base component */

.number-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;  /* 24px */
  height: 1.5rem; /* 24px */
  border-radius: 9999px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
}

/* Semantic color variants */

.number-circle--primary {
  background-color: rgba(59, 130, 246, 0.1);
  background-color: var(--color-info-bg);
  color: #3B82F6;
  color: var(--color-info);
}

.number-circle--success {
  background-color: rgba(16, 185, 129, 0.1);
  background-color: var(--color-success-bg);
  color: #10B981;
  color: var(--color-success);
}

.number-circle--error {
  background-color: rgba(237, 28, 36, 0.1);
  background-color: var(--color-error-bg);
  color: #ED1C24;
  color: var(--color-error);
}

.number-circle--warning {
  background-color: rgba(245, 158, 11, 0.1);
  background-color: var(--color-warning-bg);
  color: #F59E0B;
  color: var(--color-warning);
}

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

/* Solid variants (для активного стану) */

.number-circle--primary-solid {
  background-color: #3B82F6;
  background-color: var(--color-info);
  color: #FFFFFF;
  color: var(--brand-white);
}

.number-circle--success-solid {
  background-color: #10B981;
  background-color: var(--color-success);
  color: #FFFFFF;
  color: var(--brand-white);
}

.number-circle--error-solid {
  background-color: #ED1C24;
  background-color: var(--color-error);
  color: #FFFFFF;
  color: var(--brand-white);
}

/* Size variants */

.number-circle--xs {
  width: 1rem; /* 16px */
  height: 1rem;
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
}

.number-circle--sm {
  width: 1.25rem; /* 20px */
  height: 1.25rem;
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
}

.number-circle--md {
  width: 1.5rem; /* 24px, default */
  height: 1.5rem;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.number-circle--lg {
  width: 2rem; /* 32px */
  height: 2rem;
  font-size: 1rem;
  font-size: var(--font-size-base);
}

.number-circle--xl {
  width: 2.5rem; /* 40px */
  height: 2.5rem;
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
}

/* Interactive variant (для кнопок) */

.number-circle--interactive {
  cursor: pointer;
}

.number-circle--interactive:hover {
  transform: scale(1.1);
  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);
}

.number-circle--interactive:active {
  transform: scale(0.95);
}

/* Disabled state */

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

/**
 * Icon Circle Component
 *
 * Великі кола з іконками для статусних повідомлень, успіхів, помилок.
 * Використовується на сторінках payment success/failure, modals, alerts.
 *
 * @example
 * <div class="icon-circle icon-circle--success">
 *     <svg width="48" height="48"><use href="#icon-status-success"></use></svg>
 * </div>
 */

/* Base component */

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
}

/* Default size: large (96px) */

.icon-circle {
  width: 6rem; /* 96px */
  height: 6rem;
}

/* Semantic color variants */

.icon-circle--success {
  background-color: rgba(16, 185, 129, 0.1);
  background-color: var(--color-success-bg);
  color: #10B981;
  color: var(--color-success);
}

.icon-circle--error {
  background-color: rgba(237, 28, 36, 0.1);
  background-color: var(--color-error-bg);
  color: #ED1C24;
  color: var(--color-error);
}

.icon-circle--info {
  background-color: rgba(59, 130, 246, 0.1);
  background-color: var(--color-info-bg);
  color: #3B82F6;
  color: var(--color-info);
}

.icon-circle--warning {
  background-color: rgba(245, 158, 11, 0.1);
  background-color: var(--color-warning-bg);
  color: #F59E0B;
  color: var(--color-warning);
}

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

/* Solid variants */

.icon-circle--success-solid {
  background-color: #10B981;
  background-color: var(--color-success);
  color: #FFFFFF;
  color: var(--brand-white);
}

.icon-circle--error-solid {
  background-color: #ED1C24;
  background-color: var(--color-error);
  color: #FFFFFF;
  color: var(--brand-white);
}

.icon-circle--info-solid {
  background-color: #3B82F6;
  background-color: var(--color-info);
  color: #FFFFFF;
  color: var(--brand-white);
}

/* Icon sizing within circle - adaptive */

.icon-circle svg {
  width: 50%; /* Icon is 50% of circle size */
  height: 50%;
  flex-shrink: 0;
}

/* Size variants */

.icon-circle--xs {
  width: 2rem; /* 32px */
  height: 2rem;
}

.icon-circle--sm {
  width: 3rem; /* 48px */
  height: 3rem;
}

.icon-circle--md {
  width: 4.5rem; /* 72px */
  height: 4.5rem;
}

.icon-circle--lg {
  width: 6rem; /* 96px, default */
  height: 6rem;
}

.icon-circle--xl {
  width: 8rem; /* 128px */
  height: 8rem;
}

.icon-circle--2xl {
  width: 10rem; /* 160px */
  height: 10rem;
}

/* With border variant */

.icon-circle--bordered {
  border: 2px solid currentColor;
}

/* With shadow variant */

.icon-circle--shadow {
  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);
}

/* Interactive variant (для кнопок) */

.icon-circle--interactive {
  cursor: pointer;
}

.icon-circle--interactive:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  box-shadow: var(--shadow-xl);
}

.icon-circle--interactive:active {
  transform: scale(0.98);
}

/* Pulsing animation variant (для loading/waiting) */

.icon-circle--pulse {
  animation: pulse-circle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/**
 * Option Card Component
 *
 * Інтерактивні картки для вибору опцій через radio/checkbox inputs.
 * Використовується для вибору доставки, оплати, опцій продукту тощо.
 *
 * @example
 * <label class="option-card">
 *     <input type="radio" name="delivery" value="novaposhta">
 *     <div class="option-card__content">
 *         <div class="option-card__header">
 *             <span class="option-card__title">Нова Пошта</span>
 *             <span class="option-card__price">Безкоштовно</span>
 *         </div>
 *         <p class="option-card__description">Доставка до відділення</p>
 *     </div>
 * </label>
 */

/* Base component */

.option-card {
  position: relative;
  display: block;
  padding: 0.75rem;
  padding: var(--spacing-3); /* Mobile-first: compact */
  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);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
}

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

/* Active state - через клас або :has() селектор */

.option-card--active,
.option-card:has(input:checked) {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  background-color: rgba(237, 28, 36, 0.02);
}

.option-card--active:hover,
.option-card:has(input:checked):hover {
  border-color: #D11920;
  border-color: var(--brand-red-dark);
  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);
}

/* Hidden input - приховуємо нативний radio/checkbox */

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Content area */

.option-card__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

/* Header з title та ціною */

.option-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.option-card__title {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #111827;
  color: var(--brand-gray-900);
}

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

.option-card__price {
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #ED1C24;
  color: var(--brand-red-primary);
  white-space: nowrap;
}

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

/* Description текст */

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

/* Icon в опції */

.option-card__icon {
  flex-shrink: 0;
  width: 2rem;
  width: var(--icon-size-md);
  height: 2rem;
  height: var(--icon-size-md);
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

.option-card--active .option-card__icon,
.option-card:has(input:checked) .option-card__icon {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Badge в header (наприклад "Рекомендовано") */

.option-card__badge {
  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);
  background-color: rgba(16, 185, 129, 0.1);
  background-color: var(--color-success-bg);
  color: #10B981;
  color: var(--color-success);
  border-radius: 0.25rem;
  border-radius: var(--radius-base);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

/* Layout variants */

.option-card--horizontal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.option-card--horizontal .option-card__content {
  flex: 1;
}

/* Compact variant */

.option-card--compact {
  padding: 0.75rem;
  padding: var(--spacing-3);
}

.option-card--compact .option-card__title {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.option-card--compact .option-card__description {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
}

/* Disabled state */

.option-card--disabled,
.option-card:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
}

/* Error state */

.option-card--error {
  border-color: #ED1C24;
  border-color: var(--color-error);
  background-color: rgba(237, 28, 36, 0.1);
  background-color: var(--color-error-bg);
}

/* With checkmark indicator */

.option-card--with-indicator::after {
  content: '';
  position: absolute;
  top: 0.75rem;
  top: var(--spacing-3);
  right: 0.75rem;
  right: var(--spacing-3);
  width: 1.25rem;
  height: 1.25rem;
  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: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
}

.option-card--with-indicator.option-card--active::after,
.option-card--with-indicator:has(input:checked)::after {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  background-color: #ED1C24;
  background-color: var(--brand-red-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================
   RESPONSIVE - Mobile-first
   ============================================ */

/* Base (mobile): compact layout, stacked header */

.option-card__header {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.option-card__price {
  align-self: flex-end;
}

/* Tablet and up (640px+): larger padding, horizontal header */

@media (min-width: 640px) {
  .option-card {
    padding: 1rem;
    padding: var(--spacing-4);
  }

  .option-card__header {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .option-card__price {
    align-self: auto;
  }
}

/**
 * Security Components Styles
 * Styles for password toggle, cookie consent, file upload, and form validation
 */

/* ==========================================
   Password Toggle Component
   ========================================== */

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-gray-500);
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: color var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
}

.password-toggle-btn:hover {
    color: var(--color-primary);
    background: var(--color-gray-100);
}

.password-toggle-btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.password-toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* ==========================================
   Password Strength Meter
   ========================================== */

.password-strength-meter {
    margin-top: 0.5rem;
}

.password-strength-meter__bar {
    width: 100%;
    height: 0.25rem;
    background: var(--color-gray-200);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.password-strength-meter__fill {
    height: 100%;
    width: 0;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: width var(--transition-base), background-color var(--transition-base);
    border-radius: 9999px;
    border-radius: var(--radius-full);
}

/* Password strength levels */

.password-strength-meter__fill.strength--0 {
    width: 16.66%;
    background-color: #e53e3e; /* Red - Very weak */
}

.password-strength-meter__fill.strength--1 {
    width: 33.33%;
    background-color: #dd6b20; /* Orange - Weak */
}

.password-strength-meter__fill.strength--2 {
    width: 50%;
    background-color: #d69e2e; /* Yellow - Fair */
}

.password-strength-meter__fill.strength--3 {
    width: 66.66%;
    background-color: #38a169; /* Light green - Good */
}

.password-strength-meter__fill.strength--4 {
    width: 83.33%;
    background-color: #2f855a; /* Green - Strong */
}

.password-strength-meter__fill.strength--5 {
    width: 100%;
    background-color: #276749; /* Dark green - Very strong */
}

.password-strength-meter__label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: var(--color-gray-600);
}

/* ==========================================
   Cookie Consent Banner
   MM Medic Design System Compliant
   ========================================== */

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #FFFFFF;
    background: var(--brand-white);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    box-shadow: var(--shadow-xl);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform var(--transition-slow);
    border-top: 3px solid #ED1C24;
    border-top: 3px solid var(--brand-red-primary);
}

.cookie-consent--bottom {
    bottom: 0;
}

.cookie-consent--visible {
    transform: translateY(0);
}

.cookie-consent__container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem;
    padding: var(--spacing-6);
}

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

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

.cookie-consent__description {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #4B5563;
    color: var(--brand-gray-600);
    line-height: 1.5;
    line-height: var(--line-height-normal);
}

.cookie-consent__actions {
    display: flex;
    gap: 0.75rem;
    gap: var(--spacing-3);
    flex-wrap: wrap;
}

.cookie-consent__btn {
    padding: 0.75rem 1.25rem;
    padding: var(--spacing-3) var(--spacing-5);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    border: none;
    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);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-family: var(--font-family-base);
}

.cookie-consent__btn--accept {
    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);
}

.cookie-consent__btn--accept:hover {
    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);
    transform: translateY(-1px);
}

.cookie-consent__btn--accept:active {
    transform: translateY(0);
    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);
}

.cookie-consent__btn--reject {
    background: #F3F4F6;
    background: var(--brand-gray-100);
    color: #374151;
    color: var(--brand-gray-700);
    border: 1px solid #D1D5DB;
    border: 1px solid var(--brand-gray-300);
}

.cookie-consent__btn--reject:hover {
    background: #E5E7EB;
    background: var(--brand-gray-200);
    border-color: #9CA3AF;
    border-color: var(--brand-gray-400);
}

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

@media (min-width: 768px) {
    .cookie-consent__container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cookie-consent__content {
        flex: 1;
        margin-bottom: 0;
        margin-right: 2rem;
        margin-right: var(--spacing-8);
    }

    .cookie-consent__actions {
        flex-shrink: 0;
    }
}

/* ==========================================
   File Upload Preview
   ========================================== */

.file-upload-preview {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.file-upload-preview__item {
    position: relative;
    border: 1px solid var(--color-gray-200);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    padding: 0.5rem;
    background: var(--color-white);
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: box-shadow var(--transition-base);
}

.file-upload-preview__item: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);
}

.file-upload-preview__image {
    width: 100%;
    height: 120px;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.file-upload-preview__icon {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--color-gray-100);
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.file-upload-preview__info {
    min-width: 0;
}

.file-upload-preview__name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.file-upload-preview__size {
    font-size: 0.6875rem;
    color: var(--color-gray-600);
}

.file-upload-preview__remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    background: #ED1C24;
    background: var(--color-error);
    color: var(--color-white);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: background var(--transition-base);
}

.file-upload-preview__remove:hover {
    background: #D11920;
    background: var(--color-error-dark);
}

.file-upload-preview__remove:focus {
    outline: 2px solid #ED1C24;
    outline: 2px solid var(--color-error);
    outline-offset: 2px;
}

/* ==========================================
   File Upload Progress
   ========================================== */

.file-upload-progress {
    margin-top: 1rem;
}

.file-upload-progress__bar {
    width: 100%;
    height: 0.5rem;
    background: var(--color-gray-200);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.file-upload-progress__fill {
    height: 100%;
    width: 0;
    background: var(--color-primary);
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: width var(--transition-base);
    border-radius: 9999px;
    border-radius: var(--radius-full);
}

.file-upload-progress__text {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    text-align: center;
}

/* ==========================================
   Form Validation Errors
   ========================================== */

.form-field__error {
    font-size: 0.8125rem;
    color: #ED1C24;
    color: var(--color-error);
    margin-top: 0.375rem;
}

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

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

/* ==========================================
   Session Security Warnings
   ========================================== */

.security-warning {
    position: fixed;
    top: 1rem;
    right: 1rem;
    max-width: 400px;
    background: #FBBF24;
    background: var(--color-warning-light);
    border: 1px solid #F59E0B;
    border: 1px solid var(--color-warning);
    border-left: 4px solid #F59E0B;
    border-left: 4px solid var(--color-warning);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    padding: 1rem;
    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: 9998;
    animation: slideInRight 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInRight var(--transition-base);
}

.security-warning__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #D97706;
    color: var(--color-warning-dark);
    margin-bottom: 0.5rem;
}

.security-warning__message {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    margin-bottom: 1rem;
}

.security-warning__actions {
    display: flex;
    gap: 0.5rem;
}

.security-warning__btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all var(--transition-base);
}

.security-warning__btn--primary {
    background: #F59E0B;
    background: var(--color-warning);
    color: var(--color-white);
}

.security-warning__btn--primary:hover {
    background: #D97706;
    background: var(--color-warning-dark);
}

.security-warning__btn--secondary {
    background: transparent;
    color: var(--color-gray-700);
}

.security-warning__btn--secondary:hover {
    background: var(--color-gray-100);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================
   Responsive Adjustments
   ========================================== */

@media (max-width: 640px) {
    .cookie-consent__container {
        padding: 1rem;
        padding: var(--spacing-4);
    }

    .cookie-consent__actions {
        flex-direction: column;
    }

    .cookie-consent__btn {
        width: 100%;
    }

    .cookie-consent__category {
        padding: 0.75rem;
        padding: var(--spacing-3);
    }

    .file-upload-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .security-warning {
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }
}

/* Admin Mobile Filter Accordion - CSP-Compliant */

/* Filter arrow rotation */

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

.admin-filter [data-filter-arrow] {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-base);
}

/* Filter content expansion */

.admin-filter__content--expanded {
  max-height: 1000px;
  max-height: var(--max-height, 1000px);
  transition: max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: max-height var(--transition-base);
}

.admin-filter [data-filter-content] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: max-height var(--transition-base);
}

.admin-filter--open [data-filter-content] {
  overflow: visible;
}

/* Dropdown menu positioning modifiers */

.dropdown-menu--top {
  bottom: 100%;
  top: auto;
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.dropdown-menu--right {
  right: 0;
  left: auto;
}

/**
 * Loyalty Badge Component Styles
 * Displays loyalty level badge in header between cart and user dropdown
 *
 * Architecture:
 * - HTML: Server-rendered via macros/loyalty_badge.html
 * - CSS: This file (component styles)
 * - JS: components/LoyaltyBadge.js (behavior only)
 */

/* ============================================
   Badge Wrapper (container)
   ============================================ */

.loyalty-badge-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Header placement */

.header__auth .loyalty-badge-wrapper {
    margin-left: 0.5rem;
    margin-left: var(--spacing-2);
    margin-right: 0.5rem;
    margin-right: var(--spacing-2);
}

/* Hide badge on mobile */

@media (max-width: 1023px) {
    .header__auth .loyalty-badge-wrapper {
        display: none;
    }
}

/* ============================================
   Badge Element (reuses cart-modal styles)
   ============================================ */

.loyalty-badge-wrapper [data-loyalty-badge] {
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-base);
}

.loyalty-badge-wrapper [data-loyalty-badge]:hover {
    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);
}

/* ============================================
   Tooltip Styles
   ============================================ */

.loyalty-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    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 25px 50px -12px rgba(0, 0, 0, 0.25);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-base);
}

.loyalty-tooltip.hidden {
    display: none;
}

.loyalty-tooltip.loyalty-tooltip--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Tooltip arrow */

.loyalty-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 16px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #E5E7EB;
    border-bottom: 8px solid var(--brand-gray-200);
}

.loyalty-tooltip::after {
    content: '';
    position: absolute;
    top: -7px;
    right: 17px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #FFFFFF;
    border-bottom: 7px solid var(--brand-white);
}

/* ============================================
   Tooltip Content
   ============================================ */

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

.loyalty-tooltip__level {
    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-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
}

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

.loyalty-tooltip__body {
    padding: 1rem;
    padding: var(--spacing-4);
}

.loyalty-tooltip__points {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    color: #374151;
    color: var(--brand-gray-700);
    margin-bottom: 0.75rem;
    margin-bottom: var(--spacing-3);
}

.loyalty-tooltip__points strong {
    color: #111827;
    color: var(--brand-gray-900);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
}

/* ============================================
   Progress Section
   ============================================ */

.loyalty-tooltip__progress {
    padding-top: 0.75rem;
    padding-top: var(--spacing-3);
    border-top: 1px solid #F3F4F6;
    border-top: 1px solid var(--brand-gray-100);
}

.loyalty-tooltip__progress-label {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    color: #111827;
    color: var(--brand-gray-900);
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
}

.loyalty-tooltip__progress-bar {
    width: 100%;
    height: 8px;
    background: #F3F4F6;
    background: var(--brand-gray-100);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
}

.loyalty-tooltip__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ED1C24, #D11920);
    background: linear-gradient(90deg, var(--brand-red-primary), var(--brand-red-dark));
    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-tooltip__progress-text {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #4B5563;
    color: var(--brand-gray-600);
    text-align: right;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    .loyalty-tooltip {
        width: 240px;
    }
}

/**
 * Cart Loyalty Styles
 * Loyalty discount and progress display in cart modal
 */

/**
 * Loyalty Discount Row
 */

.cart-modal__summary-row--loyalty-discount {
    color: var(--color-success-600);
}

.cart-modal__loyalty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    color: var(--brand-white);
    background: linear-gradient(135deg, #10B981, #059669);
    background: linear-gradient(135deg, var(--color-success), var(--color-success-dark));
    border-radius: 9999px;
    border-radius: var(--radius-full);
}

.cart-modal__summary-value--discount {
    color: var(--color-success-600);
    font-weight: 700;
}

/**
 * Loyalty Progress Section
 */

.cart-modal__loyalty-progress {
    padding: 16px;
    background: linear-gradient(135deg, #F9FAFB, #F3F4F6);
    background: linear-gradient(135deg, var(--brand-gray-50), var(--brand-gray-100));
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
}

.cart-modal__loyalty-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

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

.cart-modal__loyalty-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    color: var(--brand-gray-900);
}

.cart-modal__loyalty-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-modal__loyalty-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
    color: #374151;
    color: var(--brand-gray-700);
    line-height: 1.5;
}

.cart-modal__loyalty-text strong {
    color: #D11920;
    color: var(--brand-red-dark);
    font-weight: 700;
}

.cart-modal__loyalty-current {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
}

.cart-modal__loyalty-level-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 9999px;
    border-radius: var(--radius-full);
}

.cart-modal__loyalty-level-badge--current {
    color: #FFFFFF;
    color: var(--brand-white);
    background: linear-gradient(135deg, #ED1C24, #D11920);
    background: linear-gradient(135deg, var(--brand-red-primary), var(--brand-red-dark));
}

.cart-modal__loyalty-level-badge--next {
    color: #D11920;
    color: var(--brand-red-dark);
    background: #F3F4F6;
    background: var(--brand-gray-100);
    border: 1px solid #D1D5DB;
    border: 1px solid var(--brand-gray-300);
}

.cart-modal__loyalty-discount-text {
    font-size: 13px;
    color: #4B5563;
    color: var(--brand-gray-600);
}

.cart-modal__loyalty-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px;
    background: #FFFFFF;
    background: var(--brand-white);
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
}

.cart-modal__loyalty-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #4B5563;
    color: var(--brand-gray-600);
}

.cart-modal__loyalty-stat strong {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    color: var(--brand-gray-900);
}

/* Higher specificity without !important */

.cart-modal__loyalty-stat.cart-modal__loyalty-stat--highlight,
.cart-modal__loyalty-stat--highlight strong {
    color: #ED1C24;
    color: var(--brand-red-primary);
}

/**
 * Progress Bar
 */

.cart-modal__loyalty-bar-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-modal__loyalty-bar {
    position: relative;
    width: 100%;
    height: 12px;
    background: #FFFFFF;
    background: var(--brand-white);
    border: 2px solid #E5E7EB;
    border: 2px solid var(--brand-gray-200);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.cart-modal__loyalty-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ED1C24, #D11920);
    background: linear-gradient(90deg, var(--brand-red-primary), var(--brand-red-dark));
    border-radius: 9999px;
    border-radius: var(--radius-full);
    transition: width 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 0 10px rgba(var(--brand-red-primary-rgb), 0.3);
}

.cart-modal__loyalty-bar-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal__loyalty-bar-label {
    font-size: 11px;
    font-weight: 600;
    color: #4B5563;
    color: var(--brand-gray-600);
}

.cart-modal__loyalty-bar-label--start {
    color: #6B7280;
    color: var(--brand-gray-500);
}

.cart-modal__loyalty-bar-label--end {
    color: #ED1C24;
    color: var(--brand-red-primary);
}

/**
 * Benefit Display
 */

.cart-modal__loyalty-benefit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #FFFFFF;
    background: var(--brand-white);
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
}

.cart-modal__loyalty-benefit-text {
    font-size: 13px;
    color: #374151;
    color: var(--brand-gray-700);
}

.cart-modal__loyalty-benefit-value {
    font-size: 16px;
    font-weight: 700;
    color: #ED1C24;
    color: var(--brand-red-primary);
}

/**
 * Max Level State
 */

.cart-modal__loyalty-max-level {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--color-warning-50), var(--color-warning-100));
    border: 2px solid var(--color-warning-300);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
}

.cart-modal__loyalty-trophy-icon {
    flex-shrink: 0;
    color: var(--color-warning-600);
}

.cart-modal__loyalty-max-text {
    font-size: 13px;
    font-weight: 500;
    color: #1F2937;
    color: var(--brand-gray-800);
}

.cart-modal__loyalty-max-text strong {
    font-weight: 700;
    color: #D11920;
    color: var(--brand-red-dark);
}

/**
 * Responsive
 */

@media (max-width: 768px) {
    .cart-modal__loyalty-progress {
        padding: 12px;
        margin: 16px 0;
    }

    .cart-modal__loyalty-title {
        font-size: 13px;
    }

    .cart-modal__loyalty-info {
        font-size: 12px;
    }

    .cart-modal__loyalty-benefit {
        padding: 6px 10px;
    }

    .cart-modal__loyalty-benefit-text {
        font-size: 12px;
    }

    .cart-modal__loyalty-benefit-value {
        font-size: 14px;
    }
}

/* Forms */

/* ==========================================================================
   Form Groups and Fieldsets
   ========================================================================== */

/* Base (mobile): Fieldset (semantic grouping) */

.form-fieldset {
  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);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.form-fieldset--borderless {
  border: none;
  padding: 0;
}

/* Fieldset Legend */

.form-legend {
  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);
  padding: 0 0.5rem;
  padding: 0 var(--spacing-2);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.form-legend--small {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

/* Base (mobile): Form Section (visual grouping) */

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

.form-section:last-child {
  margin-bottom: 0;
}

/* Base (mobile): Form Section Header */

.form-section__header {
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  padding-bottom: 0.75rem;
  padding-bottom: var(--spacing-3);
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
}

.form-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-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

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

.form-section__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  gap: var(--spacing-5);
}

/* Compact Form Section */

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

.form-section--compact .form-section__header {
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

/* Base (mobile): Form Section with Card Style */

.form-section--card {
  padding: 1rem;
  padding: var(--spacing-4);
  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);
}

.form-section--card .form-section__header {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

/* Base (mobile): Form Row - stacked on mobile */

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
  margin-bottom: 1.25rem;
  margin-bottom: var(--spacing-5);
}

.form-row .form-field {
  flex: 1;
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.form-row--compact {
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.form-row--spacious {
  gap: 1.5rem;
  gap: var(--spacing-6);
}

/* Base (mobile): Form Column - single column on mobile */

.form-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  gap: var(--spacing-5);
}

.form-columns--3 {
  grid-template-columns: 1fr;
}

/* Form Divider */

.form-divider {
  height: 1px;
  background: #E5E7EB;
  background: var(--brand-gray-200);
  margin: 1.5rem 0;
  margin: var(--spacing-6) 0;
}

.form-divider--thick {
  height: 2px;
}

.form-divider--spacious {
  margin: 2rem 0;
  margin: var(--spacing-8) 0;
}

/* Form Group with Label (checkbox/radio groups) */

.form-group-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.75rem;
  margin-bottom: var(--spacing-3);
}

/* Checkbox/Radio Group Container */

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

/* Base (mobile): stacked inline groups */

.form-checkbox-group--inline,
.form-radio-group--inline {
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

/* Form Field Inline (checkbox/label on same line) */

.form-field-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.form-field-inline .form-checkbox,
.form-field-inline .form-radio {
  flex-shrink: 0;
  margin-top: 2px;
}

.form-field__label--inline {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 400;
  font-weight: var(--font-weight-normal);
  color: #111827;
  color: var(--brand-gray-900);
  line-height: 1.5;
  line-height: var(--line-height-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.form-field__label--inline .text-muted {
  color: #6B7280;
  color: var(--brand-gray-500);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

/* Nested Form Groups */

.form-group--nested {
  margin-left: 1.5rem;
  margin-left: var(--spacing-6);
  padding-left: 1rem;
  padding-left: var(--spacing-4);
  border-left: 2px solid #E5E7EB;
  border-left: 2px solid var(--brand-gray-200);
}

/* Form Help Block (for group-level help text) */

.form-help-block {
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  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);
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
  margin-top: 0.75rem;
  margin-top: var(--spacing-3);
}

.form-help-block .icon {
  width: 16px;
  height: 16px;
  color: #6B7280;
  color: var(--brand-gray-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-help-block--info {
  background: var(--brand-blue-50);
  color: var(--brand-blue-700);
}

.form-help-block--info .icon {
  color: var(--brand-blue-500);
}

.form-help-block--warning {
  background: #FBBF24;
  background: var(--color-warning-light);
  color: #D97706;
  color: var(--color-warning-dark);
}

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

.form-help-block--success {
  background: #34D399;
  background: var(--color-success-light);
  color: #059669;
  color: var(--color-success-dark);
}

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

/* Form Alert (for important messages in forms) */

.form-alert {
  padding: 1rem;
  padding: var(--spacing-4);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  margin-bottom: var(--spacing-5);
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  align-items: flex-start;
  border: 1px solid;
}

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

.form-alert__content {
  flex: 1;
}

.form-alert__title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.form-alert__message {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

.form-alert--info {
  background: var(--brand-blue-50);
  border-color: var(--brand-blue-200);
  color: var(--brand-blue-900);
}

.form-alert--info .icon {
  color: var(--brand-blue-500);
}

.form-alert--success {
  background: #34D399;
  background: var(--color-success-light);
  border-color: #10B981;
  border-color: var(--color-success);
  color: #059669;
  color: var(--color-success-dark);
}

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

.form-alert--warning {
  background: #FBBF24;
  background: var(--color-warning-light);
  border-color: #F59E0B;
  border-color: var(--color-warning);
  color: #D97706;
  color: var(--color-warning-dark);
}

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

.form-alert--error {
  background: #F04951;
  background: var(--color-error-light);
  border-color: #ED1C24;
  border-color: var(--color-error);
  color: #D11920;
  color: var(--color-error-dark);
}

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

/* Collapsible Form Section */

.form-section--collapsible .form-section__header {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-section--collapsible .form-section__toggle {
  width: 20px;
  height: 20px;
  color: #6B7280;
  color: var(--brand-gray-500);
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-fast);
}

.form-section--collapsible.form-section--collapsed .form-section__toggle {
  transform: rotate(-90deg);
}

.form-section--collapsible.form-section--collapsed .form-section__body {
  display: none;
}

/* Form Card Group (multiple cards in a form) */

.form-card-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

.form-card {
  padding: 1.25rem;
  padding: var(--spacing-5);
  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);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

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

.form-card--active {
  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);
}

.form-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

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

.form-card__actions {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

/* Tablet (640px+): horizontal layouts */

@media (min-width: 640px) {
  .form-row {
    flex-direction: row;
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .form-row .form-field {
    margin-bottom: 0;
  }

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

/* Desktop (1024px+): multi-column layouts */

@media (min-width: 1024px) {
  .form-fieldset {
    padding: 1.5rem;
    padding: var(--spacing-6);
  }

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

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

  .form-section__title {
    font-size: 1.25rem;
    font-size: var(--font-size-xl);
  }

  .form-section--card {
    padding: 1.5rem;
    padding: var(--spacing-6);
  }

  .form-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    gap: var(--spacing-6);
  }

  .form-columns--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Form Layouts
   ========================================================================== */

/* Default Vertical Form Layout */

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  gap: var(--spacing-5);
}

/* Inline Form Layout */

.form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  gap: var(--spacing-4);
}

.form-inline .form-field {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.form-inline .btn {
  flex-shrink: 0;
}

/* Horizontal Form Layout */

.form-horizontal {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  gap: var(--spacing-5);
}

.form-horizontal .form-field {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  gap: var(--spacing-4);
  align-items: start;
}

.form-horizontal .form-field__label {
  padding-top: 0.75rem;
  padding-top: var(--spacing-3);
  text-align: right;
  margin-bottom: 0;
}

.form-horizontal .form-field__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

/* Horizontal Form - Wide Label Variant */

.form-horizontal--wide .form-field {
  grid-template-columns: 250px 1fr;
}

/* Horizontal Form - Narrow Label Variant */

.form-horizontal--narrow .form-field {
  grid-template-columns: 150px 1fr;
}

/* Grid Form Layouts */

.form-grid {
  display: grid;
  gap: 1.25rem;
  gap: var(--spacing-5);
}

.form-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.form-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.form-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Auto-fit Grid (responsive columns) */

.form-grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Grid Column Span */

.form-field--span-2 {
  grid-column: span 2;
}

.form-field--span-3 {
  grid-column: span 3;
}

.form-field--span-4 {
  grid-column: span 4;
}

.form-field--full {
  grid-column: 1 / -1;
}

/* Compact Form Layout */

.form--compact {
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.form--compact .form-field {
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.form--compact .form-field__label {
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

/* Spacious Form Layout */

.form--spacious {
  gap: 2rem;
  gap: var(--spacing-8);
}

.form--spacious .form-field {
  margin-bottom: 2rem;
  margin-bottom: var(--spacing-8);
}

/* Form Actions (buttons at bottom) */

.form-actions {
  display: flex;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding-top: 1.5rem;
  padding-top: var(--spacing-6);
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
  margin-top: 1.5rem;
  margin-top: var(--spacing-6);
}

.form-actions--centered {
  justify-content: center;
}

.form-actions--right {
  justify-content: flex-end;
}

.form-actions--space-between {
  justify-content: space-between;
}

.form-actions--sticky {
  position: sticky;
  bottom: 0;
  background: #FFFFFF;
  background: var(--brand-white);
  padding: 1rem;
  padding: 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);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  z-index: 10;
}

/* Inline Field Group (multiple fields in one row) */

.form-field-group {
  display: flex;
  gap: 1rem;
  gap: var(--spacing-4);
  align-items: flex-end;
}

.form-field-group .form-field {
  flex: 1;
  margin-bottom: 0;
}

.form-field-group--compact {
  gap: 0.5rem;
  gap: var(--spacing-2);
}

/* Two-Column Form Layout */

.form--two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  gap: var(--spacing-6) var(--spacing-8);
}

/* Adaptive Form (switches layout based on content) */

.form--adaptive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  gap: var(--spacing-5);
}

/* Split Form (left/right sections) */

.form--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  gap: var(--spacing-8);
}

.form--split .form-split__left,
.form--split .form-split__right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  gap: var(--spacing-5);
}

.form--split .form-split__divider {
  width: 1px;
  background: #E5E7EB;
  background: var(--brand-gray-200);
  margin: 0 1rem;
  margin: 0 var(--spacing-4);
}

/* Form with Sidebar */

.form--with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  gap: var(--spacing-8);
}

.form-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

.form-sidebar__section {
  padding: 1rem;
  padding: var(--spacing-4);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
}

/* Multi-step Form */

.form--multi-step .form-step {
  display: none;
}

.form--multi-step .form-step--active {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  gap: var(--spacing-5);
}

.form-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  margin-bottom: var(--spacing-8);
  position: relative;
}

.form-steps::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 2px;
  background: #E5E7EB;
  background: var(--brand-gray-200);
  z-index: 0;
}

.form-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  position: relative;
  z-index: 1;
  flex: 1;
}

.form-step-indicator__circle {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  background: var(--brand-white);
  border: 2px solid #D1D5DB;
  border: 2px solid var(--brand-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #4B5563;
  color: var(--brand-gray-600);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.form-step-indicator--active .form-step-indicator__circle {
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  color: #FFFFFF;
  color: var(--brand-white);
}

.form-step-indicator--completed .form-step-indicator__circle {
  background: #10B981;
  background: var(--color-success);
  border-color: #10B981;
  border-color: var(--color-success);
  color: #FFFFFF;
  color: var(--brand-white);
}

.form-step-indicator__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);
  text-align: center;
}

.form-step-indicator--active .form-step-indicator__label {
  color: #ED1C24;
  color: var(--brand-red-primary);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

/* ============================================
   RESPONSIVE - Mobile-first
   ============================================ */

/* Base (mobile): single column, stacked layout */

.form-inline {
  flex-direction: column;
  align-items: stretch;
}

.form-inline .form-field {
  min-width: 100%;
}

.form-inline .btn {
  width: 100%;
}

.form-horizontal .form-field {
  grid-template-columns: 1fr;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.form-horizontal .form-field__label {
  text-align: left;
  padding-top: 0;
}

.form-grid--2,
.form-grid--3,
.form-grid--4 {
  grid-template-columns: 1fr;
}

.form-field--span-2,
.form-field--span-3,
.form-field--span-4 {
  grid-column: auto;
}

.form-field-group {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.form-field-group .form-field {
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.form-actions {
  flex-direction: column-reverse;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.form-actions .btn {
  width: 100%;
}

.form-actions--sticky {
  padding: 0.75rem;
  padding: var(--spacing-3);
}

.form-steps {
  flex-wrap: wrap;
  gap: 1rem;
  gap: var(--spacing-4);
}

.form-steps::before {
  display: none;
}

.form-step-indicator {
  flex-direction: row;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.form-step-indicator__circle {
  width: 28px;
  height: 28px;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.form-step-indicator__label {
  text-align: left;
}

.form--with-sidebar {
  grid-template-columns: 1fr;
  gap: 1rem;
  gap: var(--spacing-4);
}

.form--two-column,
.form--split {
  grid-template-columns: 1fr;
  gap: 1.5rem;
  gap: var(--spacing-6);
}

.form-sidebar {
  order: -1;
}

/* Tablet (640px+): 2-column grids, inline forms */

@media (min-width: 640px) {
  .form-inline {
    flex-direction: row;
    align-items: flex-end;
  }

  .form-inline .form-field {
    min-width: 200px;
  }

  .form-inline .btn {
    width: auto;
  }

  .form-horizontal .form-field {
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .form-horizontal .form-field__label {
    text-align: right;
    padding-top: 0.75rem;
    padding-top: var(--spacing-3);
  }

  .form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-field-group {
    flex-direction: row;
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .form-field-group .form-field {
    margin-bottom: 0;
  }

  .form-actions {
    flex-direction: row;
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .form-actions .btn {
    width: auto;
  }

  .form-actions--sticky {
    padding: 1rem;
    padding: var(--spacing-4);
  }

  .form-steps {
    flex-wrap: nowrap;
    gap: 2rem;
    gap: var(--spacing-8);
  }

  .form-steps::before {
    display: block;
  }

  .form-step-indicator {
    flex-direction: column;
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .form-step-indicator__circle {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    font-size: var(--font-size-base);
  }

  .form-step-indicator__label {
    text-align: center;
  }

  .form--with-sidebar {
    gap: 1.5rem;
    gap: var(--spacing-6);
  }
}

/* Desktop (1024px+): wider labels, 3-4 column grids */

@media (min-width: 1024px) {
  .form-horizontal .form-field {
    grid-template-columns: 200px 1fr;
  }

  .form-horizontal--wide .form-field {
    grid-template-columns: 250px 1fr;
  }

  .form-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .form--two-column,
  .form--split {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    gap: var(--spacing-8);
  }

  .form--with-sidebar {
    grid-template-columns: 1fr 300px;
  }

  .form-sidebar {
    order: 0;
  }
}

/* ==========================================================================
   Form Validation States
   ========================================================================== */

/* Validation Container */

.form-field--validating,
.form-field--valid,
.form-field--invalid {
  position: relative;
}

/* Validating State */

.form-field--validating .form-field__input,
.form-field--validating .form-field__select,
.form-field--validating .form-field__textarea {
  border-color: #9CA3AF;
  border-color: var(--brand-gray-400);
  padding-right: 2.5rem;
  padding-right: var(--spacing-10);
}

.form-field--validating .form-field__icon {
  position: absolute;
  right: 0.75rem;
  right: var(--spacing-3);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #6B7280;
  color: var(--brand-gray-500);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Valid State */

.form-field--valid .form-field__input,
.form-field--valid .form-field__select,
.form-field--valid .form-field__textarea {
  border-color: #10B981;
  border-color: var(--color-success);
  padding-right: 2.5rem;
  padding-right: var(--spacing-10);
}

.form-field--valid .form-field__input:focus,
.form-field--valid .form-field__select:focus,
.form-field--valid .form-field__textarea:focus {
  border-color: #10B981;
  border-color: var(--color-success);
  outline: 2px solid #34D399;
  outline: 2px solid var(--color-success-light);
  outline-offset: 0;
}

.form-field--valid .form-field__icon {
  position: absolute;
  right: 0.75rem;
  right: var(--spacing-3);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #10B981;
  color: var(--color-success);
}

/* Invalid State */

.form-field--invalid .form-field__input,
.form-field--invalid .form-field__select,
.form-field--invalid .form-field__textarea {
  border-color: #ED1C24;
  border-color: var(--color-error);
  padding-right: 2.5rem;
  padding-right: var(--spacing-10);
}

.form-field--invalid .form-field__input:focus,
.form-field--invalid .form-field__select:focus,
.form-field--invalid .form-field__textarea:focus {
  border-color: #ED1C24;
  border-color: var(--color-error);
  outline: 2px solid #F04951;
  outline: 2px solid var(--color-error-light);
  outline-offset: 0;
}

.form-field--invalid .form-field__icon {
  position: absolute;
  right: 0.75rem;
  right: var(--spacing-3);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #ED1C24;
  color: var(--color-error);
}

/* Textarea Icon Position Adjustment */

.form-field--validating:has(.form-field__textarea) .form-field__icon,
.form-field--valid:has(.form-field__textarea) .form-field__icon,
.form-field--invalid:has(.form-field__textarea) .form-field__icon {
  top: 1rem;
  top: var(--spacing-4);
  transform: translateY(0);
}

/* Validation Messages */

.form-field__error,
.form-field__success,
.form-field__warning {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  gap: var(--spacing-1);
  line-height: 1.375;
  line-height: var(--line-height-snug);
}

.form-field__error .icon,
.form-field__success .icon,
.form-field__warning .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

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

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

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

/* Multiple Validation Messages */

.form-field__messages {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
}

/* Validation Summary (for forms with multiple errors) */

.form-validation-summary {
  padding: 1rem;
  padding: var(--spacing-4);
  background: #F04951;
  background: var(--color-error-light);
  border: 1px solid #ED1C24;
  border: 1px solid var(--color-error);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.form-validation-summary__title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #ED1C24;
  color: var(--color-error);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.form-validation-summary__title .icon {
  width: 20px;
  height: 20px;
}

.form-validation-summary__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.form-validation-summary__item {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #ED1C24;
  color: var(--color-error);
  padding-left: 1.5rem;
  padding-left: var(--spacing-6);
  position: relative;
}

.form-validation-summary__item::before {
  content: '"';
  position: absolute;
  left: 0.5rem;
  left: var(--spacing-2);
}

/* Success Summary */

.form-validation-summary--success {
  background: #34D399;
  background: var(--color-success-light);
  border-color: #10B981;
  border-color: var(--color-success);
}

.form-validation-summary--success .form-validation-summary__title,
.form-validation-summary--success .form-validation-summary__item {
  color: #10B981;
  color: var(--color-success);
}

/* Warning Summary */

.form-validation-summary--warning {
  background: #FBBF24;
  background: var(--color-warning-light);
  border-color: #F59E0B;
  border-color: var(--color-warning);
}

.form-validation-summary--warning .form-validation-summary__title,
.form-validation-summary--warning .form-validation-summary__item {
  color: #F59E0B;
  color: var(--color-warning);
}

/* Inline Validation Tooltip */

.form-field__tooltip {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  bottom: calc(100% + var(--spacing-2));
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  background: #111827;
  background: var(--brand-gray-900);
  color: #FFFFFF;
  color: var(--brand-white);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  z-index: 10;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.form-field__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 1rem;
  left: var(--spacing-4);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #111827;
  border-top: 6px solid var(--brand-gray-900);
}

.form-field__input:focus ~ .form-field__tooltip,
.form-field__select:focus ~ .form-field__tooltip,
.form-field__textarea:focus ~ .form-field__tooltip {
  opacity: 1;
  transform: translateY(0);
}

.form-field__tooltip--error {
  background: #ED1C24;
  background: var(--color-error);
}

.form-field__tooltip--error::after {
  border-top-color: #ED1C24;
  border-top-color: var(--color-error);
}

.form-field__tooltip--success {
  background: #10B981;
  background: var(--color-success);
}

.form-field__tooltip--success::after {
  border-top-color: #10B981;
  border-top-color: var(--color-success);
}

.form-field__tooltip--warning {
  background: #F59E0B;
  background: var(--color-warning);
  color: #111827;
  color: var(--brand-gray-900);
}

.form-field__tooltip--warning::after {
  border-top-color: #F59E0B;
  border-top-color: var(--color-warning);
}

/* Real-time Validation Feedback */

.form-field__strength {
  display: flex;
  gap: 0.25rem;
  gap: var(--spacing-1);
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
}

.form-field__strength-bar {
  flex: 1;
  height: 4px;
  background: #E5E7EB;
  background: var(--brand-gray-200);
  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);
}

.form-field__strength-bar--active {
  background: #ED1C24;
  background: var(--color-error);
}

.form-field__strength-bar--active.form-field__strength-bar--2 {
  background: #F59E0B;
  background: var(--color-warning);
}

.form-field__strength-bar--active.form-field__strength-bar--3 {
  background: #10B981;
  background: var(--color-success);
}

.form-field__strength-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);
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
}

/* Character Counter with Validation */

.form-field__counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
}

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

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

/* Required Field Indicator */

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

/* Optional Field Indicator */

.form-field__label--optional::after {
  content: '(>?F8>=0;L=>)';
  font-weight: 400;
  font-weight: var(--font-weight-normal);
  color: #6B7280;
  color: var(--brand-gray-500);
  margin-left: 0.5rem;
  margin-left: var(--spacing-2);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
}

/* Validation Animation */

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-4px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(4px);
  }
}

.form-field--shake .form-field__input,
.form-field--shake .form-field__select,
.form-field--shake .form-field__textarea {
  animation: shake 0.5s;
}

/* Field-level shake animation (used by field-animations.js) */

.field-shake {
  animation: shake 0.5s ease-in-out;
}

/* Field error pulse (visual emphasis) */

.field-error-pulse {
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: border-color var(--transition-base);
}

/* Field success pulse (subtle confirmation) */

.field-success-pulse {
  animation: successPulse 0.4s ease-in-out;
}

@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.01);
  }
}

/* Checkbox and Radio Validation */

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

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

/* ============================================
   RESPONSIVE - Mobile-first overrides
   ============================================ */

/* Note: Base styles defined above work for both mobile and desktop.
   These overrides are kept for backwards compatibility but
   the base styles already use compact mobile-friendly values. */

/* Tablet and up (640px+): slightly larger padding where beneficial */

@media (min-width: 640px) {
  .form-validation-summary {
    padding: 1rem;
    padding: var(--spacing-4);
  }
}

/* ==========================================================================
   File Upload Component
   ========================================================================== */

/* File Upload Container */

.file-upload {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
  width: 100%;
}

/* File Upload Dropzone */

.file-upload__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px; /* Mobile-first: compact */
  padding: 1.5rem 1rem;
  padding: var(--spacing-6) var(--spacing-4); /* Mobile-first: compact */
  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);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  text-align: center;
}

.file-upload__dropzone:hover {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  background: #F3F4F6;
  background: var(--brand-gray-100);
}

.file-upload__dropzone--active {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  background: var(--brand-red-50);
  border-style: solid;
}

.file-upload__dropzone--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Dropzone Icon */

.file-upload__icon {
  width: 40px; /* Mobile-first: compact */
  height: 40px; /* Mobile-first: compact */
  color: #9CA3AF;
  color: var(--brand-gray-400);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.file-upload__dropzone:hover .file-upload__icon,
.file-upload__dropzone--active .file-upload__icon {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* Dropzone Text */

.file-upload__text {
  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-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.file-upload__hint {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #6B7280;
  color: var(--brand-gray-500);
}

.file-upload__hint--link {
  color: #ED1C24;
  color: var(--brand-red-primary);
  text-decoration: underline;
  cursor: pointer;
}

/* Hidden File Input */

.file-upload__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* File Preview List */

.file-upload__preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

/* File Preview Item */

.file-upload__preview-item {
  display: flex;
  align-items: 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: 0.5rem;
  border-radius: var(--radius-lg);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.file-upload__preview-item:hover {
  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);
}

/* File Preview Thumbnail */

.file-upload__thumbnail {
  width: 48px;
  height: 48px;
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
  background: #F3F4F6;
  background: var(--brand-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-upload__thumbnail--icon {
  width: 24px;
  height: 24px;
  color: #6B7280;
  color: var(--brand-gray-500);
}

/* File Preview Info */

.file-upload__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.file-upload__filename {
  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);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-upload__meta {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
}

/* File Preview Progress */

.file-upload__progress {
  flex: 1;
  height: 4px;
  background: #E5E7EB;
  background: var(--brand-gray-200);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.file-upload__progress-bar {
  height: 100%;
  background: #ED1C24;
  background: var(--brand-red-primary);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
  position: relative;
}

.file-upload__progress-bar--success {
  background: #10B981;
  background: var(--color-success);
}

.file-upload__progress-bar--error {
  background: #ED1C24;
  background: var(--color-error);
}

/* Animated Progress Bar */

.file-upload__progress-bar--animated::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* File Preview Actions */

.file-upload__actions {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
  flex-shrink: 0;
}

.file-upload__action {
  padding: 0.5rem;
  padding: var(--spacing-2);
  border: none;
  background: transparent;
  color: #6B7280;
  color: var(--brand-gray-500);
  cursor: pointer;
  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);
}

.file-upload__action:hover {
  background: #F3F4F6;
  background: var(--brand-gray-100);
  color: #111827;
  color: var(--brand-gray-900);
}

.file-upload__action--delete {
  color: #ED1C24;
  color: var(--color-error);
}

.file-upload__action--delete:hover {
  background: #F04951;
  background: var(--color-error-light);
  color: #ED1C24;
  color: var(--color-error);
}

.file-upload__action .icon {
  width: 20px;
  height: 20px;
}

/* File Upload States */

.file-upload--success .file-upload__dropzone {
  border-color: #10B981;
  border-color: var(--color-success);
  background: #34D399;
  background: var(--color-success-light);
}

.file-upload--error .file-upload__dropzone {
  border-color: #ED1C24;
  border-color: var(--color-error);
  background: #F04951;
  background: var(--color-error-light);
}

/* Compact File Upload */

.file-upload--compact .file-upload__dropzone {
  min-height: 120px;
  padding: 1.5rem 1rem;
  padding: var(--spacing-6) var(--spacing-4);
}

.file-upload--compact .file-upload__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

/* File Upload Sizes */

.file-upload--sm .file-upload__dropzone {
  min-height: 100px;
  padding: 1rem;
  padding: var(--spacing-4);
}

.file-upload--sm .file-upload__icon {
  width: 24px;
  height: 24px;
}

.file-upload--sm .file-upload__text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.file-upload--lg .file-upload__dropzone {
  min-height: 280px;
  padding: 2.5rem 2rem;
  padding: var(--spacing-10) var(--spacing-8);
}

.file-upload--lg .file-upload__icon {
  width: 64px;
  height: 64px;
}

.file-upload--lg .file-upload__text {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
}

/* Multiple File Upload */

.file-upload--multiple .file-upload__dropzone {
  border-style: solid;
}

/* File Type Restrictions Message */

.file-upload__restrictions {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  text-align: center;
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
}

/* Error Message */

.file-upload__error {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #ED1C24;
  color: var(--color-error);
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  background: #F04951;
  background: var(--color-error-light);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.file-upload__error .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Success Message */

.file-upload__success {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #10B981;
  color: var(--color-success);
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  background: #34D399;
  background: var(--color-success-light);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.file-upload__success .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE - Mobile-first
   ============================================ */

/* Base (mobile): compact styles already applied above */

/* Preview item wraps on mobile */

.file-upload__preview-item {
  flex-wrap: wrap;
}

.file-upload__actions {
  width: 100%;
  justify-content: flex-end;
}

/* Tablet and up (640px+): larger dropzone and icon */

@media (min-width: 640px) {
  .file-upload__dropzone {
    min-height: 200px;
    padding: 2rem 1.5rem;
    padding: var(--spacing-8) var(--spacing-6);
  }

  .file-upload__icon {
    width: 48px;
    height: 48px;
  }

  .file-upload__preview-item {
    flex-wrap: nowrap;
  }

  .file-upload__actions {
    width: auto;
  }
}

/**
 * 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%;
}

/* Base (mobile): compact field */

.code-input__field {
  flex: 1;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  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 2.5rem 0.75rem 0.75rem;
  padding: var(--spacing-3) var(--spacing-10) 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);
}

/* Base (mobile): compact copy button */

.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: 32px;
  height: 32px;
  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);
}

/* Base (mobile): compact icon */

.code-input__icon {
  width: 16px;
  height: 16px;
}

/* Base (mobile): compact feedback */

.code-input__feedback {
  position: absolute;
  right: 2.5rem;
  right: var(--spacing-10);
  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: var(--font-size-2xs);
  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: rgba(237, 28, 36, 0.1);
  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: rgba(16, 185, 129, 0.1);
  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;
}

/* Tablet and up (640px+): larger sizes */

@media (min-width: 640px) {
  .code-input__field {
    font-size: 1rem;
    font-size: var(--font-size-base);
    padding-right: 3rem;
    padding-right: var(--spacing-12);
  }

  .code-input__copy {
    width: 36px;
    height: 36px;
  }

  .code-input__icon {
    width: 18px;
    height: 18px;
  }

  .code-input__feedback {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    right: 3rem;
    right: var(--spacing-12);
  }
}

/* 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);
  display: flex;
  justify-content: space-between;
}

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

/* Dark theme - ensure product images have white background (design decision) */

[data-theme="dark"] .product-card__image-container,
[data-theme="dark"] .product-card__image {
  background: #ffffff;
}

/* 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__image-container,
.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: 0.5rem;
  padding: var(--spacing-2);
  background: #ffffff;
}

.product-card__image-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

/* Image switcher transforms based on data-current-index */

/* CLAUDE.md compliance: Using data-attributes instead of inline styles */

.product-card__image-track[data-current-index="0"] { transform: translateX(0%); }

.product-card__image-track[data-current-index="1"] { transform: translateX(-100%); }

.product-card__image-track[data-current-index="2"] { transform: translateX(-200%); }

.product-card__image-track[data-current-index="3"] { transform: translateX(-300%); }

.product-card__image-track[data-current-index="4"] { transform: translateX(-400%); }

.product-card__image-track[data-current-index="5"] { transform: translateX(-500%); }

.product-card__image-track[data-current-index="6"] { transform: translateX(-600%); }

.product-card__image-track[data-current-index="7"] { transform: translateX(-700%); }

.product-card__image-track[data-current-index="8"] { transform: translateX(-800%); }

.product-card__image-track[data-current-index="9"] { transform: translateX(-900%); }

.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 (mobile-first: приховані за замовчуванням) */

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

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

/* Desktop: показати hover zones (1024px+) */

@media (min-width: 1024px) {
  .product-card__hover-zone {
    display: block;
  }
}

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

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

/* Info wrapper - для grid view просто inherit column layout */

.product-card__info {
  display: flex;
  flex-direction: column;
}

.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: 1.25;
  line-height: var(--line-height-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;
  justify-content: space-between;
}

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

.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: 26px;
  height: 26px;
  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: 16px;
  touch-action: manipulation;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

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

.product-card__counter-btn:active {
  transform: scale(0.95);
}

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

.product-card__counter-value {
  min-width: 48px;
  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.5rem;
  padding: 0 var(--spacing-2);
}

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

   Mobile: vertical stacked layout
   Tablet+: horizontal row layout
   ============================================ */

/* Base (mobile): vertical stacked layout */

.product-card--horizontal {
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: auto;
  gap: 0;
}

/* 1. Image Container - full width on mobile */

.product-card--horizontal .product-card__image-container {
  width: 100%;
  height: 180px;
  flex-shrink: 0;
}

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

/* Badge positioning */

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

/* Favorite button */

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

/* Gallery indicators */

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

/* 2. Content block - stacked on mobile */

.product-card--horizontal .product-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  padding: var(--spacing-4);
  gap: 0.75rem;
  gap: var(--spacing-3);
  min-width: 0;
}

/* Info wrapper */

.product-card--horizontal .product-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
  min-width: auto;
  width: 100%;
}

.product-card--horizontal .product-card__title {
  font-size: 1rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0;
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

.product-card--horizontal .product-card__meta {
  margin-bottom: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  gap: var(--spacing-1);
}

.product-card--horizontal .product-card__sku {
  margin-bottom: 0;
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
}

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

/* Features - single column on mobile */

.product-card--horizontal .product-card__features {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  gap: var(--spacing-1);
  flex: 1;
}

.product-card--horizontal .product-card__features li {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
}

/* Actions block - stacked on mobile */

.product-card--horizontal .product-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 0 1rem 1rem;
  padding: 0 var(--spacing-4) var(--spacing-4);
  margin-top: 0;
}

/* Price-Counter group: row layout on mobile */

.product-card--horizontal .product-card__price-counter-group {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

/* Counter */

.product-card--horizontal .product-card__counter {
  margin: 0;
  flex-shrink: 0;
  order: 1;
}

/* Price */

.product-card--horizontal .product-card__price {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  order: 2;
}

.product-card--horizontal .product-card__price-current {
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
}

/* Cart button - full width on mobile */

.product-card--horizontal .product-card__actions .btn {
  width: 100%;
  flex-shrink: 0;
  order: 3;
}

/* Extra small mobile (< 375px): more compact */

@media (max-width: 374px) {
  .product-card--horizontal .product-card__image-container {
    height: 150px;
  }

  .product-card--horizontal .product-card__content {
    padding: 0.75rem;
    padding: var(--spacing-3);
    gap: 0.5rem;
    gap: var(--spacing-2);
  }

  .product-card--horizontal .product-card__actions {
    padding: 0 0.75rem 0.75rem;
    padding: 0 var(--spacing-3) var(--spacing-3);
    gap: 0.5rem;
    gap: var(--spacing-2);
  }

  .product-card--horizontal .product-card__price-counter-group {
    flex-wrap: wrap;
    gap: 0.5rem;
    gap: var(--spacing-2);
  }

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

/* Tablet (640px+): horizontal layout */

@media (min-width: 640px) {
  .product-card--horizontal {
    flex-direction: row;
    align-items: stretch;
    min-height: 160px;
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .product-card--horizontal .product-card__image-container {
    width: 140px;
    height: auto;
    align-self: center;
  }

  .product-card--horizontal .product-card__content {
    flex-direction: row;
    align-items: flex-start;
    padding: 1rem 0;
    padding: var(--spacing-4) 0;
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .product-card--horizontal .product-card__info {
    min-width: 160px;
    flex-shrink: 0;
  }

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

  .product-card--horizontal .product-card__meta {
    gap: 0.5rem;
    gap: var(--spacing-2);
  }

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

  .product-card--horizontal .product-card__features {
    gap: 0.25rem 0.75rem;
    gap: var(--spacing-1) var(--spacing-3);
    align-self: center;
  }

  .product-card--horizontal .product-card__features li {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }

  .product-card--horizontal .product-card__actions {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    gap: var(--spacing-3);
    padding: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
    flex-shrink: 0;
    align-self: center;
  }

  .product-card--horizontal .product-card__price-counter-group {
    justify-content: flex-start;
    width: auto;
  }

  .product-card--horizontal .product-card__actions .btn {
    width: auto;
  }
}

/* Desktop (1024px+): full horizontal layout */

@media (min-width: 1024px) {
  .product-card--horizontal {
    gap: 1.25rem;
    gap: var(--spacing-5);
  }

  .product-card--horizontal .product-card__image-container {
    width: 180px;
  }

  .product-card--horizontal .product-card__content {
    gap: 1.5rem;
    gap: var(--spacing-6);
  }

  .product-card--horizontal .product-card__info {
    min-width: 200px;
  }

  .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: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem 1rem;
    gap: var(--spacing-2) var(--spacing-4);
  }

  .product-card--horizontal .product-card__actions {
    gap: 1rem;
    gap: var(--spacing-4);
    padding: 1rem 1.25rem;
    padding: var(--spacing-4) var(--spacing-5);
  }

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

  .product-card--horizontal .product-card__price-current {
    font-size: 1.5rem;
    font-size: var(--font-size-2xl);
  }
}

/* Wide desktop (1280px+): larger image */

@media (min-width: 1280px) {
  .product-card--horizontal .product-card__image-container {
    width: 220px;
  }

  .product-card--horizontal .product-card__info {
    min-width: 240px;
  }
}

/* Ultra-wide (1536px+): largest sizes */

@media (min-width: 1536px) {
  .product-card--horizontal .product-card__image-container {
    width: 240px;
  }

  .product-card--horizontal .product-card__info {
    min-width: 280px;
  }
}

/* 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%;
  transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: box-shadow var(--transition-base);
}

.product-card__stock--available .product-card__stock-indicator {
  background: #10B981;
  background: var(--color-success);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.4),
              0 0 10px rgba(52, 211, 153, 0.2);
}

.product-card__stock--low .product-card__stock-indicator {
  background: #F59E0B;
  background: var(--color-warning);
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.4),
              0 0 10px rgba(251, 191, 36, 0.2);
}

.product-card__stock--out .product-card__stock-indicator {
  background: #ED1C24;
  background: var(--color-error);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4),
              0 0 10px rgba(239, 68, 68, 0.2);
}

.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 (vertical grid only) */
  .product-card--sm:not(.product-card--horizontal) {
    max-width: 190px;
  }

  /* Horizontal layout cards always full width on mobile */
  .product-card--sm.product-card--horizontal {
    max-width: none;
    width: 100%;
  }

  .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 0.25rem;
    margin-bottom: 0 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;
  display: flex;
  gap: 0.5rem;
}

.event-card__price-amount {
  font-size: var(--font-size-md);
  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: 1rem 0 1rem 0;
  margin: var(--spacing-4) 0 var(--spacing-4) 0;
  line-height: 1.25;
  line-height: var(--line-height-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: 1.5;
  line-height: var(--line-height-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__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  padding-top: var(--spacing-3);
  border-top: 1px solid #F3F4F6;
  border-top: 1px solid var(--brand-gray-100);
}

.event-card__participants {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
}

.event-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  border-top: 1px solid #F3F4F6;
  border-top: 1px solid var(--brand-gray-100);
  background: #F9FAFB;
  background: var(--brand-gray-50);
}

/* 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: rgba(237, 28, 36, 0.1);
  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 - Full Width variant (for list view) */

.protocol-card--full-width {
  max-width: none;
}

.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: 1.25;
  line-height: var(--line-height-tight);
}

.protocol-card__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 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%, rgba(237, 28, 36, 0.1) 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: rgba(16, 185, 129, 0.1);
    background-color: var(--color-success-bg);
    color: #10B981;
    color: var(--color-success);
}

.metric-icon--orders {
    background-color: rgba(59, 130, 246, 0.1);
    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: rgba(245, 158, 11, 0.1);
    background-color: var(--color-warning-bg);
    color: #F59E0B;
    color: var(--color-warning);
}

.metric-icon--success {
    background-color: rgba(16, 185, 129, 0.1);
    background-color: var(--color-success-bg);
    color: #10B981;
    color: var(--color-success);
}

.metric-icon--info {
    background-color: rgba(59, 130, 246, 0.1);
    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: rgba(237, 28, 36, 0.1);
    background-color: var(--color-error-bg);
    color: #ED1C24;
    color: var(--color-error);
}

/* 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);
    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);
    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%, rgba(16, 185, 129, 0.1) 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%, rgba(245, 158, 11, 0.1) 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%, rgba(237, 28, 36, 0.1) 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%, rgba(59, 130, 246, 0.1) 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);
    }
}

/* =================================================================
   IMAGE SKELETON LOADER
   ================================================================= */

.product-card__image-skeleton {
    position: absolute;
    top: calc(-1 * 0.5rem);
    top: calc(-1 * var(--spacing-2));
    left: calc(-1 * 0.5rem);
    left: calc(-1 * var(--spacing-2));
    right: calc(-1 * 0.5rem);
    right: calc(-1 * var(--spacing-2));
    bottom: calc(-1 * 0.5rem);
    bottom: calc(-1 * var(--spacing-2));
    width: auto;
    height: auto;
    background: linear-gradient(
        90deg,
        rgba(243, 244, 246, 0.5) 0%,
        rgba(229, 231, 235, 0.8) 20%,
        rgba(243, 244, 246, 0.5) 40%,
        rgba(243, 244, 246, 0.5) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0;
    z-index: 1;
    pointer-events: none;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.product-card__image-slide img {
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity var(--transition-base);
}

.product-card__image-slide img.loaded {
    opacity: 1;
}

/* Hide skeleton when image is loaded */

.product-card__image-slide.image-loaded .product-card__image-skeleton {
    display: none;
}

/* 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: 1.75;
  line-height: var(--line-height-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 - Mobile-first */

/* Base (mobile): Toast Container - full width */

.toast-container {
  position: fixed;
  top: 0.5rem;
  top: var(--spacing-2);
  right: 0.5rem;
  right: var(--spacing-2);
  left: 0.5rem;
  left: var(--spacing-2);
  z-index: 1070;
  z-index: var(--z-tooltip);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
  pointer-events: none;
  max-width: none;
}

.toast-container .toast {
  pointer-events: auto;
}

/* Base (mobile): Toast - full width */

.toast {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: 100%;
  max-width: none;
  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;
}

/* Base (mobile): Toast without container - full width */

.toast:not(.toast-container .toast) {
  position: fixed;
  top: 0.5rem;
  top: var(--spacing-2);
  left: 0.5rem;
  left: var(--spacing-2);
  right: 0.5rem;
  right: var(--spacing-2);
  transform: none;
}

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

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

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

/* Legacy centered toast animations */

.toast:not(.toast-container .toast) {
  animation: toast-slide-in-center 0.3s ease-out;
}

.toast:not(.toast-container .toast).toast--removing {
  animation: toast-slide-out-center 0.3s ease-out forwards;
}

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

@keyframes toast-slide-out-center {
  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: 1.75;
  line-height: var(--line-height-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);
}

/* Base (mobile): Notification Container - full width */

#notification-container {
  position: fixed;
  bottom: 1rem;
  bottom: var(--spacing-4);
  left: 0.5rem;
  left: var(--spacing-2);
  right: 0.5rem;
  right: var(--spacing-2);
  z-index: 10000;
  z-index: var(--z-notification);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
  max-width: calc(100% - 1rem);
  max-width: calc(100% - var(--spacing-4));
  pointer-events: none;
}

#notification-container .alert {
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
  pointer-events: auto;
}

#notification-container .alert--visible {
  opacity: 1;
  transform: translateX(0);
}

/* Tablet and up (640px+): desktop toast/notification positioning */

@media (min-width: 640px) {
  .toast-container {
    top: 1rem;
    top: var(--spacing-4);
    right: 1rem;
    right: var(--spacing-4);
    left: auto;
    max-width: 400px;
  }

  .toast {
    max-width: 400px;
  }

  .toast:not(.toast-container .toast) {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  #notification-container {
    left: 1rem;
    left: var(--spacing-4);
    right: auto;
    max-width: 24rem;
  }
}

/* Alert dismissing animation (CSP-compliant) */

.alert--dismissing {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* Modal Overlay */

.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;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
}

.modal-overlay--open,
.modal__overlay--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* New macro structure: <div class="modal hidden"><div class="modal__overlay"> */

.modal.hidden {
  display: none;
}

.modal:not(.hidden) {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding: var(--spacing-4);
}

.modal:not(.hidden) > .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: -1;
}

.modal:not(.hidden) > .modal__container {
  position: relative;
  z-index: 1;
  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: 640px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  animation: modalSlideIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: modalSlideIn var(--transition-base);
}

/* Modal Container (old structure - inside modal-overlay) */

.modal-overlay .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;
  display: flex;
  flex-direction: column;
}

/* Modal size modifiers with higher specificity */

.modal-overlay .modal.modal--lg {
  max-width: 600px;
}

.modal-overlay .modal.modal--xl {
  max-width: 800px;
}

.modal-overlay .modal.modal--full {
  max-width: 95vw;
  max-height: 95vh;
}

.modal-overlay--open .modal,
.modal__overlay--active .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 {
  width: 100%;
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  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;
}

/* Additional modal sizes for admin forms */

.modal--700 {
  max-width: 700px;
}

.modal--900 {
  max-width: 900px;
}

/* Modal__container variants (for EventManager) */

.modal__container {
  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: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
}

.modal-overlay--open .modal__container,
.modal__overlay--active .modal__container {
  transform: scale(1) translateY(0);
}

.modal__container--sm {
  max-width: 400px;
}

.modal__container--lg {
  max-width: 700px;
}

.modal__container--xl {
  max-width: 900px;
}

.modal__container--full {
  max-width: 95vw;
  max-height: 95vh;
}

.modal__body {
  padding: 1.5rem;
  padding: var(--spacing-6);
  overflow-y: auto;
  max-height: calc(90vh - 160px);
}

/* Modal without header */

.modal--no-header .modal__content {
  padding: 1.5rem;
  padding: var(--spacing-6);
}

/* Preview Modal (for email/content previews with iframe) */

.modal--preview {
  max-width: 800px;
}

.modal--preview .modal__close {
  position: absolute;
  top: 0.5rem;
  top: var(--spacing-2);
  right: 0.5rem;
  right: var(--spacing-2);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  background: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  color: #374151;
  color: var(--brand-gray-700);
}

.modal--preview .modal__close:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #111827;
  color: var(--brand-gray-900);
}

.modal--preview .modal__content {
  padding: 1.25rem;
  padding: var(--spacing-5);
}

.modal--preview iframe {
  width: 100%;
  min-height: 500px;
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
}

/* ============================================
   RESPONSIVE - Mobile-first
   ============================================ */

/* Base (mobile): bottom sheet style */

.modal-overlay,
.modal__overlay {
  padding: 0;
  align-items: flex-end;
}

/* Old structure: .modal-overlay > .modal */

.modal-overlay .modal,
.modal__container {
  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%);
}

/* New structure: .modal:not(.hidden) is the flex container, no transform */

.modal:not(.hidden) {
  transform: none;
}

.modal-overlay--open .modal,
.modal-overlay--open .modal__container,
.modal__overlay--active .modal,
.modal__overlay--active .modal__container,
.modal:not(.hidden) > .modal__container {
  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);
}

/* Tablet and up (640px+): centered modal style */

@media (min-width: 640px) {
  .modal-overlay,
  .modal__overlay {
    padding: 1rem;
    padding: var(--spacing-4);
    align-items: center;
  }

  /* Old structure: .modal-overlay > .modal */
  .modal-overlay .modal,
  .modal__container {
    max-width: 640px;
    max-height: 90vh;
    border-radius: 1.5rem;
    border-radius: var(--radius-3xl);
    transform: scale(0.95) translateY(20px);
  }

  /* New structure: .modal:not(.hidden) is the flex container, no transform */
  .modal:not(.hidden) {
    transform: none;
  }

  .modal-overlay--open .modal,
  .modal-overlay--open .modal__container,
  .modal__overlay--active .modal,
  .modal__overlay--active .modal__container,
  .modal:not(.hidden) > .modal__container {
    transform: scale(1) translateY(0);
  }

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

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

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

  .login-modal__social {
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .login-modal__social-btn {
    padding: 1.25rem;
    padding: var(--spacing-5);
  }
}

/* Modal Animations */

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 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 §2.2 compliance)
   !important is justified here - these are JavaScript state modifiers that must
   guarantee element visibility/scroll-lock regardless of other styles */

.lightbox__caption--hidden {
  display: none !important;
}

.lightbox__nav-btn--hidden {
  display: none !important;
}

/* Prevent body scroll when lightbox is open
   !important is justified - body-level scroll lock must override any other overflow styles */

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 - Right Column */

.cart-modal__item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

/* Cart Item Header - Top Row (Title + SKU + Delete Button) */

.cart-modal__item-header {
  display: flex;
  align-items: flex-start;
  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);
}

/* Cart Item Footer - Bottom Row (Counter + Price + Total) */

.cart-modal__item-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  gap: var(--spacing-4);
}

/* Cart Item Controls */

.cart-modal__item-controls {
  display: flex;
  align-items: center;
}

/* Cart Item Pricing */

.cart-modal__item-pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  gap: var(--spacing-1);
  min-width: 100px;
}

.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 Total */

.cart-modal__item-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 100px;
  margin-left: auto;
}

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

.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 {
    width: 100%;
  }

  .cart-modal__item-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .cart-modal__item-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    gap: var(--spacing-3);
    justify-content: space-between;
  }

  .cart-modal__item-controls {
    justify-content: flex-start;
  }

  .cart-modal__item-pricing {
    align-items: flex-start;
    min-width: auto;
  }

  .cart-modal__item-total {
    justify-content: 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;
    /* display: table is default - preserves proper table layout on desktop */
    /* overflow-x handled by parent .table__container or card wrapper */
}

/* =================================================================
   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;
}

/* Checkbox column alignment */

.table__cell--checkbox,
.table__header-cell.table__cell--checkbox {
    text-align: center;
    width: 60px;
}

/* =================================================================
   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: rgba(237, 28, 36, 0.1);
    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: rgba(16, 185, 129, 0.1);
    background-color: var(--color-success-bg);
    color: #10B981;
    color: var(--color-success);
}

.table__status--warning {
    background-color: rgba(245, 158, 11, 0.1);
    background-color: var(--color-warning-bg);
    color: #F59E0B;
    color: var(--color-warning);
}

.table__status--error {
    background-color: rgba(237, 28, 36, 0.1);
    background-color: var(--color-error-bg);
    color: #ED1C24;
    color: var(--color-error);
}

.table__status--info {
    background-color: rgba(59, 130, 246, 0.1);
    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);
    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;
    max-width: 115px;
}

/* =================================================================
   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:not(.table--mobile-cards) {
        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 */

/* =================================================================
   MOBILE CARD LAYOUT SYSTEM
   ================================================================= */

/* Mobile Card Layout - transforms table rows into vertical cards */

@media (max-width: 639px) {
    /* Disable overflow on container for mobile cards */
    .table--mobile-cards + .table__container,
    .table__container:has(.table--mobile-cards) {
        overflow-x: visible;
        overflow-y: visible;
    }

    .table--mobile-cards {
        display: block;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .table--mobile-cards .table__head {
        display: none;
    }

    .table--mobile-cards .table__body {
        display: block;
    }

    .table--mobile-cards .table__row {
        display: block;
        margin-bottom: 1rem;
        margin-bottom: var(--spacing-4);
        border: 1px solid #E5E7EB;
        border: 1px solid var(--brand-gray-200);
        border-radius: 0.5rem;
        border-radius: var(--radius-lg);
        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);
        padding: 0;
        position: relative;
    }

    .table--mobile-cards .table__row::after {
        display: none;
    }

    .table--mobile-cards .table__row: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);
    }

    /* Card Header - sticky important info */
    .table--mobile-cards .table__cell--card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        padding: var(--spacing-3) var(--spacing-4);
        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);
        border-radius: 0.5rem 0.5rem 0 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        font-weight: 600;
        font-weight: var(--font-weight-semibold);
        position: sticky;
        top: 64px;
        z-index: 1;
    }

    /* Card Body - regular fields */
    .table--mobile-cards .table__cell {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.75rem 1rem;
        padding: var(--spacing-3) var(--spacing-4);
        border: none;
        border-bottom: 1px solid #F3F4F6;
        border-bottom: 1px solid var(--brand-gray-100);
        font-size: 0.875rem;
        font-size: var(--font-size-sm);
    }

    .table--mobile-cards .table__cell:last-child {
        border-bottom: none;
        border-radius: 0 0 0.5rem 0.5rem;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    /* Field Label (from data-label) */
    .table--mobile-cards .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);
        min-width: 100px;
        font-size: 0.75rem;
        font-size: var(--font-size-xs);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Field Value */
    .table--mobile-cards .table__cell > * {
        text-align: right;
        flex-grow: 1;
    }

    /* Hide label for specific cells */
    .table--mobile-cards .table__cell--card-header::before,
    .table--mobile-cards .table__cell--checkbox::before,
    .table--mobile-cards .table__cell--no-label::before {
        display: none;
    }

    /* Checkbox styling for mobile cards */
    .table--mobile-cards .table__cell--checkbox {
        position: absolute;
        top: 0.75rem;
        top: var(--spacing-3);
        left: 0.75rem;
        left: var(--spacing-3);
        padding: 0;
        border: none;
        background: transparent;
        z-index: 2;
    }

    /* Actions at card footer */
    .table--mobile-cards .table__cell--actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0.75rem 1rem;
        padding: var(--spacing-3) var(--spacing-4);
        background-color: #F9FAFB;
        background-color: var(--brand-gray-50);
        border-top: 1px solid #E5E7EB;
        border-top: 1px solid var(--brand-gray-200);
        border-radius: 0 0 0.5rem 0.5rem;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        gap: 0.5rem;
        gap: var(--spacing-2);
    }

    .table--mobile-cards .table__cell--actions::before {
        display: none;
    }

    /* Avatar cell in mobile cards */
    .table--mobile-cards .table__avatar {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }

    .table--mobile-cards .table__avatar-image {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .table--mobile-cards .table__avatar-info {
        min-width: 0;
        flex-grow: 1;
        text-align: left;
    }

    /* Status badges in mobile cards */
    .table--mobile-cards .table__status {
        font-size: 0.75rem;
        font-size: var(--font-size-xs);
        padding: 0.25rem 0.5rem;
        padding: var(--spacing-1) var(--spacing-2);
    }

    /* Numeric cells alignment */
    .table--mobile-cards .table__cell--numeric {
        text-align: right;
    }

    .table--mobile-cards .table__cell--numeric::before {
        text-align: left;
    }

    /* Center aligned cells */
    .table--mobile-cards .table__cell--center {
        justify-content: space-between;
    }
}

/* =================================================================
   MOBILE ACTION BUTTONS
   ================================================================= */

@media (max-width: 639px) {
    /* Touch-friendly action buttons */
    .table__action {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
    }

    /* Compact actions container for mobile cards */
    .table--mobile-cards .table__actions {
        display: flex;
        gap: 0.5rem;
        gap: var(--spacing-2);
        flex-wrap: nowrap;
    }

    /* Action dropdown for mobile (more than 2 actions) */
    .table__actions-dropdown {
        position: relative;
        display: inline-block;
    }

    .table__actions-dropdown-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        border-radius: 0.375rem;
        border-radius: var(--radius-md);
        background-color: #F3F4F6;
        background-color: var(--brand-gray-100);
        color: #374151;
        color: var(--brand-gray-700);
        cursor: pointer;
        transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        transition: var(--transition-base);
        border: none;
        padding: 0;
    }

    .table__actions-dropdown-trigger:hover {
        background-color: #E5E7EB;
        background-color: var(--brand-gray-200);
    }

    .table__actions-dropdown-menu {
        position: absolute;
        right: 0;
        bottom: 100%;
        margin-bottom: 0.5rem;
        margin-bottom: var(--spacing-2);
        background-color: #FFFFFF;
        background-color: 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 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: 160px;
        z-index: 10;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        transition: var(--transition-base);
    }

    .table__actions-dropdown-menu--open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .table__actions-dropdown-item {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        padding: var(--spacing-3) var(--spacing-4);
        color: #111827;
        color: var(--brand-gray-900);
        text-decoration: none;
        transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        transition: var(--transition-base);
        font-size: 0.875rem;
        font-size: var(--font-size-sm);
        border: none;
        background: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
    }

    .table__actions-dropdown-item:hover {
        background-color: #F9FAFB;
        background-color: var(--brand-gray-50);
    }

    .table__actions-dropdown-item--danger {
        color: #ED1C24;
        color: var(--color-error);
    }

    .table__actions-dropdown-item--danger:hover {
        background-color: rgba(237, 28, 36, 0.1);
        background-color: var(--color-error-bg);
    }
}

/* =================================================================
   MOBILE BULK ACTIONS BAR
   ================================================================= */

@media (max-width: 639px) {
    /* Fixed bottom bar for bulk actions */
    .bulk-actions--mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #FFFFFF;
        background-color: var(--brand-white);
        border-top: 1px solid #E5E7EB;
        border-top: 1px solid var(--brand-gray-200);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        padding: 0.75rem 1rem;
        padding: var(--spacing-3) var(--spacing-4);
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        padding-bottom: calc(var(--spacing-3) + env(safe-area-inset-bottom, 0px));
        z-index: 100;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
    }

    .bulk-actions--mobile.bulk-actions--visible {
        transform: translateY(0);
    }

    .bulk-actions__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
        margin-bottom: var(--spacing-2);
    }

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

    .bulk-actions__clear {
        font-size: 0.875rem;
        font-size: var(--font-size-sm);
        color: var(--brand-red-600);
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        text-decoration: underline;
    }

    .bulk-actions__buttons {
        display: flex;
        gap: 0.5rem;
        gap: var(--spacing-2);
        flex-wrap: wrap;
    }

    .bulk-actions__button {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        min-width: calc(50% - var(--spacing-1));
        padding: 0.5rem 0.75rem;
        padding: var(--spacing-2) var(--spacing-3);
        font-size: 0.875rem;
        font-size: var(--font-size-sm);
        white-space: nowrap;
    }

    /* Backdrop blur effect for better readability */
    .bulk-actions--mobile::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        backdrop-filter: blur(8px);
        background-color: rgba(255, 255, 255, 0.9);
        z-index: -1;
    }
}

/* =================================================================
   IMPROVED MOBILE STACK LAYOUT (Enhanced existing)
   ================================================================= */

@media (max-width: 639px) {
    /* Enhanced spacing for stacked tables */
    .table--stack .table__row {
        padding: 1rem;
        padding: var(--spacing-4);
        margin-bottom: 1rem;
        margin-bottom: var(--spacing-4);
    }

    /* Better visual separation between fields */
    .table--stack .table__cell:not(:last-child) {
        padding-bottom: 0.75rem;
        padding-bottom: var(--spacing-3);
        margin-bottom: 0.75rem;
        margin-bottom: var(--spacing-3);
    }

    /* Improved label styling */
    .table--stack .table__cell::before {
        font-size: 0.75rem;
        font-size: var(--font-size-xs);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.25rem;
        margin-bottom: var(--spacing-1);
    }

    /* Full-width layout on mobile */
    .table--stack .table__cell {
        flex-direction: column;
        align-items: flex-start;
    }

    .table--stack .table__cell::before {
        margin-right: 0;
        margin-bottom: 0.25rem;
        margin-bottom: var(--spacing-1);
    }
}

/* 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
   ================================================================= */

/* Shared base styles for all dropdowns */

.admin-layout .dropdown .dropdown__content,
.dropdown .dropdown__content {
    z-index: 1000;
    background: #FFFFFF;
    background: var(--brand-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
    border-radius: 1rem;
    border-radius: var(--radius-2xl, 12px);
    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);
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) ease;
    transition: all var(--transition-fast, 0.15s) ease;
    min-width: 200px;
}

/* Desktop-specific positioning and behavior - 1025px and above */

@media (min-width: 1025px) {
    .admin-layout .dropdown .dropdown__content,
    .dropdown .dropdown__content {
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        margin-top: 0.25rem;
        margin-top: var(--spacing-1, 4px);
        transform: translateY(-8px);
        overflow-y: auto;
        max-height: 400px;
    }

    /* Enhanced specificity for open state - desktop */
    .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: #F9FAFB;
    background-color: var(--brand-gray-50);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    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);
}

.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 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
}

.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: rgba(237, 28, 36, 0.1);
    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 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
}

/* 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 #F3F4F6;
    border-bottom: 1px solid var(--brand-gray-100);
    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 (Desktop only)
   ================================================================= */

/* Wrap desktop positioning in media query to prevent mobile conflicts - 1025px and above */

@media (min-width: 1025px) {
    /* 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 #F3F4F6;
    border-bottom: 1px solid var(--brand-gray-100);
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
    background: #F9FAFB;
    background: var(--brand-gray-50);
    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
   ================================================================= */

/* Mobile and tablet bottom sheet dropdown - up to 1024px */

@media (max-width: 1024px) {
    /* Backdrop overlay for mobile dropdowns */
    .admin-layout .dropdown.dropdown--open::before,
    .dropdown.dropdown--open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 9998;
        animation: fadeIn 0.2s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Enhanced specificity for mobile dropdown - works in both admin and main layouts */
    /* Override ALL positioning variants (including dropdown--right) */
    .admin-layout .dropdown .dropdown__content,
    .admin-layout .dropdown.dropdown--right .dropdown__content,
    .dropdown .dropdown__content,
    .dropdown.dropdown--right .dropdown__content {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        background: #FFFFFF;
        background: var(--brand-white);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid #E5E7EB;
        border: 1px solid var(--brand-gray-200);
        border-bottom: none;
        border-radius: 1rem 1rem 0 0;
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        margin: 0;
        max-height: 70vh;
        max-height: calc(70vh - env(safe-area-inset-bottom));
        transform: translateY(100%);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        box-shadow: var(--shadow-xl);
        z-index: 9999;
        /* Enable scrolling when content overflows */
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        /* Safe area for home indicator */
        padding-bottom: env(safe-area-inset-bottom);
        /* Use block layout instead of flex to prevent height calculation issues */
        display: block;
        /* Ensure element is initially hidden but ready to animate */
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    /* Content that has been moved to body - highest specificity */
    body > .dropdown__content--moved-to-body {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        background: #FFFFFF;
        background: var(--brand-white);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid #E5E7EB;
        border: 1px solid var(--brand-gray-200);
        border-bottom: none;
        border-radius: 1rem 1rem 0 0;
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        margin: 0;
        max-height: 70vh;
        max-height: calc(70vh - env(safe-area-inset-bottom));
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        box-shadow: var(--shadow-xl);
        z-index: 9999;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: env(safe-area-inset-bottom);
        display: block;
        /* Initially hidden */
        transform: translateY(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    /* Open state for moved content - very specific selector */
    body > .dropdown__content--moved-to-body.dropdown__content--open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Enhanced specificity for open state on mobile */
    .admin-layout .dropdown.dropdown--open .dropdown__content,
    .admin-layout .dropdown.dropdown--open.dropdown--right .dropdown__content,
    .admin-layout .dropdown--open .dropdown__content,
    .dropdown.dropdown--open .dropdown__content,
    .dropdown.dropdown--open.dropdown--right .dropdown__content,
    .dropdown--open .dropdown__content,
    .dropdown__content--open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Ensure user section is visible and doesn't have overflow issues */
    .dropdown__user {
        padding: 1rem 1rem 0.75rem;
        padding: var(--spacing-4) var(--spacing-4) var(--spacing-3);
        margin-bottom: 0.5rem;
        margin-bottom: var(--spacing-2);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown__menu {
        padding: 0.5rem 0.5rem 0.5rem;
        padding: var(--spacing-2) 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);
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    /* Handle for mobile bottom sheet */
    .admin-layout .dropdown .dropdown__content::before,
    .admin-layout .dropdown.dropdown--right .dropdown__content::before,
    .dropdown .dropdown__content::before,
    .dropdown.dropdown--right .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);
    }

    /* Ensure proper scrolling behavior */
    .admin-layout .dropdown .dropdown__content,
    .admin-layout .dropdown.dropdown--right .dropdown__content,
    .dropdown .dropdown__content,
    .dropdown.dropdown--right .dropdown__content {
        overscroll-behavior: contain;
    }
}

/* =================================================================
   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;
}

/* =================================================================
   DARK THEME OVERRIDES
   ================================================================= */

/* MM Medic Settings Dropdown Component */

/* =================================================================
   SETTINGS DROPDOWN CONTAINER
   ================================================================= */

.settings-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    z-index: var(--z-dropdown);
    width: 280px;
    margin-top: 0.5rem;
    margin-top: var(--spacing-2);
    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) ease;
    pointer-events: none;
}

/* Hide settings dropdown on mobile - settings are in mobile menu */

/* Використовуємо більш специфічний селектор замість !important - CLAUDE.md §2.1 compliance */

@media (max-width: 768px) {
    .header__actions .settings-dropdown,
    .settings-dropdown.settings-dropdown--open,
    .settings-dropdown.settings-dropdown--closed {
        display: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* Open state */

.settings-dropdown--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Closed state (explicit) */

.settings-dropdown--closed {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
}

/* =================================================================
   SETTINGS DROPDOWN CONTENT
   ================================================================= */

.settings-dropdown__content {
    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 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* =================================================================
   SETTINGS DROPDOWN HEADER
   ================================================================= */

.settings-dropdown__header {
    padding: 1rem;
    padding: var(--spacing-4);
    background: #F9FAFB;
    background: var(--brand-gray-50);
    border-bottom: 1px solid #E5E7EB;
    border-bottom: 1px solid var(--brand-gray-200);
}

.settings-dropdown__title {
    margin: 0;
    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);
    line-height: 1.25;
    line-height: var(--line-height-tight);
}

/* =================================================================
   SETTINGS DROPDOWN BODY
   ================================================================= */

.settings-dropdown__body {
    padding: 0.5rem;
    padding: var(--spacing-2);
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar styling */

.settings-dropdown__body::-webkit-scrollbar {
    width: 6px;
}

.settings-dropdown__body::-webkit-scrollbar-track {
    background: transparent;
}

.settings-dropdown__body::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    background: var(--brand-gray-300);
    border-radius: 9999px;
    border-radius: var(--radius-full);
}

.settings-dropdown__body::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
    background: var(--brand-gray-400);
}

/* =================================================================
   SETTINGS DROPDOWN SECTIONS
   ================================================================= */

.settings-dropdown__section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.settings-dropdown__section:not(:last-child) {
    border-bottom: 1px solid #E5E7EB;
    border-bottom: 1px solid var(--brand-gray-200);
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
    padding-bottom: 0.75rem;
    padding-bottom: var(--spacing-3);
}

.settings-dropdown__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);
    line-height: 1.25;
    line-height: var(--line-height-tight);
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

@media (max-width: 640px) {
    .settings-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        transform: translateY(100%);
        z-index: 1050;
        z-index: var(--z-modal);
        /* Smooth momentum scrolling for iOS */
        -webkit-overflow-scrolling: touch;
    }

    .settings-dropdown--open {
        transform: translateY(0);
    }

    .settings-dropdown--closed {
        transform: translateY(100%);
    }

    .settings-dropdown__content {
        border-radius: 1rem 1rem 0 0;
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        border-bottom: none;
        max-height: 85vh;
        max-height: calc(85vh - env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        /* Ensure proper stacking and performance */
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    /* Reduce header padding for mobile */
    .settings-dropdown__header {
        padding: 0.75rem 1rem;
        padding: var(--spacing-3) var(--spacing-4);
        /* Safe area for notched devices */
        padding-top: max(0.75rem, env(safe-area-inset-top));
        padding-top: max(var(--spacing-3), env(safe-area-inset-top));
    }

    .settings-dropdown__title {
        font-size: 1.125rem;
        font-size: var(--font-size-lg);
    }

    .settings-dropdown__body {
        max-height: none;
        flex: 1;
        overflow-y: auto;
        /* Optimize scrolling */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        /* Add bottom safe area padding */
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        padding-bottom: max(var(--spacing-4), env(safe-area-inset-bottom));
    }

    /* Increase touch target sizes */
    .settings-dropdown__section {
        padding: 1rem 0.5rem;
        padding: var(--spacing-4) var(--spacing-2);
        min-height: 64px;
        align-items: center;
    }

    .settings-dropdown__section:not(:last-child) {
        border-bottom: 1px solid #E5E7EB;
        border-bottom: 1px solid var(--brand-gray-200);
        margin-bottom: 0;
        padding-bottom: 1rem;
        padding-bottom: var(--spacing-4);
    }

    /* Larger, more readable text on mobile */
    .settings-dropdown__label {
        font-size: 1rem;
        font-size: var(--font-size-base);
        font-weight: 600;
        font-weight: var(--font-weight-semibold);
    }

    /* Mobile handle indicator (drag handle) */
    .settings-dropdown__content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background-color: #D1D5DB;
        background-color: var(--brand-gray-300);
        border-radius: 9999px;
        border-radius: var(--radius-full);
        margin: 0.75rem auto 0.5rem;
        margin: var(--spacing-3) auto var(--spacing-2);
        flex-shrink: 0;
        /* Visual feedback */
        transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1) ease;
        transition: background-color var(--transition-fast) ease;
    }

    /* Active state for drag handle */
    .settings-dropdown--open .settings-dropdown__content::before {
        background-color: #9CA3AF;
        background-color: var(--brand-gray-400);
    }

    /* Mobile backdrop overlay */
    .settings-dropdown--open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        background: var(--modal-overlay);
        z-index: -1;
        animation: fadeIn 0.15s cubic-bezier(0.4, 0, 0.2, 1) ease;
        animation: fadeIn var(--transition-fast) ease;
        /* Prevent scrolling of body content */
        touch-action: none;
    }

    /* Improve scrollbar visibility on mobile */
    .settings-dropdown__body::-webkit-scrollbar {
        width: 8px;
    }

    .settings-dropdown__body::-webkit-scrollbar-thumb {
        background: #9CA3AF;
        background: var(--brand-gray-400);
        border-radius: 9999px;
        border-radius: var(--radius-full);
    }
}

/* Landscape orientation on mobile phones */

@media (max-width: 640px) and (orientation: landscape) {
    .settings-dropdown__content {
        max-height: 90vh;
        max-height: calc(90vh - env(safe-area-inset-bottom));
    }

    .settings-dropdown__section {
        min-height: 56px;
        padding: 0.75rem 0.5rem;
        padding: var(--spacing-3) var(--spacing-2);
    }

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

/* Small phones (320px - 375px) */

@media (max-width: 375px) {
    .settings-dropdown__section {
        min-height: 60px;
        flex-wrap: wrap;
        gap: 0.5rem;
        gap: var(--spacing-2);
    }

    .settings-dropdown__label {
        flex: 1 1 100%;
        margin-bottom: 0.25rem;
        margin-bottom: var(--spacing-1);
    }
}

/* Tablet portrait and larger */

@media (min-width: 641px) and (max-width: 1023px) {
    .settings-dropdown {
        width: 320px;
    }

    .settings-dropdown__content {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        box-shadow: var(--shadow-xl);
    }

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

/* =================================================================
   ACCESSIBILITY ENHANCEMENTS
   ================================================================= */

/* Focus visible states */

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

/* Reduced motion support */

@media (prefers-reduced-motion: reduce) {
    .settings-dropdown {
        transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1) ease;
        transition: opacity var(--transition-fast) ease;
        transform: none;
    }

    .settings-dropdown--open,
    .settings-dropdown--closed {
        transform: none;
    }
}

/* High contrast mode support */

@media (prefers-contrast: high) {
    .settings-dropdown__content {
        border: 2px solid currentColor;
    }
}

/* =================================================================
   ANIMATIONS
   ================================================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smooth slide-in animation for mobile */

@keyframes slideUpMobile {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .settings-dropdown--open {
        animation: slideUpMobile 0.2s cubic-bezier(0.4, 0, 0.2, 1) ease-out;
        animation: slideUpMobile var(--transition-base) ease-out;
    }
}

/* Modern Breadcrumb Navigation - Mobile-first */

/* Base (mobile): compact breadcrumb */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-half);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  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;
}

/* Mobile: Hide middle items, show only first and last */

.breadcrumb__item:not(:first-child):not(:last-child) {
  display: none;
}

/* Mobile: 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);
}

.breadcrumb__link {
  color: #4B5563;
  color: var(--brand-gray-600);
  text-decoration: none;
  padding: 0.25rem;
  padding: var(--spacing-1);
  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);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  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;
  padding: var(--spacing-1);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  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: 10px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  margin: 0 2px;
}

/* Home icon - mobile size */

.breadcrumb__home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  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: 14px;
  height: 14px;
}

/* Tablet and up (768px+): full breadcrumb */

@media (min-width: 768px) {
  .breadcrumb {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    gap: 0.25rem;
    gap: var(--spacing-1);
  }

  .breadcrumb__link,
  .breadcrumb__current {
    padding: 0.25rem 0.5rem;
    padding: var(--spacing-1) var(--spacing-2);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }

  .breadcrumb__separator {
    margin: 0 0.25rem;
    margin: 0 var(--spacing-1);
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }

  .breadcrumb__home {
    width: 32px;
    height: 32px;
  }

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

  /* Show all breadcrumb items on desktop */
  .breadcrumb__item:not(:first-child):not(:last-child) {
    display: flex;
  }

  /* Hide ellipsis on desktop */
  .breadcrumb__item:nth-child(2)::before {
    content: none;
  }
}

/* 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: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4); /* Mobile-first: compact */
  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: 0.875rem;
  font-size: var(--font-size-sm); /* Mobile-first: compact */
  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 1rem 0.75rem 1rem;
  padding: 0 var(--spacing-4) var(--spacing-3) var(--spacing-4); /* Mobile-first: compact */
  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 - Mobile-first
   ============================================ */

/* Note: Base styles above use desktop values. Keeping min-width media query
   for mobile-first approach - base styles are compact for mobile. */

/* Tablet and up (768px+): larger padding */

@media (min-width: 768px) {
  .accordion__trigger {
    padding: 1rem 1.25rem;
    padding: var(--spacing-4) var(--spacing-5);
  }

  .accordion__body {
    padding: 0 1.25rem 1rem 1.25rem;
    padding: 0 var(--spacing-5) var(--spacing-4) var(--spacing-5);
  }

  .accordion__title {
    font-size: 1rem;
    font-size: var(--font-size-base);
  }
}

/* =================================================================
   ADMIN FILTER ACCORDION (Mobile-only) - Mobile-first
   ================================================================= */

/* Base (mobile): visible and styled */

.admin-filter--mobile-accordion {
    display: block;
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-4);
}

.admin-filter__accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
    background: linear-gradient(180deg, var(--brand-white) 0%, var(--brand-gray-50) 100%);
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-base);
    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);
    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);
    min-height: 48px;
    -webkit-user-select: none;
    -moz-user-select: none;
         user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.admin-filter__accordion-trigger:active {
    transform: scale(0.98);
    background: #F9FAFB;
    background: var(--brand-gray-50);
}

.admin-filter__accordion-trigger-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
    flex-grow: 1;
}

.admin-filter__accordion-trigger-icon {
    width: 20px;
    height: 20px;
    color: var(--brand-red-600);
    flex-shrink: 0;
}

.admin-filter__accordion-trigger-text {
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
}

.admin-filter__accordion-trigger-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    padding: 0 var(--spacing-2);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    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: 700;
    font-weight: var(--font-weight-bold);
    margin-left: 0.5rem;
    margin-left: var(--spacing-2);
}

.admin-filter__accordion-trigger-arrow {
    width: 20px;
    height: 20px;
    color: #6B7280;
    color: var(--brand-gray-500);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.admin-filter--open .admin-filter__accordion-trigger-arrow {
    transform: rotate(180deg);
}

.admin-filter__accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    margin-top: 0.5rem;
    margin-top: var(--spacing-2);
}

.admin-filter--open .admin-filter__accordion-content {
    max-height: 1500px;
}

.admin-filter__accordion-body {
    background-color: #FFFFFF;
    background-color: 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);
    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);
}

.admin-filter__accordion-body .form-group {
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-4);
}

.admin-filter__accordion-body .form-group:last-of-type {
    margin-bottom: 0;
}

.admin-filter__accordion-body .form-label {
    display: block;
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
    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);
}

.admin-filter__accordion-body .input,
.admin-filter__accordion-body .form-select {
    width: 100%;
    padding: 0.75rem;
    padding: var(--spacing-3);
    font-size: 1rem;
    font-size: var(--font-size-base);
    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);
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-base);
}

.admin-filter__accordion-body .input:focus,
.admin-filter__accordion-body .form-select:focus {
    outline: none;
    border-color: #ED1C24;
    border-color: var(--brand-red-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.admin-filter__accordion-actions {
    display: flex;
    gap: 0.5rem;
    gap: var(--spacing-2);
    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);
}

.admin-filter__accordion-actions .btn {
    flex: 1;
    justify-content: center;
    min-height: 44px;
}

/* Tablet and up (640px+): hide mobile filter accordion */

@media (min-width: 640px) {
    .admin-filter--mobile-accordion {
        display: none;
    }
}

/* 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 - Order Status, Patient Registration
   ============================================ */

/* Completed steps - Green */

.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--completed .steps__label {
  color: #10B981;
  color: var(--color-success);
}

.steps--medical .steps__item--completed .steps__description {
  color: #059669;
  color: var(--color-success-dark);
}

.steps--medical .steps__item--completed:not(:last-child)::after {
  background: #10B981;
  background: var(--color-success);
}

/* Active/Current step - Yellow */

.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--active .steps__label {
  color: #D97706;
  color: var(--color-warning-dark);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.steps--medical .steps__item--active .steps__description {
  color: #D97706;
  color: var(--color-warning-dark);
}

/* Error steps - Red */

.steps--medical .steps__item--error .steps__label {
  color: #ED1C24;
  color: var(--color-error);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.steps--medical .steps__item--error .steps__description {
  color: #D11920;
  color: var(--color-error-dark);
}

/* 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);
}

/* ============================================
   VERTICAL MEDICAL STEPS - Timeline/History View
   ============================================ */

/* Border colors for vertical medical 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);
}

.steps--vertical.steps--medical .steps__item--error {
  border-left-color: #ED1C24;
  border-left-color: var(--color-error);
}

/* Last item styling */

.steps--vertical .steps__item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

/* Shadow effects for vertical medical steps */

.steps--vertical.steps--medical .steps__item--completed .steps__circle {
  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--vertical.steps--medical .steps__item--active .steps__circle {
  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: none;
}

.steps--vertical.steps--medical .steps__item--error .steps__circle {
  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;
}

/* Disable hover effects for vertical steps (read-only timeline) */

.steps--vertical .steps__item:hover .steps__circle {
  transform: none;
  box-shadow: none;
}

/* ============================================
   NOTES IN STEPS
   ============================================ */

.steps__notes {
  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.5rem;
  margin-top: var(--spacing-2);
  margin-bottom: 0;
  padding-top: 0.5rem;
  padding-top: var(--spacing-2);
  border-top: 1px solid #F3F4F6;
  border-top: 1px solid var(--brand-gray-100);
}

/* Legacy support for order-timeline__notes class */

.steps__content .order-timeline__notes {
  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.5rem;
  margin-top: var(--spacing-2);
  margin-bottom: 0;
  padding-top: 0.5rem;
  padding-top: var(--spacing-2);
  border-top: 1px solid #F3F4F6;
  border-top: 1px solid var(--brand-gray-100);
}

/* Progress Component
 * Dynamic progress bars with CSS custom properties
 */

.progress {
  width: 100%;
  height: 8px;
  background-color: var(--bg-subtle);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0%;
  width: var(--progress-width, 0%);
  background-color: #ED1C24;
  background-color: var(--brand-red-primary);
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: width var(--transition-base);
}

/* Loading state with animation */

.progress__bar--loading {
  background: linear-gradient(
    90deg,
    #ED1C24 0%,
    var(--brand-red-secondary) 50%,
    #ED1C24 100%
  );
  background: linear-gradient(
    90deg,
    var(--brand-red-primary) 0%,
    var(--brand-red-secondary) 50%,
    var(--brand-red-primary) 100%
  );
  background-size: 200% 100%;
  animation: progress-shimmer 1.5s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Size variants */

.progress--sm {
  height: 4px;
}

.progress--md {
  height: 8px;
}

.progress--lg {
  height: 12px;
}

.progress--thick {
  height: 16px;
}

/* Color variants */

.progress__bar--success {
  background-color: var(--status-success);
}

.progress__bar--warning {
  background-color: var(--status-warning);
}

.progress__bar--error {
  background-color: var(--status-error);
}

.progress__bar--info {
  background-color: var(--status-info);
}

/* Password strength colors */

.progress__bar.strength--0 {
  background-color: #e53e3e;
}

.progress__bar.strength--1 {
  background-color: #ed8936;
}

.progress__bar.strength--2 {
  background-color: #ecc94b;
}

.progress__bar.strength--3 {
  background-color: #48bb78;
}

.progress__bar.strength--4 {
  background-color: #38a169;
}

.progress__bar.strength--5 {
  background-color: #2f855a;
}

/* 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 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 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);
}

/* 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));
    }
}

/* =================================================================
   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;
    pointer-events: none;
    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;
    pointer-events: auto;
}

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

/* =================================================================
   UTILITY CLASSES (Phase 2B+C)
   Added 2025-10-29 for CSP refactoring
   ================================================================= */

/* Info Box Component */

.info-box {
  padding: 1rem;
  padding: var(--spacing-4);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
}

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

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

/* Form Section Spacing */

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

.form-section--compact {
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

/* Text Utilities */

.text-muted-sm {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* Card with default padding */

.card--padded {
  padding: 2rem;
  padding: var(--spacing-8);
}

.card--padded-sm {
  padding: 1.5rem;
  padding: var(--spacing-6);
}

.card--padded-lg {
  padding: 2.5rem;
  padding: var(--spacing-10);
}

/* Details/Summary Interactive Element */

.details-summary {
  cursor: pointer;
  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);
  padding: 0.5rem 0;
  padding: var(--spacing-2) 0;
}

/* Code Block for JSON Examples */

.code-block {
  margin-top: 1rem;
  margin-top: var(--spacing-4);
  padding: 1rem;
  padding: var(--spacing-4);
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  font-family: monospace;
}

/* Status Indicator Dot */

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  margin-top: 6px;
}

.status-dot--success {
  background: #10B981;
  background: var(--color-success);
}

/**
 * Admin Filters
 *
 * Фільтри для таблиць адмінки з адаптивними grid-layout
 */

/* Responsive filter visibility */

.admin-filter-desktop {
  display: none;
}

@media (min-width: 768px) {
  .admin-filter-desktop {
    display: block;
  }
}

.admin-filter-mobile {
  display: block;
}

@media (min-width: 768px) {
  .admin-filter-mobile {
    display: none;
  }
}

/* Admin search bar responsive visibility */

.admin-search-bar {
  display: none;
}

@media (min-width: 768px) {
  .admin-search-bar {
    display: none;
  }
}

.admin-filter__grid {
  display: grid;
  gap: 1rem;
  gap: var(--spacing-4);
}

/* 4-column grid */

.admin-filter__grid--4-cols {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .admin-filter__grid--4-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .admin-filter__grid--4-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 5-column grid */

.admin-filter__grid--5-cols {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .admin-filter__grid--5-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .admin-filter__grid--5-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .admin-filter__grid--5-cols {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* 6-column grid */

.admin-filter__grid--6-cols {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .admin-filter__grid--6-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .admin-filter__grid--6-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .admin-filter__grid--6-cols {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* 3-column grid */

.admin-filter__grid--3-cols {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .admin-filter__grid--3-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .admin-filter__grid--3-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Filter actions row */

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

.admin-filter__actions-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.admin-filter__actions-right {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

@media (max-width: 640px) {
  .admin-filter__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-filter__actions-left,
  .admin-filter__actions-right {
    width: 100%;
    justify-content: space-between;
  }

  .admin-filter__actions-right {
    flex-direction: column;
  }
}

/* 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: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
}

.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: 1rem;
    font-size: var(--font-size-base);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #111827;
    color: var(--brand-gray-900);
    min-width: 160px;
    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.5rem;
    padding: var(--spacing-2);
    text-align: center;
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    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: 80px;
    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.25rem 0.5rem;
    padding: var(--spacing-1) 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: 50px;
}

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

.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: rgba(59, 130, 246, 0.1);
    background: var(--color-info-bg);
    color: #2563EB;
    color: var(--color-info-dark);
}

.calendar__event--webinar {
    background: rgba(16, 185, 129, 0.1);
    background: var(--color-success-bg);
    color: #059669;
    color: var(--color-success-dark);
}

.calendar__event--conference {
    background: #FDF2F2;
    background: var(--brand-red-lightest);
    color: #D11920;
    color: var(--brand-red-dark);
}

.calendar__event--workshop {
    background: rgba(245, 158, 11, 0.1);
    background: var(--color-warning-bg);
    color: #D97706;
    color: var(--color-warning-dark);
}

.calendar__event--course {
    background: #F3F4F6;
    background: var(--brand-gray-100);
    color: #1F2937;
    color: var(--brand-gray-800);
}

.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 {
    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: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
    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: 0.75rem;
    gap: var(--spacing-3);
}

.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: 0.75rem;
    gap: var(--spacing-3);
    padding: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
    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);
}

/**
 * Email Preview Patterns
 * Стилі для перегляду та тестування email шаблонів
 *
 * Дотримання CLAUDE.md:
 * - Використання CSS змінних з vars.css
 * - Tailwind тільки для layout
 * - Семантичні класи для унікального функціоналу
 * - Адаптивність mobile-first
 */

/* ============================================
   Email Templates Grid
   ============================================ */

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

/* Адаптивність для ultra-wide */

@media (min-width: 1920px) {
  .email-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

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

/* ============================================
   Email Card Component
   ============================================ */

.email-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  padding: var(--spacing-6);
  background-color: #FFFFFF;
  background-color: 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);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.email-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: #ED1C24;
  border-color: var(--brand-red-primary);
}

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

.email-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(59, 130, 246, 0.1);
  background-color: var(--color-info-bg);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  color: #3B82F6;
  color: var(--color-info);
}

.email-card__icon svg {
  width: 24px;
  height: 24px;
}

.email-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-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
  line-height: 1.25;
  line-height: var(--line-height-tight);
}

.email-card__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-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  flex-grow: 1;
}

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

/* Email card categories */

.email-card--auth .email-card__icon {
  background-color: rgba(59, 130, 246, 0.1);
  background-color: var(--color-info-bg);
  color: #3B82F6;
  color: var(--color-info);
}

.email-card--ecommerce .email-card__icon {
  background-color: rgba(16, 185, 129, 0.1);
  background-color: var(--color-success-bg);
  color: #10B981;
  color: var(--color-success);
}

.email-card--marketing .email-card__icon {
  background-color: #F3E8FF;
  color: #7C3AED;
}

.email-card--mailings .email-card__icon {
  background-color: rgba(245, 158, 11, 0.1);
  background-color: var(--color-warning-bg);
  color: #F59E0B;
  color: var(--color-warning);
}

/* ============================================
   Email Preview Toolbar
   ============================================ */

.email-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  padding: var(--spacing-4) var(--spacing-6);
  background-color: #FFFFFF;
  background-color: var(--brand-white);
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 1rem;
  gap: var(--spacing-4);
}

.email-preview-toolbar__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  flex: 1;
  min-width: 0;
}

.email-preview-toolbar__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;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-preview-toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .email-preview-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .email-preview-toolbar__left,
  .email-preview-toolbar__right {
    width: 100%;
    justify-content: space-between;
  }

  .email-preview-toolbar__title {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
  }
}

/* ============================================
   Language Switcher
   ============================================ */

.language-switcher {
  display: flex;
  gap: 0.25rem;
  gap: var(--spacing-1);
  background-color: #F3F4F6;
  background-color: var(--brand-gray-100);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  padding: 0.25rem;
  padding: var(--spacing-1);
}

.lang-btn {
  padding: 0.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  border: none;
  background-color: transparent;
  border-radius: 0.125rem;
  border-radius: var(--radius-sm);
  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);
  white-space: nowrap;
}

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

.lang-btn--active {
  background-color: #FFFFFF;
  background-color: var(--brand-white);
  color: #ED1C24;
  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);
}

.lang-btn--active:hover {
  background-color: #FFFFFF;
  background-color: var(--brand-white);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

/* ============================================
   Email Preview Container
   ============================================ */

.email-preview-container {
  position: relative;
  width: 100%;
  min-height: 600px;
  background-color: #F3F4F6;
  background-color: var(--brand-gray-100);
  padding: 1.5rem;
  padding: var(--spacing-6);
}

.email-preview-frame {
  display: none;
  width: 100%;
  height: 100%;
  animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeIn var(--transition-base);
}

.email-preview-frame--active {
  display: block;
}

.email-preview-frame iframe {
  width: 100%;
  min-height: 600px;
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  background-color: #FFFFFF;
  background-color: var(--brand-white);
  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);
}

@media (max-width: 768px) {
  .email-preview-container {
    padding: 1rem;
    padding: var(--spacing-4);
  }

  .email-preview-frame iframe {
    min-height: 500px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   Email Params Panel
   ============================================ */

.email-params-panel {
  padding: 1.5rem;
  padding: var(--spacing-6);
  background-color: #F9FAFB;
  background-color: 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: 1.5rem;
  margin: var(--spacing-6);
}

.email-params-panel__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);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.email-params-panel__icon {
  width: 20px;
  height: 20px;
  color: #4B5563;
  color: var(--brand-gray-600);
}

.email-params-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  gap: var(--spacing-4);
}

@media (max-width: 768px) {
  .email-params-panel {
    padding: 1rem;
    padding: var(--spacing-4);
    margin: 1rem;
    margin: var(--spacing-4);
  }

  .email-params-form {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Email Tech Info
   ============================================ */

.email-tech-info {
  padding: 1.5rem;
  padding: var(--spacing-6);
  background-color: #FFFFFF;
  background-color: var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  margin: 1.5rem;
  margin: var(--spacing-6);
}

.email-tech-info__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);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.tech-info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.5rem;
  gap: var(--spacing-3) var(--spacing-6);
  row-gap: 1rem;
  row-gap: var(--spacing-4);
}

.tech-info-list dt {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #374151;
  color: var(--brand-gray-700);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.tech-info-list dd {
  color: #4B5563;
  color: var(--brand-gray-600);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  word-break: break-word;
}

.tech-info-list code {
  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: 'Courier New', monospace;
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #1F2937;
  color: var(--brand-gray-800);
}

@media (max-width: 768px) {
  .email-tech-info {
    padding: 1rem;
    padding: var(--spacing-4);
    margin: 1rem;
    margin: var(--spacing-4);
  }

  .tech-info-list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    gap: var(--spacing-2);
  }

  .tech-info-list dt {
    font-weight: 700;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.25rem;
    margin-bottom: var(--spacing-1);
  }
}

/* ============================================
   Search and Filter
   ============================================ */

.email-search-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.email-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding: var(--spacing-3) var(--spacing-4);
  padding-left: 2.5rem;
  padding-left: var(--spacing-10);
  border: 1px solid #D1D5DB;
  border: 1px solid var(--brand-gray-300);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #111827;
  color: var(--brand-gray-900);
  background-color: #FFFFFF;
  background-color: var(--brand-white);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.email-search-input:focus {
  outline: none;
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}

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

@media (max-width: 768px) {
  .email-search-container {
    max-width: 100%;
  }
}

/* ============================================
   Breadcrumbs for Email Pages
   ============================================ */

.email-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  padding: 1rem 1.5rem;
  padding: var(--spacing-4) var(--spacing-6);
  background-color: #FFFFFF;
  background-color: var(--brand-white);
  border-bottom: 1px solid #E5E7EB;
  border-bottom: 1px solid var(--brand-gray-200);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.email-breadcrumbs__link {
  color: #4B5563;
  color: var(--brand-gray-600);
  text-decoration: none;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast);
}

.email-breadcrumbs__link:hover {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

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

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

@media (max-width: 768px) {
  .email-breadcrumbs {
    padding: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
  }
}

/* ============================================
   Modal for Test Email Sending
   ============================================ */

.email-test-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding: var(--spacing-4);
}

.email-test-modal--active {
  display: flex;
}

.email-test-modal__content {
  background-color: #FFFFFF;
  background-color: var(--brand-white);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  padding: var(--spacing-6);
  animation: modalSlideIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: modalSlideIn var(--transition-base);
}

.email-test-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.email-test-modal__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;
}

.email-test-modal__close {
  background: none;
  border: none;
  padding: 0.5rem;
  padding: var(--spacing-2);
  cursor: pointer;
  color: #6B7280;
  color: var(--brand-gray-500);
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast);
}

.email-test-modal__close:hover {
  color: #111827;
  color: var(--brand-gray-900);
}

.email-test-modal__body {
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.email-test-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .email-test-modal__content {
    padding: 1rem;
    padding: var(--spacing-4);
    max-width: 100%;
  }

  .email-test-modal__title {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
  }
}

/* ============================================
   Loading State
   ============================================ */

.email-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: #4B5563;
  color: var(--brand-gray-600);
}

.email-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 0.8s linear infinite;
}

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

/* ============================================
   Empty State
   ============================================ */

.email-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 2rem;
  padding: var(--spacing-8);
  text-align: center;
}

.email-empty-state__icon {
  width: 64px;
  height: 64px;
  color: #9CA3AF;
  color: var(--brand-gray-400);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.email-empty-state__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: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.email-empty-state__message {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #4B5563;
  color: var(--brand-gray-600);
  max-width: 400px;
}

/* MM Medic Empty State Component */

/* Base (mobile): compact empty state */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0.75rem;
  padding: var(--spacing-8) var(--spacing-3);
  gap: 0.75rem;
  gap: var(--spacing-3);
}

/* Base (mobile): smaller icon */

.empty-state__icon {
  width: 56px;
  height: 56px;
  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: 28px;
  height: 28px;
  color: #9CA3AF;
  color: var(--brand-gray-400);
}

/* Base (mobile): smaller title */

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

/* Base (mobile): smaller text */

.empty-state__message {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  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: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  max-width: 400px;
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Base (mobile): stacked actions */

.empty-state__actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.75rem;
  gap: var(--spacing-3);
  justify-content: center;
}

.empty-state__actions .btn {
  width: 100%;
}

/* 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);
}

/* Tablet and up (640px+): larger empty state */

@media (min-width: 640px) {
  .empty-state {
    padding: 4rem 1rem;
    padding: var(--spacing-16) var(--spacing-4);
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .empty-state__icon {
    width: 64px;
    height: 64px;
  }

  .empty-state__icon svg,
  .empty-state__icon .icon {
    width: 32px;
    height: 32px;
  }

  .empty-state__title {
    font-size: 1.25rem;
    font-size: var(--font-size-xl);
  }

  .empty-state__message,
  .empty-state__text {
    font-size: 1rem;
    font-size: var(--font-size-base);
  }

  .empty-state__actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }

  .empty-state__actions .btn {
    width: auto;
  }
}

/* MM Medic Error Pages Component */

/* Base (mobile): Error Page Layout */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
  padding: var(--spacing-12) 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;
}

/* Base (mobile): Error Code Display */

.error-page__code {
  font-size: 4.5rem;
  font-size: var(--font-size-7xl);
  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);
}

/* Base (mobile): Error Illustration Container */

.error-page__illustration {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  margin: 0 auto var(--spacing-6);
  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, rgba(245, 158, 11, 0.1) 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, rgba(59, 130, 246, 0.1) 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, rgba(16, 185, 129, 0.1) 0%, #F9FAFB 100%);
  background: linear-gradient(135deg, var(--color-success-bg) 0%, var(--brand-gray-50) 100%);
}

/* Base (mobile): smaller icon */

.error-page__illustration-icon {
  width: 90px;
  height: 90px;
  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);
}

/* Base (mobile): Error Content */

.error-page__title {
  font-size: 1.875rem;
  font-size: var(--font-size-3xl);
  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);
}

/* Base (mobile): smaller message */

.error-page__message {
  font-size: 1rem;
  font-size: var(--font-size-base);
  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);
}

/* Tablet and up (640px+): larger sizes */

@media (min-width: 640px) {
  .error-page {
    padding: 4rem 0;
    padding: var(--spacing-16) 0;
  }

  .error-page__code {
    font-size: 8rem;
    font-size: var(--font-size-9xl);
  }

  .error-page__illustration {
    width: 240px;
    height: 240px;
    margin-bottom: 2rem;
    margin-bottom: var(--spacing-8);
  }

  .error-page__illustration-icon {
    width: 120px;
    height: 120px;
  }

  .error-page__title {
    font-size: 2.25rem;
    font-size: var(--font-size-4xl);
  }

  .error-page__message {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
  }

  .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: rgba(16, 185, 129, 0.1);
    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: rgba(237, 28, 36, 0.1);
    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: rgba(245, 158, 11, 0.1);
    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);
}

/**
 * Admin Dashboard Components Styles
 * Компоненти для dashboard в адмін-панелі MM Medic
 *
 * Архітектура:
 * - Семантичні класи для компонентів dashboard
 * - CSS variables з vars.css для всіх візуальних властивостей
 * - Mobile-first адаптивність
 * - Модифікатори для різних станів
 */

/* ==========================================================================
   Activity Indicators
   Індикатори активності для dashboard widgets
   ========================================================================== */

.activity-indicator {
    width: 8px;
    height: 8px;
    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);
}

/* Indicator variants */

.activity-indicator--online {
    background-color: #10B981;
    background-color: var(--color-success);
    animation: pulse-online 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
}

.activity-indicator--new {
    background-color: #3B82F6;
    background-color: var(--color-info);
    animation: pulse-new 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
}

.activity-indicator--active {
    background-color: #F59E0B;
    background-color: var(--color-warning);
    animation: pulse-active 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
}

.activity-indicator--offline {
    background-color: #9CA3AF;
    background-color: var(--brand-gray-400);
    animation: none;
}

/* Pulse animations for different states */

@keyframes pulse-online {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
}

@keyframes pulse-new {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0);
    }
}

@keyframes pulse-active {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0);
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 480px) {
    .activity-indicator {
        width: 6px;
        height: 6px;
    }
}

/**
 * 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 ==================== */

/* Base (mobile): compact upload zone */

.image-upload-zone {
    position: relative;
    width: 100%;
    min-height: 150px;
    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;
}

/* Base (mobile): Upload Placeholder */

.image-upload-zone__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding: var(--spacing-4);
    min-height: 150px;
    text-align: center;
}

.image-upload-zone__placeholder.hidden {
    display: none;
}

/* Base (mobile): Upload Preview */

.image-upload-zone__preview {
    position: relative;
    width: 100%;
    min-height: 150px;
    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;
}

/* Base (mobile): smaller max-height */

.image-upload-zone__image {
    max-width: 100%;
    max-height: 250px;
    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: rgba(16, 185, 129, 0.1);
    background-color: var(--color-success-bg);
    color: #10B981;
    color: var(--color-success);
}

.schedule-indicator--scheduled {
    background-color: rgba(245, 158, 11, 0.1);
    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 - Mobile-first ==================== */

/* Tablet and up (768px+): larger upload zones */

@media (min-width: 768px) {
    .image-upload-zone {
        min-height: 200px;
    }

    .image-upload-zone__placeholder {
        padding: 2rem;
        padding: var(--spacing-8);
        min-height: 200px;
    }

    .image-upload-zone__preview {
        min-height: 200px;
    }

    .image-upload-zone__image {
        max-height: 400px;
    }
}

/* Ultra-wide optimizations (1536px+) */

@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) - Mobile-first ==================== */

.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: 0.75rem;
    padding: var(--spacing-3);
    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: 1.5rem;
    padding-left: var(--spacing-6);
}

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

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

/* Expandable Details (Bank Transfer) */

.checkout-option__details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) ease-in-out;
    transition: all var(--transition-slow) ease-in-out;
    transform-origin: top;
}

.checkout-option__details.visible {
    max-height: 1000px;
    opacity: 1;
}

/* Bank Transfer Info Accent Colors (Semantic) */

.bg-info-lightest {
    background-color: rgba(59, 130, 246, 0.05);
    background-color: var(--color-info-bg-light);
}

.bg-info-lighter {
    background-color: rgba(59, 130, 246, 0.1);
    background-color: var(--color-info-bg);
}

.text-info-dark {
    color: #2563EB;
    color: var(--color-info-dark);
}

.border-info-light {
    border-color: rgba(59, 130, 246, 0.2);
    border-color: var(--color-info-border);
}

/* 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: 50px;
    height: 50px;
    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: 200px;
    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 - Mobile-first ==================== */

/* Tablet and up (640px+) */

@media (min-width: 640px) {
    .checkout-option {
        padding: 1rem;
        padding: var(--spacing-4);
    }

    .checkout-option__title {
        font-size: 1rem;
        font-size: var(--font-size-base);
    }

    .checkout-option::before {
        width: 20px;
        height: 20px;
        top: 1rem;
        top: var(--spacing-4);
        left: 1rem;
        left: var(--spacing-4);
    }

    .checkout-option--active::before {
        border-width: 6px;
    }

    .checkout-option__content {
        padding-left: 2rem;
        padding-left: var(--spacing-8);
    }

    .checkout-cart-item {
        padding: 0.75rem;
        padding: var(--spacing-3);
    }

    .checkout-cart-item__image {
        width: 64px;
        height: 64px;
    }

    .autocomplete-results {
        max-height: 300px;
    }
}

/* ==================== 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: rgba(16, 185, 129, 0.1);
    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: rgba(237, 28, 36, 0.1);
    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);
}

/* ==================== 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: rgba(237, 28, 36, 0.1);
  background: var(--color-error-bg);
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.stat-card__icon--success {
  background: rgba(16, 185, 129, 0.1);
  background: var(--color-success-bg);
  color: #10B981;
  color: var(--color-success);
}

.stat-card__icon--info {
  background: rgba(59, 130, 246, 0.1);
  background: var(--color-info-bg);
  color: #3B82F6;
  color: var(--color-info);
}

.stat-card__icon--warning {
  background: rgba(245, 158, 11, 0.1);
  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 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);
}

.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);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  gap: var(--spacing-4);
}

.order-card__info {
  flex: 1;
  min-width: 0;
}

.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: rgba(237, 28, 36, 0.1);
  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);
  margin-top: 0.25rem;
  margin-top: var(--spacing-1);
  display: block;
}

.loyalty-summary__level {
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.loyalty-summary__discount {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #374151;
  color: var(--brand-gray-700);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.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: linear-gradient(90deg, #ED1C24, #D11920);
  background: linear-gradient(90deg, var(--brand-red-primary), var(--brand-red-dark));
  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: #374151;
  color: var(--brand-gray-700);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

.loyalty-summary__max-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  padding: 1rem;
  padding: var(--spacing-4);
  background: rgba(16, 185, 129, 0.1);
  background: var(--color-success-bg);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

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

.loyalty-summary__max-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #10B981;
  color: var(--color-success);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  text-align: center;
}

/* 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: rgba(16, 185, 129, 0.1);
  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: rgba(237, 28, 36, 0.1);
  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: contain;
     object-fit: contain;
}

.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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  gap: var(--spacing-3);
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #111827;
  color: var(--brand-gray-900);
  flex-wrap: wrap;
}

.delivery-tracking__provider strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
  flex: 1;
}

/* Delivery provider logos */

.delivery-tracking__provider .logo--sm {
  height: 24px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.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 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  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: rgba(237, 28, 36, 0.1);
  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: rgba(237, 28, 36, 0.1);
  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 Overlay */
  .profile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    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);
  }

  .profile-sidebar-overlay--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.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: rgba(237, 28, 36, 0.1);
  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: rgba(237, 28, 36, 0.1);
  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;
}

/* Header Actions - Button Grid */

.profile-content__actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  gap: var(--spacing-3);
  align-items: center;
}

/* Full-width buttons (e.g., navigation back button) */

.profile-content__actions .btn--ghost {
  grid-column: 1 / -1;
}

.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 {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

/* ============================================
   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
   ============================================ */

/* NOTE: Dropdown styles moved to centralized _dropdowns.css
 * This prevents conflicts and maintains single source of truth
 * All dropdown styling is now managed in design-system/patterns/_dropdowns.css
 */

/* ============================================
   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
   ============================================ */

/* NOTE: .hidden class removed - use Tailwind .hidden instead
   This avoids conflicts with Tailwind responsive utilities (md:hidden, etc.) */

/* 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);
}

/* ============================================
   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: rgba(245, 158, 11, 0.1);
  background: var(--color-warning-bg);
  color: #F59E0B;
  color: var(--color-warning);
  border: 1px solid var(--color-warning-border);
}

.badge--info-soft {
  background: rgba(59, 130, 246, 0.1);
  background: var(--color-info-bg);
  color: #3B82F6;
  color: var(--color-info);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border: 1px solid var(--color-info-border);
}

.badge--primary-soft {
  background: rgba(237, 28, 36, 0.1);
  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: rgba(16, 185, 129, 0.1);
  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: rgba(237, 28, 36, 0.1);
  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;
}

/* 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: rgba(237, 28, 36, 0.1);
  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: rgba(245, 158, 11, 0.1);
  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 160px;
    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 200px;
  }

  .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);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.product-page * {
  box-sizing: border-box;
}

.product-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  gap: var(--spacing-6);
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.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);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  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);
  overflow: hidden;
}

.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: 100%;
  -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);
  width: 100%;
  max-width: 100%;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.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);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.product-info__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.product-info__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;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.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: rgba(16, 185, 129, 0.1);
  background: var(--color-success-bg);
}

.product-info__status--unavailable {
  color: #ED1C24;
  color: var(--color-error);
  background: rgba(237, 28, 36, 0.1);
  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);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.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;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.product-specs__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  gap: var(--spacing-4);
  padding: 0.25rem 0;
  padding: var(--spacing-1) 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;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.product-specs__value--full {
  text-align: left;
  flex: 1 0 100%;
}

.product-info__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.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);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.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);
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.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: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  gap: var(--spacing-8);
}

.product-related {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

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

/* ============================================
   Mobile-first Responsive Optimizations
   CLAUDE.md §4.4 - Адаптивність для всіх екранів
   ============================================ */

/* Extra Small Mobile: 320px-374px (iPhone SE, старі пристрої) */

@media (max-width: 374px) {
  .product-info {
    padding: 1rem;
    padding: var(--spacing-4);
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .product-info__title {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
    line-height: 1.25;
    line-height: var(--line-height-tight);
  }

  .product-info__price {
    font-size: 1.5rem;
    font-size: var(--font-size-2xl);
    gap: 0.5rem;
    gap: var(--spacing-2);
  }

  .product-info__pricing-grid {
    gap: 0.5rem;
    gap: var(--spacing-2);
  }

  .product-price-card {
    padding: 0.75rem;
    padding: var(--spacing-3);
    gap: 0.25rem;
    gap: var(--spacing-1);
  }

  .product-specs {
    gap: 0.5rem;
    gap: var(--spacing-2);
  }

  .product-specs__item {
    padding: 0.5rem 0;
    padding: var(--spacing-2) 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    gap: var(--spacing-1);
  }

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

  .product-info__actions {
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .product-info__actions .product-card__counter {
    max-width: 100%;
    width: 100%;
  }

  .product-description {
    padding: 0;
    gap: 1.5rem;
    gap: var(--spacing-6);
  }
}

/* Small Mobile: 375px-413px (iPhone 12/13/14, більшість смартфонів) */

@media (min-width: 375px) and (max-width: 413px) {
  .product-info {
    padding: 1.25rem;
    padding: var(--spacing-5);
    gap: 1.25rem;
    gap: var(--spacing-5);
  }

  .product-info__title {
    font-size: 1.25rem;
    font-size: var(--font-size-xl);
  }

  .product-info__price {
    font-size: 1.875rem;
    font-size: var(--font-size-3xl);
  }

  .product-specs__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    gap: var(--spacing-1);
  }

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

  .product-info__actions .product-card__counter {
    max-width: 100%;
  }
}

/* Medium Mobile: 414px-639px (великі смартфони, iPhone Pro Max) */

@media (min-width: 414px) and (max-width: 639px) {

  .product-info {
    padding: 1.25rem;
    padding: var(--spacing-5);
  }

  .product-specs__item {
    flex-direction: row;
    align-items: center;
  }

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

/* Tablet Portrait: 640px-767px (планшети в портретній орієнтації) */

@media (min-width: 640px) {

  .product-info {
    padding: 1.5rem;
    padding: var(--spacing-6);
    gap: 1.5rem;
    gap: var(--spacing-6);
  }

  .product-info__pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .product-specs {
    grid-template-columns: 1fr;
  }

  .product-specs__item {
    flex-direction: row;
    align-items: center;
  }

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

  .product-info__actions {
    flex-direction: column;
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .product-info__actions .product-card__counter {
    max-width: 240px;
    width: auto;
  }

  .product-info__actions .btn {
    width: 100%;
  }

  .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);
    gap: 2rem;
    gap: var(--spacing-8);
  }
}

/* Tablet Landscape & Small Desktop: 768px-1023px */

@media (min-width: 768px) {
  .product-info__actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .product-info__actions .product-card__counter {
    max-width: 200px;
  }

  .product-info__actions .btn {
    min-width: 200px;
    width: auto;
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .product-page__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 2rem;
    gap: var(--spacing-8);
  }

  .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-info__title {
    font-size: 1.5rem;
    font-size: var(--font-size-2xl);
  }
}

/* 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 Steps Container (варіант без card)
   Простий список кроків для мобільних
   ======================================== */

.product-steps-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
  width: 100%;
  max-width: 100%;
}

.product-step {
  display: flex;
  gap: 1rem;
  gap: var(--spacing-4);
  align-items: flex-start;
  padding: 1rem;
  padding: var(--spacing-4);
  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);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  position: relative;
}

.product-step: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::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ED1C24 0%, #D11920 100%);
  background: linear-gradient(180deg, var(--brand-red-primary) 0%, var(--brand-red-dark) 100%);
  border-radius: 0.75rem 0 0 0.75rem;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  opacity: 0;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity var(--transition-fast);
}

.product-step:hover::before {
  opacity: 1;
}

.product-step__number {
  width: 40px;
  height: 40px;
  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__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
  min-width: 0;
}

.product-step__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;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.product-step__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);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ========================================
   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, rgba(245, 158, 11, 0.1) 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, rgba(59, 130, 246, 0.1) 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, rgba(237, 28, 36, 0.1) 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, rgba(59, 130, 246, 0.1) 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, rgba(59, 130, 246, 0.1) 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, rgba(245, 158, 11, 0.1) 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 Specs Grid (новий card варіант)
   Mobile-first адаптивна сітка для specs
   ================================ */

.product-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  gap: var(--spacing-3);
  width: 100%;
  max-width: 100%;
}

.product-spec-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
  background: linear-gradient(135deg, var(--brand-white) 0%, var(--brand-gray-50) 100%);
  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);
  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);
}

.product-spec-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: translateY(-2px);
}

.product-spec-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);
  margin: 0;
}

.product-spec-card__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);
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===================================
   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);
  }

  .product-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    gap: var(--spacing-4);
  }
}

/* Desktop (1024px+) */

@media (min-width: 1024px) {
  .product-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-specs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .product-step {
    padding: 1.25rem;
    padding: var(--spacing-5);
  }

  .product-step__number {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    font-size: var(--font-size-xl);
  }

  .product-step__title {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
  }

  .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-specs-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    gap: var(--spacing-5);
  }

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

/* SVG Icon for checkmarks - CLAUDE.md compliant */

.product-list__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #ED1C24;
  color: var(--brand-red-primary);
  margin-top: 2px;
}

/* Modifiers */

.product-list--checkmark .product-list__icon {
  color: #10B981;
  color: var(--color-success);
}

.product-list--dash .product-list__item::before {
  content: "–";
  flex-shrink: 0;
  color: #6B7280;
  color: var(--brand-gray-500);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  margin-right: 0.5rem;
  margin-right: var(--spacing-2);
}

/* 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-list__icon {
    width: 14px;
    height: 14px;
  }
}

/* ===================================
   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: rgba(16, 185, 129, 0.1);
  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: rgba(59, 130, 246, 0.1);
  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: rgba(245, 158, 11, 0.1);
  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: 0;
  padding: 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__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--xl {
  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
   ================================================================= */

/* Higher specificity without !important */

input.stock-input--changed,
.stock-input.stock-input--changed {
  border-color: #F59E0B;
  border-color: var(--color-warning);
  background-color: rgba(245, 158, 11, 0.1);
  background-color: var(--color-warning-bg);
}

.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: rgba(59, 130, 246, 0.1);
  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: rgba(16, 185, 129, 0.1);
  background-color: var(--color-success-bg);
  color: #10B981;
  color: var(--color-success);
}

.verification-badge--pending {
  background-color: rgba(245, 158, 11, 0.1);
  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: rgba(237, 28, 36, 0.1);
  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: rgba(16, 185, 129, 0.1);
  background-color: var(--color-success-bg);
  color: #10B981;
  color: var(--color-success);
}

.grade-badge--b {
  background-color: rgba(59, 130, 246, 0.1);
  background-color: var(--color-info-bg);
  color: #3B82F6;
  color: var(--color-info);
}

.grade-badge--c {
  background-color: rgba(245, 158, 11, 0.1);
  background-color: var(--color-warning-bg);
  color: #F59E0B;
  color: var(--color-warning);
}

.grade-badge--pass {
  background-color: rgba(16, 185, 129, 0.1);
  background-color: var(--color-success-bg);
  color: #10B981;
  color: var(--color-success);
}

.grade-badge--fail {
  background-color: rgba(237, 28, 36, 0.1);
  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);
}

/* 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);
  position: relative; /* From accessibility section */
}

.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);
  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 */

@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) {
  /* Position relative for arrow pseudo-elements, assuming .card--pillar is the new component class */
  .ecosystem--with-arrows .card--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;
  }
}

/* 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;
  /* No margin - spacing controlled by parent flex gap in base.html */
  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);
  }

  /* Повна ширина для останнього flex-контейнера (message + button) */
  .cta-section__form > .flex {
    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,
.cta-section .form-field__label {
  color: #FFFFFF;
  color: var(--brand-white);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

/* Force white color in both light and dark themes */

[data-theme="dark"] .cta-section .form-label,
[data-theme="dark"] .cta-section .form-field__label,
.dark .cta-section .form-label,
.dark .cta-section .form-field__label {
  color: #FFFFFF;
  color: var(--brand-white);
}

/* CTA Button in form (legacy support for other layouts) */

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

/* ==================================================
   PERIOD FILTER
   ================================================== */

.period-filter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

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

.period-filter__dropdown {
  min-width: 200px;
}

/* ==================================================
   CARD LOADING STATES
   ================================================== */

.card--loading {
  position: relative;
  pointer-events: none;
}

.card--loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card--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;
  z-index: 11;
}

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

.card--error {
  border-color: var(--brand-error);
}

.card--error .card__header {
  background-color: var(--brand-error-light);
}

.card__error-message {
  padding: 0.75rem;
  padding: var(--spacing-3);
  background-color: var(--brand-error-light);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  color: var(--brand-error);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  margin-top: 0.75rem;
  margin-top: var(--spacing-3);
  display: none;
}

.card--error .card__error-message {
  display: block;
}

.card--success {
  animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.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;
  }
}

/* ==========================================================================
   Settings Navigation Component
   ========================================================================== */

/**
 * Horizontal navigation for settings pages
 * Used in admin settings section for tab-like navigation
 *
 * Markup:
 * <nav class="settings-nav">
 *   <div class="settings-nav__container">
 *     <a href="#" class="settings-nav__item settings-nav__item--active">
 *       <svg class="settings-nav__icon icon icon--sm">...</svg>
 *       <span class="settings-nav__text">Tab Name</span>
 *     </a>
 *   </div>
 * </nav>
 */

/* Base Container
   ========================================================================== */

.settings-nav {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.settings-nav::-webkit-scrollbar {
    display: none;
}

.settings-nav__container {
    display: flex;
    gap: 0.25rem;
    gap: var(--spacing-1);
    min-width: -moz-max-content;
    min-width: max-content;
    padding: 0.5rem;
    padding: var(--spacing-2);
}

/* Navigation Item
   ========================================================================== */

.settings-nav__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
    padding: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    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);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all var(--transition-fast);
    background: transparent;
    border: 1px solid transparent;
}

.settings-nav__item:hover {
    color: #111827;
    color: var(--brand-gray-900);
    background: #F9FAFB;
    background: var(--brand-gray-50);
}

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

/* Active State
   ========================================================================== */

.settings-nav__item--active {
    color: #ED1C24;
    color: var(--brand-red-primary);
    background: #FDF2F2;
    background: var(--brand-red-lightest);
    border-color: #F3767E;
    border-color: var(--brand-red-lighter);
}

.settings-nav__item--active:hover {
    color: #D11920;
    color: var(--brand-red-dark);
    background: #FDF2F2;
    background: var(--brand-red-lightest);
}

/* Icon
   ========================================================================== */

.settings-nav__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity var(--transition-fast);
}

.settings-nav__item:hover .settings-nav__icon {
    opacity: 1;
}

.settings-nav__item--active .settings-nav__icon {
    opacity: 1;
    color: #ED1C24;
    color: var(--brand-red-primary);
}

/* Text
   ========================================================================== */

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

/* Responsive
   ========================================================================== */

/* Mobile: Stack vertically */

@media (max-width: 639px) {
    .settings-nav__container {
        flex-direction: column;
        gap: 0.25rem;
        gap: var(--spacing-1);
        padding: 0.5rem;
        padding: var(--spacing-2);
        min-width: 100%;
    }

    .settings-nav__item {
        width: 100%;
        padding: 0.75rem 1rem;
        padding: var(--spacing-3) var(--spacing-4);
    }
}

/* Tablet: Horizontal scroll with better sizing */

@media (min-width: 640px) and (max-width: 1023px) {
    .settings-nav__container {
        gap: 0.5rem;
        gap: var(--spacing-2);
    }

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

/* Desktop: Full horizontal layout */

@media (min-width: 1024px) {
    .settings-nav__container {
        gap: 0.5rem;
        gap: var(--spacing-2);
    }

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

/* Ultra-wide: More spacing */

@media (min-width: 1536px) {
    .settings-nav__container {
        gap: 0.75rem;
        gap: var(--spacing-3);
    }

    .settings-nav__item {
        padding: 0.75rem 1.5rem;
        padding: var(--spacing-3) var(--spacing-6);
    }
}

/* Dark Theme Support
   ========================================================================== */

[data-theme="dark"] .settings-nav__item {
    color: #9CA3AF;
    color: var(--brand-gray-400);
}

[data-theme="dark"] .settings-nav__item:hover {
    color: #F3F4F6;
    color: var(--brand-gray-100);
    background: #1F2937;
    background: var(--brand-gray-800);
}

[data-theme="dark"] .settings-nav__item--active {
    color: #F04951;
    color: var(--brand-red-light);
    background: rgba(237, 28, 36, 0.15);
    border-color: rgba(237, 28, 36, 0.3);
}

[data-theme="dark"] .settings-nav__item--active:hover {
    color: #F3767E;
    color: var(--brand-red-lighter);
}

/* Accessibility
   ========================================================================== */

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

@media (prefers-contrast: high) {
    .settings-nav__item--active {
        border-width: 2px;
        border-color: #ED1C24;
        border-color: var(--brand-red-primary);
    }
}

/* Pattern Cards Component
 * Cards with background pattern (mm-medic-pattern-alpha.png)
 * Two variants:
 * 1. Primary (red) - same for light and dark themes
 * 2. Adaptive - white/dark background based on theme
 */

/* Base Pattern Card */

.pattern-card {
  position: relative;
  padding: 2rem;
  padding: var(--spacing-8);
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.pattern-card:hover {
  transform: translateY(-2px);
}

/* Content Layer */

.pattern-card__content {
  position: relative;
  z-index: 2;
}

/* Header with title and icon */

.pattern-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  gap: var(--spacing-4);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

/* =============================================
   VARIANT 1: Primary (Red Background)
   Same appearance for both light and dark themes
   ============================================= */

.pattern-card--primary {
  background:
    url('/static/images/mm-medic-pattern-white.png') right bottom / auto 100% no-repeat,
    #ED1C24;
  background:
    url('/static/images/mm-medic-pattern-white.png') right bottom / auto 100% no-repeat,
    var(--brand-red-primary);
  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);
}

.pattern-card--primary:hover {
  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);
}

/* Primary card text - always white */

.pattern-card--primary .pattern-card__title {
  color: #FFFFFF;
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  margin: 0;
  flex: 1;
}

.pattern-card--primary .pattern-card__description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

.pattern-card--primary .pattern-card__icon {
  color: #FFFFFF;
}

.pattern-card--primary .pattern-card__icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =============================================
   VARIANT 2: Adaptive (White/Dark Background)
   Changes based on theme
   ============================================= */

.pattern-card--adaptive {
  background:
    url('/static/images/mm-medic-pattern-red.png') right bottom / auto 100% no-repeat,
    #FFFFFF;
  background:
    url('/static/images/mm-medic-pattern-red.png') right bottom / auto 100% no-repeat,
    var(--brand-white);
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  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);
}

.pattern-card--adaptive: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);
}

/* Adaptive card text - red for light theme */

.pattern-card--adaptive .pattern-card__title {
  color: #ED1C24;
  color: var(--brand-red-primary);
  font-size: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  margin: 0;
  flex: 1;
}

.pattern-card--adaptive .pattern-card__description {
  color: #374151;
  color: var(--brand-gray-700);
  font-size: 1rem;
  font-size: var(--font-size-base);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
}

.pattern-card--adaptive .pattern-card__icon {
  color: #ED1C24;
  color: var(--brand-red-primary);
}

.pattern-card--adaptive .pattern-card__icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  background-color: #FDF2F2;
  background-color: var(--brand-red-lightest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =============================================
   Dark Theme Overrides
   ============================================= */

[data-theme="dark"] .pattern-card--primary {
  /* Primary stays the same in dark mode */
  background:
    url('/static/images/mm-medic-pattern-white.png') right bottom / auto 100% no-repeat,
    #ED1C24;
  background:
    url('/static/images/mm-medic-pattern-white.png') right bottom / auto 100% no-repeat,
    var(--brand-red-primary);
}

[data-theme="dark"] .pattern-card--primary .pattern-card__title,
[data-theme="dark"] .pattern-card--primary .pattern-card__description,
[data-theme="dark"] .pattern-card--primary .pattern-card__icon {
  /* Keep white text in dark mode */
  color: #FFFFFF;
}

[data-theme="dark"] .pattern-card--primary .pattern-card__description {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .pattern-card--adaptive {
  background:
    url('/static/images/mm-medic-pattern-white.png') right bottom / auto 100% no-repeat,
    #F3F4F6;
  background:
    url('/static/images/mm-medic-pattern-white.png') right bottom / auto 100% no-repeat,
    var(--brand-gray-100);
  border-color: #D1D5DB;
  border-color: var(--brand-gray-300);
}

[data-theme="dark"] .pattern-card--adaptive .pattern-card__title {
  color: #111827;
  color: var(--brand-gray-900);
}

[data-theme="dark"] .pattern-card--adaptive .pattern-card__description {
  color: #374151;
  color: var(--brand-gray-700);
}

[data-theme="dark"] .pattern-card--adaptive .pattern-card__icon {
  color: #FFFFFF;
  color: var(--brand-white);
}

[data-theme="dark"] .pattern-card--adaptive .pattern-card__icon-wrapper {
  background-color: rgba(255, 255, 255, 0.1);
}

/* =============================================
   Responsive Adjustments
   ============================================= */

@media (max-width: 640px) {
  .pattern-card {
    padding: 1.5rem;
    padding: var(--spacing-6);
  }

  .pattern-card::before {
    background-size: 150px 150px;
  }

  .pattern-card__icon-wrapper {
    width: 3rem;
    height: 3rem;
  }

  .pattern-card__title {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
  }
}

/* MM Medic Notification Components
 * Extends dropdown and badge patterns for notification-specific functionality
 * Follows BEM methodology and design system conventions
 */

/* =================================================================
   NOTIFICATION DROPDOWN - Header Bell Menu
   ================================================================= */

.notification-dropdown {
    position: relative;
    display: inline-block;
}

/* Notification trigger button */

.notification-dropdown__trigger {
    background: transparent;
    border: none;
    padding: 0.5rem;
    padding: var(--spacing-2);
    position: relative;
    cursor: pointer;
    border-radius: 9999px;
    border-radius: var(--radius-full);
    transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: background-color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown__trigger:hover {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
}

.notification-dropdown__trigger:focus {
    outline: none;
    box-shadow: 0 0 0 2px #F04951;
    box-shadow: 0 0 0 2px var(--brand-red-light);
}

.notification-dropdown__icon {
    width: 24px;
    height: 24px;
    color: #374151;
    color: var(--brand-gray-700);
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: color var(--transition-fast);
}

.notification-dropdown__trigger:hover .notification-dropdown__icon {
    color: #111827;
    color: var(--brand-gray-900);
}

/* Notification badge (count) */

.notification-dropdown__badge {
    position: absolute;
    top: 0;
    right: 0;
    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);
    transform: translate(25%, -25%);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform var(--transition-fast);
}

.notification-dropdown__badge--hidden {
    display: none;
}

/* Pulse animation for new notifications */

.notification-dropdown__badge--pulse {
    animation: notification-pulse 2s ease-in-out infinite;
}

@keyframes notification-pulse {
    0%, 100% {
        transform: translate(25%, -25%) scale(1);
    }
    50% {
        transform: translate(25%, -25%) scale(1.1);
    }
}

/* =================================================================
   NOTIFICATION DROPDOWN CONTENT
   ================================================================= */

.notification-dropdown__content {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 1rem);
    max-width: calc(100vw - var(--spacing-4));
    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 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: 1000;
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.notification-dropdown--open .notification-dropdown__content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0.25rem);
    transform: translateY(var(--spacing-1));
}

/* =================================================================
   NOTIFICATION HEADER
   ================================================================= */

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

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

.notification-dropdown__count {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #FFFFFF;
    color: var(--brand-white);
    background: #ED1C24;
    background: var(--brand-red-primary);
    padding: 2px 0.5rem;
    padding: 2px var(--spacing-2);
    border-radius: 9999px;
    border-radius: var(--radius-full);
}

.notification-dropdown__actions {
    display: flex;
    gap: 0.5rem;
    gap: var(--spacing-2);
}

.notification-dropdown__action {
    background: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    padding: var(--spacing-1) var(--spacing-2);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #ED1C24;
    color: var(--brand-red-primary);
    cursor: pointer;
    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);
}

.notification-dropdown__action:hover {
    background: #FDF2F2;
    background: var(--brand-red-lightest);
    color: #D11920;
    color: var(--brand-red-dark);
}

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

/* =================================================================
   NOTIFICATION LIST
   ================================================================= */

.notification-list {
    max-height: 400px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #F9FAFB;
    background: var(--brand-gray-50);
}

.notification-list::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    background: var(--brand-gray-300);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
    background: var(--brand-gray-400);
}

/* =================================================================
   NOTIFICATION ITEM
   ================================================================= */

.notification-item {
    display: flex;
    align-items: flex-start;
    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);
    cursor: pointer;
    transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: background-color var(--transition-fast);
    text-decoration: none;
    color: inherit;
    background: #FFFFFF;
    background: var(--brand-white);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

.notification-item:focus {
    outline: none;
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

/* Unread state */

.notification-item--unread {
    background: linear-gradient(90deg, #FDF2F2 0%, #FFFFFF 100%);
    background: linear-gradient(90deg, var(--brand-red-lightest) 0%, var(--brand-white) 100%);
    border-left: 3px solid #ED1C24;
    border-left: 3px solid var(--brand-red-primary);
}

.notification-item--unread:hover {
    background: linear-gradient(90deg, #FDF2F2 0%, #F9FAFB 100%);
    background: linear-gradient(90deg, var(--brand-red-lightest) 0%, var(--brand-gray-50) 100%);
}

/* Read state */

.notification-item--read {
    opacity: 0.8;
}

/* =================================================================
   NOTIFICATION ITEM PARTS
   ================================================================= */

.notification-item__icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-item__icon svg {
    width: 18px;
    height: 18px;
}

/* Icon color variants */

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

.notification-item--low_stock .notification-item__icon {
    background: rgba(245, 158, 11, 0.1);
    background: var(--color-warning-bg);
    color: #D97706;
    color: var(--color-warning-dark);
}

.notification-item--system .notification-item__icon {
    background: #F3F4F6;
    background: var(--brand-gray-100);
    color: #4B5563;
    color: var(--brand-gray-600);
}

.notification-item--info .notification-item__icon {
    background: rgba(59, 130, 246, 0.1);
    background: var(--color-info-bg);
    color: #2563EB;
    color: var(--color-info-dark);
}

.notification-item--success .notification-item__icon {
    background: rgba(16, 185, 129, 0.1);
    background: var(--color-success-bg);
    color: #059669;
    color: var(--color-success-dark);
}

.notification-item--warning .notification-item__icon {
    background: rgba(245, 158, 11, 0.1);
    background: var(--color-warning-bg);
    color: #D97706;
    color: var(--color-warning-dark);
}

.notification-item--error .notification-item__icon {
    background: rgba(237, 28, 36, 0.1);
    background: var(--color-error-bg);
    color: #D11920;
    color: var(--color-error-dark);
}

.notification-item--event .notification-item__icon {
    background: var(--badge-info-soft-bg);
    color: #2563EB;
    color: var(--color-info-dark);
}

.notification-item--registration .notification-item__icon {
    background: rgba(16, 185, 129, 0.1);
    background: var(--color-success-bg);
    color: #059669;
    color: var(--color-success-dark);
}

.notification-item__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    gap: var(--spacing-1);
}

.notification-item__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);
    line-height: 1.25;
    line-height: var(--line-height-tight);
    margin: 0;
}

.notification-item--unread .notification-item__title {
    font-weight: 700;
    font-weight: var(--font-weight-bold);
}

.notification-item__message {
    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: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-item__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #6B7280;
    color: var(--brand-gray-500);
}

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

.notification-item__time svg {
    width: 12px;
    height: 12px;
}

.notification-item__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #9CA3AF;
    background: var(--brand-gray-400);
}

.notification-item__badge {
    font-size: 10px;
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    padding: 2px 0.5rem;
    padding: 2px var(--spacing-2);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Unread dot indicator */

.notification-item__unread-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: #ED1C24;
    background: var(--brand-red-primary);
    box-shadow: 0 0 0 2px #FDF2F2;
    box-shadow: 0 0 0 2px var(--brand-red-lightest);
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.25rem;
    margin-top: var(--spacing-1);
}

/* =================================================================
   NOTIFICATION EMPTY STATE
   ================================================================= */

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    padding: var(--spacing-8) var(--spacing-4);
    text-align: center;
}

.notification-empty__icon {
    width: 48px;
    height: 48px;
    color: #D1D5DB;
    color: var(--brand-gray-300);
    margin-bottom: 0.75rem;
    margin-bottom: var(--spacing-3);
}

.notification-empty__title {
    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 0 0.25rem 0;
    margin: 0 0 var(--spacing-1) 0;
}

.notification-empty__message {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #6B7280;
    color: var(--brand-gray-500);
    margin: 0;
}

/* =================================================================
   NOTIFICATION LOADING STATE
   ================================================================= */

.notification-loading {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    gap: var(--spacing-3);
    padding: 1rem;
    padding: var(--spacing-4);
}

.notification-loading__item {
    display: flex;
    gap: 0.75rem;
    gap: var(--spacing-3);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.notification-loading__icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border-radius: var(--radius-lg);
    background: #E5E7EB;
    background: var(--brand-gray-200);
}

.notification-loading__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    gap: var(--spacing-2);
}

.notification-loading__title {
    height: 14px;
    width: 60%;
    background: #E5E7EB;
    background: var(--brand-gray-200);
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
}

.notification-loading__text {
    height: 12px;
    width: 100%;
    background: #F3F4F6;
    background: var(--brand-gray-100);
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
}

.notification-loading__meta {
    height: 10px;
    width: 30%;
    background: #F3F4F6;
    background: var(--brand-gray-100);
    border-radius: 0.125rem;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* =================================================================
   NOTIFICATION DROPDOWN FOOTER
   ================================================================= */

.notification-dropdown__footer {
    padding: 0.75rem 1rem;
    padding: var(--spacing-3) var(--spacing-4);
    border-top: 1px solid #F3F4F6;
    border-top: 1px solid var(--brand-gray-100);
    background: #F9FAFB;
    background: var(--brand-gray-50);
    text-align: center;
}

.notification-dropdown__view-all {
    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);
    color: #ED1C24;
    color: var(--brand-red-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    padding: var(--spacing-2) var(--spacing-4);
    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);
}

.notification-dropdown__view-all:hover {
    background: #FDF2F2;
    background: var(--brand-red-lightest);
    color: #D11920;
    color: var(--brand-red-dark);
}

.notification-dropdown__view-all svg {
    width: 16px;
    height: 16px;
}

/* =================================================================
   NOTIFICATION PAGE COMPONENTS
   ================================================================= */

/* Notification page header */

.notification-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    margin-bottom: var(--spacing-6);
    flex-wrap: wrap;
    gap: 1rem;
    gap: var(--spacing-4);
}

.notification-page-header__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    gap: var(--spacing-3);
}

.notification-page-header__actions {
    display: flex;
    gap: 0.75rem;
    gap: var(--spacing-3);
}

/* Notification timeline */

.notification-timeline {
    position: relative;
    padding-left: 2rem;
    padding-left: var(--spacing-8);
}

.notification-timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E5E7EB;
    background: var(--brand-gray-200);
}

.notification-timeline__item {
    position: relative;
    padding-bottom: 1.5rem;
    padding-bottom: var(--spacing-6);
}

.notification-timeline__item:last-child {
    padding-bottom: 0;
}

.notification-timeline__dot {
    position: absolute;
    left: calc(-1 * 2rem + 10px);
    left: calc(-1 * var(--spacing-8) + 10px);
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFFFFF;
    background: var(--brand-white);
    border: 2px solid #D1D5DB;
    border: 2px solid var(--brand-gray-300);
    z-index: 1;
}

.notification-timeline__item--unread .notification-timeline__dot {
    background: #ED1C24;
    background: var(--brand-red-primary);
    border-color: #ED1C24;
    border-color: var(--brand-red-primary);
}

.notification-timeline__date {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    color: #6B7280;
    color: var(--brand-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    margin-bottom: var(--spacing-3);
}

/* =================================================================
   NOTIFICATION CARD (for page view)
   ================================================================= */

.notification-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: 1rem;
    padding: var(--spacing-4);
    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);
}

.notification-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);
    border-color: #D1D5DB;
    border-color: var(--brand-gray-300);
}

.notification-card--unread {
    border-left: 4px solid #ED1C24;
    border-left: 4px solid var(--brand-red-primary);
    background: linear-gradient(90deg, #FDF2F2 0%, #FFFFFF 100%);
    background: linear-gradient(90deg, var(--brand-red-lightest) 0%, var(--brand-white) 100%);
}

.notification-card__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 0.75rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-card__icon svg {
    width: 24px;
    height: 24px;
}

.notification-card__content {
    flex: 1;
    min-width: 0;
}

.notification-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    gap: var(--spacing-3);
    margin-bottom: 0.5rem;
    margin-bottom: var(--spacing-2);
}

.notification-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;
    line-height: 1.25;
    line-height: var(--line-height-tight);
}

.notification-card--unread .notification-card__title {
    font-weight: 700;
    font-weight: var(--font-weight-bold);
}

.notification-card__time {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #6B7280;
    color: var(--brand-gray-500);
    white-space: nowrap;
    flex-shrink: 0;
}

.notification-card__message {
    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 0 0.75rem 0;
    margin: 0 0 var(--spacing-3) 0;
}

.notification-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    gap: var(--spacing-3);
}

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

.notification-card__actions {
    display: flex;
    gap: 0.5rem;
    gap: var(--spacing-2);
}

/* =================================================================
   RESPONSIVE - Mobile Bottom Sheet
   ================================================================= */

@media (max-width: 1024px) {
    /* Mobile: Full-width bottom sheet */
    .notification-dropdown__content {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 80vh;
        border-radius: 1rem 1rem 0 0;
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        transform: translateY(100%);
        z-index: 1050;
        z-index: var(--z-modal);
    }

    .notification-dropdown--open .notification-dropdown__content {
        transform: translateY(0);
    }

    /* Mobile handle */
    .notification-dropdown__content::before {
        content: '';
        display: block;
        width: 32px;
        height: 4px;
        background: #D1D5DB;
        background: var(--brand-gray-300);
        border-radius: 2px;
        margin: 0.5rem auto 0.75rem;
        margin: var(--spacing-2) auto var(--spacing-3);
    }

    /* Backdrop */
    .notification-dropdown--open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: calc(1050 - 1);
        z-index: calc(var(--z-modal) - 1);
    }

    .notification-list {
        max-height: 60vh;
    }

    .notification-item {
        padding: 1rem;
        padding: var(--spacing-4);
    }

    .notification-item__icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .notification-item__icon svg {
        width: 22px;
        height: 22px;
    }

    .notification-item__title {
        font-size: 1rem;
        font-size: var(--font-size-base);
    }

    .notification-item__message {
        font-size: 0.875rem;
        font-size: var(--font-size-sm);
    }
}

/* =================================================================
   NOTIFICATION ROLE INDICATORS
   ================================================================= */

.notification-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    gap: var(--spacing-1);
    font-size: 10px;
    font-weight: 500;
    font-weight: var(--font-weight-medium);
    padding: 2px 0.5rem;
    padding: 2px var(--spacing-2);
    border-radius: 9999px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.notification-role-badge--admin {
    background: #FDF2F2;
    background: var(--brand-red-lightest);
    color: #ED1C24;
    color: var(--brand-red-primary);
}

.notification-role-badge--manager {
    background: rgba(59, 130, 246, 0.1);
    background: var(--color-info-bg);
    color: #2563EB;
    color: var(--color-info-dark);
}

.notification-role-badge--staff {
    background: #F3F4F6;
    background: var(--brand-gray-100);
    color: #374151;
    color: var(--brand-gray-700);
}

/* =================================================================
   NOTIFICATION PRIORITY INDICATORS
   ================================================================= */

.notification-item--priority-high {
    border-left-color: #ED1C24;
    border-left-color: var(--color-error);
}

.notification-item--priority-high .notification-item__icon {
    animation: priority-pulse 2s ease-in-out infinite;
}

@keyframes priority-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
    }
}

.notification-item--priority-normal {
    /* Default styling */
}

.notification-item--priority-low {
    opacity: 0.9;
}

/* =================================================================
   DARK THEME OVERRIDES
   ================================================================= */

[data-theme="dark"] .notification-dropdown__content {
    background: #111827;
    background: var(--brand-gray-900);
    border-color: #374151;
    border-color: var(--brand-gray-700);
}

[data-theme="dark"] .notification-dropdown__header {
    background: #1F2937;
    background: var(--brand-gray-800);
    border-color: #374151;
    border-color: var(--brand-gray-700);
}

[data-theme="dark"] .notification-item {
    background: #111827;
    background: var(--brand-gray-900);
    border-color: #1F2937;
    border-color: var(--brand-gray-800);
}

[data-theme="dark"] .notification-item:hover {
    background: #1F2937;
    background: var(--brand-gray-800);
}

[data-theme="dark"] .notification-item--unread {
    background: linear-gradient(90deg, rgba(234, 76, 137, 0.1) 0%, #111827 100%);
    background: linear-gradient(90deg, rgba(234, 76, 137, 0.1) 0%, var(--brand-gray-900) 100%);
}

[data-theme="dark"] .notification-item__title {
    color: #F3F4F6;
    color: var(--brand-gray-100);
}

[data-theme="dark"] .notification-item__message {
    color: #9CA3AF;
    color: var(--brand-gray-400);
}

[data-theme="dark"] .notification-dropdown__footer {
    background: #1F2937;
    background: var(--brand-gray-800);
    border-color: #374151;
    border-color: var(--brand-gray-700);
}

[data-theme="dark"] .notification-card {
    background: #111827;
    background: var(--brand-gray-900);
    border-color: #374151;
    border-color: var(--brand-gray-700);
}

[data-theme="dark"] .notification-card--unread {
    background: linear-gradient(90deg, rgba(234, 76, 137, 0.1) 0%, #111827 100%);
    background: linear-gradient(90deg, rgba(234, 76, 137, 0.1) 0%, var(--brand-gray-900) 100%);
}

[data-theme="dark"] .notification-empty__icon {
    color: #4B5563;
    color: var(--brand-gray-600);
}

/* Navigation */

/* MM Medic Header Navigation - Mobile-first */

/* Main Header - Base (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);
}

.header__container {
  padding: 0 0.75rem;
  padding: 0 var(--spacing-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
  gap: var(--spacing-4);
}

/* 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 - Hidden on mobile by default */

.header__nav {
  flex: 1;
  display: none;
  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 */
  display: none; /* Hidden on mobile, shown in mobile menu */
}

/* Header icons now use standard btn--icon-only classes */

/* Admin Panel Button - Special styling for admin access
   Higher specificity without !important */

.header .header__icon-btn--admin,
button.header__icon-btn--admin,
a.header__icon-btn--admin {
  position: relative;
  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);
  border: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.header .header__icon-btn--admin:hover,
button.header__icon-btn--admin:hover,
a.header__icon-btn--admin:hover {
  background: linear-gradient(135deg, #D11920 0%, #b91c1c 100%);
  background: linear-gradient(135deg, var(--brand-red-dark) 0%, #b91c1c 100%);
  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 - Hidden on mobile, shown in mobile menu */

.header__auth {
  display: none;
  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 - Mobile-first: shown by default */

.header__mobile-toggle {
  display: flex;
  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: 0.75rem;
  padding: var(--spacing-3);
  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;
}

/* Closing animation */

.header .header__mobile-nav.header__mobile-nav--closing {
  display: block;
  animation: mobile-nav-slide-up 0.3s ease-in;
  pointer-events: none;
}

/* Opening animation - slide down with fade in */

@keyframes mobile-nav-slide-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Closing animation - slide up with fade out */

@keyframes mobile-nav-slide-up {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Reduced motion support - fade only, no transform animations */

@media (prefers-reduced-motion: reduce) {
  .header .header__mobile-nav.header__mobile-nav--open,
  .header .header__mobile-nav.header__mobile-nav--closing {
    animation: none;
    transition: opacity 0.2s ease;
  }

  .header .header__mobile-nav.header__mobile-nav--open {
    opacity: 1;
  }

  .header .header__mobile-nav.header__mobile-nav--closing {
    opacity: 0;
  }

  @keyframes mobile-nav-slide-down {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes mobile-nav-slide-up {
    from { opacity: 1; }
    to { opacity: 0; }
  }
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  gap: var(--spacing-1);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.nav-mobile__link {
  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.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.5rem;
  gap: var(--spacing-2);
  padding-top: 0.75rem;
  padding-top: var(--spacing-3);
  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 - Mobile-first ==================== */

/* Tablet/Desktop (768px+) - Show desktop navigation */

@media (min-width: 768px) {
  .header__container {
    padding: 0 1rem;
    padding: 0 var(--spacing-4);
    min-height: 72px;
    gap: 2rem;
    gap: var(--spacing-8);
  }

  /* Показати desktop навігацію */
  .header__nav {
    display: flex;
  }

  /* Показати language toggle */
  .header__language {
    display: flex;
  }

  /* Показати settings button */
  .settings-trigger {
    display: flex;
  }

  /* Показати auth секцію */
  .header__auth {
    display: flex;
  }

  /* Приховати mobile menu toggle */
  .header__mobile-toggle {
    display: none;
  }

  .header__actions {
    gap: 1rem;
    gap: var(--spacing-4);
  }
}

/* Large Desktop (1024px+) - Increase spacing */

@media (min-width: 1024px) {
  .header__container {
    gap: 2rem;
    gap: var(--spacing-8);
  }

  .nav-main {
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

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

/* Header Mobile Icons */

.header__mobile-icons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

/* Mobile User Icons - Mobile-first: shown on mobile */

.header__profile-btn {
  display: flex;
}

.header__admin-btn {
  display: none;
}

.header__favorites-btn {
  display: none;
}

/* Desktop (768px+) - Hide mobile-specific icons */

@media (min-width: 768px) {
  .header__profile-btn {
    display: none;
  }

  .header__favorites-btn {
    display: flex;
  }
}

/* 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.5rem 0.75rem;
  padding: var(--spacing-2) var(--spacing-3);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  cursor: pointer;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.sidebar-nav__section-title:hover {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  color: #374151;
  color: var(--brand-gray-700);
}

.sidebar-nav__section-title-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.sidebar-nav__section--collapsed .sidebar-nav__section-title-icon {
  transform: rotate(-90deg);
}

.sidebar--collapsed .sidebar-nav__section-title {
  opacity: 0;
}

/* Accordion items container */

.sidebar-nav__items {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-in-out, opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: max-height var(--transition-normal) ease-in-out, opacity var(--transition-fast);
  opacity: 1;
}

.sidebar-nav__section--collapsed .sidebar-nav__items {
  max-height: 0;
  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);
  color: #111827;
  color: var(--brand-gray-900);
}

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

/* Base (mobile): Mobile Menu - full width on smallest screens */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  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);
}

/* Base (mobile): 4-column grid on smallest screens */

.mobile-menu__icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 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%);
  }
}

/* Larger phones (481px+): narrower menu */

@media (min-width: 481px) {
  .mobile-menu {
    width: 280px;
  }

  .mobile-menu__icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Content */

/* ==========================================================================
   Legal Content Component
   Компонент для відображення юридичних документів:
   - Умови використання
   - Політика конфіденційності
   - Договори та угоди
   ========================================================================== */

/* Base Container */

.legal-document {
  max-width: 100%;
  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);
  display: inline;
  margin-right: 0.5rem;
  margin-right: var(--spacing-2);
}

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

.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: rgba(59, 130, 246, 0.1);
  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: rgba(16, 185, 129, 0.1);
  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: rgba(245, 158, 11, 0.1);
  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: rgba(237, 28, 36, 0.1);
  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 - Mobile-first */

/* Main Footer - Base (Mobile) */

.footer {
  background: #FFFFFF;
  background: var(--brand-white);
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
  padding: 1.5rem 0 0 0;
  padding: var(--spacing-6) 0 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.footer__container {
  padding: 0 0.75rem;
  padding: 0 var(--spacing-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 0.75rem;
  gap: var(--spacing-5) var(--spacing-3);
}

.footer__section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--spacing-4);
}

/* Company info spans full width on mobile */

.footer__section:first-child {
  grid-column: 1 / -1;
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

/* Contact info spans full width on mobile */

.footer__section:last-child {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  margin-top: var(--spacing-2);
}

/* 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.75rem;
  font-size: var(--font-size-xs);
  line-height: 1.75;
  line-height: var(--line-height-relaxed);
  max-width: 100%;
}

/* Social Links */

.footer__social {
  display: flex;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  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: 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.75rem;
  margin-bottom: var(--spacing-3);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

.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);
  padding: 0.25rem 0;
  padding: var(--spacing-1) 0;
  display: inline-block;
  min-height: 32px;
  line-height: 1.8;
}

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

/* Contact Information */

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

.footer__contact-item {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  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: 1.5rem;
  margin-top: var(--spacing-6);
  padding: 1rem 0;
  padding: var(--spacing-4) 0;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  padding-bottom: max(var(--spacing-4), env(safe-area-inset-bottom));
  border-top: 1px solid #E5E7EB;
  border-top: 1px solid var(--brand-gray-200);
}

.footer__bottom-content {
  padding: 0 0.75rem;
  padding: 0 var(--spacing-3);
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.footer__copyright {
  color: #6B7280;
  color: var(--brand-gray-500);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.footer__legal-link {
  color: #6B7280;
  color: var(--brand-gray-500);
  text-decoration: none;
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast);
  padding: 0.25rem;
  padding: var(--spacing-1);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.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 - Mobile-first ==================== */

/* Tablet (640px+) */

@media (min-width: 640px) {
  .footer {
    padding: 2rem 0 0 0;
    padding: var(--spacing-8) 0 0 0;
  }

  .footer__container {
    padding: 0 1rem;
    padding: 0 var(--spacing-4);
    gap: 1.5rem 1rem;
    gap: var(--spacing-6) var(--spacing-4);
  }

  .footer__section {
    gap: 1.5rem;
    gap: var(--spacing-6);
  }

  .footer__logo {
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .footer__logo img {
    max-width: 180px;
  }

  .footer__description {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    max-width: 280px;
  }

  .footer__social {
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .footer__social-link {
    width: 40px;
    height: 40px;
  }

  .footer__title {
    font-size: 1.125rem;
    font-size: var(--font-size-lg);
    margin-bottom: 1rem;
    margin-bottom: var(--spacing-4);
  }

  .footer__links {
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .footer__link {
    padding: 0;
    min-height: auto;
    line-height: inherit;
  }

  .footer__contact {
    gap: 1rem;
    gap: var(--spacing-4);
  }

  .footer__contact-item {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
  }

  .footer__bottom {
    margin-top: 2rem;
    margin-top: var(--spacing-8);
    padding: 1.5rem 0;
    padding: var(--spacing-6) 0;
  }

  .footer__bottom-content {
    padding: 0 1rem;
    padding: 0 var(--spacing-4);
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 1rem;
    gap: var(--spacing-4);
  }

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

  .footer__legal {
    gap: 1.5rem;
    gap: var(--spacing-6);
  }

  .footer__legal-link {
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
    padding: 0;
    min-height: auto;
  }
}

/* Desktop (1024px+) */

@media (min-width: 1024px) {
  .footer {
    padding: 3rem 0 0 0;
    padding: var(--spacing-12) 0 0 0;
  }

  .footer__container {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    gap: var(--spacing-8);
  }

  .footer__section:first-child,
  .footer__section:last-child {
    grid-column: auto;
    margin: 0;
  }
}

/* Small phones - single column for better readability */

@media (max-width: 375px) {
  .footer__container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    gap: var(--spacing-5);
  }

  .footer__section:first-child,
  .footer__section:last-child {
    grid-column: 1;
  }

  .footer__logo {
    align-items: flex-start;
  }

  .footer__social {
    justify-content: flex-start;
  }

  .footer__description {
    max-width: 280px;
  }
}

/* Landscape orientation on mobile */

@media (max-width: 640px) and (orientation: landscape) {
  .footer {
    padding: 1rem 0 0 0;
    padding: var(--spacing-4) 0 0 0;
  }

  .footer__section {
    gap: 0.75rem;
    gap: var(--spacing-3);
  }

  .footer__bottom {
    margin-top: 1rem;
    margin-top: var(--spacing-4);
    padding: 0.75rem 0;
    padding: var(--spacing-3) 0;
  }
}

/* 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);
  width: 100%;
  min-height: calc(100vh - 200px);
}

/* Ultra-wide screens: limit content width for readability, not container */

@media (min-width: 1536px) {
  .profile-container {
    padding: 1.5rem 2rem;
    padding: var(--spacing-6) var(--spacing-8);
  }
}

@media (min-width: 2560px) {
  .profile-container {
    padding: 1.5rem 3rem;
    padding: var(--spacing-6) var(--spacing-12);
  }
}

@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 (Profile-specific only) */

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

/* 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%);
}

/* Rotation Speed Calculator - Custom Page Styles
 *
 * Компактний мобільний дизайн з яскравими кольоровими картками
 * Використовує тільки змінні з дизайн-системи (vars.css)
 */

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
  --rotation-speed-max-width: 640px;
  --rotation-speed-card-radius: var(--radius-xl);

  /* Hero Card Gradients */
  --rotation-speed-hero-gradient: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-dark) 100%);

  /* Parameter Card Gradients */
  --rotation-speed-time-gradient: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.15) 100%);
  --rotation-speed-temp-gradient: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.15) 100%);

  /* Hero Value Size */
  --rotation-speed-hero-value-size: 4rem;
  --rotation-speed-hero-value-size-tablet: 5rem;
}

/* ============================================
   LAYOUT
   ============================================ */

.rotation-speed-page {
  width: 100%;
  padding: 1.5rem 0;
  padding: var(--spacing-6) 0;
}

.rotation-speed-page__container {
  width: 100%;
  padding: 0 1rem;
  padding: 0 var(--spacing-4);
  max-width: 640px;
  max-width: var(--rotation-speed-max-width);
  margin: 0 auto;
}

/* Widget Card with Gap-based Spacing */

.rotation-speed-widget {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rotation-speed-widget > .card__body {
  border-top: 1px solid #F3F4F6;
  border-top: 1px solid var(--brand-gray-100);
}

.rotation-speed-widget > .card__body:first-child {
  border-top: none;
}

/* Header */

.rotation-speed-page__header {
  text-align: center;
  margin-bottom: 1.5rem;
  margin-bottom: var(--spacing-6);
}

.rotation-speed-page__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.75rem;
  margin-bottom: var(--spacing-3);
}

.rotation-speed-page__subtitle {
  font-size: 1rem;
  font-size: var(--font-size-base);
  color: #4B5563;
  color: var(--brand-gray-600);
}

/* Tube Type Buttons Grid */

.rotation-speed__tube-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  gap: var(--spacing-3);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.rotation-speed__tube-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0.75rem;
  padding: var(--spacing-6) var(--spacing-3);
}

.rotation-speed__tube-btn-label {
  font-size: 1.5rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.rotation-speed__tube-btn-sublabel {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  opacity: 0.75;
}

.rotation-speed__tube-description {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
  text-align: center;
}

/* Section Labels */

.rotation-speed__label {
  display: block;
  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-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

/* Specs Display */

.rotation-speed__specs {
  margin-top: 0.75rem;
  margin-top: var(--spacing-3);
  padding: 0.75rem;
  padding: var(--spacing-3);
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
}

.rotation-speed__specs-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin: 0;
}

/* Result Badge */

.rotation-speed__result-badge {
  text-align: center;
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

/* ============================================
   RESULT DISPLAY
   ============================================ */

/* Hero Result Card */

.rotation-speed__hero-card {
  border-radius: 1rem;
  border-radius: var(--radius-2xl);
  padding: 2rem;
  padding: var(--spacing-8);
  text-align: center;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  background: var(--rotation-speed-hero-gradient);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
  transition: background var(--transition-normal);
}

/* Hero Card Color Modifiers - match tube type slider colors */

.rotation-speed__hero-card--prf {
  background: linear-gradient(135deg, #ED1C24 0%, #C41519 100%);
  box-shadow: 0 8px 24px rgba(237, 28, 36, 0.25);
}

.rotation-speed__hero-card--prp {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.rotation-speed__hero-card--ppp {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.rotation-speed__hero-label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #FFFFFF;
  color: var(--brand-white);
  opacity: 0.9;
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.rotation-speed__hero-value {
  font-size: 4rem;
  font-size: var(--rotation-speed-hero-value-size);
  font-weight: var(--font-weight-black);
  color: #FFFFFF;
  color: var(--brand-white);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.rotation-speed__hero-unit {
  font-size: 1.125rem;
  font-size: var(--font-size-lg);
  color: #FFFFFF;
  color: var(--brand-white);
  opacity: 0.9;
  font-weight: 500;
  font-weight: var(--font-weight-medium);
}

.rotation-speed__hero-divider {
  margin-top: 1.5rem;
  margin-top: var(--spacing-6);
  padding-top: 1.5rem;
  padding-top: var(--spacing-6);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.rotation-speed__hero-secondary-label {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #FFFFFF;
  color: var(--brand-white);
  opacity: 0.75;
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

.rotation-speed__hero-secondary-value {
  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);
}

/* Parameters Grid */

.rotation-speed__params {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  gap: var(--spacing-3);
  margin-bottom: 1rem;
  margin-bottom: var(--spacing-4);
}

.rotation-speed__param-card {
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  padding: var(--spacing-5);
  text-align: center;
}

.rotation-speed__param-card--time {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.15) 100%);
  background: var(--rotation-speed-time-gradient);
  border: 2px solid #F59E0B;
  border: 2px solid var(--color-warning);
}

.rotation-speed__param-card--temp {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.15) 100%);
  background: var(--rotation-speed-temp-gradient);
  border: 2px solid #10B981;
  border: 2px solid var(--color-success);
}

.rotation-speed__param-label {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
}

.rotation-speed__param-value {
  font-size: 1.875rem;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-black);
}

.rotation-speed__param-value--time {
  color: #D97706;
  color: var(--color-warning-dark);
}

.rotation-speed__param-value--temp {
  color: #059669;
  color: var(--color-success-dark);
}

/* Warning Card */

.rotation-speed__warning {
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  padding: 1rem;
  padding: var(--spacing-4);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
  background: rgba(245, 158, 11, 0.1);
  background: var(--color-warning-bg);
  border: 2px solid #F59E0B;
  border: 2px solid var(--color-warning);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.rotation-speed__warning-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: #D97706;
  color: var(--color-warning-dark);
}

.rotation-speed__warning-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #D97706;
  color: var(--color-warning-dark);
}

/* Notes Card */

.rotation-speed__notes {
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  padding: 1rem;
  padding: var(--spacing-4);
  background: rgba(59, 130, 246, 0.1);
  background: var(--color-info-bg);
  border: 2px solid #3B82F6;
  border: 2px solid var(--color-info);
}

.rotation-speed__notes-title {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #2563EB;
  color: var(--color-info-dark);
  margin-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.rotation-speed__notes-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #2563EB;
  color: var(--color-info-dark);
}

/* Loading State */

.rotation-speed__loading {
  text-align: center;
  padding: 2rem 0;
  padding: var(--spacing-8) 0;
}

.rotation-speed__spinner {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border: 4px solid #E5E7EB;
  border: 4px solid var(--brand-gray-200);
  border-top-color: #3B82F6;
  border-top-color: var(--color-info);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  animation: rotation-spin 1s linear infinite;
}

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

.rotation-speed__loading-text {
  margin-top: 1rem;
  margin-top: var(--spacing-4);
  font-weight: 500;
  font-weight: var(--font-weight-medium);
  color: #4B5563;
  color: var(--brand-gray-600);
}

/* Error State */

.rotation-speed__error-card {
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  padding: 1rem;
  padding: var(--spacing-4);
  background: rgba(237, 28, 36, 0.1);
  background: var(--color-error-bg);
  border: 2px solid #ED1C24;
  border: 2px solid var(--color-error);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.rotation-speed__error-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: #D11920;
  color: var(--color-error-dark);
}

.rotation-speed__error-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  color: #D11920;
  color: var(--color-error-dark);
}

/* Info Section */

.rotation-speed__info {
  margin-top: 1.5rem;
  margin-top: var(--spacing-6);
}

.rotation-speed__info-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  gap: var(--spacing-3);
}

.rotation-speed__info-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  background: var(--color-info-bg);
}

.rotation-speed__info-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #2563EB;
  color: var(--color-info-dark);
}

.rotation-speed__info-body {
  flex: 1;
}

.rotation-speed__info-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-bottom: 0.5rem;
  margin-bottom: var(--spacing-2);
}

.rotation-speed__info-text {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.rotation-speed__formula {
  background: #F9FAFB;
  background: var(--brand-gray-50);
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  padding: var(--spacing-3);
  margin-bottom: 0.75rem;
  margin-bottom: var(--spacing-3);
}

.rotation-speed__formula-code {
  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);
  font-weight: 700;
  font-weight: var(--font-weight-bold);
  color: #111827;
  color: var(--brand-gray-900);
}

.rotation-speed__formula-note {
  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);
}

.rotation-speed__info-footer {
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  color: #6B7280;
  color: var(--brand-gray-500);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet and up */

@media (min-width: 640px) {
  .rotation-speed-page {
    padding: 2rem 0;
    padding: var(--spacing-8) 0;
  }

  .rotation-speed-page__container {
    padding: 0 1.5rem;
    padding: 0 var(--spacing-6);
  }

  .rotation-speed-page__title {
    font-size: 1.875rem;
    font-size: var(--font-size-3xl);
  }

  .rotation-speed__hero-value {
    font-size: 5rem;
    font-size: var(--rotation-speed-hero-value-size-tablet);
  }
}

/**
 * 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;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  border: 1px solid var(--brand-gray-200);
  overflow: hidden;
}

.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: 8px;
  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;
}

/**
 * Promocodes Admin Page Styles
 * Specific styles for promocodes management page
 * Following CLAUDE.md: No inline styles, semantic class names
 */

/* Usage Display */

.usage-display {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.usage-display__count {
  font-weight: 600;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.25rem;
  margin-bottom: var(--spacing-1);
}

/* Progress Bar */

.progress-bar {
  height: 4px;
  background: #E5E7EB;
  background: var(--brand-gray-200);
  border-radius: 9999px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition: width var(--transition-base);
}

.progress-bar--success .progress-bar__fill,
.progress-bar__fill.progress-bar--success {
  background: #10B981;
  background: var(--color-success);
}

.progress-bar--warning .progress-bar__fill,
.progress-bar__fill.progress-bar--warning {
  background: #F59E0B;
  background: var(--color-warning);
}

.progress-bar--error .progress-bar__fill,
.progress-bar__fill.progress-bar--error {
  background: #ED1C24;
  background: var(--color-error);
}

/* Validity Period */

.validity-period {
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
}

.validity-period > div {
  line-height: 1.5;
  line-height: var(--line-height-normal);
}

/* Loading State */

.promocode-loading {
  text-align: center;
  padding: 3rem 0;
  padding: var(--spacing-12) 0;
}

.promocode-loading__icon {
  display: block;
  margin: 0 auto 1rem;
  margin: 0 auto var(--spacing-4);
  color: var(--text-muted);
}

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

/* Pagination */

.pagination__info {
  padding: 0 1rem;
  padding: 0 var(--spacing-4);
  font-size: 0.875rem;
  font-size: var(--font-size-sm);
  color: #4B5563;
  color: var(--brand-gray-600);
}

/* Bulk Actions */

.bulk-actions {
  padding: 1rem;
  padding: var(--spacing-4);
  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);
}

/* Table Footer Info */

.table__footer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  gap: var(--spacing-4);
  flex-wrap: wrap;
}

.table__rows-per-page {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--spacing-2);
}

/* Mobile Responsiveness */

@media (max-width: 640px) {
  .usage-display,
  .validity-period {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
  }

  .pagination__info {
    flex-basis: 100%;
    text-align: center;
  }
}

/* =================================================================
   STAFF MANAGEMENT - Semantic CSS for Staff & Users Pages
   Uses design-system components + Tailwind utilities
   ================================================================= */

/* =================================================================
   BULK ACTIONS BAR
   ================================================================= */

.bulkActions--hidden {
  display: none;
}

/* =================================================================
   STAFF ROLE PICKER (inline select in table)
   ================================================================= */

.staff-role-picker {
  min-width: 160px;
  max-width: 200px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.staff-role-picker:hover:not(:disabled) {
  border-color: #ED1C24;
  border-color: var(--brand-red-primary);
}

.staff-role-picker:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  background-color: #F9FAFB;
  background-color: var(--brand-gray-50);
}

/* =================================================================
   TABLE ROW LOADING STATE
   ================================================================= */

.table__row--loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.table__row--loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* =================================================================
   LOADING ANIMATIONS
   ================================================================= */

/* Loading Icon Animation - uses global @keyframes spin from utilities/animations.css */

.animate-spin {
  animation: spin 0.8s linear infinite;
}

/* =================================================================
   RESPONSIVE ADJUSTMENTS
   ================================================================= */

@media (max-width: 768px) {
  .staff-role-picker {
    min-width: 140px;
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
  }
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
  .table__row--loading::after,
  .animate-spin {
    animation: none;
  }

  .staff-role-picker {
    transition: none;
  }
}

/* =================================================================
   ROLES MANAGEMENT - Semantic CSS for Roles & Permissions Page
   Uses design-system components + Tailwind utilities
   ================================================================= */

/* =================================================================
   ROLE CARDS
   ================================================================= */

.role-card {
    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);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.role-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);
    border-color: #D1D5DB;
    border-color: var(--brand-gray-300);
}

.role-card--system {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--brand-gray-25) 100%);
    background: linear-gradient(180deg, var(--brand-white) 0%, var(--brand-gray-25) 100%);
    border-left: 4px solid #ED1C24;
    border-left: 4px solid var(--brand-red-primary);
}

.role-card--custom {
    border-left: 4px solid #D1D5DB;
    border-left: 4px solid var(--brand-gray-300);
}

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

.role-card__title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    gap: var(--spacing-2);
    flex: 1;
}

.role-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;
    line-height: 1.25;
    line-height: var(--line-height-tight);
}

.role-card__actions {
    display: flex;
    gap: 0.25rem;
    gap: var(--spacing-1);
    margin-left: 0.5rem;
    margin-left: var(--spacing-2);
}

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

.role-card__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 0 1rem 0;
    margin: 0 0 var(--spacing-4) 0;
}

.role-card__stats {
    display: flex;
    gap: 1rem;
    gap: var(--spacing-4);
}

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

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

.stat__label {
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #6B7280;
    color: var(--brand-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-card__footer {
    padding: 0.75rem;
    padding: var(--spacing-3);
    background: var(--brand-gray-25);
    border-top: 1px solid #F3F4F6;
    border-top: 1px solid var(--brand-gray-100);
}

/* =================================================================
   ACCORDION BADGE CUSTOMIZATION
   ================================================================= */

.accordion__badge .badge-active {
    color: #10B981;
    color: var(--color-success);
    font-weight: 700;
    font-weight: var(--font-weight-bold);
}

.accordion__badge .badge-separator {
    color: #9CA3AF;
    color: var(--brand-gray-400);
    margin: 0 0.25rem;
    margin: 0 var(--spacing-1);
}

.accordion__badge .badge-total {
    color: #4B5563;
    color: var(--brand-gray-600);
}

/* Active accordion badge colors */

.accordion__header--active .accordion__badge .badge-active {
    color: #FFFFFF;
    color: var(--brand-white);
}

.accordion__header--active .accordion__badge .badge-separator {
    color: #FFFFFF;
    color: var(--brand-white);
    opacity: 0.7;
}

.accordion__header--active .accordion__badge .badge-total {
    color: #FFFFFF;
    color: var(--brand-white);
    opacity: 0.9;
}

/* =================================================================
   PERMISSIONS LIST (in accordion)
   ================================================================= */

.permissions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    gap: var(--spacing-3);
    padding: 0.75rem 0;
    padding: var(--spacing-3) 0;
}

.permission-item {
    padding: 0.5rem;
    padding: var(--spacing-2);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-normal);
}

.permission-item:hover {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

.permission-item .toggle {
    width: 100%;
}

.permission-item .toggle__label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    gap: var(--spacing-1);
    margin-left: 0.75rem;
    margin-left: var(--spacing-3);
}

.permission-item .toggle__label strong {
    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);
    line-height: 1.25;
    line-height: var(--line-height-tight);
}

.permission-item .permission-code {
    display: block;
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #6B7280;
    color: var(--brand-gray-500);
    font-family: var(--font-mono);
    line-height: 1.25;
    line-height: var(--line-height-tight);
    margin-top: 0.25rem;
    margin-top: var(--spacing-1);
}

/* =================================================================
   PERMISSIONS VIEW LIST (read-only in view modal)
   ================================================================= */

.permissions-view-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    gap: var(--spacing-2);
    padding: 0.5rem 0;
    padding: var(--spacing-2) 0;
}

.permission-view-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    gap: var(--spacing-3);
    padding: 0.75rem;
    padding: var(--spacing-3);
    background: #FFFFFF;
    background: var(--brand-white);
    border: 1px solid #E5E7EB;
    border: 1px solid var(--brand-gray-200);
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.permission-view-item:hover {
    background: var(--brand-gray-25);
    border-color: #D1D5DB;
    border-color: var(--brand-gray-300);
}

.permission-view-item .icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.permission-view-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    gap: var(--spacing-1);
    flex: 1;
}

.permission-view-text strong {
    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);
    line-height: 1.25;
    line-height: var(--line-height-tight);
}

.permission-view-text .permission-code {
    display: block;
    font-size: 0.75rem;
    font-size: var(--font-size-xs);
    color: #6B7280;
    color: var(--brand-gray-500);
    font-family: var(--font-mono);
    line-height: 1.25;
    line-height: var(--line-height-tight);
}

/* =================================================================
   PERMISSIONS MATRIX TABLE
   ================================================================= */

.table--matrix {
    min-width: 100%;
    font-size: 0.875rem;
    font-size: var(--font-size-sm);
}

.table--matrix th {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
    color: #111827;
    color: var(--brand-gray-900);
    text-align: left;
    padding: 0.75rem;
    padding: var(--spacing-3);
    border-bottom: 2px solid #E5E7EB;
    border-bottom: 2px solid var(--brand-gray-200);
    white-space: nowrap;
}

.table--matrix th.sticky {
    position: sticky;
    left: 0;
    z-index: 10;
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.table--matrix td {
    padding: 0.75rem;
    padding: var(--spacing-3);
    border-bottom: 1px solid #F3F4F6;
    border-bottom: 1px solid var(--brand-gray-100);
    vertical-align: middle;
}

.table--matrix td.sticky {
    position: sticky;
    left: 0;
    z-index: 9;
    background-color: #FFFFFF;
    background-color: var(--brand-white);
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.table--matrix tbody tr:hover td {
    background-color: var(--brand-gray-25);
}

.table--matrix tbody tr:hover td.sticky {
    background-color: #F9FAFB;
    background-color: var(--brand-gray-50);
}

.table--matrix .bg-gray-100 {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
    font-weight: 600;
    font-weight: var(--font-weight-semibold);
}

.table--matrix .bg-gray-100.sticky {
    position: sticky;
    left: 0;
    z-index: 9;
}

/* Matrix checkboxes - standalone without label wrapper */

#permissionsMatrixTable input[type="checkbox"],
.table--matrix input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    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);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all var(--transition-fast);
    position: relative;
    margin: 0;
    flex-shrink: 0;
    display: inline-block;
}

#permissionsMatrixTable input[type="checkbox"]:checked,
.table--matrix input[type="checkbox"]:checked {
    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);
}

#permissionsMatrixTable input[type="checkbox"]:checked::after,
.table--matrix input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid #FFFFFF;
    border: solid var(--brand-white);
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

#permissionsMatrixTable input[type="checkbox"]:hover:not(:disabled),
.table--matrix input[type="checkbox"]:hover:not(:disabled) {
    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);
}

#permissionsMatrixTable input[type="checkbox"]:focus,
.table--matrix input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}

#permissionsMatrixTable input[type="checkbox"]:disabled,
.table--matrix input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
}

/* =================================================================
   MODAL SIZES
   ================================================================= */

.modal:not(.hidden) > .modal__container.modal__container--full {
    max-width: 95vw !important;
    max-height: 90vh;
    width: 100%;
    height: 90vh;
}

.modal__container--full .modal__body {
    max-height: calc(90vh - 160px);
    overflow-y: auto;
}

/* =================================================================
   BUTTON ICONS (Quick action buttons)
   ================================================================= */

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    padding: var(--spacing-2);
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    color: #4B5563;
    color: var(--brand-gray-600);
}

.btn-icon:hover {
    background-color: #F3F4F6;
    background-color: var(--brand-gray-100);
    color: #111827;
    color: var(--brand-gray-900);
}

.btn-icon--sm {
    padding: 0.25rem;
    padding: var(--spacing-1);
}

.btn-icon--danger {
    color: var(--brand-red-600);
}

.btn-icon--danger:hover {
    background-color: var(--brand-red-50);
    color: var(--brand-red-700);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .role-card__header {
        flex-direction: column;
        gap: 0.75rem;
        gap: var(--spacing-3);
    }

    .role-card__title-wrapper {
        width: 100%;
    }

    .role-card__actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }

    .role-card__stats {
        flex-direction: column;
        gap: 0.5rem;
        gap: var(--spacing-2);
    }

    .modal__container--full {
        max-width: 100vw;
        max-height: 100vh;
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .modal__container--full .modal__body {
        max-height: calc(100vh - 160px);
    }

    .table--matrix {
        font-size: 0.75rem;
        font-size: var(--font-size-xs);
    }

    .table--matrix th,
    .table--matrix td {
        padding: 0.5rem;
        padding: var(--spacing-2);
    }
}

/* =================================================================
   FORM UTILITIES
   ================================================================= */

.form-label--required::after {
    content: ' *';
    color: var(--brand-red-600);
}

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

/* =================================================================
   SPACE UTILITIES
   ================================================================= */

.space-y-4 > * + * {
    margin-top: 1rem;
    margin-top: var(--spacing-4);
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
    margin-top: var(--spacing-6);
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
    .role-card,
    .checkbox-label,
    .btn-icon {
        transition: none;
    }

    .spinner {
        animation: none;
    }
}

/* High contrast mode support */

@media (prefers-contrast: high) {
    .role-card {
        border-width: 2px;
    }

    .role-card--system {
        border-left-width: 6px;
    }

    .role-card--custom {
        border-left-width: 6px;
    }
}

/**
 * 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: rgba(245, 158, 11, 0.1);
    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: rgba(59, 130, 246, 0.1);
    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%;
}

/* ==================== RESPONSIVE ==================== */

/* Note: Toast notifications use canonical styles from design-system/patterns/_alerts.css */

/**
 * 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
 * - Loading state
 * - Responsive breakpoints
 *
 * Note: Toast notifications use canonical styles from design-system/patterns/_alerts.css
 */

/* ==================== 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: rgba(245, 158, 11, 0.1);
    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: rgba(59, 130, 246, 0.1);
    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);
}

/* ==================== 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;
    }

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

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

/**
 * Route Health Dashboard Styles
 * Admin page for checking Flask routes for 500 errors
 *
 * Uses design-system components:
 * - .table, .table--mobile-cards, .table__status (patterns/_tables.css)
 * - .card, .card--status (patterns/_cards.css)
 * - .progress, .progress--thick (patterns/_progress.css)
 * - .spinner-dots (components/_spinners.css)
 * - .badge (components/_badges.css)
 * - .icon-circle (components/_icon-circle.css)
 * - .modal (patterns/_modals.css)
 * - .alert (patterns/_alerts.css)
 *
 * Page-specific styles:
 * - Error row highlighting
 * - Code block styling for traceback
 * - Form field variants for inline filters
 */

/* ==========================================================================
   TABLE COLUMN WIDTHS
   ========================================================================== */

#routes-table .table__cell:nth-child(2),
#routes-table .table__header-cell:nth-child(2) {
  max-width: 200px;
}

#routes-table .table__cell:nth-child(2) code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   ERROR ROW STYLING
   ========================================================================== */

.route-health-error-row {
  background-color: rgba(237, 28, 36, 0.1);
  background-color: var(--color-error-bg);
}

.route-health-error-row:hover {
  background-color: rgba(237, 28, 36, 0.1);
  background-color: var(--color-error-bg);
}

/* ==========================================================================
   CODE BLOCK STYLES (for error details modal)
   ========================================================================== */

.code-block-wrapper {
  max-height: 300px;
  overflow: auto;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  background-color: #F3F4F6;
  background-color: var(--brand-gray-100);
  padding: 1rem;
  padding: var(--spacing-4);
}

.code-block {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-size: var(--font-size-xs);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: #1F2937;
  color: var(--brand-gray-800);
}

.code-block--error {
  color: #ED1C24;
  color: var(--color-error);
  max-height: 400px;
  overflow-y: auto;
}

/* ==========================================================================
   FORM FIELD VARIANTS FOR FILTERS
   ========================================================================== */

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

.form-field--inline .form-field__label {
  margin-bottom: 0;
  white-space: nowrap;
  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);
}

.form-field--search {
  position: relative;
}

.form-field--search .form-field__icon {
  position: absolute;
  left: 0.75rem;
  left: var(--spacing-3);
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #9CA3AF;
  color: var(--brand-gray-400);
  pointer-events: none;
}

.form-field--search .input {
  padding-left: 2.5rem;
  padding-left: var(--spacing-10);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

/* Mobile: 320px - 639px */

@media (max-width: 639px) {
  .code-block-wrapper {
    max-height: 200px;
    padding: 0.75rem;
    padding: var(--spacing-3);
  }

  .form-field--inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    gap: var(--spacing-1);
  }

  .form-field--inline .input {
    width: 100%;
  }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .route-health-error-row {
    transition: none;
  }
}

@media (prefers-contrast: high) {
  .route-health-error-row {
    border: 2px solid #ED1C24;
    border: 2px solid var(--color-error);
  }

  .code-block-wrapper {
    border: 1px solid #9CA3AF;
    border: 1px solid var(--brand-gray-400);
  }
}

/* ==========================================================================
   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 */