/* GENERATED from static/design-system/design-system.css by users/design_bundle.py -- do not edit.
   One request instead of ~22 nested @import files. */
/* ============================================================
   Yaz Design System v1.0
   ============================================================
   Entry Point — import this single file in your project.

   <link rel="stylesheet" href="design-system.css">

   Then activate a brand:
   <html data-brand="wateer" data-theme="dark">

   Or use class-based:
   <body class="theme-wateer">

   Brands: wateer | techzilla | kafoo | default
   Themes: dark (default) | light

   ============================================================ */

/* 1. Core Tokens (CSS custom properties) */
/* ============================================================
   Tokens Index — import all token files
   Yaz Design System v1.0
   ============================================================ */

/* ============================================================
   Colors — Design Tokens
   Yaz Design System v1.0
   ============================================================ */

:root {
  /* ── Neutral Scale ── */
  --neutral-0: #ffffff;
  --neutral-50: #f8f9fa;
  --neutral-100: #f1f3f5;
  --neutral-200: #e9ecef;
  --neutral-300: #dee2e6;
  --neutral-400: #ced4da;
  --neutral-500: #adb5bd;
  --neutral-600: #868e96;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;
  --neutral-950: #0d1117;
  --neutral-1000: #08090a;

  /* ── Semantic (dark default) ── */
  --color-bg-primary: var(--neutral-1000);
  --color-bg-secondary: var(--neutral-950);
  --color-bg-tertiary: var(--neutral-900);
  --color-bg-elevated: var(--neutral-900);
  --color-bg-glass: rgba(255, 255, 255, 0.05);
  --color-border-primary: var(--neutral-800);
  --color-border-secondary: rgba(255, 255, 255, 0.06);
  --color-border-focus: var(--brand-500);
  --color-text-primary: var(--neutral-0);
  --color-text-secondary: var(--neutral-400);
  --color-text-tertiary: var(--neutral-500);
  --color-text-inverse: var(--neutral-900);
  --color-text-link: var(--brand-500);

  /* ── Status ──
     Dark-mode values (this block) already clear WCAG AA as text on
     --color-bg-primary/--color-bg-secondary (dark): success #10b981 ≈7.4:1,
     error #ef4444 ≈5.6:1 on neutral-1000. Only the LIGHT override below needed
     a fix — see its comment. Kept identical to what mywateer-app's
     src/constants/theme.ts already shipped (Colors.dark), so consumers do not
     see two different "correct" dark reds/greens. */
  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.1);
  --color-error: #ef4444;
  --color-error-bg: rgba(239, 68, 68, 0.1);
  --color-info: #3b82f6;
  --color-info-bg: rgba(59, 130, 246, 0.1);
  --color-purple: #8b5cf6;
  --color-purple-bg: rgba(139, 92, 246, 0.1);

  /* ── Glassmorphism ── */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glass-blur: blur(20px);
  --glass-saturate: saturate(180%);
}

/* ── Light Mode Override ── */
[data-theme="light"],
.theme-light {
  --color-bg-primary: var(--neutral-50);
  --color-bg-secondary: var(--neutral-0);
  --color-bg-tertiary: var(--neutral-100);
  --color-bg-elevated: var(--neutral-0);
  --color-bg-glass: rgba(255, 255, 255, 0.7);
  --color-border-primary: var(--neutral-200);
  --color-border-secondary: var(--neutral-100);
  --color-text-primary: var(--neutral-900);
  --color-text-secondary: var(--neutral-600);
  --color-text-tertiary: var(--neutral-500);
  --color-text-inverse: var(--neutral-0);

  /* ── Status, light mode ── (proposed fix, fix/wateer-contrast-aa)
     The dark-mode --color-success/--color-error (above) pass AA as text on
     the dark backgrounds, but light mode inherited the SAME two values, and
     they fail AA as text on --color-bg-primary (neutral-50 #f8f9fa):
       --color-success #10b981 on #f8f9fa  →  2.54:1  (needs 4.5:1)
       --color-error   #ef4444 on #f8f9fa  →  3.76:1  (needs 4.5:1)
     mywateer-app hit exactly this and fixed it (src/constants/theme.ts,
     Colors.light.success/danger, audit A3 2026-09-20) with darker tones that
     clear AA on both its `background` and `surface`:
       #047857 on #f8f9fa  →  4.96:1   #c62828 on #f8f9fa  →  5.09:1
     Reused verbatim here rather than re-deriving a third pair — this is a
     token *value* override for light mode, not a new token name, so any
     existing `var(--color-success)`/`var(--color-error)` usage picks it up
     automatically. Dark mode is untouched (already correct, see above). */
  --color-success: #047857;
  --color-success-bg: rgba(4, 120, 87, 0.1);
  --color-error: #c62828;
  --color-error-bg: rgba(198, 40, 40, 0.1);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(0, 0, 0, 0.15);
}

/* ============================================================
   Typography — Design Tokens
   Yaz Design System v1.0
   ============================================================ */

:root {
  /* ── Font Families ── */
  --font-sans: 'Inter Variable', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;
  --font-arabic: 'Noto Naskh Arabic', 'Noto Sans Arabic', var(--font-sans);

  /* ── Type Scale (1.25 ratio) ── */
  --text-xs: 0.75rem;       /* 12px */
  --text-sm: 0.875rem;      /* 14px */
  --text-base: 1rem;        /* 16px */
  --text-lg: 1.125rem;      /* 18px */
  --text-xl: 1.25rem;       /* 20px */
  --text-2xl: 1.5rem;       /* 24px */
  --text-3xl: 1.875rem;     /* 30px */
  --text-4xl: 2.25rem;      /* 36px */
  --text-5xl: 3rem;         /* 48px */
  --text-6xl: 3.75rem;      /* 60px */

  /* ── Line Heights ── */
  --leading-xs: 1rem;       /* 16px */
  --leading-sm: 1.25rem;    /* 20px */
  --leading-base: 1.5rem;   /* 24px */
  --leading-lg: 1.75rem;    /* 28px */
  --leading-xl: 1.75rem;    /* 28px */
  --leading-2xl: 2rem;      /* 32px */
  --leading-3xl: 2.25rem;   /* 36px */
  --leading-4xl: 2.5rem;    /* 40px */
  --leading-5xl: 1;
  --leading-6xl: 1;

  /* ── Font Weights ── */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* ── Letter Spacing ── */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
}

/* ============================================================
   Spacing — Design Tokens
   Yaz Design System v1.0
   4px base unit
   ============================================================ */

:root {
  --space-0: 0;
  --space-px: 1px;
  --space-0_5: 0.125rem;   /* 2px */
  --space-1: 0.25rem;       /* 4px */
  --space-1_5: 0.375rem;    /* 6px */
  --space-2: 0.5rem;        /* 8px */
  --space-2_5: 0.625rem;    /* 10px */
  --space-3: 0.75rem;       /* 12px */
  --space-3_5: 0.875rem;    /* 14px */
  --space-4: 1rem;          /* 16px */
  --space-5: 1.25rem;       /* 20px */
  --space-6: 1.5rem;        /* 24px */
  --space-7: 1.75rem;       /* 28px */
  --space-8: 2rem;          /* 32px */
  --space-9: 2.25rem;       /* 36px */
  --space-10: 2.5rem;       /* 40px */
  --space-11: 2.75rem;      /* 44px */
  --space-12: 3rem;         /* 48px */
  --space-14: 3.5rem;       /* 56px */
  --space-16: 4rem;         /* 64px */
  --space-20: 5rem;         /* 80px */
  --space-24: 6rem;         /* 96px */
  --space-28: 7rem;         /* 112px */
  --space-32: 8rem;         /* 128px */

  /* ── Semantic Spacing ── */
  --space-section: var(--space-16);
  --space-container: var(--space-6);
  --space-card: var(--space-6);
  --space-input-y: var(--space-3);
  --space-input-x: var(--space-4);
  --space-button-y: var(--space-2_5);
  --space-button-x: var(--space-5);
  --space-gap: var(--space-4);
}

/* ============================================================
   Shadows — Design Tokens
   Yaz Design System v1.0
   ============================================================ */

:root {
  --shadow-none: none;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);

  /* ── Colored shadows ── */
  --shadow-brand: 0 4px 14px rgba(7, 90, 161, 0.25);
  --shadow-success: 0 4px 14px rgba(16, 185, 129, 0.2);
  --shadow-error: 0 4px 14px rgba(239, 68, 68, 0.2);
}

/* ── Light Mode Shadow Adjustments ── */
[data-theme="light"],
.theme-light {
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   Radii, Borders, Transitions, Z-Index, Breakpoints, Sizes
   Yaz Design System v1.0
   ============================================================ */

:root {
  /* ── Border Radius ── */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ── Borders ── */
  --border-width-none: 0;
  --border-width-thin: 1px;
  --border-width-md: 2px;
  --border-width-thick: 4px;

  /* ── Transitions ── */
  --duration-instant: 0ms;
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 350ms;
  --duration-slower: 500ms;
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Z-Index Scale ── */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;
  --z-max: 9999;

  /* ── Breakpoints (for reference — use in media queries) ── */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;

  /* ── Container Widths ── */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;

  /* ── Sizes ── */
  --size-avatar-sm: 24px;
  --size-avatar-md: 36px;
  --size-avatar-lg: 48px;
  --size-icon-sm: 16px;
  --size-icon-md: 20px;
  --size-icon-lg: 24px;
  --size-input-sm: 32px;
  --size-input-md: 40px;
  --size-input-lg: 48px;
  --size-button-sm: 32px;
  --size-button-md: 40px;
  --size-button-lg: 48px;
}



/* 2. Brand Themes */
/* ============================================================
   Themes Index (vendored subset — see VENDORED_SHA256.json)
   Only the wateer brand is used by my.wateer.com.sa; the other
   brand stylesheets (techzilla/kafoo/tapme/default) are not
   vendored — do not add them here without also vendoring them.
   ============================================================ */

/* ============================================================
   Wateer Theme — أزرق مائي / كحلي
   Brand: #075AA1 (primary blue) / #12113B (deep navy)
   Usage: data-brand="wateer"
   ============================================================ */

[data-brand="wateer"],
.theme-wateer {
  /* ── Brand Scale ── */
  --brand-50: #e6f0fa;
  --brand-100: #b3d4f2;
  --brand-200: #80b8ea;
  --brand-300: #4d9ce2;
  --brand-400: #1a80da;
  --brand-500: #075AA1;
  --brand-600: #064a83;
  --brand-700: #053a66;
  --brand-800: #042b4d;
  --brand-900: #12113B;
  --brand-950: #0a0920;

  /* ── Semantic Mappings ── */
  --color-accent: var(--brand-500);
  --color-accent-hover: var(--brand-600);
  --color-accent-active: var(--brand-700);
  --color-accent-text: var(--neutral-0);
  --color-brand-surface: var(--brand-950);
  --color-brand-border: rgba(7, 90, 161, 0.2);

  /* ── Brand Shadows ── */
  --shadow-brand: 0 4px 14px rgba(7, 90, 161, 0.25);
}

/* ── Wateer Light Mode ── */
[data-brand="wateer"][data-theme="light"],
.theme-wateer.theme-light {
  --brand-900: #12113B;
  --color-accent-text: var(--neutral-0);
}

/* ── Wateer Dark Mode ── (proposed fix, fix/wateer-contrast-aa)
   tokens/index.css's --color-text-link is var(--brand-500) with no
   brand-specific override, so a link/icon/selected-tab rendered in
   --brand-500 (#075AA1) on this brand's dark background is TEXT on a
   near-black ground (--color-bg-primary dark = --neutral-1000 #08090a):
     #075AA1 on #08090a  →  2.98:1  (needs 4.5:1, fails)
   Same two-role split mywateer-app already shipped for this exact reason
   (src/constants/theme.ts: `accent` for text/icons vs `accentStrong` for a
   filled surface with white on top) — `--color-accent` here keeps #075AA1
   for a FILLED surface (a button/badge background; white --color-accent-text
   on it is 7.05:1, fine in both themes), and a new `--color-accent-on-dark`
   is what dark-mode TEXT/link/icon usage should read instead:
     #3b9eff on #08090a  →  8.4:1   (mywateer-app's own dark `accent`, reused
                                     rather than deriving a third blue) */
[data-brand="wateer"][data-theme="dark"],
.theme-wateer.theme-dark {
  --color-accent-on-dark: #3b9eff;
  --color-text-link: var(--color-accent-on-dark);
}



/* 3. Base Reset & Root Styles */
/* ============================================================
   CSS Reset — Modern, minimal
   Based on modern-normalize + custom additions
   Yaz Design System v1.0
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  font-weight: var(--font-semibold);
  line-height: 1.3;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p {
  margin-bottom: var(--space-4);
}

/* ── Links ── */
a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

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

/* ── Images ── */
img, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Form elements ── */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Lists ── */
ul, ol {
  list-style: none;
}

/* ── Tables ── */
table {
  border-collapse: collapse;
  width: 100%;
}

/* ── HR ── */
hr {
  border: none;
  border-top: var(--border-width-thin) solid var(--color-border-primary);
  margin: var(--space-6) 0;
}

/* ── Code ── */
code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  overflow-x: auto;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-bg-tertiary);
  border: var(--border-width-thin) solid var(--color-border-primary);
}

code {
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  background: var(--color-bg-tertiary);
  font-size: 0.875em;
}

pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

/* ── Focus visible ── */
:focus-visible {
  outline: var(--border-width-md) solid var(--color-border-focus);
  outline-offset: 2px;
}

/* ── Selection ── */
::selection {
  background: var(--color-accent);
  color: var(--color-accent-text);
}

/* ── Scrollbar (dark theme) ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--neutral-700);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-600);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── RTL Support ── */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] input,
[dir="rtl"] textarea {
  text-align: right;
}

/* ── Print ── */
@media print {
  body {
    background: white;
    color: black;
  }
}

/* ============================================================
   Root — body defaults + utility classes base
   Yaz Design System v1.0
   ============================================================ */

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Arabic body ── */
[lang="ar"] body,
[dir="rtl"] body {
  font-family: var(--font-arabic);
}

/* ── Glass surface utility ── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
  border: var(--border-width-thin) solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
}

.glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

/* ── Visually hidden (screen reader only) ── */
.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;
}


/* 4. Components */
/* ============================================================
   Components Index
   Yaz Design System v1.0
   ============================================================ */

/* ============================================================
   Button — Component
   Yaz Design System v1.0
   Variants: primary, secondary, ghost, danger
   Sizes: sm, md, lg
   ============================================================ */

/* ── Base Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--size-button-md);
  padding: var(--space-button-y) var(--space-button-x);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: 1;
  border-radius: var(--radius-lg);
  border: var(--border-width-thin) solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition:
    background var(--duration-fast) var(--ease-default),
    color var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default),
    transform var(--duration-fast) var(--ease-default);
}

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

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Variants ── */

/* Primary */
.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-text);
  border-color: var(--color-accent);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-brand);
}

.btn-primary:active:not(:disabled) {
  background: var(--color-accent-active);
}

/* Secondary */
.btn-secondary {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  border-color: var(--color-border-primary);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-focus);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

/* Danger */
.btn-danger {
  background: var(--color-error);
  color: var(--neutral-0);
  border-color: var(--color-error);
}

.btn-danger:hover:not(:disabled) {
  background: #dc2626;
  border-color: #dc2626;
  box-shadow: var(--shadow-error);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover:not(:disabled) {
  background: var(--color-accent);
  color: var(--color-accent-text);
}

/* ── Sizes ── */

.btn-sm {
  height: var(--size-button-sm);
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
  border-radius: var(--radius-md);
}

.btn-lg {
  height: var(--size-button-lg);
  padding: 0 var(--space-8);
  font-size: var(--text-base);
}

/* ── Icon Button ── */
.btn-icon {
  width: var(--size-button-md);
  padding: 0;
}

.btn-icon.btn-sm {
  width: var(--size-button-sm);
}

.btn-icon.btn-lg {
  width: var(--size-button-lg);
}

/* ── Full Width ── */
.btn-block {
  width: 100%;
}

/* ── Loading State ── */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

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

/* ============================================================
   Input — Component
   Yaz Design System v1.0
   Types: text, textarea, select
   Sizes: sm, md, lg
   ============================================================ */

/* ── Base Input ── */
.input {
  display: block;
  width: 100%;
  height: var(--size-input-md);
  padding: var(--space-input-y) var(--space-input-x);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
  border: var(--border-width-thin) solid var(--color-border-primary);
  border-radius: var(--radius-md);
  transition:
    border-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default),
    background var(--duration-fast) var(--ease-default);
  outline: none;
}

.input::placeholder {
  color: var(--color-text-tertiary);
}

.input:hover {
  border-color: var(--neutral-600);
}

.input:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(7, 90, 161, 0.15);
  background: var(--color-bg-secondary);
}

.input:disabled,
.input[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-bg-secondary);
}

/* ── Textarea ── */
.textarea {
  min-height: 80px;
  height: auto;
  resize: vertical;
  line-height: var(--leading-base);
}

/* ── Select ── */
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23868e96' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-inline-end: var(--space-8);
  cursor: pointer;
}

[dir="rtl"] .select {
  background-position: left var(--space-3) center;
}

/* ── Sizes ── */
.input-sm {
  height: var(--size-input-sm);
  padding: 0 var(--space-2_5);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.input-lg {
  height: var(--size-input-lg);
  padding: 0 var(--space-5);
  font-size: var(--text-base);
}

/* ── States ── */

/* Error */
.input-error {
  border-color: var(--color-error);
}

.input-error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Success */
.input-success {
  border-color: var(--color-success);
}

.input-success:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Readonly */
.input-readonly {
  background: var(--color-bg-secondary);
  cursor: default;
}

/* ── Input Group ── */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .input {
  border-radius: 0;
}

.input-group .input:first-child {
  border-start-start-radius: var(--radius-md);
  border-end-start-radius: var(--radius-md);
}

.input-group .input:last-child {
  border-start-end-radius: var(--radius-md);
  border-end-end-radius: var(--radius-md);
}

.input-group .btn {
  border-radius: 0;
}

.input-group .btn:first-child {
  border-start-start-radius: var(--radius-md);
  border-end-start-radius: var(--radius-md);
}

.input-group .btn:last-child {
  border-start-end-radius: var(--radius-md);
  border-end-end-radius: var(--radius-md);
}

/* ── Form Label ── */
.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
}

/* ── Form Help / Error Text ── */
.form-help {
  margin-top: var(--space-1_5);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.form-error {
  margin-top: var(--space-1_5);
  font-size: var(--text-xs);
  color: var(--color-error);
}

/* ── Checkbox / Radio ── */
.checkbox,
.radio {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  cursor: pointer;
}

.checkbox input[type="checkbox"],
.radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

/* ── Toggle Switch ── */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.toggle input {
  display: none;
}

.toggle-track {
  width: 40px;
  height: 22px;
  background: var(--color-bg-tertiary);
  border: var(--border-width-thin) solid var(--color-border-primary);
  border-radius: var(--radius-full);
  transition: background var(--duration-fast);
  position: relative;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--neutral-0);
  border-radius: 50%;
  transition: transform var(--duration-fast) var(--ease-default);
  box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-track {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.toggle input:checked + .toggle-track::after {
  transform: translateX(18px);
}

/* ============================================================
   Card — Component
   Yaz Design System v1.0
   Variants: default, glass, interactive
   ============================================================ */

/* ── Base Card ── */
.card {
  background: var(--color-bg-secondary);
  border: var(--border-width-thin) solid var(--color-border-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* ── Card Body ── */
.card-body {
  padding: var(--space-card);
}

/* ── Card Header ── */
.card-header {
  padding: var(--space-5) var(--space-card);
  border-bottom: var(--border-width-thin) solid var(--color-border-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.card-header h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

/* ── Card Footer ── */
.card-footer {
  padding: var(--space-4) var(--space-card);
  border-top: var(--border-width-thin) solid var(--color-border-primary);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ── Card Image ── */
.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ── Glass Card ── */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
  border: var(--border-width-thin) solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
}

.card-glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

/* ── Interactive Card (clickable) ── */
.card-interactive {
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default),
    transform var(--duration-fast) var(--ease-default);
}

.card-interactive:hover {
  border-color: var(--color-border-focus);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

/* ── Card variants ── */
.card-compact .card-body {
  padding: var(--space-4);
}

.card-bordered {
  border-width: var(--border-width-md);
}

/* ── Card Grid ── */
.card-grid {
  display: grid;
  gap: var(--space-6);
}

.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ── Stat Card ── */
.stat-card {
  text-align: center;
  padding: var(--space-6);
}

.stat-card .stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  line-height: 1;
}

.stat-card .stat-label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.stat-card .stat-change {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}

.stat-card .stat-change.positive { color: var(--color-success); }
.stat-card .stat-change.negative { color: var(--color-error); }

/* ============================================================
   Modal — Component
   Yaz Design System v1.0
   ============================================================ */

/* ── Backdrop ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: backdrop-in var(--duration-slow) var(--ease-out);
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Modal Container ── */
.modal {
  position: relative;
  z-index: var(--z-modal);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  background: var(--color-bg-elevated);
  border: var(--border-width-thin) solid var(--color-border-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  display: flex;
  flex-direction: column;
  animation: modal-in var(--duration-slow) var(--ease-bounce);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── Modal Header ── */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: var(--border-width-thin) solid var(--color-border-primary);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-tertiary);
  transition: all var(--duration-fast);
}

.modal-close:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

/* ── Modal Body ── */
.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
}

/* ── Modal Footer ── */
.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: var(--border-width-thin) solid var(--color-border-primary);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* ── Modal Sizes ── */
.modal-sm { max-width: 360px; }
.modal-lg { max-width: 720px; }
.modal-xl { max-width: 960px; }
.modal-full { max-width: calc(100vw - var(--space-8)); }

/* ── Drawer (slide from right) ── */
.modal-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  max-height: 100vh;
  border-radius: 0;
  border-left: var(--border-width-thin) solid var(--color-border-primary);
  animation: drawer-in var(--duration-slow) var(--ease-out);
}

[dir="rtl"] .modal-drawer {
  right: auto;
  left: 0;
  border-left: none;
  border-right: var(--border-width-thin) solid var(--color-border-primary);
}

@keyframes drawer-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

[dir="rtl"] .modal-drawer {
  animation-name: drawer-in-rtl;
}

@keyframes drawer-in-rtl {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* ============================================================
   Table — Component
   Yaz Design System v1.0
   ============================================================ */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

/* ── Header ── */
.table thead {
  border-bottom: var(--border-width-md) solid var(--color-border-primary);
}

.table th {
  padding: var(--space-3) var(--space-4);
  text-align: start;
  font-weight: var(--font-semibold);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  white-space: nowrap;
  user-select: none;
}

/* ── Body ── */
.table td {
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-primary);
  border-bottom: var(--border-width-thin) solid var(--color-border-primary);
  vertical-align: middle;
}

/* ── Row Hover ── */
.table-hover tbody tr:hover {
  background: var(--color-bg-tertiary);
}

/* ── Striped ── */
.table-striped tbody tr:nth-child(even) {
  background: var(--color-bg-tertiary);
}

.table-striped tbody tr:nth-child(even):hover {
  background: var(--color-bg-secondary);
}

/* ── Compact ── */
.table-compact th,
.table-compact td {
  padding: var(--space-2) var(--space-3);
}

/* ── Bordered ── */
.table-bordered {
  border: var(--border-width-thin) solid var(--color-border-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table-bordered th,
.table-bordered td {
  border: var(--border-width-thin) solid var(--color-border-primary);
}

/* ── Table Container (scroll wrapper) ── */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Sortable header ── */
.table th.sortable {
  cursor: pointer;
  user-select: none;
}

.table th.sortable:hover {
  color: var(--color-text-primary);
}

.table th.sortable::after {
  content: ' ↕';
  opacity: 0.3;
}

.table th.sortable.sorted-asc::after {
  content: ' ↑';
  opacity: 1;
}

.table th.sortable.sorted-desc::after {
  content: ' ↓';
  opacity: 1;
}

/* ── Empty State ── */
.table-empty td {
  text-align: center;
  padding: var(--space-12);
  color: var(--color-text-tertiary);
}

/* ============================================================
   Badge — Component
   Yaz Design System v1.0
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0 var(--space-2);
  height: 22px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  white-space: nowrap;
  line-height: 1;
}

/* ── Variants ── */
.badge-default {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  border: var(--border-width-thin) solid var(--color-border-primary);
}

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

.badge-success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge-error {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.badge-info {
  background: var(--color-info-bg);
  color: var(--color-info);
}

.badge-purple {
  background: var(--color-purple-bg);
  color: var(--color-purple);
}

/* ── Outline variants ── */
.badge-outline {
  background: transparent;
  border: var(--border-width-thin) solid currentColor;
}

/* ── Dot indicator ── */
.badge-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
}

/* ── Pill (larger badge) ── */
.badge-pill {
  height: 28px;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
}

/* ============================================================
   Alert — Component
   Yaz Design System v1.0
   ============================================================ */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: var(--border-width-thin) solid transparent;
  font-size: var(--text-sm);
}

.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.alert-body {
  flex: 1;
}

.alert-title {
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.alert-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: inherit;
  opacity: 0.5;
  transition: opacity var(--duration-fast);
  margin: -4px -4px 0 0;
}

.alert-close:hover {
  opacity: 1;
}

/* ── Variants ── */
.alert-info {
  background: var(--color-info-bg);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.2);
}

.alert-success {
  background: var(--color-success-bg);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.2);
}

.alert-warning {
  background: var(--color-warning-bg);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.2);
}

.alert-error {
  background: var(--color-error-bg);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.2);
}

/* ============================================================
   Navigation — Components
   Yaz Design System v1.0
   ============================================================ */

/* ── Top Navigation Bar ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 var(--space-6);
  background: var(--color-bg-secondary);
  border-bottom: var(--border-width-thin) solid var(--color-border-primary);
  position: sticky;
  top: 0;
  z-index: var(--z-fixed);
}

.navbar-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
  border-bottom: var(--border-width-thin) solid var(--glass-border);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  text-decoration: none;
}

.navbar-brand:hover {
  text-decoration: none;
  color: var(--color-text-primary);
}

.navbar-brand img {
  height: 32px;
  width: auto;
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
  text-decoration: none;
}

.nav-link.active {
  color: var(--color-accent);
  background: rgba(7, 90, 161, 0.1);
}

/* ── Sidebar ── */
.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  background: var(--color-bg-secondary);
  border-inline-end: var(--border-width-thin) solid var(--color-border-primary);
  display: flex;
  flex-direction: column;
  z-index: var(--z-fixed);
  overflow-y: auto;
}

.sidebar-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: var(--border-width-thin) solid var(--color-border-primary);
  flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2_5) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  text-decoration: none;
}

.sidebar-link:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
  text-decoration: none;
}

.sidebar-link.active {
  color: var(--color-accent);
  background: rgba(7, 90, 161, 0.1);
}

.sidebar-link .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-section {
  margin-top: var(--space-4);
  padding: 0 var(--space-3);
}

.sidebar-section-title {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
}

.sidebar-footer {
  padding: var(--space-4) var(--space-6);
  border-top: var(--border-width-thin) solid var(--color-border-primary);
  flex-shrink: 0;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

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

.breadcrumb-separator {
  color: var(--color-text-tertiary);
  user-select: none;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  border-bottom: var(--border-width-thin) solid var(--color-border-primary);
  gap: 0;
}

.tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  border-bottom: var(--border-width-md) solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast);
  margin-bottom: -1px;
  white-space: nowrap;
}

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

.tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ============================================================
   Dropdown, Tooltip, Avatar, Skeleton, Progress
   Yaz Design System v1.0
   ============================================================ */

/* ── Dropdown ── */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  inset-inline-end: 0;
  min-width: 200px;
  background: var(--color-bg-elevated);
  border: var(--border-width-thin) solid var(--color-border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  padding: var(--space-1_5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--duration-fast) var(--ease-out);
}

.dropdown.open .dropdown-menu,
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast);
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--color-bg-tertiary);
  text-decoration: none;
}

.dropdown-item.danger {
  color: var(--color-error);
}

.dropdown-divider {
  height: 1px;
  background: var(--color-border-primary);
  margin: var(--space-1_5) 0;
}

/* ── Tooltip ── */
.tooltip {
  position: relative;
  display: inline-flex;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1_5) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--neutral-0);
  background: var(--neutral-800);
  border-radius: var(--radius-md);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-fast);
  z-index: var(--z-tooltip);
}

.tooltip:hover::after {
  opacity: 1;
}

/* ── Avatar ── */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--size-avatar-md);
  height: var(--size-avatar-md);
  border-radius: 50%;
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm { width: var(--size-avatar-sm); height: var(--size-avatar-sm); font-size: var(--text-xs); }
.avatar-lg { width: var(--size-avatar-lg); height: var(--size-avatar-lg); font-size: var(--text-base); }

.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  border: 2px solid var(--color-bg-secondary);
  margin-inline-start: -8px;
}

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

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-tertiary) 25%,
    var(--color-bg-secondary) 50%,
    var(--color-bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

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

.skeleton-text {
  height: 14px;
  margin-bottom: var(--space-2);
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-heading {
  height: 20px;
  width: 40%;
  margin-bottom: var(--space-4);
}

.skeleton-avatar {
  width: var(--size-avatar-md);
  height: var(--size-avatar-md);
  border-radius: 50%;
}

.skeleton-card {
  height: 160px;
  border-radius: var(--radius-xl);
}

.skeleton-button {
  height: var(--size-button-md);
  width: 120px;
  border-radius: var(--radius-lg);
}

/* ── Progress Bar ── */
.progress {
  width: 100%;
  height: 8px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-out);
}

.progress-sm { height: 4px; }
.progress-lg { height: 12px; }

.progress-success .progress-bar { background: var(--color-success); }
.progress-warning .progress-bar { background: var(--color-warning); }
.progress-error .progress-bar { background: var(--color-error); }

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border-primary);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-sm { width: 14px; height: 14px; border-width: 1.5px; }
.spinner-lg { width: 32px; height: 32px; border-width: 3px; }

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

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border-primary);
}



/* 5. Utilities */
/* ============================================================
   Utility Classes
   Yaz Design System v1.0
   ============================================================ */

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

/* ── Flex ── */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1; }

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

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

/* ── Gap ── */
.gap-0 { gap: var(--space-0); }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ── Grid ── */
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Spacing (margin/padding) ── */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-auto { margin-top: auto; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mx-auto { margin-inline: auto; }

.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.px-3 { padding-inline: var(--space-3); }
.px-4 { padding-inline: var(--space-4); }
.px-6 { padding-inline: var(--space-6); }
.py-2 { padding-block: var(--space-2); }
.py-4 { padding-block: var(--space-4); }
.py-6 { padding-block: var(--space-6); }

/* ── Sizing ── */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* ── Typography ── */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

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

.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }

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

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }

/* ── Colors ── */
.bg-primary { background: var(--color-bg-primary); }
.bg-secondary { background: var(--color-bg-secondary); }
.bg-tertiary { background: var(--color-bg-tertiary); }
.bg-accent { background: var(--color-accent); color: var(--color-accent-text); }

/* ── Borders ── */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.border { border: var(--border-width-thin) solid var(--color-border-primary); }

/* ── Shadows ── */
.shadow-none { box-shadow: var(--shadow-none); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ── Overflow ── */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* ── Position ── */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }

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

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

/* ── Cursor ── */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-default { cursor: default; }

/* ── User Select ── */
.select-none { user-select: none; }
.select-all { user-select: all; }
.select-text { user-select: text; }

/* ── Transitions ── */
.transition {
  transition: all var(--duration-fast) var(--ease-default);
}

/* ── Responsive Container ── */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-container);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }

/* ── Responsive Visibility ── */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

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

