/* ===== Muyassir shared styles ===== */
:root {
  --primary: #0F3D2E;
  --primary-dark: #0A2A20;
  --primary-ink: #FBFAF6;
  --gold: #C9A961;
  --sand: #E9DCC4;
  --surface: #FBFAF6;
  --surface-alt: #F4EFE3;
  --card: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #3A3A3A;
  --muted: #6B6B6B;
  --hairline: #E5E0D5;
  --success: #5C7A4D;
  --danger: #A23A2A;
  --orange: #D4884A;
  --display: Georgia, "Times New Roman", serif;
  --arabic: "Geeza Pro", "Scheherazade New", "Amiri", Georgia, serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; }

/* ===== Top bar ===== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
  position: sticky; top: 0; z-index: 10;
}
.brand {
  font-family: var(--display);
  font-size: 20px;
  color: var(--primary);
  letter-spacing: -0.4px;
  text-decoration: none;
}
.topbar-actions { display: flex; gap: 8px; }
.btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { opacity: 0.85; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}

/* ===== Phone-shaped wrap (for prototype/admin) ===== */
.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 60px;
}

/* Landing wrap — wider, fluid for web + mobile */
.page-landing .wrap {
  max-width: none;
  padding-bottom: 80px;
}

/* ===== Eyebrow labels ===== */
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 600;
}
.eyebrow.gold { color: var(--gold); letter-spacing: 2.6px; font-weight: 500; }
.eyebrow.muted { color: var(--muted); margin-bottom: 14px; }

/* ===== Landing hero ===== */
.hero {
  background: var(--primary);
  color: var(--primary-ink);
  padding: 80px 24px 96px;
  display: flex; flex-direction: column; align-items: center;
}
@media (max-width: 600px) {
  .hero { padding: 56px 24px 64px; }
}
.mark {
  position: relative;
  width: 96px; height: 96px;
  margin-bottom: 36px;
  display: flex; align-items: center; justify-content: center;
}
.mark-outer {
  position: absolute; inset: 0;
  border: 1px solid var(--gold);
  border-radius: 48px;
}
.mark-inner {
  position: absolute;
  width: 80px; height: 80px;
  border: 0.5px solid rgba(201,169,97,0.4);
  border-radius: 40px;
}
.mark-center {
  width: 28px; height: 28px;
  background: var(--gold); border-radius: 2px;
  z-index: 1;
}
.arabic-display {
  font-family: var(--arabic);
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 20px;
  direction: rtl;
}
.display-title {
  font-family: var(--display);
  font-size: 54px;
  color: var(--primary-ink);
  letter-spacing: -1.2px;
  margin: 0 0 14px;
  text-align: center;
}
.hero-lede {
  font-size: 15.5px;
  line-height: 24px;
  color: rgba(255,255,255,0.76);
  text-align: center;
  max-width: 460px;
  margin: 24px auto 0;
  padding: 0 8px;
}

/* ===== Features ===== */
.features {
  padding: 56px 24px 0;
  max-width: 1040px;
  margin: 0 auto;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) {
  .feature-list { grid-template-columns: 1fr; gap: 10px; }
  .features { padding: 32px 20px 0; }
}
.feature-card {
  display: flex; gap: 14px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 20px;
}
.feature-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-alt);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.feature-card h3 {
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.2px;
}
.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

/* ===== Footer dua ===== */
.footer-dua {
  padding: 56px 32px 0;
  display: flex; flex-direction: column; align-items: center;
}
@media (max-width: 600px) {
  .footer-dua { padding: 40px 32px 0; }
}
.divider {
  width: 28px; height: 1px;
  background: var(--hairline);
  margin-bottom: 18px;
}
.arabic-quote {
  font-family: var(--arabic);
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 8px;
  direction: rtl;
}
.quote-trans {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  line-height: 18px;
}

/* ===== Prototype: step hero ===== */
.title-strip { padding: 24px 24px 16px; }
.greeting { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.greeting-name {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.4px;
}

.step-hero {
  margin: 0 16px;
  background: var(--primary);
  border-radius: 24px;
  padding: 28px 24px 24px;
  color: var(--primary-ink);
}
.step-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.step-hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 3px; background: var(--gold);
}
.step-hero-title {
  font-family: var(--display);
  font-size: 32px;
  color: var(--primary-ink);
  letter-spacing: -0.6px;
  line-height: 34px;
  margin: 0 0 6px;
}
.step-hero-arabic {
  font-family: var(--arabic);
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 18px;
  direction: rtl;
}
.step-hero-blurb {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 22px;
  margin: 0 0 22px;
}
.loc-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  margin-bottom: 18px;
}
.loc-chip i { color: var(--gold); font-size: 18px; flex-shrink: 0; }
.loc-label { font-size: 13px; font-weight: 500; color: var(--primary-ink); }
.loc-sub { font-size: 11px; color: rgba(255,255,255,0.55); }

.sand-btn {
  width: 100%;
  background: var(--sand);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 14px;
  border: 0; border-radius: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sand-btn:hover { background: #DCC9A6; }
.ghost-dark-btn {
  width: 100%;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 13.5px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 12px;
  margin-top: 8px;
  cursor: pointer;
}
.ghost-dark-btn:hover { background: rgba(255,255,255,0.05); }

/* ===== Step strip ===== */
.section { padding: 24px 0 0; }
.section-head {
  padding: 0 16px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.section-link {
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.step-strip {
  display: flex;
  gap: 8px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.step-chip {
  min-width: 112px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.step-chip.active { border: 1.5px solid var(--primary); }
.step-chip.done { opacity: 0.55; }
.step-chip-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.step-chip-num {
  width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-alt); color: var(--ink-soft);
  font-size: 10.5px; font-weight: 700;
}
.step-chip-num.done { background: var(--success); color: white; }
.step-chip-num.active { background: var(--primary); color: white; }
.step-chip-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

/* ===== Quick menu (prototype) ===== */
.quick-menu {
  padding: 24px 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-tile {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}
.quick-tile:hover { background: var(--surface-alt); }
.quick-tile .qt-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  margin-bottom: 8px;
}
.qt-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.qt-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ===== Admin (mobile-shape mock) — copied from admin.tsx port ===== */
.preview-banner {
  background: var(--gold);
  color: var(--primary-dark);
  padding: 12px 20px;
  text-align: center;
  font-family: var(--display);
  font-size: 14.5px;
  line-height: 1.35;
}

.admin-title-strip { padding: 28px 20px 14px; }
.admin-eyebrow {
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 6px;
}
.admin-title {
  font-family: var(--display); font-size: 30px;
  color: var(--ink); letter-spacing: -0.6px; margin: 0;
}
.pad { padding: 0 16px; }

.adm-hero {
  background: var(--primary);
  border-radius: 22px;
  padding: 22px;
  color: var(--primary-ink);
}
.adm-hero-eyebrow {
  font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 8px;
}
.adm-hero-num {
  font-family: var(--display); font-size: 52px;
  letter-spacing: -1.4px; line-height: 56px;
}
.adm-hero-sub { font-size: 14px; color: rgba(255,255,255,0.7); margin-left: 8px; }
.bar {
  height: 6px; background: rgba(255,255,255,0.12);
  border-radius: 3px; overflow: hidden;
  display: flex; margin-top: 16px;
}
.bar > span { height: 100%; display: block; }
.legend-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255,255,255,0.7); }
.legend .dot { width: 7px; height: 7px; border-radius: 4px; }
.legend strong { color: white; font-weight: 600; }

.actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-top: 22px;
}
.action-card {
  flex: 1 1 47%;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
}
.action-card.primary { border: 1.5px solid var(--primary); }
.action-card .ac-icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--surface-alt);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.ac-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.ac-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.list {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
}
.row:last-child { border-bottom: none; }
.avatar {
  width: 38px; height: 38px; border-radius: 19px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 13.7px; font-weight: 600;
  flex-shrink: 0;
}
.row-main { flex: 1; min-width: 0; }
.row-head { display: flex; align-items: center; gap: 8px; }
.row-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.row-age { font-size: 11px; color: var(--muted); }
.row-meta {
  display: flex; align-items: center; gap: 5px;
  margin-top: 2px; font-size: 12px; color: var(--muted);
}
.status-pill {
  padding: 3px 7px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
}

.sos-strip {
  margin-top: 22px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(162,58,42,0.09);
  border: 1px solid rgba(162,58,42,0.25);
}
.sos-icon {
  width: 32px; height: 32px; border-radius: 16px;
  background: var(--danger); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.sos-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.sos-sub { font-size: 11.5px; color: var(--muted); }
