/* ============================================================================
   SERA Licensing Portal — Shared Design System
   Used across all 14 PoC pages.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

/* ============================================================================
   1. DESIGN TOKENS
   ============================================================================ */
:root {
  /* Text */
  --text-default: #161616;
  --text-display: #1f2a37;
  --text-primary-paragraph: #384250;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --text-oncolor-primary: #ffffff;
  --text-disabled: #9ca3af;
  --text-success: #067647;
  --text-warning: #b54708;
  --text-error: #b42318;
  --text-info: #175cd3;

  /* Links */
  --link-primary: #1b8354;
  --link-icon-primary-visited: #14573a;

  /* Backgrounds */
  --bg-neutral-25: #fcfcfd;
  --bg-neutral-50: #f9fafb;
  --bg-neutral-100: #f3f4f6;
  --bg-neutral-200: #e5e7eb;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-sa-flag: #074d31;
  --bg-primary-400: #54c08a;
  --bg-success-25: #f6fef9;
  --bg-success-light: #ecfdf3;
  --bg-warning-light: #fffaeb;
  --bg-error-light: #fef3f2;
  --bg-info-light: #eff8ff;

  /* Buttons */
  --btn-bg-primary: #1b8354;
  --btn-bg-primary-hover: #14573a;
  --btn-bg-dark: #0d121c;
  --btn-bg-dark-hover: #1f2a37;
  --btn-bg-disabled: #d1d5db;

  /* Borders */
  --border-neutral-primary: #d2d6db;
  --border-neutral-light: #e5e7eb;
  --border-oncolor-30: rgba(255, 255, 255, 0.3);
  --border-success-light: #abefc6;
  --border-warning-light: #fedf89;
  --border-error-light: #fecdca;
  --border-info-light: #b2ddff;

  /* Icons */
  --icon-default: #161616;
  --icon-neutral: #384250;
  --icon-oncolor: #ffffff;
  --icon-success: #067647;
  --icon-warning: #b54708;
  --icon-error: #b42318;
  --icon-info: #175cd3;
  --icon-bg-brand-light: #f3fcf6;

  /* Status / semantic */
  --color-success: #067647;
  --color-warning: #f57c00;
  --color-info: #1976d2;
  --color-error: #d92d20;

  /* Radii */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(16,24,40,0.06);
  --shadow-md: 0 2px 4px 0 rgba(16,24,40,0.06), 0 4px 8px 0 rgba(16,24,40,0.10);
  --shadow-lg: 0 4px 6px -2px rgba(16,24,40,0.03), 0 12px 16px -4px rgba(16,24,40,0.08);

  /* Typography */
  --font-sans: 'IBM Plex Sans Arabic', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ============================================================================
   2. RESET / BASE
   ============================================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text-default);
  background: #e5e7eb;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

/* Page container — 1440px fixed canvas */
.page {
  width: 1440px;
  margin: 0 auto;
  background: var(--bg-neutral-100);
  position: relative;
  overflow: hidden;
}

.page-content {
  width: 1440px;
  margin: 0 auto;
  background: var(--bg-white);
}
.page-content--neutral { background: var(--bg-neutral-100); }
.page-content--padded { padding: 0 80px; }

/* ============================================================================
   3. DIGITAL STAMP (top govt strip)
   ============================================================================ */
.digital-stamp {
  background: var(--bg-neutral-100);
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-default);
}
.digital-stamp .flag {
  width: 20px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 1px;
  overflow: hidden;
  background: #006923;
  display: flex;
  align-items: center;
  justify-content: center;
}
.digital-stamp .flag svg { width: 14px; height: 8px; }
.digital-stamp .stamp-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--link-primary);
  font-size: 14px;
}

/* ============================================================================
   4. SECOND NAV (date / weather / icons strip)
   ============================================================================ */
.second-nav {
  background: var(--bg-neutral-100);
  border-top: 1px solid var(--border-neutral-primary);
  border-bottom: 1px solid var(--border-neutral-primary);
  height: 40px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.second-nav .content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.second-nav .item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary-paragraph);
  font-size: 16px;
  line-height: 24px;
}
.second-nav .item svg { width: 18px; height: 18px; stroke: var(--icon-neutral); }
.second-nav .actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.second-nav .icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--icon-default);
}
.second-nav .icon-btn svg { width: 20px; height: 20px; }

/* ============================================================================
   5. MAIN NAV
   ============================================================================ */
.main-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-neutral-primary);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.main-nav .left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
}
.logo .logo-mark {
  width: 40px;
  height: 48px;
  display: inline-block;
}
.logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo .logo-wordmark {
  font-weight: 700;
  font-size: 26px;
  color: #1f2a37;
  letter-spacing: 1px;
}
.logo .logo-arabic {
  font-size: 10px;
  color: #1f2a37;
  margin-top: 2px;
  letter-spacing: 0;
  unicode-bidi: plaintext;
  direction: rtl;
}

/* PNG logo replacement (header / footer / admin variants) */
.logo-img {
  display: inline-block;
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.logo-img.is-header { height: 48px; }
.footer .logo-img,
.logo-img.is-footer { height: 44px; max-width: 200px; }

.menu-items { display: flex; align-items: center; }
.menu-item {
  position: relative;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  gap: 4px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text-default);
  border-radius: var(--radius-sm);
}
.menu-item.active {
  background: var(--btn-bg-primary);
  color: var(--text-oncolor-primary);
  font-weight: 600;
}
.menu-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 6px;
  background: var(--bg-primary-400);
  border-radius: var(--radius-full);
}

.actions-right {
  display: flex;
  align-items: center;
}
.action-item {
  height: 72px;
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text-default);
  border-radius: var(--radius-sm);
}
.action-item svg { width: 22px; height: 22px; }
.action-item.arabic span {
  unicode-bidi: plaintext;
  direction: rtl;
}

/* ============================================================================
   6. HERO (home)
   ============================================================================ */
.hero {
  background: var(--bg-neutral-100);
  padding: 64px 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: center;
}
.hero .hero-illustration {
  position: absolute;
  top: 0;
  right: 0;
  width: 828px;
  height: 467px;
  opacity: 0.12;
  pointer-events: none;
}
.hero .inner {
  max-width: 1280px;
  width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 36px;
  line-height: 44px;
  font-weight: 500;
  color: var(--text-default);
  letter-spacing: -0.72px;
  margin: 0;
}
.hero p {
  font-size: 20px;
  line-height: 30px;
  color: var(--text-default);
  font-weight: 400;
  margin: 0;
  max-width: 1000px;
}
.hero .text-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero .btns {
  display: flex;
  gap: 32px;
}

/* Sub-page hero — used by tracking, licensee, application pages */
.sub-hero {
  background: var(--bg-white);
  padding: 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--border-neutral-light);
}
.sub-hero .sub-hero-title {
  font-size: 36px;
  line-height: 44px;
  font-weight: 500;
  color: var(--text-default);
  letter-spacing: -0.72px;
}
.sub-hero .sub-hero-subtitle {
  font-size: 18px;
  line-height: 28px;
  color: var(--text-primary-paragraph);
  font-weight: 400;
  max-width: 900px;
}

/* ============================================================================
   7. BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 0 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--btn-bg-primary);
  color: var(--text-oncolor-primary);
}
.btn-primary svg { stroke: #fff; }
.btn-primary:hover { background: var(--btn-bg-primary-hover); }

.btn-secondary,
.btn-outline {
  background: #fff;
  border: 1px solid var(--border-neutral-primary);
  color: var(--text-default);
}
.btn-secondary svg,
.btn-outline svg { stroke: var(--icon-default); }
.btn-secondary:hover,
.btn-outline:hover { background: var(--bg-neutral-50); }

.btn-dark {
  background: var(--btn-bg-dark);
  color: var(--text-oncolor-primary);
}
.btn-dark svg { stroke: #fff; }
.btn-dark:hover { background: var(--btn-bg-dark-hover); }

.btn-link {
  background: transparent;
  color: var(--link-primary);
  text-decoration: underline;
  height: auto;
  padding: 0;
}
.btn-link svg { stroke: var(--link-primary); }
.btn-link:hover { color: var(--link-icon-primary-visited); }

.btn-block { width: 100%; }

.btn-disabled,
.btn:disabled,
.btn[disabled] {
  background: var(--btn-bg-disabled);
  color: var(--text-disabled);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-lg { height: 48px; padding: 0 20px; font-size: 16px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; }

/* ============================================================================
   8. LATEST UPDATES
   ============================================================================ */
.latest-updates {
  background: #fff;
  border-top: 2px solid var(--border-neutral-primary);
  border-bottom: 2px solid var(--border-neutral-primary);
  height: 60px;
  padding: 18px 111.5px 2px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.latest-updates .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 24px;
  border-right: 2px solid #99a1af;
  height: 24px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text-default);
}
.latest-updates .label svg { width: 20px; height: 20px; stroke: var(--icon-default); }
.latest-updates .link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-primary-paragraph);
}
.latest-updates .link svg { width: 16px; height: 16px; stroke: var(--text-primary-paragraph); }

/* ============================================================================
   9. SERVICES / CARD GRID (home)
   ============================================================================ */
.services {
  background: var(--bg-neutral-100);
  padding: 48px 80px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.services h2 {
  font-size: 30px;
  line-height: 38px;
  font-weight: 500;
  color: #0a0a0a;
  text-align: center;
  margin: 0;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 276px 276px;
  gap: 24px;
}
.services-grid { /* alias */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 276px;
}
.service-card { /* alias used by other pages */
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card .icon-badge,
.service-card .icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--icon-bg-brand-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card .icon-badge svg,
.service-card .icon-badge svg { width: 24px; height: 24px; stroke: var(--icon-success); }
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-display);
}
.card-title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
}
.card-desc {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}
.card-actions {
  display: flex;
  justify-content: flex-end;
}
.card-arrow-btn {
  width: 80px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.card-arrow-btn svg { width: 24px; height: 24px; stroke: var(--link-primary); }

/* Generic card-base for forms/dashboards */
.card-base {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.licensee-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================================
   10. FORMS
   ============================================================================ */
.form-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-neutral-light);
}
.form-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.form-section-title {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: var(--text-display);
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-section-subtitle {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

.form-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.form-row > .form-field { flex: 1 1 0; min-width: 240px; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-display);
}
.form-required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  border: 1px solid var(--border-neutral-primary);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-default);
  background: var(--bg-white);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-tertiary); }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--btn-bg-primary);
  box-shadow: 0 0 0 3px rgba(27,131,84,0.12);
}
.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
  background: var(--bg-neutral-100);
  color: var(--text-disabled);
  cursor: not-allowed;
}

.form-textarea {
  resize: vertical;
  min-height: 96px;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23384250' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-help {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-secondary);
}
.form-error {
  font-size: 12px;
  line-height: 18px;
  color: var(--color-error);
}
.form-input.is-invalid,
.form-textarea.is-invalid,
.form-select.is-invalid {
  border-color: var(--color-error);
}

/* Checkbox / Radio */
.checkbox,
.radio {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-display);
}
.checkbox input[type="checkbox"],
.radio input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0 0;
  accent-color: var(--btn-bg-primary);
  cursor: pointer;
}

/* Section-number-badge — small numbered circle (used as section marker) */
.section-number-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--icon-bg-brand-light);
  color: var(--icon-success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.section-number-badge--info {
  background: var(--bg-info-light);
  color: var(--icon-info);
}
.section-number-badge--warning {
  background: var(--bg-warning-light);
  color: var(--icon-warning);
}

/* ============================================================================
   11. STEPPER (vertical) — used by tracking & confirmation
   ============================================================================ */
.stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.stepper-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  position: relative;
  padding-bottom: 32px;
}
.stepper-step:last-child { padding-bottom: 0; }

.stepper-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid var(--btn-bg-primary);
  background: var(--bg-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--btn-bg-primary);
  z-index: 1;
}
.stepper-circle-completed {
  background: var(--btn-bg-primary);
  border-color: var(--btn-bg-primary);
  color: #fff;
}
.stepper-circle-current {
  background: var(--btn-bg-primary);
  border-color: var(--btn-bg-primary);
  color: #fff;
}
.stepper-circle-pending {
  background: var(--bg-white);
  border-color: var(--border-neutral-primary);
  color: var(--text-tertiary);
}

.stepper-line {
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--border-neutral-primary);
}
.stepper-line-completed { background: var(--btn-bg-primary); }
.stepper-step:last-child .stepper-line { display: none; }

.stepper-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
}
.stepper-label {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text-display);
}
.stepper-description {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

/* ============================================================================
   12. PROGRESS INDICATOR BAR (horizontal — Step 1/2/3/4/5)
   ============================================================================ */
.progress-indicator-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  padding: 24px 0;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  text-align: center;
}
.progress-step-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-white);
  border: 2px solid var(--border-neutral-primary);
  color: var(--text-tertiary);
  z-index: 1;
}
.progress-step.is-current .progress-step-circle {
  background: var(--btn-bg-primary);
  border-color: var(--btn-bg-primary);
  color: #fff;
}
.progress-step.is-completed .progress-step-circle {
  background: var(--btn-bg-primary);
  border-color: var(--btn-bg-primary);
  color: #fff;
}
.progress-step-label {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--text-secondary);
}
.progress-step.is-current .progress-step-label,
.progress-step.is-completed .progress-step-label {
  color: var(--text-display);
}
.progress-step-bar {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-neutral-primary);
  z-index: 0;
}
.progress-step.is-completed .progress-step-bar {
  background: var(--btn-bg-primary);
}
.progress-step:last-child .progress-step-bar { display: none; }

/* ============================================================================
   13. TABLES
   ============================================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.table-header {
  background: var(--bg-neutral-50);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.table-header th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
}
.table-row {
  border-bottom: 1px solid var(--border-neutral-light);
}
.table-row:last-child { border-bottom: none; }
.table-cell {
  padding: 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-display);
  vertical-align: top;
}
.table-cell--bold { font-weight: 600; }
.table-row td:last-child,
.table-row th:last-child { text-align: right; }

/* ============================================================================
   14. ALERTS / INLINE NOTIFICATIONS
   ============================================================================ */
.alert {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--border-neutral-primary);
  background: var(--bg-neutral-50);
}
.alert-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.alert-title {
  font-size: 30px;
  line-height: 38px;
  font-weight: 500;
  color: var(--text-display);
  letter-spacing: -0.6px;
}
.alert-body {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--text-primary-paragraph);
}
.alert-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.alert-icon svg { width: 20px; height: 20px; }

.alert-success {
  background: var(--bg-success-25);
  border-left-color: var(--color-success);
  color: var(--text-success);
}
.alert-success .alert-icon {
  background: var(--bg-success-light);
}
.alert-success .alert-icon svg { stroke: var(--color-success); }
.alert-success .alert-title { color: var(--color-success); }

.alert-info {
  background: var(--bg-info-light);
  border-left-color: var(--color-info);
}
.alert-info .alert-icon {
  background: var(--bg-info-light);
}
.alert-info .alert-icon svg { stroke: var(--color-info); }
.alert-info .alert-title { color: var(--text-info); }

.alert-warning {
  background: var(--bg-warning-light);
  border-left-color: var(--color-warning);
}
.alert-warning .alert-icon { background: var(--bg-warning-light); }
.alert-warning .alert-icon svg { stroke: var(--color-warning); }
.alert-warning .alert-title { color: var(--text-warning); }

.alert-error {
  background: var(--bg-error-light);
  border-left-color: var(--color-error);
}
.alert-error .alert-icon { background: var(--bg-error-light); }
.alert-error .alert-icon svg { stroke: var(--color-error); }
.alert-error .alert-title { color: var(--text-error); }

/* ============================================================================
   15. TAGS / STATUS PILLS
   ============================================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}
.tag-success {
  background: var(--bg-success-light);
  color: var(--color-success);
  border-color: var(--border-success-light);
}
.tag-warning {
  background: var(--bg-warning-light);
  color: var(--text-warning);
  border-color: var(--border-warning-light);
}
.tag-info {
  background: var(--bg-info-light);
  color: var(--color-info);
  border-color: var(--border-info-light);
}
.tag-error {
  background: var(--bg-error-light);
  color: var(--color-error);
  border-color: var(--border-error-light);
}
.tag-neutral {
  background: var(--bg-neutral-100);
  color: var(--text-primary-paragraph);
  border-color: var(--border-neutral-light);
}

/* Dot prefix for tags (optional) */
.tag .tag-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: currentColor;
  display: inline-block;
}

/* ============================================================================
   16. BREADCRUMBS
   ============================================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
  padding: 16px 0;
}
.breadcrumb a {
  color: var(--text-secondary);
}
.breadcrumb a:hover {
  color: var(--link-primary);
  text-decoration: underline;
}
.breadcrumb-separator {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
}
.breadcrumb-separator svg { width: 16px; height: 16px; stroke: currentColor; }
.breadcrumb-current {
  color: var(--text-display);
  font-weight: 500;
}

/* ============================================================================
   17. FILE UPLOAD
   ============================================================================ */
.file-upload {
  border: 1px dashed var(--border-neutral-primary);
  border-radius: var(--radius-md);
  background: var(--bg-neutral-25);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.file-upload:hover {
  border-color: var(--btn-bg-primary);
  background: var(--bg-success-25);
}
.file-upload-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-neutral-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.file-upload-icon svg { width: 20px; height: 20px; stroke: var(--icon-neutral); }
.file-upload-text {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-display);
}
.file-upload-text .upload-link {
  color: var(--link-primary);
  font-weight: 600;
  text-decoration: underline;
}
.file-upload-help {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-secondary);
}

/* ============================================================================
   18. FEATURED ICON (large circular icon)
   ============================================================================ */
.featured-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--icon-bg-brand-light);
}
.featured-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--icon-success);
  fill: none;
}
.featured-icon--sm { width: 40px; height: 40px; }
.featured-icon--sm svg { width: 20px; height: 20px; }
.featured-icon--lg { width: 56px; height: 56px; }
.featured-icon--lg svg { width: 28px; height: 28px; }

.featured-icon--success { background: var(--bg-success-light); }
.featured-icon--success svg { stroke: var(--color-success); }
.featured-icon--info { background: var(--bg-info-light); }
.featured-icon--info svg { stroke: var(--color-info); }
.featured-icon--warning { background: var(--bg-warning-light); }
.featured-icon--warning svg { stroke: var(--color-warning); }
.featured-icon--error { background: var(--bg-error-light); }
.featured-icon--error svg { stroke: var(--color-error); }
.featured-icon--neutral { background: var(--bg-neutral-100); }
.featured-icon--neutral svg { stroke: var(--icon-neutral); }

/* ============================================================================
   19. FOOTER
   ============================================================================ */
.footer {
  background: var(--bg-sa-flag);
  padding: 0 32px;
  display: flex;
  justify-content: center;
}
.footer-inner {
  flex: 1;
  max-width: 1280px;
  padding-top: 40px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 40px;
}
.footer-col {
  flex: 1 0 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col.social-col {
  gap: 32px;
}
.footer-label {
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-oncolor-30);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a, .footer-links p {
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}
.footer-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-oncolor-30);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-icon-btn svg { width: 16px; height: 16px; stroke: #fff; }

.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.footer-legal .legal-info {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-legal .copyright {
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.footer-legal .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal .legal-links a {
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}
.footer-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.footer-logo-box {
  background: transparent;
  padding: 0;
}
.footer-logo-box .logo-mark { width: 32px; height: 40px; }
.footer-logo-box .logo-wordmark { font-size: 20px; }
.footer-logo-box .logo-arabic { font-size: 8px; }

/* ============================================================================
   20. FLOATING CHAT FAB
   ============================================================================ */
.chat-fab {
  position: absolute;
  bottom: 90px;
  right: 82px;
  width: 56px;
  height: 56px;
  background: var(--btn-bg-primary);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 10;
}
.chat-fab svg { width: 24px; height: 24px; stroke: #fff; }

/* ============================================================================
   21. UTILITIES (Tailwind-lite)
   ============================================================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0; }
.flex-shrink-0 { flex-shrink: 0; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none !important; }

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

.gap-0 { gap: 0; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }
.gap-16 { gap: 64px; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.max-w-md { max-width: 480px; }
.max-w-lg { max-width: 640px; }
.max-w-xl { max-width: 800px; }
.max-w-2xl { max-width: 960px; }
.max-w-4xl { max-width: 1120px; }
.max-w-6xl { max-width: 1280px; }

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

.text-xs { font-size: 12px; line-height: 18px; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-base { font-size: 16px; line-height: 24px; }
.text-lg { font-size: 18px; line-height: 28px; }
.text-xl { font-size: 20px; line-height: 30px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.text-display-sm { font-size: 30px; line-height: 38px; }
.text-display-md { font-size: 36px; line-height: 44px; }
.text-display-lg { font-size: 48px; line-height: 56px; }

.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-default { color: var(--text-default); }
.text-display { color: var(--text-display); }
.text-paragraph { color: var(--text-primary-paragraph); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-success { color: var(--text-success); }
.text-warning { color: var(--text-warning); }
.text-error { color: var(--text-error); }
.text-info { color: var(--text-info); }
.text-link { color: var(--link-primary); }
.text-white { color: #fff; }

.bg-white { background: var(--bg-white); }
.bg-neutral-25 { background: var(--bg-neutral-25); }
.bg-neutral-50 { background: var(--bg-neutral-50); }
.bg-neutral-100 { background: var(--bg-neutral-100); }
.bg-success-25 { background: var(--bg-success-25); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.border { border: 1px solid var(--border-neutral-primary); }
.border-light { border: 1px solid var(--border-neutral-light); }
.border-t { border-top: 1px solid var(--border-neutral-light); }
.border-b { border-bottom: 1px solid var(--border-neutral-light); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-2 { padding: 8px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.px-20 { padding-left: 80px; padding-right: 80px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.tracking-wide { letter-spacing: 0.04em; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.z-10 { z-index: 10; }

.divide-y > * + * { border-top: 1px solid var(--border-neutral-light); }
