:root {
  /* Colours */
  --ax-brand-blue: #2B60E6; /* Primary gradient start. Main brand colour. */
  --ax-brand-violet: #682CDA; /* Primary gradient end. Small highlights. */
  --ax-price-blue: #2458CC; /* Prices, links, active tab text, selected borders, secondary button text. */
  --ax-success-green: #207858; /* Network, connected, success, positive chips. */
  --ax-page-grey: #F2F3F8; /* Page background. */
  --ax-surface: #FFFFFF; /* Cards, fields, header, footer. */
  --ax-text: #0B0F1A; /* Headings and body text. */
  --ax-text-muted: #4E5869; /* Secondary text, paragraphs. */
  --ax-text-faint: #646D7F; /* Small text, placeholders, inactive icons (4.9:1 on white). */
  --ax-border: #E6EBF1; /* Card borders, dividers, table lines. */
  --ax-border-field: #CDD3DE; /* Input borders, outline buttons, unchecked controls. */
  --ax-track: #E6EBF1; /* Tab track, progress track, disabled button fill. */
  --ax-error: #BE1E2D; /* Errors, low data, destructive buttons. */
  --ax-error-tint: #FDE9EA; /* Error note and chip background. */
  --ax-warning: #8F5300; /* Warnings, “not installed”. */
  --ax-warning-tint: #FFEFD2; /* Warning note and chip background. */
  --ax-success-tint: #D8F0ED; /* Success chip background. */
  --ax-info-tint: #EAF3FE; /* Blue chips, icon tiles, secondary button fill. */
  --ax-violet-tint: #F0EAFD; /* Violet chips (“sample”, “being prepared”). */
  --ax-violet-ink: #5522B8; /* Text on violet tint. */
  --ax-overlay: rgba(11,15,26,0.5); /* Modal and drawer backdrop. */

  /* Grey scale */
  --ax-grey-50: #F7F8FB;
  --ax-grey-100: #F2F3F8;
  --ax-grey-200: #E6EBF1;
  --ax-grey-300: #D3D8E2;
  --ax-grey-400: #A9B0BF;
  --ax-grey-500: #646D7F;
  --ax-grey-600: #4E5869;
  --ax-grey-700: #353C4C;
  --ax-grey-800: #1C2130;
  --ax-grey-900: #0B0F1A;

  /* Gradients */
  --ax-gradient-brand: linear-gradient(135deg, #2B60E6 0%, #682CDA 100%);

  /* Fonts */
  --ax-font-family-arabic: 'Readex Pro', sans-serif;
  --ax-font-family-latin: 'Lexend', sans-serif;
  --ax-font-family-base: 'Lexend', 'Readex Pro', sans-serif;
  --ax-font-family-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale: size / line height / weight */
  --ax-text-display-size: 54px; --ax-text-display-line: 1.3; --ax-text-display-weight: 700; /* Hero title, desktop */
  --ax-text-display-mobile-size: 32px; --ax-text-display-mobile-line: 1.3; --ax-text-display-mobile-weight: 700; /* Hero title, mobile */
  --ax-text-h1-size: 42px; --ax-text-h1-line: 1.3; --ax-text-h1-weight: 700; /* Page title, desktop */
  --ax-text-h1-mobile-size: 30px; --ax-text-h1-mobile-line: 1.3; --ax-text-h1-mobile-weight: 700; /* Page title, mobile */
  --ax-text-h2-size: 34px; --ax-text-h2-line: 1.4; --ax-text-h2-weight: 700; /* Section title, desktop */
  --ax-text-h2-mobile-size: 24px; --ax-text-h2-mobile-line: 1.4; --ax-text-h2-mobile-weight: 700; /* Section title, mobile */
  --ax-text-h3-size: 20px; --ax-text-h3-line: 1.5; --ax-text-h3-weight: 700; /* Card title, desktop */
  --ax-text-h3-mobile-size: 18px; --ax-text-h3-mobile-line: 1.5; --ax-text-h3-mobile-weight: 700; /* Card title, mobile */
  --ax-text-body-lg-size: 18px; --ax-text-body-lg-line: 1.75; --ax-text-body-lg-weight: 400; /* Lead paragraph */
  --ax-text-body-size: 16px; --ax-text-body-line: 1.75; --ax-text-body-weight: 400; /* Body, desktop */
  --ax-text-body-mobile-size: 15px; --ax-text-body-mobile-line: 1.75; --ax-text-body-mobile-weight: 400; /* Body, mobile */
  --ax-text-label-size: 14px; --ax-text-label-line: 1.5; --ax-text-label-weight: 600; /* Field label, button small */
  --ax-text-small-size: 14px; --ax-text-small-line: 1.6; --ax-text-small-weight: 400; /* Small text */
  --ax-text-caption-size: 13px; --ax-text-caption-line: 1.6; --ax-text-caption-weight: 400; /* Captions, chips */
  --ax-text-tab-label-size: 11px; --ax-text-tab-label-line: 1.4; --ax-text-tab-label-weight: 500; /* App tab bar label */
  --ax-text-price-total-size: 26px; --ax-text-price-total-line: 1.3; --ax-text-price-total-weight: 800; /* Order total */
  --ax-text-price-size: 22px; --ax-text-price-line: 1.3; --ax-text-price-weight: 700; /* Plan price */
  --ax-text-price-from-size: 20px; --ax-text-price-from-line: 1.4; --ax-text-price-from-weight: 700; /* Card “from” price */
  --ax-text-plan-size-size: 24px; --ax-text-plan-size-line: 1.3; --ax-text-plan-size-weight: 700; /* Plan data size */
  --ax-text-button-size: 16px; --ax-text-button-line: 1; --ax-text-button-weight: 600; /* Button */
  --ax-text-button-sm-size: 14px; --ax-text-button-sm-line: 1; --ax-text-button-sm-weight: 600; /* Small button */
  --ax-text-app-title-ios-size: 17px; --ax-text-app-title-ios-line: 1.6; --ax-text-app-title-ios-weight: 700; /* iOS app bar title */
  --ax-text-app-title-android-size: 20px; --ax-text-app-title-android-line: 1.6; --ax-text-app-title-android-weight: 700; /* Android app bar title */

  /* Spacing */
  --ax-space-0: 0px;
  --ax-space-1: 4px;
  --ax-space-2: 8px;
  --ax-space-3: 12px;
  --ax-space-4: 16px;
  --ax-space-5: 20px;
  --ax-space-6: 24px;
  --ax-space-7: 28px;
  --ax-space-8: 32px;
  --ax-space-10: 40px;
  --ax-space-12: 48px;
  --ax-space-14: 56px;
  --ax-space-16: 64px;
  --ax-space-18: 72px;

  /* Radii */
  --ax-radius-xs: 6px;
  --ax-radius-sm: 8px;
  --ax-radius-md: 12px;
  --ax-radius-field: 16px;
  --ax-radius-card-sm: 16px;
  --ax-radius-card: 24px;
  --ax-radius-hero-mobile: 28px;
  --ax-radius-hero: 36px;
  --ax-radius-pill: 999px;
  --ax-radius-app-icon: 22.5%;

  /* Shadows */
  --ax-shadow-card: 0 12px 32px -14px rgba(36,48,120,0.22), 0 2px 6px rgba(36,48,120,0.04);
  --ax-shadow-button: 0 10px 22px -10px rgba(90,60,220,0.65);
  --ax-shadow-hero: 0 30px 60px -30px rgba(70,50,200,0.6);
  --ax-shadow-tab-active: 0 2px 8px rgba(20,30,80,0.08);
  --ax-shadow-dropdown: 0 20px 40px -16px rgba(20,30,80,0.3);
  --ax-shadow-modal: 0 30px 80px -20px rgba(0,0,0,0.4);
  --ax-shadow-toast: 0 12px 30px -10px rgba(0,0,0,0.4);
  --ax-shadow-sticky-bar: 0 -10px 24px -16px rgba(20,30,80,0.25);
  --ax-shadow-focus-ring: 0 0 0 4px rgba(43,96,230,0.16);

  /* Motion */
  --ax-duration-fast: 120ms;
  --ax-duration-base: 200ms;
  --ax-duration-slow: 320ms;
  --ax-easing: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Breakpoints (use in media queries) */
/* mobile: max-width 767px · tablet: 768px–1023px · desktop: min-width 1024px · container: 1200px */

/* Dark mode (app) */
[data-theme="dark"] {
  --ax-page-grey: #0B0D18;
  --ax-surface: #161A2C;
  --ax-text: #EEF0F7;
  --ax-text-muted: #AEB4C8;
  --ax-text-faint: #959DB3;
  --ax-border: #262B42;
  --ax-border-field: #353B56;
  --ax-track: #20253A;
  --ax-price-blue: #8DAAFF;
  --ax-success-green: #5BD3A2;
  --ax-warning: #F2B54A;
  --ax-error: #FF8C92;
  --ax-info-tint: #1A2550;
  --ax-success-tint: #0E3328;
  --ax-warning-tint: #3A2A0A;
  --ax-error-tint: #3D1519;
  --ax-violet-tint: #271B4D;
  --ax-violet-ink: #BDA6FF;
  --ax-shadow-card: none;
}

/* Arabic is the default */
html[lang="ar"] { direction: rtl; font-family: var(--ax-font-family-base); }
html[lang="en"] { direction: ltr; font-family: var(--ax-font-family-base); }
