/* =================================================================
   SOLAM Portal — Design System
   Brand: deep green #0A3D2C / gold #B88A1E
   Mobile-first, accessible, touch-friendly.
   Developed by AshFLAC Tech Solutions
   ================================================================= */

:root {
  --green-900: #052519;
  --green-800: #0A3D2C;
  --green-700: #145239;
  --green-600: #1f6b4b;
  --green-100: #e8f0ec;
  --green-50:  #f4f8f6;
  --gold-700:  #8c6815;
  --gold-600:  #B88A1E;
  --gold-500:  #d6a534;
  --gold-100:  #fbf3df;
  --ink-900:   #14201c;
  --ink-700:   #324241;
  --ink-500:   #647271;
  --ink-300:   #a8b2b0;
  --ink-100:   #e5e9e7;
  --ink-50:    #f4f6f5;
  --white:     #ffffff;
  --danger:    #b3261e;
  --warn:      #b78103;
  --success:   #146c2e;
  --info:      #145239;
  --shadow-sm: 0 1px 2px rgba(10,61,44,.08);
  --shadow:    0 2px 8px rgba(10,61,44,.10);
  --shadow-lg: 0 8px 24px rgba(10,61,44,.14);
  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  --topbar-h: 56px;
  --bottomnav-h: 60px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-900);
  background: var(--ink-50);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--green-800); color: #fff; padding: 8px 12px; z-index: 100; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--green-800); margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 24px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
hr { border: 0; border-top: 1px solid var(--ink-100); margin: 18px 0; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--green-800); color: #fff;
  box-shadow: var(--shadow);
}
.topbar__inner {
  height: var(--topbar-h);
  display: flex; align-items: center;
  padding: 0 12px; gap: 8px;
  max-width: 1280px; margin: 0 auto;
}
.topbar__menu {
  background: transparent; border: 0; color: #fff;
  width: 44px; height: 44px; min-width: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: rgba(255,255,255,.20);
  -webkit-appearance: none; appearance: none;
  touch-action: manipulation;
  flex-shrink: 0;
}
.topbar__menu svg { pointer-events: none; }   /* iOS / Android Chrome can't tap a button when SVG eats clicks */
.topbar__icon svg { pointer-events: none; }   /* Same for the bell — tap must reach the anchor */
.topbar__menu:hover, .topbar__menu:focus-visible { background: rgba(255,255,255,.15); outline: none; }
.topbar__menu:active { background: rgba(255,255,255,.25); }
.topbar__brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; text-decoration: none;
}
.topbar__brand:hover { text-decoration: none; }
.topbar__brand img { width: 32px; height: 32px; border-radius: 50%; background: #fff; padding: 2px; }
.topbar__title { font-size: 17px; letter-spacing: .3px; }
.topbar__sub {
  display: inline-block; margin-left: 4px;
  font-size: 11px; color: var(--gold-500); font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}
.topbar__spacer { flex: 1; }
.topbar__icon {
  position: relative; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; border-radius: 8px;
}
.topbar__icon:hover { background: rgba(255,255,255,.10); text-decoration: none; }
.topbar__badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--gold-600); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.topbar__user details { position: relative; }
.topbar__user summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 4px 8px 4px 4px; border-radius: 8px;
}
.topbar__user summary::-webkit-details-marker { display: none; }
.topbar__user summary:hover { background: rgba(255,255,255,.10); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-600); color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.topbar__name { font-size: 13px; font-weight: 600; }
.dropdown {
  position: absolute; top: 110%; right: 0;
  background: #fff; color: var(--ink-900);
  min-width: 240px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden; padding: 6px 0;
  border: 1px solid var(--ink-100);
}
.dropdown__head { padding: 12px 14px; background: var(--green-50); border-bottom: 1px solid var(--ink-100); }
.dropdown__head strong { display: block; color: var(--green-800); }
.dropdown__head small { color: var(--ink-500); font-size: 12px; }
.dropdown a {
  display: block; padding: 10px 14px; color: var(--ink-900);
  font-size: 14px;
}
.dropdown a:hover { background: var(--green-50); text-decoration: none; }
.dropdown__danger { color: var(--danger) !important; }
.dropdown hr { margin: 4px 0; }

/* ---------- Drawer ---------- */
.drawer {
  position: fixed; top: 0; left: -320px;
  width: 280px;
  height: 100vh;              /* fallback for older browsers */
  height: 100dvh;
  background: #fff; box-shadow: var(--shadow-lg);
  z-index: 60;
  transition: left .25s ease;
  display: flex; flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: visible;
}
.drawer-open .drawer { left: 0; }
.drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  z-index: 55;
}
.drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
/* lock background scroll when drawer is open */
body.drawer-open { overflow: hidden; touch-action: none; }
body.drawer-open .main { filter: blur(0); }
.drawer__head {
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: #fff; display: flex; align-items: center; gap: 12px;
}
.drawer__logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 3px; }
.drawer__name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.drawer__role { color: var(--gold-500); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; margin-top: 2px; }
.drawer__nav { flex: 1; padding: 8px 0; }
.drawer__sect {
  padding: 14px 20px 6px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink-500);
}
.drawer__link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; color: var(--ink-900);
  font-size: 14px; border-left: 3px solid transparent;
}
.drawer__link:hover { background: var(--green-50); text-decoration: none; }
.drawer__link.is-active { background: var(--green-50); color: var(--green-800); border-left-color: var(--gold-600); font-weight: 600; }
.drawer__link svg { color: var(--ink-500); flex-shrink: 0; }
.drawer__link.is-active svg { color: var(--green-700); }
.drawer__link--danger { color: var(--danger); }
.drawer__foot { padding: 14px 20px; border-top: 1px solid var(--ink-100); color: var(--ink-500); }

/* ---------- Main area ---------- */
.main {
  max-width: 1180px; margin: 0 auto;
  padding: 16px 14px calc(var(--bottomnav-h) + 24px);
}
.main--public { padding-bottom: 24px; }
@media (min-width: 900px) {
  .main--auth { padding-left: 296px; }
  .drawer { left: 0; box-shadow: none; border-right: 1px solid var(--ink-100); }
  .drawer-scrim { display: none; }
  .topbar__menu { display: none; }
  .bottom-nav { display: none; }
  .main--auth { padding-bottom: 32px; }
  /* on desktop we never lock background scroll */
  body.drawer-open { overflow: auto; touch-action: auto; }
}

/* ---------- Flash messages ---------- */
.flash {
  position: relative; padding: 12px 40px 12px 14px;
  border-radius: var(--radius); margin-bottom: 14px;
  font-size: 14px; line-height: 1.45;
}
.flash--success { background: #e7f4ec; color: var(--success); border-left: 4px solid var(--success); }
.flash--error   { background: #fbe9e8; color: var(--danger);  border-left: 4px solid var(--danger); }
.flash--info    { background: var(--green-50); color: var(--green-800); border-left: 4px solid var(--green-700); }
.flash--warn    { background: #fdf3d8; color: var(--warn); border-left: 4px solid var(--warn); }
.flash__close {
  position: absolute; right: 8px; top: 8px;
  background: transparent; border: 0; font-size: 20px;
  color: inherit; cursor: pointer; line-height: 1; padding: 4px 8px;
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 16px;
  margin-bottom: 14px; border: 1px solid var(--ink-100);
}
.card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: -16px -16px 14px;
  padding: 14px 16px; border-bottom: 1px solid var(--ink-100);
  background: var(--green-50); border-radius: var(--radius) var(--radius) 0 0;
}
.card__head h2 { margin: 0; font-size: 16px; }
.card__title { font-size: 16px; color: var(--green-800); font-weight: 700; margin: 0; }
.card__body { font-size: 14px; }

/* Page header */
.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.page-head h1 { margin: 0 0 4px; }
.page-head__sub { color: var(--ink-500); font-size: 14px; margin: 0; }

/* ---------- Stat tiles ---------- */
.stats {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-bottom: 18px;
}
.stat {
  background: #fff; border-radius: var(--radius);
  padding: 14px 16px; border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
}
.stat__label { color: var(--ink-500); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; margin-bottom: 6px; }
.stat__value { font-size: 22px; font-weight: 700; color: var(--green-800); line-height: 1.1; }
.stat__sub { color: var(--ink-500); font-size: 12px; margin-top: 4px; }
.stat--gold { background: linear-gradient(135deg, var(--gold-100), #fff); border-color: var(--gold-500); }
.stat--green { background: linear-gradient(135deg, var(--green-800), var(--green-700)); color: #fff; border: 0; }
.stat--green .stat__label, .stat--green .stat__sub { color: var(--gold-500); }
.stat--green .stat__value { color: #fff; }

/* ---------- Progress bar ---------- */
.progress {
  background: var(--ink-100); border-radius: 999px; height: 10px; overflow: hidden;
}
.progress__bar {
  height: 100%; background: linear-gradient(90deg, var(--green-700), var(--gold-600));
  border-radius: 999px; transition: width .4s;
}
.progress--lg { height: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; min-height: 42px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
  border: 0; cursor: pointer; text-decoration: none;
  background: var(--green-800); color: #fff;
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 6px 12px; min-height: 32px; font-size: 13px; }
.btn--lg { padding: 14px 24px; min-height: 50px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--gold { background: var(--gold-600); }
.btn--outline { background: transparent; color: var(--green-800); box-shadow: inset 0 0 0 1.5px var(--green-800); }
.btn--ghost { background: transparent; color: var(--green-800); }
.btn--ghost:hover { background: var(--green-50); }
.btn--danger { background: var(--danger); }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Forms ---------- */
.form-row {
  margin-bottom: 14px;
}
.form-row label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-700); margin-bottom: 5px;
}
.form-row .hint { font-size: 12px; color: var(--ink-500); margin-top: 4px; }
.form-row.required label::after { content: " *"; color: var(--danger); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="date"], input[type="datetime-local"], input[type="search"],
textarea, select {
  width: 100%; padding: 10px 12px; min-height: 42px;
  border: 1.5px solid var(--ink-100); border-radius: var(--radius-sm);
  background: #fff; font: inherit; color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: 0; border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(20,82,57,.15);
}
textarea { min-height: 100px; resize: vertical; }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--ink-100); background: #fff; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
table.data th, table.data td {
  padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--ink-100);
  white-space: nowrap;
}
table.data th { background: var(--green-50); color: var(--green-800); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: var(--green-50); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  background: var(--ink-100); color: var(--ink-700);
}
.badge--success { background: #d6ecdd; color: var(--success); }
.badge--warn    { background: #fdf3d8; color: var(--warn); }
.badge--danger  { background: #fbe9e8; color: var(--danger); }
.badge--info    { background: var(--green-50); color: var(--green-800); }
.badge--gold    { background: var(--gold-100); color: var(--gold-700); }

/* ---------- Empty state ---------- */
.empty {
  text-align: center; padding: 32px 18px; color: var(--ink-500);
  background: #fff; border-radius: var(--radius); border: 1.5px dashed var(--ink-100);
}
.empty h3 { color: var(--ink-700); }
.empty__icon { font-size: 36px; opacity: .5; margin-bottom: 8px; }

/* ---------- List items (notices/messages) ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: 14px;
  display: flex; gap: 12px; align-items: flex-start;
}
.list-item__icon {
  flex-shrink: 0; width: 40px; height: 40px;
  background: var(--green-50); color: var(--green-800);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.list-item__body { flex: 1; min-width: 0; }
.list-item__title { font-weight: 700; color: var(--ink-900); margin: 0 0 4px; font-size: 15px; }
.list-item__meta { color: var(--ink-500); font-size: 12px; }
.list-item__excerpt { color: var(--ink-700); font-size: 14px; margin-top: 6px; }
.list-item--unread { background: linear-gradient(90deg, var(--gold-100) 0, var(--gold-100) 4px, #fff 4px); }
.list-item--urgent .list-item__icon { background: #fbe9e8; color: var(--danger); }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottomnav-h); background: #fff;
  border-top: 1px solid var(--ink-100);
  display: flex; align-items: stretch;
  z-index: 25; padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 8px rgba(0,0,0,.04);
}
.bottom-nav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ink-500); font-size: 11px; gap: 2px; text-decoration: none;
}
.bottom-nav__item:hover { text-decoration: none; }
.bottom-nav__item svg { opacity: .85; }
.bottom-nav__item.is-active { color: var(--green-800); }
.bottom-nav__item.is-active svg { color: var(--green-700); }

/* ---------- Site footer ---------- */
.site-foot {
  margin-top: 30px; padding: 18px 14px; padding-bottom: calc(18px + var(--bottomnav-h));
  background: var(--green-900); color: rgba(255,255,255,.78); font-size: 12px;
}
.site-foot__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (min-width: 900px) {
  .site-foot { padding-bottom: 18px; padding-left: 296px; }
}

/* ---------- Toasts ---------- */
#toast-host { position: fixed; bottom: calc(var(--bottomnav-h) + 16px); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--green-800); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn .2s ease, toastOut .25s ease 3s forwards; }
.toast--gold { background: var(--gold-600); }
.toast--danger { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 80% 0%, rgba(184,138,30,.15), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(10,61,44,.20), transparent 55%),
    linear-gradient(180deg, #f4f6f5, #e8efeb);
}
.auth-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  max-width: 420px; width: 100%; padding: 32px 28px;
  border-top: 4px solid var(--gold-600);
}
.auth-card__head { text-align: center; margin-bottom: 22px; }
.auth-card__head img { width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%; background: var(--green-50); padding: 4px; }
.auth-card__head h1 { margin: 0 0 4px; font-size: 22px; }
.auth-card__head p { margin: 0; color: var(--ink-500); font-size: 13px; }

/* ---------- Public landing ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(6,18,14,.05) 0%, rgba(6,18,14,.55) 70%, rgba(6,18,14,.78) 100%),
    url('../img/scenes/hero-masjid.svg') center/cover no-repeat,
    linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 28px 36px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (min-width: 700px) { .hero { padding: 64px 40px 44px; min-height: 460px; } }
.hero__greeting {
  font-family: 'Georgia', 'Cambria', serif;
  font-style: italic;
  color: var(--gold-500);
  font-size: 14px;
  letter-spacing: .5px;
  margin: 0 0 8px;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.hero h1 {
  color: #fff;
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
  max-width: 720px;
}
@media (min-width: 700px) { .hero h1 { font-size: 44px; } }
.hero p {
  color: rgba(255,255,255,.92);
  font-size: 15px;
  line-height: 1.55;
  max-width: 560px;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
@media (min-width: 700px) { .hero p { font-size: 17px; } }
.hero__motto {
  display: inline-block; margin-top: 4px;
  background: rgba(244,216,125,.18);
  color: var(--gold-500);
  padding: 5px 14px; border-radius: 999px; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  border: 1px solid rgba(244,216,125,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero__logo { display: none; }
.hero__scroll {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: 11px; text-transform: uppercase;
  letter-spacing: 2px; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero__scroll:hover { color: var(--gold-500); text-decoration: none; }
.hero__scroll::after {
  content: ""; width: 1px; height: 28px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
}

.story {
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
@media (min-width: 800px) {
  .story { grid-template-columns: 1fr 1fr; }
  .story--flip > .story__art { order: 2; }
}
.story__art {
  min-height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}
@media (min-width: 800px) { .story__art { min-height: 100%; } }
.story__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(10,61,44,.08));
}
.story__body { padding: 28px 24px; }
@media (min-width: 800px) { .story__body { padding: 40px 36px; } }
.story__eyebrow {
  color: var(--gold-700);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 10px;
}
.story h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--green-900);
}
.story p { color: var(--ink-700); font-size: 15px; line-height: 1.65; }
.story ul { color: var(--ink-700); line-height: 1.7; padding-left: 20px; }
.story__quote {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--green-50);
  border-left: 3px solid var(--gold-600);
  border-radius: 0 6px 6px 0;
  color: var(--green-900);
  font-style: italic;
  font-family: 'Georgia', 'Cambria', serif;
}

.welcome-band {
  background: linear-gradient(135deg, #FBF0CC, #F4D87D);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin: 24px 0;
  text-align: center;
  color: var(--green-900);
}
.welcome-band h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--green-900);
  font-family: 'Georgia', 'Cambria', serif;
}
.welcome-band p { margin: 0; font-size: 15px; color: var(--green-900); opacity: 0.85; }

.journey {
  background: var(--green-900);
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  margin: 28px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.journey::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(244,216,125,.18), transparent 50%);
  pointer-events: none;
}
.journey__title {
  text-align: center;
  font-size: 22px;
  margin: 0 0 6px;
  color: #fff;
}
.journey__sub {
  text-align: center;
  color: var(--gold-500);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.journey__steps {
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .journey__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .journey__steps { grid-template-columns: repeat(4, 1fr); } }
.j-step {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(244,216,125,.25);
  border-radius: 12px;
  padding: 18px 16px;
  position: relative;
}
.j-step__num {
  position: absolute; top: -14px; left: 16px;
  background: var(--gold-600); color: var(--green-900);
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.j-step h3 {
  color: #fff;
  font-size: 15px;
  margin: 8px 0 6px;
}
.j-step p {
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0;
}
@media (min-width: 700px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 18px;
  border: 1px solid var(--ink-100);
  border-top: 3px solid var(--gold-600);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.value__arabic {
  font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif;
  font-size: 26px;
  color: var(--gold-700);
  margin: 0 0 6px;
  direction: rtl;
}
.value h3 {
  color: var(--green-900);
  font-size: 15px;
  margin: 0 0 6px;
}
.value p {
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.feature-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 24px 0; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: #fff; border-radius: var(--radius); padding: 22px 20px;
  border: 1px solid var(--ink-100); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(10,61,44,.10); }
.feature__icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--green-50), #fff);
  color: var(--green-800);
  border: 1px solid var(--green-100, #d8e8e0);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.feature h3 { margin: 0 0 6px; color: var(--green-900); }
.feature p { margin: 0; color: var(--ink-500); font-size: 14px; line-height: 1.55; }

.cta-band {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  margin: 28px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0% 100%, rgba(244,216,125,.18), transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(244,216,125,.12), transparent 40%);
}
.cta-band > * { position: relative; }
.cta-band h2 {
  color: #fff;
  font-size: 24px;
  margin: 0 0 10px;
  font-family: 'Georgia', 'Cambria', serif;
}
.cta-band p {
  color: rgba(255,255,255,.85);
  margin: 0 auto 20px;
  max-width: 520px;
  font-size: 15px;
}
.cta-band .btn { box-shadow: 0 6px 20px rgba(0,0,0,.25); }

.officers {
  margin: 24px 0;
}
.officers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 700px) { .officers__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .officers__grid { grid-template-columns: repeat(7, 1fr); } }
.officer {
  background: #fff;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
}
.officer__circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-500);
  font-weight: 800;
  font-size: 22px;
  border: 2px solid var(--gold-600);
}
.officer h4 { margin: 0 0 2px; font-size: 12px; color: var(--green-900); line-height: 1.25; }
.officer p { margin: 0; font-size: 11px; color: var(--ink-500); }


/* ---------- Detail rows ---------- */
.dl { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 600px) { .dl { grid-template-columns: 200px 1fr; row-gap: 10px; } }
.dl dt { color: var(--ink-500); font-size: 13px; }
.dl dd { margin: 0; color: var(--ink-900); font-weight: 500; word-break: break-word; }

/* ---------- Receipt printable ---------- */
.receipt-page { background: #fff; padding: 24px; max-width: 720px; margin: 0 auto; box-shadow: var(--shadow); }
@media print {
  .topbar, .drawer, .drawer-scrim, .bottom-nav, .site-foot, .no-print { display: none !important; }
  body { background: #fff; }
  .main { padding: 0 !important; }
  .receipt-page { box-shadow: none; }
}

/* ---------- ID Card (on-screen) ---------- */
.idc { max-width: 480px; margin: 8px auto 0; }
.idc__card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(184,138,30,.22), transparent 55%),
    linear-gradient(150deg, #0c4733 0%, #0A3D2C 55%, #07301f 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(7,48,31,.34);
  border: 1px solid rgba(184,138,30,.35);
}
.idc__sheen {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%);
  pointer-events: none;
}
.idc__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: rgba(0,0,0,.18);
  border-bottom: 1px solid rgba(184,138,30,.3);
}
.idc__brand { display: flex; align-items: center; gap: 10px; }
.idc__seal {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; letter-spacing: .5px;
  color: #0A3D2C;
  background: radial-gradient(circle at 35% 30%, #f4d87d, #B88A1E);
  border: 2px solid rgba(255,255,255,.5);
  flex-shrink: 0;
}
.idc__org { font-weight: 800; font-size: 15px; letter-spacing: .4px; }
.idc__sub { font-size: 10px; color: rgba(244,216,125,.85); margin-top: 1px; }
.idc__tag {
  font-size: 9px; font-weight: 800; letter-spacing: 2px;
  color: #0A3D2C; background: linear-gradient(135deg,#f4d87d,#B88A1E);
  padding: 4px 10px; border-radius: 999px;
}
.idc__body { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }
.idc__photo {
  width: 96px; height: 116px; border-radius: 10px;
  flex-shrink: 0; overflow: hidden;
  border: 2px solid #B88A1E;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.idc__photo img { width: 100%; height: 100%; object-fit: cover; }
.idc__initials { font-size: 32px; font-weight: 800; color: #f4d87d; }
.idc__info { flex: 1; min-width: 0; }
.idc__name { font-size: 17px; font-weight: 800; line-height: 1.2; }
.idc__office {
  display: inline-block; margin-top: 4px;
  font-size: 9px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: #0A3D2C; background: linear-gradient(135deg,#f4d87d,#B88A1E);
  padding: 3px 8px; border-radius: 5px;
}
.idc__rows {
  display: grid; grid-template-columns: auto 1fr; gap: 5px 10px;
  margin-top: 12px; font-size: 12px;
}
.idc__k { color: rgba(244,216,125,.8); font-weight: 600; }
.idc__v { color: #fff; }
.idc__v--mono { font-family: ui-monospace, "Courier New", monospace; letter-spacing: .5px; }
.idc__status {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.idc__status--on  { background: rgba(120,220,140,.2); color: #9ff0b3; border: 1px solid rgba(120,220,140,.5); }
.idc__status--off { background: rgba(240,180,80,.2); color: #ffd089; border: 1px solid rgba(240,180,80,.5); }
.idc__qr {
  flex-shrink: 0; text-align: center;
}
.idc__qr svg {
  width: 86px; height: 86px;
  background: #fff; padding: 5px; border-radius: 8px;
  display: block;
}
.idc__qrlabel {
  font-size: 8px; color: rgba(244,216,125,.85);
  margin-top: 4px; letter-spacing: .5px;
}
.idc__foot {
  display: flex; justify-content: space-between;
  padding: 9px 16px;
  font-size: 10px; color: rgba(244,216,125,.85);
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(184,138,30,.3);
}
.idc__note {
  font-size: 12.5px; color: var(--ink-500);
  text-align: center; margin: 14px 4px 0; line-height: 1.55;
}
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .idc__card { box-shadow: none; }
}

/* ---------- Utilities ---------- */
.mt-0{margin-top:0!important} .mt-1{margin-top:6px} .mt-2{margin-top:12px} .mt-3{margin-top:18px} .mt-4{margin-top:24px}
.mb-0{margin-bottom:0!important} .mb-2{margin-bottom:12px} .mb-3{margin-bottom:18px}
.text-center{text-align:center} .text-right{text-align:right}
.text-muted{color:var(--ink-500)} .text-success{color:var(--success)} .text-danger{color:var(--danger)} .text-gold{color:var(--gold-700)}
.flex{display:flex;gap:12px;align-items:center} .flex-wrap{flex-wrap:wrap} .flex-end{justify-content:flex-end} .flex-between{justify-content:space-between}
.hidden{display:none!important} .full{width:100%}
.tag-arabic { font-family: "Traditional Arabic","Scheherazade New",serif; font-size: 18px; color: var(--gold-600); }

/* ---------- Member Directory ---------- */
.directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
@media (min-width: 600px) { .directory { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .directory { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px){ .directory { grid-template-columns: repeat(6, 1fr); } }
.directory__card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
  display: block;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.directory__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10,61,44,.10);
  text-decoration: none;
}
.directory__photo {
  width: 80px; height: 80px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold-600);
}
.directory__photo img { width: 100%; height: 100%; object-fit: cover; }
.directory__initial {
  color: var(--gold-500);
  font-weight: 800;
  font-size: 28px;
}
.directory__name {
  font-weight: 700;
  color: var(--green-900);
  font-size: 13px;
  line-height: 1.25;
  margin-bottom: 2px;
}
.directory__sub { color: var(--ink-500); font-size: 11px; font-family: var(--font-mono, monospace); }
.directory__office {
  margin-top: 6px;
  color: var(--gold-700);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ---------- Profile photo preview ---------- */
.photo-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--green-50);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.photo-upload__preview {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--gold-600);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.photo-upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-upload__preview .placeholder {
  color: var(--green-700);
  font-weight: 700;
  font-size: 26px;
}
.photo-upload__hint { color: var(--ink-500); font-size: 12px; }

/* ---------- Print styles ---------- */
@media print {
  .topbar, .drawer, .drawer-scrim, .bottom-nav, .site-foot, .flash, .skip-link,
  .btn, .form-row, .card__head input { display: none !important; }
  body { background: #fff !important; }
  .main { padding: 0 !important; max-width: 100% !important; }
}

/* ---------- Document list rows ---------- */
.doc-list { display: flex; flex-direction: column; }
.doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--ink-100);
  color: var(--ink-900);
  text-decoration: none;
  transition: background .12s ease;
}
.doc-row:first-child { border-top: 0; }
.doc-row:hover { background: var(--green-50); text-decoration: none; }
.doc-row__icon { font-size: 28px; flex-shrink: 0; }
.doc-row__main { flex: 1; min-width: 0; }
.doc-row__title { font-weight: 600; color: var(--green-900); }
.doc-row__desc  { color: var(--ink-700); font-size: 13px; margin-top: 2px; }
.doc-row__meta  { color: var(--ink-500); font-size: 12px; margin-top: 4px; }
.doc-row__action {
  width: 36px; height: 36px;
  background: var(--gold-100, #FBF0CC);
  color: var(--gold-700);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.doc-row__actions { display: flex; gap: 8px; flex-shrink: 0; }
.doc-btn {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform .1s ease, filter .1s ease;
}
.doc-btn:active { transform: scale(.92); }
.doc-btn--dl {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-700, #0A3D2C);
  color: #fff; font-size: 17px;
}
.doc-btn--qr {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold-100, #FBF0CC);
  color: var(--gold-700, #8a6614);
  font-size: 11px; font-weight: 800; letter-spacing: .5px;
  border: 1.5px solid var(--gold-600, #B88A1E);
}
.doc-btn--qr:hover { filter: brightness(.96); }

/* ---------- Export tiles ---------- */
.exports {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 700px) { .exports { grid-template-columns: repeat(2, 1fr); } }
.export-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--ink-100);
  border-top: 3px solid var(--gold-600);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.export-card__icon { font-size: 32px; flex-shrink: 0; }
.export-card__body { flex: 1; min-width: 0; }
.export-card__body h3 { margin: 0 0 4px; color: var(--green-900); font-size: 15px; }
.export-card__body p  { margin: 0; color: var(--ink-500); font-size: 13px; line-height: 1.5; }
.export-card__actions {
  display: flex; flex-direction: column; gap: 6px; flex-shrink: 0;
}

/* ── Document verification page ──────────────────────── */
.verify-card {
  max-width: 540px;
  margin: 8px auto 0;
  background: #fff;
  border-radius: 16px;
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(10,61,44,.08);
  border: 1px solid var(--ink-100, #e6e9e7);
}
.verify-card--ok  { border-top: 5px solid #1a7d4f; }
.verify-card--bad { border-top: 5px solid #c0392b; }
.verify-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.verify-badge--ok  { background: #1a7d4f; }
.verify-badge--bad { background: #c0392b; }
.verify-card h2 { margin: 0 0 6px; color: var(--green-900, #0A3D2C); }
.verify-lead { font-size: 15px; color: var(--ink-700, #3a3f3c); margin: 0 0 4px; }
.verify-detail {
  margin: 20px 0 8px;
  padding: 18px;
  background: var(--green-50, #f1f6f3);
  border-radius: 12px;
  text-align: left;
}
.verify-detail__name { font-size: 19px; font-weight: 700; color: var(--green-900, #0A3D2C); }
.verify-detail__sub  { font-size: 13px; color: var(--ink-500, #6b7270); margin-top: 2px; }
.verify-detail__kind {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px; font-weight: 600;
  color: var(--gold-700, #8a6614);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.verify-meta {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
}
.verify-meta dt { font-size: 13px; color: var(--ink-500, #6b7270); }
.verify-meta dd { font-size: 13px; font-weight: 600; color: var(--ink-900, #1f2421); margin: 0; text-align: right; }
.verify-foot { margin: 16px 0 0; font-size: 12px; color: var(--ink-500, #6b7270); }
