/* ========================================================================
   حملة البلد الأمين — Design System (Glassmorphism RTL)
   ======================================================================== */

:root {
  /* Brand palette — calm warm slate → sage → sand */
  --bg-base: #161821;
  --bg-deep: #1c1f2a;
  --bg-mid: #252834;
  --blob-sage: #3d5048;
  --blob-sand: #5a4938;
  --blob-slate: #3a4250;
  --blob-plum: #4a3f4a;

  /* Accents — muted, dignified */
  --accent-gold: #d4b87c;
  --accent-gold-soft: rgba(212, 184, 124, 0.14);
  --accent-emerald: #9fbfaa;
  --accent-emerald-soft: rgba(159, 191, 170, 0.14);
  --accent-rose: #c98b85;
  --accent-rose-soft: rgba(201, 139, 133, 0.16);
  --accent-sky: #8eafc4;
  --accent-violet: #a597b8;

  /* Glass — warm off-white tint */
  --glass-bg: rgba(252, 250, 245, 0.045);
  --glass-bg-2: rgba(252, 250, 245, 0.025);
  --glass-strong: rgba(252, 250, 245, 0.09);
  --glass-border: rgba(252, 250, 245, 0.12);
  --glass-border-strong: rgba(252, 250, 245, 0.22);
  --glass-shadow:
    0 6px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --glass-shadow-lg:
    0 16px 44px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);

  /* Text */
  --text-1: rgba(252, 250, 245, 0.94);
  --text-2: rgba(252, 250, 245, 0.70);
  --text-3: rgba(252, 250, 245, 0.50);
  --text-4: rgba(252, 250, 245, 0.32);

  /* Radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }

body {
  font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
  direction: rtl;
  color: var(--text-1);
  background: var(--bg-base);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ─── Cosmic background ──────────────────────────────────────────────── */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(65% 55% at 15% 10%, rgba(90, 73, 56, 0.32), transparent 65%),
    radial-gradient(60% 50% at 90% 20%, rgba(61, 80, 72, 0.30), transparent 65%),
    radial-gradient(70% 55% at 80% 85%, rgba(58, 66, 80, 0.32), transparent 65%),
    radial-gradient(60% 50% at 20% 95%, rgba(74, 63, 74, 0.26), transparent 65%),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-base) 50%, #11131a 100%);
  animation: bgShift 28s ease-in-out infinite alternate;
}
body::after {
  background-image:
    radial-gradient(1px 1px at 12% 24%, rgba(252,250,245,0.45), transparent 60%),
    radial-gradient(1px 1px at 78% 12%, rgba(252,250,245,0.38), transparent 60%),
    radial-gradient(1.2px 1.2px at 42% 70%, rgba(252,250,245,0.50), transparent 60%),
    radial-gradient(1px 1px at 88% 55%, rgba(252,250,245,0.32), transparent 60%),
    radial-gradient(1px 1px at 25% 85%, rgba(252,250,245,0.38), transparent 60%),
    radial-gradient(1.2px 1.2px at 62% 30%, rgba(252,250,245,0.38), transparent 60%),
    radial-gradient(1px 1px at 8% 60%, rgba(252,250,245,0.28), transparent 60%);
  opacity: 0.35;
  animation: twinkle 12s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0%   { filter: hue-rotate(0deg) saturate(1); }
  100% { filter: hue-rotate(-6deg) saturate(1.05); }
}
@keyframes twinkle {
  0% { opacity: 0.18; }
  100% { opacity: 0.40; }
}

/* ─── Layout ──────────────────────────────────────────────── */
.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 120px;
  position: relative;
  min-height: 100dvh;
}
.app.wide { max-width: 720px; }

/* ─── Top bar ──────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(212, 184, 124, 0.85), rgba(160, 132, 82, 0.78)),
    var(--glass-bg);
  display: grid;
  place-items: center;
  box-shadow:
    0 4px 14px rgba(160, 132, 82, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #1f1f28;
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { line-height: 1.15; }
.brand-text .name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-text .sub {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  display: grid;
  place-items: center;
  color: var(--text-1);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.icon-btn:hover { background: var(--glass-strong); transform: translateY(-1px); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn svg { width: 20px; height: 20px; }

/* ─── Glass surfaces ──────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
}
.glass-strong {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow-lg);
}

/* ─── Typography ──────────────────────────────────────────────── */
h1.page-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.page-sub {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 22px;
}
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.5px;
  margin: 26px 4px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── Hero / Current trip card ──────────────────────────────────────────────── */
.hero {
  padding: 22px;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, rgba(159, 191, 170, 0.10), rgba(142, 175, 196, 0.06) 40%, rgba(212, 184, 124, 0.08) 100%),
    var(--glass-bg);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--glass-shadow-lg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: -50% -20% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 184, 124, 0.20), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  margin-bottom: 14px;
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 4px rgba(159, 191, 170, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 9px rgba(159, 191, 170, 0); }
}
.hero h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-meta .item { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; opacity: 0.8; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 12px 10px;
  text-align: center;
}
.hero-stat .val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-feature-settings: 'tnum';
}
.hero-stat .lbl {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  margin-top: 2px;
}
.hero-stat.gold .val { color: var(--accent-gold); }
.hero-stat.emerald .val { color: var(--accent-emerald); }
.hero-stat.rose .val { color: var(--accent-rose); }

.progress-shell {
  background: rgba(255, 255, 255, 0.08);
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-sky), var(--accent-gold));
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(159, 191, 170, 0.25);
  transition: width 0.6s var(--ease);
}
.progress-line {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, #7ea38a, #6c8e9e);
  color: #f5f4ef;
  box-shadow:
    0 6px 18px rgba(126, 163, 138, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(126, 163, 138, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.14); }

.btn-gold {
  background: linear-gradient(135deg, #c9a872, #a0844e);
  color: #1f1f28;
  box-shadow:
    0 6px 18px rgba(160, 132, 78, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-1);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
}
.btn-ghost:hover { background: var(--glass-strong); }

.btn-danger {
  background: linear-gradient(135deg, #b86d68, #8e4a47);
  color: #f5f4ef;
  box-shadow: 0 6px 18px rgba(184, 109, 104, 0.25);
}

.btn-sm { padding: 10px 14px; font-size: 13px; border-radius: 12px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { width: auto; flex: 1; }

/* ─── Trip cards / list rows ──────────────────────────────────────────────── */
.trip-card {
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.trip-card:hover { transform: translateY(-2px); border-color: var(--glass-border-strong); }
.trip-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(165, 151, 184, 0.22), rgba(142, 175, 196, 0.16));
  border: 1px solid var(--glass-border-strong);
  color: var(--text-1);
  flex-shrink: 0;
}
.trip-thumb svg { width: 22px; height: 22px; }
.trip-info { flex: 1; min-width: 0; }
.trip-info .title { font-weight: 700; font-size: 15px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-info .meta { font-size: 12px; color: var(--text-3); display: flex; gap: 10px; }
.trip-info .meta .item { display: inline-flex; align-items: center; gap: 4px; }
.trip-info .meta svg { width: 12px; height: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.chip-emerald { background: var(--accent-emerald-soft); color: var(--accent-emerald); border: 1px solid rgba(159, 191, 170, 0.28); }
.chip-rose { background: var(--accent-rose-soft); color: var(--accent-rose); border: 1px solid rgba(201, 139, 133, 0.28); }
.chip-gold { background: var(--accent-gold-soft); color: var(--accent-gold); border: 1px solid rgba(212, 184, 124, 0.28); }
.chip-muted { background: rgba(252, 250, 245, 0.05); color: var(--text-3); border: 1px solid var(--glass-border); }

/* ─── Bus grid ──────────────────────────────────────────────── */
.bus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.bus-card {
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.bus-card:hover { transform: translateY(-3px); border-color: var(--glass-border-strong); }
.bus-card .bus-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.bus-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--accent-gold);
  line-height: 1;
}
.bus-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 2px;
}
.bus-card .ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent-emerald) calc(var(--pct, 0) * 1%), rgba(255,255,255,0.08) 0);
  position: relative;
}
.bus-card .ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(15, 8, 35, 0.85);
  backdrop-filter: blur(8px);
}
.bus-card .ring span {
  position: relative;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-1);
  font-feature-settings: 'tnum';
}
.bus-card .stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
}
.bus-card .stats .num {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
  font-feature-settings: 'tnum';
  display: block;
  margin-bottom: 2px;
}
.bus-card.complete { border-color: rgba(159, 191, 170, 0.40); background: linear-gradient(135deg, rgba(159, 191, 170, 0.07), var(--glass-bg)); }
.bus-card.warning { border-color: rgba(201, 139, 133, 0.35); }

/* ─── Counter / passenger list ──────────────────────────────────────────────── */
.counter-card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 18px;
  gap: 8px;
  text-align: center;
}
.counter-card .col + .col { border-right: 1px solid var(--glass-border); padding-right: 8px; }
.counter-card .lbl { font-size: 11px; font-weight: 700; color: var(--text-3); margin-bottom: 4px; letter-spacing: 0.5px; }
.counter-card .val { font-size: 28px; font-weight: 800; font-feature-settings: 'tnum'; letter-spacing: -1px; line-height: 1; }
.counter-card .val.emerald { color: var(--accent-emerald); }
.counter-card .val.rose { color: var(--accent-rose); }

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 16px 0 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  backdrop-filter: blur(14px);
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-1);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}
.search-bar input::placeholder { color: var(--text-4); }
.search-bar svg { width: 18px; height: 18px; color: var(--text-3); }

.passenger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  margin-bottom: 10px;
  background: var(--glass-bg);
  border: 1px solid rgba(201, 139, 133, 0.28);
  cursor: pointer;
  transition: all 0.22s var(--ease);
  position: relative;
  overflow: hidden;
}
.passenger::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent-rose);
  box-shadow: 0 0 6px rgba(201, 139, 133, 0.4);
}
.passenger.checked {
  background: linear-gradient(135deg, rgba(159, 191, 170, 0.10), rgba(159, 191, 170, 0.04));
  border-color: rgba(159, 191, 170, 0.30);
}
.passenger.checked::after { background: var(--accent-emerald); box-shadow: 0 0 6px rgba(159, 191, 170, 0.35); }
.passenger:active { transform: scale(0.985); }

.passenger .avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  background: linear-gradient(135deg, rgba(165, 151, 184, 0.28), rgba(142, 175, 196, 0.18));
  border: 1px solid var(--glass-border-strong);
  color: var(--text-1);
  position: relative;
}
.passenger.checked .avatar {
  background: linear-gradient(135deg, #8eaf9a, #6e9180);
  color: #f5f4ef;
  border-color: rgba(159, 191, 170, 0.45);
  box-shadow: 0 4px 12px rgba(110, 145, 128, 0.25);
}
.passenger.checked .avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f4ef' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/55% no-repeat;
  background-color: rgba(110, 145, 128, 0.45);
}
.passenger .info { flex: 1; min-width: 0; }
.passenger .name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.passenger.checked .name { color: var(--text-1); }
.passenger:not(.checked) .name { color: #ffd5db; }
.passenger .sub {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.passenger .actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.act-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-1);
  transition: all 0.2s var(--ease);
}
.act-btn:hover { background: var(--glass-strong); transform: translateY(-1px); }
.act-btn svg { width: 16px; height: 16px; }
.act-btn.wa { color: #25D366; border-color: rgba(37, 211, 102, 0.35); background: rgba(37, 211, 102, 0.10); }
.act-btn.wa:hover { background: rgba(37, 211, 102, 0.22); }

/* ─── Floating action button ──────────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 16px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7ea38a, #6c8e9e);
  color: #f5f4ef;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow:
    0 10px 28px rgba(108, 142, 158, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: all 0.22s var(--ease);
}
.fab:hover { transform: translateX(-50%) translateY(-2px); }
.fab svg { width: 18px; height: 18px; }
.fab.gold { background: linear-gradient(135deg, #c9a872, #a0844e); color: #1f1f28; box-shadow: 0 10px 28px rgba(160, 132, 78, 0.32), inset 0 1px 0 rgba(255,255,255,0.22); }

/* ─── Modal ──────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 2, 14, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: end center;
  z-index: 100;
  padding: 16px;
  animation: fadeIn 0.25s var(--ease);
}
.modal {
  width: 100%;
  max-width: 460px;
  padding: 26px 22px 22px;
  border-radius: 28px 28px var(--r-lg) var(--r-lg);
  background: linear-gradient(160deg, rgba(42, 46, 58, 0.85), rgba(28, 31, 42, 0.92));
  border: 1px solid var(--glass-border-strong);
  border-bottom: none;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: var(--glass-shadow-lg);
  animation: slideUp 0.35s var(--ease);
  margin-bottom: -16px;
}
.modal-handle {
  width: 44px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  margin: -10px auto 16px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 20px;
}
.modal-profile .avatar-lg {
  width: 84px;
  height: 84px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-sky));
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  color: #f5f4ef;
  margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(142, 175, 196, 0.22);
}
.modal-profile h3 { font-size: 22px; margin-bottom: 4px; }
.modal-profile .role { color: var(--text-3); font-size: 13px; font-weight: 600; }

.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
}
.info-row .ic {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.18);
  display: grid;
  place-items: center;
  color: var(--accent-violet);
  flex-shrink: 0;
}
.info-row .ic svg { width: 16px; height: 16px; }
.info-row .meta { font-size: 11px; color: var(--text-3); font-weight: 600; margin-bottom: 2px; letter-spacing: 0.3px; }
.info-row .val { font-size: 14px; font-weight: 700; color: var(--text-1); font-feature-settings: 'tnum'; direction: ltr; text-align: right; }

/* ─── Form ──────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--text-3); margin-bottom: 8px; letter-spacing: 0.3px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-1);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  backdrop-filter: blur(10px);
  transition: all 0.2s var(--ease);
}
.field input:focus,
.field select:focus { border-color: var(--accent-emerald); box-shadow: 0 0 0 4px rgba(159, 191, 170, 0.12); }
.field input::placeholder { color: var(--text-4); }

/* ─── Role selection (landing) ──────────────────────────────────────────────── */
.hero-landing {
  text-align: center;
  padding: 56px 8px 32px;
}
.hero-mark {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  margin: 0 auto 22px;
  background:
    linear-gradient(135deg, rgba(212, 184, 124, 0.88), rgba(160, 132, 82, 0.80));
  display: grid;
  place-items: center;
  color: #1f1f28;
  box-shadow:
    0 12px 32px rgba(160, 132, 82, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.22);
  position: relative;
}
.hero-mark::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 32px;
  border: 1px solid rgba(212, 184, 124, 0.22);
  animation: ringPulse 3.5s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 0; }
}
.hero-mark svg { width: 44px; height: 44px; }
.hero-landing h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.hero-landing p {
  color: var(--text-3);
  font-size: 14px;
  margin-bottom: 0;
}

.role-card {
  padding: 22px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.role-card:hover { transform: translateY(-3px); border-color: var(--glass-border-strong); }
.role-card .role-ic {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: white;
}
.role-card.admin .role-ic { background: linear-gradient(135deg, #c9a872, #a0844e); color: #1f1f28; }
.role-card.user .role-ic { background: linear-gradient(135deg, #7ea38a, #6c8e9e); color: #f5f4ef; }
.role-card .role-ic svg { width: 26px; height: 26px; }
.role-card .body { flex: 1; }
.role-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.role-card p { font-size: 13px; color: var(--text-3); }
.role-card .arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass-bg);
  color: var(--text-2);
}
.role-card .arrow svg { width: 16px; height: 16px; }

/* ─── PDF report (preview) ──────────────────────────────────────────────── */
.report-sheet {
  background: #faf8f3;
  color: #2a2d35;
  border-radius: var(--r-lg);
  padding: 26px 22px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.30);
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}
.report-sheet .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #a0844e;
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.report-sheet .logo {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #c9a872, #a0844e);
  display: grid;
  place-items: center;
  color: #faf8f3;
}
.report-sheet .logo svg { width: 24px; height: 24px; }
.report-sheet h2 { font-size: 18px; color: #2a2d35; }
.report-sheet .sub { font-size: 11px; color: #7a7570; }
.report-sheet .meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.report-sheet .meta-cell {
  background: #f1ede4;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}
.report-sheet .meta-cell .v { font-size: 18px; font-weight: 800; color: #2a2d35; }
.report-sheet .meta-cell .l { font-size: 10px; color: #7a7570; font-weight: 700; }
.report-sheet .bus-section { margin-bottom: 14px; }
.report-sheet .bus-section h4 {
  font-size: 13px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #c9a872, #a0844e);
  color: #faf8f3;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.report-sheet table { width: 100%; border-collapse: collapse; font-size: 12px; }
.report-sheet th, .report-sheet td { padding: 7px 8px; text-align: right; border-bottom: 1px solid #e7e2d4; }
.report-sheet th { background: #f1ede4; color: #2a2d35; font-weight: 700; font-size: 11px; }
.report-sheet .status-ok { color: #5a8369; font-weight: 700; }
.report-sheet .status-miss { color: #a86560; font-weight: 700; }

/* ─── Empty state ──────────────────────────────────────────────── */
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3);
}
.empty svg { width: 56px; height: 56px; opacity: 0.4; margin-bottom: 14px; }
.empty h4 { font-size: 16px; color: var(--text-2); margin-bottom: 6px; }
.empty p { font-size: 13px; }

/* ─── Misc ──────────────────────────────────────────────── */
.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.divider { height: 1px; background: var(--glass-border); margin: 18px 0; }
.spacer-sm { height: 8px; }
.spacer { height: 16px; }
.spacer-lg { height: 24px; }
