/* ===== Rayyan Drilling Platform — Design Tokens ===== */
:root {
  /* Brand */
  --rayyan-navy: #0B1E3F;
  --rayyan-navy-2: #142A52;
  --rayyan-indigo: #2F4DBF;
  --rayyan-indigo-soft: #EEF1FB;
  --rayyan-emerald: #0F8A5F;
  --rayyan-emerald-soft: #E6F4EE;
  --rayyan-sand: #F7F5F0;
  --rayyan-amber: #B7791F;
  --rayyan-amber-soft: #FCF4E3;
  --rayyan-rose: #B42318;
  --rayyan-rose-soft: #FCEDEA;

  /* Neutrals */
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white: #FFFFFF;

  /* Type */
  --font-sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', 'Inter Tight', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-arabic: 'IBM Plex Sans Arabic', 'Inter Tight', sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Radii */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-900);
  background: #EEF0F4;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}

.screen {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--slate-900);
  font-size: 14px;
  line-height: 1.45;
}
.screen-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--slate-50);
}
.page-content {
  flex: 1;
  padding: 28px 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== Sidebar ===== */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--rayyan-navy);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.sidebar.vendor { background: linear-gradient(180deg, #102449 0%, #0B1E3F 100%); }
.sidebar.client { background: #0E1F2E; }

.sb-brand {
  padding: 22px 20px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sb-logo {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--rayyan-emerald);
  display: grid; place-items: center;
  color: white; font-weight: 700;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.02em;
}
.sb-brandname {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: white;
  letter-spacing: 0.04em;
}
.sb-tag {
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rayyan-emerald);
  margin-top: 2px;
}

.sb-user {
  margin: 14px 14px 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}
.sb-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--rayyan-indigo);
  display: grid; place-items: center;
  color: white; font-size: 12px; font-weight: 600;
}
.sb-uname { color: white; font-size: 13px; font-weight: 500; }
.sb-urole { color: rgba(255,255,255,0.5); font-size: 11px; letter-spacing: 0.04em; }

.sb-section {
  margin-top: 10px;
  padding: 0 14px;
}
.sb-section-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 10px 8px 6px;
}
.sb-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  margin-bottom: 2px;
  transition: background 120ms ease, color 120ms ease;
}
.sb-item:hover { background: rgba(255,255,255,0.04); color: white; }
.sb-item.active {
  color: white;
  font-weight: 500;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.03) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 1px 2px rgba(0,0,0,0.25);
}
.sb-item .ic {
  width: 16px; height: 16px; flex-shrink: 0;
  color: rgba(255,255,255,0.55);
  transition: color 120ms ease;
}
.sb-item.active .ic {
  color: var(--rayyan-emerald);
  filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.5));
}
.sb-item.active::after {
  content: '';
  margin-left: auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rayyan-emerald);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
  flex-shrink: 0;
}
.sb-item.active .badge ~ ::after,
.sb-item.active:has(.badge)::after { display: none; }
.sb-item .badge {
  margin-left: auto;
  background: var(--rayyan-emerald);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
}
.sb-foot {
  margin-top: auto;
  padding: 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== Header ===== */
.hdr {
  height: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 20px;
  flex-shrink: 0;
}
.hdr-title {
  display: flex; flex-direction: column;
}
.hdr-crumb {
  font-size: 11px; color: var(--slate-500); letter-spacing: 0.04em;
}
.hdr-crumb b { color: var(--slate-700); font-weight: 500; }
.hdr-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--slate-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hdr-spacer { flex: 1; }
.hdr-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 6px 12px;
  width: 280px;
  color: var(--slate-500);
  font-size: 13px;
}
.hdr-search input {
  border: 0; background: transparent; outline: none;
  flex: 1; font-size: 13px; color: var(--slate-700);
  font-family: inherit;
}
.hdr-icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--slate-600);
  position: relative;
  cursor: pointer;
}
.hdr-icon .dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rayyan-rose);
  border: 2px solid white;
}
.hdr-user {
  display: flex; align-items: center; gap: 10px;
  padding-left: 14px; border-left: 1px solid var(--slate-200);
  height: 34px;
}
.hdr-user .av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--rayyan-indigo);
  color: white; font-weight: 600; font-size: 12px;
  display: grid; place-items: center;
}
.hdr-user .un { font-size: 13px; font-weight: 500; color: var(--slate-800); line-height: 1.1; }
.hdr-user .ur { font-size: 11px; color: var(--slate-500); letter-spacing: 0.04em; }

/* ===== Page header (inside main) ===== */
.page-h {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px;
}
.page-h h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin: 0;
}
.page-h .sub {
  color: var(--slate-500); font-size: 13px; margin-top: 4px;
}
.page-h .actions { display: flex; gap: 10px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--slate-200);
  background: white;
  color: var(--slate-700);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { background: var(--slate-50); }
.btn.primary {
  background: var(--rayyan-navy);
  border-color: var(--rayyan-navy);
  color: white;
}
.btn.primary:hover { background: var(--rayyan-navy-2); }
.btn.emerald {
  background: var(--rayyan-emerald);
  border-color: var(--rayyan-emerald);
  color: white;
}
.btn.danger {
  background: var(--rayyan-rose);
  border-color: var(--rayyan-rose);
  color: white;
}
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; }

/* ===== Cards ===== */
.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
}
.card-pad { padding: 18px 20px; }
.card-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--slate-200);
  display: flex; align-items: center; gap: 12px;
}
.card-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  margin: 0;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}
.card-head .sub {
  font-size: 12px; color: var(--slate-500);
}

/* ===== KPI Stat ===== */
.kpi {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.kpi-label {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate-500); font-weight: 500;
}
.kpi-value {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 500;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex; align-items: baseline; gap: 4px;
}
.kpi-value .unit { font-size: 14px; color: var(--slate-500); font-family: var(--font-sans); font-weight: 400; }
.kpi-meta {
  font-size: 11px; color: var(--slate-500);
  display: flex; align-items: center; gap: 4px;
}
.kpi-meta.up { color: var(--rayyan-emerald); }
.kpi-meta.warn { color: var(--rayyan-amber); }
.kpi-meta.down { color: var(--rayyan-rose); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* ===== Status Badge ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  min-height: 24px;
  line-height: 1.2;
  border-radius: 999px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid;
  white-space: nowrap;
  box-sizing: border-box;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* iOS device frame: hide scrollbars on the scrolling content area + any nested scroll containers */
.ios-scroll, .ios-scroll * { scrollbar-width: none; -ms-overflow-style: none; }
.ios-scroll::-webkit-scrollbar,
.ios-scroll *::-webkit-scrollbar { display: none; width: 0; height: 0; }
.badge.pending { color: var(--rayyan-amber); background: var(--rayyan-amber-soft); border-color: #F0E0B5; }
.badge.progress { color: var(--rayyan-indigo); background: var(--rayyan-indigo-soft); border-color: #D6DEF4; }
.badge.completed { color: var(--rayyan-emerald); background: var(--rayyan-emerald-soft); border-color: #C7E5D7; }
.badge.approved { color: var(--rayyan-emerald); background: var(--rayyan-emerald-soft); border-color: #C7E5D7; }
.badge.rejected { color: var(--rayyan-rose); background: var(--rayyan-rose-soft); border-color: #F4CEC9; }
.badge.draft { color: var(--slate-600); background: var(--slate-100); border-color: var(--slate-200); }
.badge.paid { color: var(--rayyan-emerald); background: var(--rayyan-emerald-soft); border-color: #C7E5D7; }
.badge.overdue { color: var(--rayyan-rose); background: var(--rayyan-rose-soft); border-color: #F4CEC9; }
.badge.urgent { color: white; background: var(--rayyan-rose); border-color: var(--rayyan-rose); }

/* ===== Tables ===== */
.tbl {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.tbl thead th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate-500); font-weight: 500;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}
.tbl tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
  vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--slate-50); }
.tbl .mono { font-family: var(--font-mono); font-size: 12px; color: var(--slate-800); }
.tbl .strong { color: var(--slate-900); font-weight: 500; }

/* ===== Progress ===== */
.progress {
  height: 6px;
  background: var(--slate-100);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--rayyan-emerald);
  border-radius: 999px;
}
.progress.indigo > span { background: var(--rayyan-indigo); }
.progress.amber > span { background: var(--rayyan-amber); }

.progress-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--slate-700);
}
.progress-row .lbl { width: 160px; flex-shrink: 0; }
.progress-row .progress { flex: 1; }
.progress-row .pct { width: 36px; text-align: right; color: var(--slate-900); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ===== Form ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px; font-weight: 500; color: var(--slate-700);
  letter-spacing: 0.01em;
}
.field input, .field select, .field textarea {
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--slate-900);
  background: white;
  outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--rayyan-indigo);
  box-shadow: 0 0 0 3px rgba(47, 77, 191, 0.12);
}
.field .hint { font-size: 11px; color: var(--slate-500); }

/* ===== Riyal symbol ===== */
.riyal {
  display: inline-flex; vertical-align: -2px; margin-right: 2px;
}
.amt {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--slate-900);
}

/* ===== Login layouts ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
}
.split .panel-art {
  background: linear-gradient(135deg, #0B1E3F 0%, #142A52 60%, #1E3A6E 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  color: white;
}
.split .panel-art::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(15, 138, 95, 0.18), transparent 50%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 24px);
}
.split .panel-form {
  background: white;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}

/* ===== Misc ===== */
.divider { height: 1px; background: var(--slate-200); }
.row { display: flex; gap: 14px; align-items: center; }
.col { display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--slate-500); }
.tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--slate-200);
}
.tab {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--slate-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.active { color: var(--rayyan-navy); border-color: var(--rayyan-navy); font-weight: 500; }

.chart-bar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 180px;
  padding: 12px 4px 0;
}
.chart-bar .bar-group {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  height: 100%;
}
.chart-bar .bars {
  display: flex; align-items: flex-end; gap: 4px;
  flex: 1; width: 100%; justify-content: center;
}
.chart-bar .bar {
  width: 18px;
  border-radius: 3px 3px 0 0;
}
.chart-bar .bar.drilled { background: var(--rayyan-emerald); }
.chart-bar .bar.planned { background: var(--rayyan-indigo-soft); border: 1px solid var(--rayyan-indigo); }
.chart-bar .bar-lbl { font-size: 11px; color: var(--slate-500); }

/* Pro bar chart — with grid + axis */
.chart-bar-pro {
  display: flex;
  gap: 10px;
  height: 220px;
  padding: 4px 0 0;
  font-family: 'JetBrains Mono', monospace;
}
.chart-bar-pro__yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
  color: var(--slate-500);
  text-align: right;
  padding: 0 0 22px;
  width: 38px;
}
.chart-bar-pro__tick { line-height: 1; transform: translateY(-4px); }
.chart-bar-pro__plot {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}
.chart-bar-pro__grid {
  position: absolute;
  inset: 0 0 22px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.chart-bar-pro__gridline {
  height: 1px;
  background: var(--slate-100);
}
.chart-bar-pro__gridline:last-child { background: var(--slate-300); }
.chart-bar-pro__bars {
  position: relative;
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 0 8px;
}
.chart-bar-pro__group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.chart-bar-pro__col {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.chart-bar-pro__pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  position: relative;
}
.chart-bar-pro__bar {
  width: 14px;
  border-radius: 3px 3px 0 0;
  position: relative;
  transition: opacity 0.15s ease;
  min-height: 2px;
}
.chart-bar-pro__bar:hover { opacity: 0.85; }
.chart-bar-pro__bar--drilled {
  background: linear-gradient(180deg, #10B981, #0F8A5F);
  box-shadow: 0 1px 2px rgba(16,185,129,0.18);
}
.chart-bar-pro__bar--planned {
  background: repeating-linear-gradient(135deg, rgba(47,77,191,0.12) 0 4px, rgba(47,77,191,0.04) 4px 8px);
  border: 1px solid rgba(47,77,191,0.5);
  border-bottom: 0;
}
.chart-bar-pro__value {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 600;
  color: var(--slate-700);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.chart-bar-pro__bar:hover .chart-bar-pro__value { opacity: 1; }
.chart-bar-pro__lbl {
  text-align: center;
  font-size: 10px;
  color: var(--slate-600);
  padding: 6px 0 0;
  font-family: var(--font-sans, 'Inter', system-ui);
  font-weight: 500;
  letter-spacing: 0.02em;
  height: 22px;
}

.donut {
  width: 140px; height: 140px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.donut::after {
  content: '';
  position: absolute; inset: 18px;
  background: white;
  border-radius: 50%;
}
.donut .ctr {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--slate-900);
}

.legend { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.legend .lg { display: flex; align-items: center; gap: 8px; color: var(--slate-700); }
.legend .sw { width: 10px; height: 10px; border-radius: 2px; }

.timeline { display: flex; flex-direction: column; gap: 14px; }
.timeline .step {
  display: flex; gap: 14px;
}
.timeline .marker {
  width: 22px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
}
.timeline .marker .dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--slate-300); background: white;
  margin-top: 2px;
}
.timeline .marker .line {
  width: 2px; flex: 1; background: var(--slate-200); margin-top: 2px;
}
.timeline .step.done .dot { background: var(--rayyan-emerald); border-color: var(--rayyan-emerald); }
.timeline .step.active .dot { border-color: var(--rayyan-indigo); background: var(--rayyan-indigo); box-shadow: 0 0 0 3px var(--rayyan-indigo-soft); }
.timeline .step .body { padding-bottom: 2px; }
.timeline .step .ttl { font-size: 13px; font-weight: 500; color: var(--slate-900); }
.timeline .step .meta { font-size: 11px; color: var(--slate-500); }

/* placeholder */
.ph-img {
  background:
    repeating-linear-gradient(135deg, var(--slate-100) 0 8px, var(--slate-200) 8px 9px);
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-500);
  letter-spacing: 0.04em;
}

/* mobile */
.m-screen {
  background: white;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--slate-900);
  height: 100%;
}
.m-status {
  height: 44px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 22px;
  font-size: 14px; font-weight: 600;
  color: var(--slate-900);
  flex-shrink: 0;
}
.m-status .icons { display: flex; gap: 4px; align-items: center; }
.m-content { flex: 1; overflow: hidden; padding: 0 18px; }
.m-tabs {
  height: 78px;
  border-top: 1px solid var(--slate-200);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  display: flex;
  padding: 6px 0 18px;
  flex-shrink: 0;
}
.m-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; color: var(--slate-500);
}
.m-tab .ic { width: 22px; height: 22px; }
.m-tab.active { color: var(--rayyan-navy); }
.m-tab.active .ic { color: var(--rayyan-navy); }

.m-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 14px;
}

/* utility */
.between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.flex { display: flex; } .col-flex { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.text-xs { font-size: 11px; } .text-sm { font-size: 13px; } .text-lg { font-size: 16px; }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; }
.mono { font-family: var(--font-mono); }
