/* ═══════════════════════════════════════════════════════════════
   Design System — منصة دمي
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* ── Primary — Quiet Navy / Indigo ── */
  --primary:        #14213D;
  --primary-dark:   #10192F;
  --primary-deeper: #0B1224;
  --primary-light:  #EEF2FF;
  --primary-subtle: #DDE7FF;
  --primary-border: rgba(20, 33, 61, 0.16);

  /* ── Secondary — Teal ── */
  --teal:        #00B8A9;
  --teal-dark:   #089184;
  --teal-light:  #F0FDFA;
  --teal-subtle: #CCFBF1;

  /* ── Accent — Warm Amber (CTAs, highlights) ── */
  --accent:        #FFC857;
  --accent-dark:   #D89A12;
  --accent-light:  #FFFBEB;
  --accent-subtle: #FDE68A;
  --accent-border: rgba(255, 200, 87, 0.34);

  /* ── Surface ── */
  --bg:           #F4F6F8;
  --surface:      #FAFAFA;
  --border:       #E2E8F0;
  --border-light: #F1F5F9;

  /* ── Text ── */
  --text:      #0F172A;
  --text-sec:  #475569;
  --text-muted:#94A3B8;

  /* ── Semantic ── */
  --success:        #047857;
  --success-bg:     #ECFDF5;
  --success-border: #6EE7B7;

  --warning:        #B45309;
  --warning-bg:     #FFFBEB;
  --warning-border: #FCD34D;

  --info:        #0369A1;
  --info-bg:     #F0F9FF;
  --info-border: #7DD3FC;

  /* ── Radii ── */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-pill:9999px;

  /* ── Shadows ── */
  --shadow-xs:      0 1px 2px rgba(15,23,42,0.05);
  --shadow-sm:      0 1px 3px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:      0 4px 16px rgba(15,23,42,0.09), 0 2px 4px rgba(15,23,42,0.05);
  --shadow-lg:      0 8px 32px rgba(15,23,42,0.11), 0 4px 8px rgba(15,23,42,0.06);
  --shadow-primary: 0 4px 20px rgba(20, 33, 61, 0.22);
  --shadow-accent:  0 4px 20px rgba(255, 200, 87, 0.32);

  /* ── Motion ── */
  --ease: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

::selection {
  background: var(--primary-subtle);
  color: var(--primary-deeper);
}

body {
  font-family: "Tajawal", system-ui, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 184, 169, 0.08), transparent 26%),
    linear-gradient(180deg, #FAFAFA 0%, var(--bg) 32%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
main { flex: 1; }

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dark); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar-dami {
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0;
  height: 72px;
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: 0 10px 34px rgba(20, 33, 61, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-dami .container,
.navbar-dami .navbar-collapse,
.navbar-dami .navbar-nav {
  align-items: center;
}

.navbar-dami .container { height: 72px; }

.navbar-dami .navbar-brand {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.32rem;
  padding: 0;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(20, 33, 61, 0.16);
  flex-shrink: 0;
  transition: var(--ease);
}

.navbar-brand:hover .logo-icon {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(20, 33, 61, 0.2);
}

.brand-wordmark {
  letter-spacing: -0.7px;
  font-weight: 800;
}

.navbar-dami .nav-link {
  color: var(--text-sec) !important;
  font-weight: 600;
  font-size: 0.88rem;
  height: 72px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.85rem !important;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: var(--ease);
  white-space: nowrap;
  position: relative;
}

.navbar-dami .nav-link:hover {
  color: var(--primary) !important;
  background: none;
}

.navbar-dami .nav-link.active {
  color: var(--primary) !important;
  font-weight: 700;
  background: none;
  border-bottom-color: var(--teal);
}

.navbar-dami .nav-link.active::after {
  content: '';
  position: absolute;
  inset-inline: 35%;
  bottom: -2px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--teal);
}

.navbar-dami .user-greeting {
  color: var(--text-muted) !important;
  font-size: 0.83rem;
  cursor: default;
}

.navbar-dami .btn-outline-light {
  border: 1px solid rgba(20, 33, 61, 0.14);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.38rem 1.1rem;
  border-radius: var(--radius-pill);
  color: var(--primary) !important;
  background: rgba(255, 255, 255, 0.04);
  transition: var(--ease);
}
.navbar-dami .btn-outline-light:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
}

.navbar-dami .navbar-toggler {
  border: 1px solid rgba(20, 33, 61, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.55rem;
}
.navbar-dami .navbar-toggler:focus { box-shadow: none; }
.navbar-dami .navbar-toggler-icon { filter: none; }

/* ── Urgent alert bar ───────────────────────────────────────────── */
.alert-urgent-bar {
  background: linear-gradient(90deg, #7F1D1D 0%, #B91C1C 55%, #991B1B 100%);
  color: #fff;
  text-align: center;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(185, 28, 28, 0.35);
}

.alert-urgent-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 100%);
  animation: bar-shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bar-shimmer {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.alert-urgent-bar .urgent-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.alert-urgent-bar a {
  color: #FCA5A5 !important;
  font-weight: 700;
  text-underline-offset: 3px;
}
.alert-urgent-bar a:hover { color: #fff !important; }

.alert-urgent-bar .urgent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FCA5A5;
  box-shadow: 0 0 0 0 rgba(252, 165, 165, 0.7);
  animation: urgent-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes urgent-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(252, 165, 165, 0.70); }
  60%  { box-shadow: 0 0 0 8px rgba(252, 165, 165, 0); }
  100% { box-shadow: 0 0 0 0   rgba(252, 165, 165, 0); }
}

/* ── Quran callout ──────────────────────────────────────────────── */
.callout-box {
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 184, 169, 0.14), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(255, 200, 87, 0.18), transparent 26%),
    linear-gradient(135deg, #FAFAFA 0%, #F0FDFA 48%, #EFF6FF 100%);
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 24px;
  padding: 2.2rem 3rem;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(20, 33, 61, 0.08);
  isolation: isolate;
}

.callout-box::before {
  content: '﴿';
  position: absolute;
  inset-inline-start: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 7.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  opacity: 0.055;
  background: none;
  pointer-events: none;
  user-select: none;
}

.callout-box::after {
  content: '﴾';
  position: absolute;
  inset-inline-end: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 7.5rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
}

.callout-box > * {
  position: relative;
  z-index: 1;
}

.callout-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border: 1px solid rgba(0, 184, 169, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.callout-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 4px rgba(0, 184, 169, 0.12);
}

.callout-verse {
  font-size: clamp(1.15rem, 1.1vw + 0.95rem, 1.55rem);
  font-weight: 800;
  color: var(--text);
  line-height: 2.05;
  margin: 0 auto 0.85rem;
  max-width: 760px;
  letter-spacing: -0.25px;
  text-wrap: balance;
}

.callout-ref {
  font-size: 0.78rem;
  color: var(--teal-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.callout-ref::before,
.callout-ref::after {
  content: '';
  display: inline-block;
  width: 42px;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--teal), transparent);
  opacity: 0.5;
}

/* ── Forms ──────────────────────────────────────────────────────── */
.form-label, label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-sec);
  margin-bottom: 0.35rem;
}

.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.95rem;
  font-size: 0.925rem;
  background: #FAFBFC;
  color: var(--text);
  transition: var(--ease);
  font-family: "Tajawal", system-ui, sans-serif;
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}
.form-control:focus, .form-select:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--primary);
  border: none;
  font-weight: 700;
  font-size: 0.925rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  color: #fff;
  transition: var(--ease);
  font-family: "Tajawal", system-ui, sans-serif;
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-primary);
  color: #fff;
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-xs); }

.btn-success {
  background: var(--success);
  border: none;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  color: #fff;
  transition: var(--ease);
  font-family: "Tajawal", system-ui, sans-serif;
}
.btn-success:hover { background: #065F46; color: #fff; }

.btn-outline-secondary {
  border: 1.5px solid var(--border);
  color: var(--text-sec);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: var(--ease);
  font-family: "Tajawal", system-ui, sans-serif;
}
.btn-outline-secondary:hover {
  border-color: #CBD5E1;
  background: var(--bg);
  color: var(--text);
}

/* ── Auth card ──────────────────────────────────────────────────── */
.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
}
.auth-card h2 { font-weight: 800; color: var(--text); font-size: 1.5rem; }
.auth-card hr { margin: 1.5rem 0; border-color: var(--border); opacity: 1; }

/* ── Dashboard header ───────────────────────────────────────────── */
.dashboard-header {
  background: linear-gradient(135deg, #fff 0%, #EFF6FF 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.dashboard-header::after {
  content: '';
  position: absolute;
  inset-inline-start: 1.5rem;
  top: 1.25rem;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(0, 184, 169, 0.08);
  pointer-events: none;
}

.dashboard-header > * {
  position: relative;
  z-index: 1;
}
.dashboard-header h1 {
  font-weight: 800;
  color: var(--text);
  font-size: 1.65rem;
  margin-bottom: 0.2rem;
}

/* ── Section title ──────────────────────────────────────────────── */
.section-title {
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 2rem 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--teal);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

/* ── Stat cards ─────────────────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  border-radius: 2px 0 0 2px;
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.stat-card h4 {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 0.25rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-success::before { background: var(--success); }
.stat-success .stat-icon { background: var(--success-bg); color: var(--success); }

.stat-warning::before { background: var(--teal); }
.stat-warning .stat-icon { background: var(--teal-light); color: var(--teal); }

.stat-urgent::before { background: #DC2626; }
.stat-urgent .stat-icon { background: #FEF2F2; color: #DC2626; }

/* ── Alert banners ──────────────────────────────────────────────── */
.going-commitment-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--teal-light);
  border: 1px solid var(--teal-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.going-commitment-alert .going-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 2px;
}
.going-commitment-alert strong { display: block; font-size: 0.925rem; margin-bottom: 0.15rem; color: var(--text); }
.going-commitment-alert p { margin: 0; font-size: 0.85rem; color: var(--text-sec); }

.cooldown-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--teal-light);
  border: 1px solid var(--teal-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-sec);
}
.cooldown-notice .cooldown-icon { font-size: 1.5rem; color: var(--teal); flex-shrink: 0; }
.cooldown-notice p { margin: 0; }

/* ── Request grid & cards ───────────────────────────────────────── */
.requests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 1.1rem;
}

.request-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-right: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--ease);
  box-shadow: var(--shadow-xs);
  position: relative;
}
.request-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-top-color: var(--primary-subtle);
}

/* Blood type card border colours */
.request-card.blood-a-plus,
.request-card.blood-a,
.request-card.blood-a-minus,
.request-card.blood-b-plus,
.request-card.blood-b-minus,
.request-card.blood-o-plus,
.request-card.blood-o-minus,
.request-card.blood-ab-plus,
.request-card.blood-ab-minus { border-right-color: var(--teal); }

/* ── Card header row ────────────────────────────────────────────── */
.rc-header { display: flex; align-items: center; gap: 0.8rem; }

.rc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 36px;
  padding: 0 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--primary);
  flex-shrink: 0;
  letter-spacing: -0.3px;
}

/* Blood type badge colours */
.rc-badge.blood-a-plus,
.rc-badge.blood-a,
.rc-badge.blood-a-minus,
.rc-badge.blood-b-plus,
.rc-badge.blood-b-minus,
.rc-badge.blood-o-plus,
.rc-badge.blood-o-minus,
.rc-badge.blood-ab-plus,
.rc-badge.blood-ab-minus { background: var(--primary); }

.rc-title h3 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.1rem;
  line-height: 1.3;
  letter-spacing: -0.1px;
}
.rc-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.25rem; }
.rc-address { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }

/* ── Progress bar ───────────────────────────────────────────────── */
.rc-progress {
  height: 5px;
  background: var(--bg);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.rc-fill {
  height: 100%;
  background: linear-gradient(to left, var(--teal), var(--teal-dark));
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rc-bags { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.rc-remaining { color: var(--teal); font-weight: 700; }

/* ── Blood type badge (tables) ──────────────────────────────────── */
.blood-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 0 0.35rem;
  border-radius: var(--radius-xs);
  font-weight: 800;
  font-size: 0.76rem;
  color: #fff;
  background: var(--primary);
}
.blood-type-badge.blood-a-plus,
.blood-type-badge.blood-a,
.blood-type-badge.blood-a-minus,
.blood-type-badge.blood-b-plus,
.blood-type-badge.blood-b-minus,
.blood-type-badge.blood-o-plus,
.blood-type-badge.blood-o-minus,
.blood-type-badge.blood-ab-plus,
.blood-type-badge.blood-ab-minus { background: var(--primary); }

/* ── Donate buttons ─────────────────────────────────────────────── */
.btn-commit {
  width: 100%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  border: none;
  padding: 0.72rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--ease);
  font-family: "Tajawal", system-ui, sans-serif;
  letter-spacing: 0.1px;
  box-shadow: 0 2px 10px rgba(0, 184, 169, 0.28);
}
.btn-commit:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--teal-dark) 0%, #066B65 100%);
  box-shadow: 0 4px 18px rgba(0, 184, 169, 0.40);
  transform: translateY(-1px);
}
.btn-commit:active:not(:disabled) { transform: translateY(0); box-shadow: none; }

.btn-committed,
.btn-commit:disabled {
  background: var(--success-bg) !important;
  color: var(--success) !important;
  border: 1.5px solid var(--success-border) !important;
  box-shadow: none !important;
  cursor: default;
  font-weight: 700;
}

.btn-completed {
  background: var(--teal-light) !important;
  color: var(--teal) !important;
  border: 1.5px solid var(--teal-subtle) !important;
  box-shadow: none !important;
  cursor: default;
  font-size: 0.85rem;
  white-space: normal;
  line-height: 1.4;
}

.btn-blocked {
  background: var(--bg) !important;
  color: var(--text-muted) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  font-size: 0.87rem;
}

/* ── Tables ─────────────────────────────────────────────────────── */
.table-responsive {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}
.table { margin-bottom: 0; font-size: 0.88rem; }
.table th {
  background: #F8FAFC;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.1rem;
}
.table td {
  padding: 0.85rem 1.1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-sec);
}
.table tr:last-child td { border-bottom: none; }
.table-hover tbody tr:hover { background: #F0F9FF; }

/* ── Badges ─────────────────────────────────────────────────────── */
.badge {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2px;
}
.badge.bg-danger {
  background: #FEF2F2 !important;
  color: #DC2626 !important;
  border: 1px solid #FECACA;
}
.badge.bg-success {
  background: var(--success-bg) !important;
  color: var(--success) !important;
  border: 1px solid var(--success-border);
}
.badge.bg-warning {
  background: var(--teal-light) !important;
  color: var(--teal-dark) !important;
  border: 1px solid var(--teal-subtle);
}
.badge.bg-secondary {
  background: var(--bg) !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--border);
}

/* ── Empty state ────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border);
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 2.75rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state p { font-size: 0.95rem; font-weight: 500; margin: 0; }

/* ── Toast ──────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast-success { background: var(--success); }
.toast-error   { background: #B91C1C; }
.toast-warning { background: var(--teal-dark); }
.toast-info    { background: var(--primary); }

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Delete button ──────────────────────────────────────────────── */
.btn-delete-custom {
  background: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.8rem;
  font-weight: 600;
  font-family: "Tajawal", system-ui, sans-serif;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: var(--ease);
}
.btn-delete-custom:hover {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

/* ── Alert colours ──────────────────────────────────────────────── */
.alert-info {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info);
  border-radius: var(--radius-md);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-top: 3.5rem;
}
.site-footer p { margin: 0; font-size: 0.83rem; color: var(--text-muted); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
  .dashboard-header h1 { font-size: 1.45rem; }
}

@media (max-width: 768px) {

  .navbar-dami { height: auto; min-height: 56px; }
  .navbar-dami .container { height: auto; padding-top: 0.5rem; padding-bottom: 0.5rem; flex-wrap: wrap; }
  .navbar-dami .navbar-brand { height: 44px; font-size: 1.15rem; }
  .navbar-dami .navbar-collapse {
    height: auto;
    background: var(--primary-deeper);
    margin-top: 0.5rem;
    border-radius: var(--radius-md);
    padding: 0.6rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  .navbar-dami .navbar-nav { height: auto; flex-direction: column; align-items: stretch; }
  .navbar-dami .nav-link {
    height: auto;
    display: block;
    padding: 0.6rem 1rem !important;
    border-bottom: none;
    border-radius: var(--radius-sm);
    margin: 0.1rem 0;
  }
  .navbar-dami .nav-link.active {
    border-bottom: none;
    border-right: none;
    color: var(--primary) !important;
    padding-right: 1rem !important;
    background: var(--teal-light);
  }
  .navbar-dami .navbar-nav + .navbar-nav {
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: 0.35rem;
    padding-top: 0.35rem;
  }
  .navbar-dami .nav-item.d-flex { display: block !important; margin: 0.3rem 0 0 !important; }
  .navbar-dami .btn-outline-light { width: 100%; text-align: center; display: block; }
  .navbar-dami .user-greeting { font-size: 0.8rem; text-align: center; padding: 0.5rem 1rem !important; }

  .callout-box { padding: 1.55rem 1.25rem; margin-bottom: 1.5rem; border-radius: var(--radius-lg); }
  .callout-box::before,
  .callout-box::after { font-size: 4.8rem; opacity: 0.04; }
  .callout-box::before { inset-inline-start: 0.35rem; }
  .callout-box::after { inset-inline-end: 0.35rem; }
  .callout-kicker { font-size: 0.66rem; margin-bottom: 0.65rem; padding: 0.28rem 0.65rem; }
  .callout-verse { font-size: 1rem; line-height: 1.9; }
  .callout-ref::before, .callout-ref::after { width: 20px; }
  .dashboard-header { padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
  .dashboard-header h1 { font-size: 1.25rem; }

  .stat-card { padding: 1rem 1.1rem; }
  .stat-icon { width: 44px; height: 44px; font-size: 1.15rem; }
  .stat-value { font-size: 1.5rem; }
  .stat-card h4 { font-size: 0.7rem; }

  .section-title { font-size: 1rem; margin: 1.5rem 0 0.9rem; }

  .requests-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .request-card { padding: 1rem; }
  .rc-title h3 { font-size: 0.92rem; }
  .btn-commit { padding: 0.62rem; font-size: 0.87rem; }

  .table-responsive { border-radius: var(--radius-md); }
  .table { min-width: 540px; }
  .table th { font-size: 0.7rem; padding: 0.7rem 0.8rem; }
  .table td { font-size: 0.8rem; padding: 0.7rem 0.8rem; white-space: nowrap; }
  .blood-type-badge { min-width: 26px; height: 20px; font-size: 0.62rem; }
  .badge { padding: 0.22rem 0.5rem; font-size: 0.67rem; }

  .auth-card { padding: 1.5rem; border-radius: var(--radius-lg); }
  .auth-card h2 { font-size: 1.25rem; }
  .form-control, .form-select { padding: 0.52rem 0.85rem; font-size: 0.9rem; }
  .btn-primary, .btn-outline-secondary { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
  .btn-delete-custom { padding: 0.28rem 0.65rem; font-size: 0.75rem; }

  .empty-state { padding: 2.25rem 1.25rem; }
  .site-footer { margin-top: 2.5rem; }
  .toast { padding: 0.7rem 1.25rem; font-size: 0.85rem; max-width: 92vw; }
  .going-commitment-alert, .cooldown-notice { padding: 0.8rem 1rem; }
}

@media (max-width: 480px) {
  .navbar-dami .navbar-brand { font-size: 1.1rem; }
  .dashboard-header h1 { font-size: 1.1rem; }
  .stat-value { font-size: 1.3rem; }
  .request-card { padding: 0.9rem; }
  .rc-title h3 { font-size: 0.88rem; }
  .rc-badge { min-width: 42px; height: 32px; font-size: 0.84rem; }
  .table th { font-size: 0.65rem; padding: 0.55rem 0.6rem; }
  .table td { font-size: 0.75rem; padding: 0.55rem 0.6rem; }
  .auth-card { padding: 1.2rem; }
  .callout-box { padding: 1.35rem 0.95rem; }
  .callout-verse { font-size: 0.94rem; line-height: 1.85; }
  .callout-box::before,
  .callout-box::after { font-size: 3.8rem; }
  .callout-ref::before, .callout-ref::after { width: 14px; }
  .section-title { font-size: 0.95rem; }
  .empty-state { padding: 2rem 1rem; }
  .toast { max-width: 95vw; }
}
