:root {
  --red: #b4232c;
  --red-dark: #861b22;
  --teal: #0f766e;
  --ink: #1b2430;
  --muted: #667085;
  --paper: #fbfbf7;
  --panel: #ffffff;
  --line: #dedbd2;
  --amber: #b7791f;
  --danger: #9f1239;
  --shadow: 0 18px 45px rgb(27 36 48 / 10%);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.navigation-loader {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 140;
  height: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
  background: linear-gradient(90deg, rgb(180 35 44 / 10%), rgb(15 118 110 / 10%));
  overflow: hidden;
}

.navigation-loader::before {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 46%;
  min-width: 8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--red), var(--amber));
  box-shadow: 0 0 18px rgb(180 35 44 / 28%);
  animation: navigationLoaderSlide 1s ease-in-out infinite;
}

.navigation-loader.is-active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes navigationLoaderSlide {
  0% {
    transform: translateX(115vw);
  }
  100% {
    transform: translateX(-55vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .navigation-loader {
    transition: none;
  }

  .navigation-loader::before {
    animation: none;
    width: 100%;
    min-width: 100%;
  }
}

label,
fieldset,
.form-section,
.captcha-box {
  scroll-margin-top: 6.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

.inline-link {
  color: var(--red-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .18rem;
}

img {
  max-width: 100%;
  display: block;
}

svg,
canvas {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 4rem);
  background: rgb(251 251 247 / 94%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  color: var(--red-dark);
  white-space: nowrap;
}

.brand-mark,
.brand-logo {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
}

.brand-mark {
  color: #fff;
  background: var(--red);
}

.brand-logo {
  display: block;
  object-fit: contain;
  padding: .08rem;
  border: 1px solid var(--line);
  background: #fff;
}

.brand-logo-full {
  width: clamp(8.5rem, 16vw, 11rem);
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-image-logo {
  width: auto;
  height: clamp(3.4rem, 5vw, 4.35rem);
  max-width: 14rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-symbol-mark {
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
  padding: .1rem;
  border: 0;
  border-radius: .7rem;
  background: #fff;
  box-shadow: 0 8px 22px rgb(27 36 48 / 9%);
}

.brand-text {
  font-size: 1.34rem;
  font-weight: 900;
  color: var(--red-dark);
}

.top-nav,
.sub-nav,
.button-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.nav-menu {
  display: contents;
}

.mobile-menu-account,
.mobile-installed-only {
  display: none !important;
}

.top-nav .mobile-menu-toggle {
  display: none;
}

.top-nav a,
.top-nav button,
.link-button {
  font: inherit;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: .4rem .25rem;
}

.top-nav .nav-pill,
.link-button.nav-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 2.45rem;
  padding: .42rem .72rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 8px 22px rgb(27 36 48 / 7%);
  font-weight: 800;
}

.top-nav .mobile-menu-toggle.nav-pill {
  display: none;
}

.top-nav .nav-pill:hover,
.link-button.nav-pill:hover {
  color: var(--red-dark);
  border-color: #f2b8be;
  background: #fff8f8;
}

.top-nav .nav-pill.is-active,
.link-button.nav-pill.is-active,
.footer-pill.is-active {
  color: var(--red-dark);
  border-color: rgba(180, 35, 44, .45);
  background:
    linear-gradient(135deg, rgba(255, 248, 248, .98), rgba(255, 255, 255, .98));
  box-shadow:
    0 0 0 3px rgba(180, 35, 44, .09),
    0 12px 26px rgb(27 36 48 / 10%);
}

.top-nav .nav-pill.is-active .nav-icon,
.footer-pill.is-active .nav-icon {
  color: var(--red-dark);
}

.install-app-button {
  color: #134e4a;
  border-color: #bde8dc;
  background: #eefaf7;
}

.install-app-button .nav-icon {
  color: var(--teal);
}

.install-app-button.can-install {
  color: var(--red-dark);
  border-color: #f2b8be;
  background: #fff8f8;
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 1.38rem;
  height: 1.38rem;
  flex: 0 0 auto;
  color: var(--red);
}

.nav-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button .nav-icon {
  color: currentColor;
}

.primary-pill,
.top-nav .primary-pill {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.primary-pill .nav-icon,
.top-nav .primary-pill .nav-icon {
  color: #fff;
}

.top-nav .primary-pill:hover {
  color: #fff;
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.admin-pill .nav-icon {
  color: var(--teal);
}

.locale-pill {
  color: var(--teal);
}

.locale-link,
.nav-count {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .2rem .55rem;
}

.site-main {
  min-height: 72vh;
}

.hero {
  position: relative;
  min-height: min(76vh, 760px);
  display: grid;
  align-items: start;
  padding: clamp(1rem, 2.5vw, 1.75rem) clamp(1rem, 6vw, 5rem) clamp(2.5rem, 7vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(251 251 247 / 98%), rgb(251 251 247 / 78%) 42%, rgb(251 251 247 / 22%));
}

[dir="rtl"] .hero::after {
  background: linear-gradient(90deg, rgb(251 251 247 / 98%), rgb(251 251 247 / 78%) 42%, rgb(251 251 247 / 22%));
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  max-width: 48rem;
}

[dir="rtl"] .hero-copy {
  margin-inline-start: auto;
}

.eyebrow {
  font-weight: 800;
  color: var(--teal);
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 .65rem;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 4.4rem);
}

h2 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1rem;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: .65rem 1rem;
  border: 1px solid var(--red);
  border-radius: .5rem;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  color: #fff;
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button.secondary {
  background: var(--teal);
  border-color: var(--teal);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.danger {
  background: var(--danger);
  border-color: var(--danger);
}

.button.ghost.danger {
  color: #fff;
}

.button.small,
.icon-button {
  min-height: 2.15rem;
  padding: .42rem .7rem;
  font-size: .92rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 2.15rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.search-band,
.page-title,
.home-stats,
.content-grid,
.split-panel,
.metric-grid,
.cards-grid,
.narrow-panel,
.sub-nav,
.table-wrap,
.flash-stack {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.search-band {
  margin-top: 1.3rem;
  padding: 1rem 0;
}

.section-heading,
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-title {
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, #fff, #fff8f0);
  border: 1px solid var(--line);
  border-radius: .75rem;
  box-shadow: 0 16px 34px rgb(27 36 48 / 7%);
}

.page-title h1,
.section-heading h2,
.auth-panel h1 {
  margin: 0;
  color: var(--red-dark);
  line-height: 1.25;
}

.page-title p,
.section-heading p {
  max-width: 760px;
  margin: .35rem 0 0;
  color: var(--muted);
}

.section-heading.compact {
  margin-top: .4rem;
}

.filter-grid,
.two-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  align-items: end;
}

.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: .3rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  padding: .55rem .7rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(15 118 110 / 30%);
  outline-offset: 2px;
}

.content-grid,
.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1.5rem;
}

.content-grid > *,
.split-panel > * {
  min-width: 0;
}

.content-grid.home-wide-latest {
  grid-template-columns: minmax(0, 1fr);
}

.content-grid.home-wide-latest > aside {
  display: none;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.cards-grid.public-list-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.entity-card,
.mini-row,
.metric-grid article,
.narrow-panel,
.ad-slot {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .5rem;
  box-shadow: var(--shadow);
}

.entity-card {
  padding: 1rem;
  min-width: 0;
}

.member-inline {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  max-width: 100%;
  vertical-align: middle;
}

.member-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.avatar-sm {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgb(27 36 48 / 12%);
}

.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--teal));
  font-weight: 900;
}

.avatar-preview {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 12px 30px rgb(27 36 48 / 14%);
}

.profile-avatar-delete {
  margin-top: -.25rem;
}

.avatar-upload-error {
  color: #b4232c;
  font-weight: 700;
}

.verified-badge {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  color: #1570ef;
  cursor: help;
}

.verified-badge svg {
  width: 100%;
  height: 100%;
}

.verified-badge:hover::after,
.verified-badge:focus-visible::after {
  content: attr(aria-label);
  position: absolute;
  inset-inline-start: 50%;
  bottom: calc(100% + .35rem);
  transform: translateX(-50%);
  z-index: 5;
  white-space: nowrap;
  padding: .22rem .45rem;
  border-radius: .35rem;
  color: #fff;
  background: var(--ink);
  font-size: .75rem;
  font-weight: 800;
}

.entity-head {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: center;
  margin-bottom: .75rem;
}

.donor-card-layout {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
}

[dir="ltr"] .donor-card-layout {
  grid-template-columns: minmax(0, 1fr) 5.75rem;
}

[dir="ltr"] .donor-photo-wrap {
  order: 2;
}

.donor-photo {
  width: 5.75rem;
  height: 5.75rem;
  border-radius: .7rem;
  object-fit: cover;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: 0 14px 28px rgb(27 36 48 / 13%);
}

.donor-photo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--teal));
  font-size: 2rem;
  font-weight: 900;
}

.donor-card-title {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: 0;
  min-width: 0;
  line-height: 1.35;
}

.donor-card-name {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.blood-chip,
.status-chip,
.urgency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  border-radius: 999px;
  padding: .15rem .65rem;
  font-weight: 800;
  font-size: .86rem;
}

.blood-chip {
  color: #fff;
  background: var(--red);
}

.status-chip {
  color: var(--teal);
  background: #dff5ef;
}

.urgency {
  color: var(--ink);
  background: #f8ead1;
}

.urgency.critical {
  color: #fff;
  background: var(--danger);
}

.urgency.urgent {
  color: #3d2500;
  background: #ffd89a;
}

.muted {
  color: var(--muted);
}

.empty-state,
.notice {
  border: 1px dashed var(--line);
  border-radius: .5rem;
  padding: 1rem;
  color: var(--muted);
  background: #fffefa;
}

.notice {
  border-style: solid;
  background: #eefaf7;
  color: #134e4a;
}

.stack {
  display: grid;
  gap: .9rem;
}

.latest-requests-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.latest-requests-strip {
  display: grid;
  gap: 1rem;
  align-items: end;
}

.latest-requests-compact .request-card {
  display: grid;
  align-content: start;
  gap: .65rem;
  padding: 1rem;
  min-height: 100%;
}

.latest-requests-compact .request-card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
}

.latest-requests-compact .request-card p {
  margin: 0;
  font-size: 1rem;
}

.latest-requests-compact .request-card .button-row {
  margin-top: .25rem;
}

.request-card h3,
.request-card p,
.request-message-full,
.request-title-text,
.article-title-text,
.article-card h2,
.article-excerpt,
.article-content {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.request-title-text,
.article-title-text {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.request-card-message {
  overflow: hidden;
  line-height: 1.55;
}

.request-card-more {
  display: inline;
  margin-inline-start: .3rem;
  color: var(--red-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: .16rem;
}

.request-message-full {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fffefa;
}

.request-message-full h2 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--red-dark);
}

.request-message-full p {
  margin-bottom: 0;
  white-space: pre-line;
  line-height: 1.8;
}

.latest-requests-compact .empty-state {
  grid-column: 1 / -1;
}

.content-grid aside .latest-requests-compact {
  grid-template-columns: 1fr;
}

.latest-requests-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.15rem;
}

.latest-requests-link {
  min-width: 11rem;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 .9rem 1.8rem rgba(180, 24, 38, .18);
}

@media (min-width: 1180px) {
  .content-grid > div .latest-requests-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 1.35rem;
  }

  .content-grid > div .latest-requests-footer {
    align-self: end;
    margin-top: 0;
    padding-bottom: .15rem;
  }
}

.narrow-panel {
  max-width: 760px;
  padding: 1.25rem;
  margin-top: 2rem;
}

.auth-panel {
  max-width: 620px;
  position: relative;
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: .28rem;
  margin-bottom: .75rem;
  border-radius: 999px;
  background: var(--red);
}

.auth-switch {
  display: flex;
  justify-content: center;
  gap: .45rem;
  margin: .25rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.setup-panel {
  max-width: 780px;
}

.setup-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.setup-head img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.setup-head p {
  margin: .35rem 0 0;
  color: var(--muted);
}

.notice.danger {
  border-color: rgb(180 35 44 / 25%);
  background: #fff5f5;
  color: var(--red-dark);
}

.auth-switch a {
  color: var(--red-dark);
  font-weight: 900;
}

.readable {
  font-size: 1.05rem;
}

.section-tools {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: .75rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 1.25rem auto 1rem;
}

.search-band > .section-tools {
  width: 100%;
  margin: 0 0 1rem;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem auto 1rem;
}

.home-stats article {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .35rem .85rem;
  min-height: 7rem;
  padding: 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 247, 247, .96)),
    #fff;
  border: 1px solid #ffd6d6;
  border-radius: .85rem;
  box-shadow: 0 1rem 2.5rem rgba(111, 18, 28, .09);
}

.home-stats article::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: .35rem;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
}

.home-stats strong {
  color: var(--red-dark);
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.home-stats span:last-child {
  color: var(--muted);
  font-weight: 800;
  grid-column: 2;
}

.stat-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: .8rem;
  box-shadow: 0 .6rem 1.2rem rgba(180, 24, 38, .22);
  grid-row: span 2;
}

.stat-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .85rem;
  margin-top: 1rem;
}

.metric-grid article {
  padding: 1rem;
}

.metric-grid strong {
  display: block;
  font-size: 2rem;
  color: var(--red-dark);
}

.sub-nav {
  margin-top: .5rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: .45rem;
}

.sub-nav a {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem .75rem;
  background: #fff;
}

.sub-nav a.is-active {
  color: var(--red-dark);
  background: #fff5f5;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 30, 45, .12);
}

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

th,
td {
  text-align: start;
  padding: .75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem;
}

.notification-list {
  display: grid;
  gap: .75rem;
}

.notification-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: .9rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 4px solid #d6a419;
  border-radius: .5rem;
  box-shadow: 0 10px 24px rgb(15 23 42 / 6%);
}

.notification-card.is-read {
  border-inline-start-color: var(--line);
  opacity: .82;
}

.notification-card strong,
.notification-card span {
  display: block;
}

.notification-card span {
  margin-top: .25rem;
  color: var(--muted);
}

.notification-card time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .86rem;
  white-space: nowrap;
}

.summary-details,
.compact-details {
  display: grid;
  gap: .65rem;
  margin: 0 0 1rem;
}

.summary-details div,
.compact-details div {
  display: grid;
  grid-template-columns: minmax(7rem, .7fr) minmax(0, 1.3fr);
  gap: .75rem;
  align-items: center;
  padding: .75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .5rem;
}

.summary-details dt,
.compact-details dt {
  color: var(--muted);
  font-weight: 700;
}

.summary-details dd,
.compact-details dd {
  margin: 0;
  font-weight: 800;
}

.review-note {
  padding: .75rem;
  background: #fff8e7;
  border: 1px solid #f2d394;
  border-radius: .5rem;
}

.request-report-row {
  margin-top: .75rem;
}

.conversation-shell {
  width: min(880px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
}

.conversation-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.conversation-card {
  display: grid;
  gap: .65rem;
}

.conversation-preview {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.conversation-notice {
  display: grid;
  gap: .25rem;
  margin-bottom: .9rem;
}

.message-thread {
  display: grid;
  gap: .75rem;
  margin-top: .9rem;
}

.message-bubble {
  width: min(82%, 680px);
  justify-self: start;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
}

.message-bubble.mine {
  justify-self: end;
  border-color: #f2b8be;
  background: #fff8f8;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .86rem;
}

.message-meta strong {
  color: var(--ink);
}

.message-meta time {
  direction: ltr;
}

.message-delete {
  width: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  margin-inline-start: auto;
  color: var(--danger);
}

.message-delete svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.message-body {
  margin: .45rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.reply-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
}

.link-button {
  min-height: auto;
}

.check-line,
.switch-line {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.check-line input,
.switch-line input {
  width: 1.15rem;
  min-height: 1.15rem;
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 150px 150px;
  gap: .65rem;
  align-items: center;
}

.form-section {
  display: grid;
  gap: .8rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
}

.form-section legend,
.contact-title {
  font-weight: 800;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem .9rem;
}

.hint-text {
  margin: -.2rem 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.whatsapp-extra[hidden] {
  display: none;
}

.contact-summary {
  display: grid;
  gap: .45rem;
  margin: .15rem 0 .75rem;
}

.contact-title {
  color: var(--muted);
  font-size: .84rem;
}

.contact-methods {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: .45rem;
}

.contact-icon svg,
.contact-logo {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.contact-logo {
  object-fit: contain;
  border-radius: 50%;
}

.contact-icon.whatsapp {
  color: #075e54;
  background: #e8fff3;
  border-color: #b6ebcf;
}

.contact-icon.phone {
  color: #134e4a;
  background: #eefaf7;
  border-color: #bde8dc;
}

.contact-icon.email {
  color: #8a1f28;
  background: #fff1f2;
  border-color: #fecdd3;
}

.contact-icon.site {
  color: #3d2500;
  background: #fff8e8;
  border-color: #f8d99b;
}

.contact-icon.is-disabled {
  cursor: not-allowed;
  opacity: .55;
}

.contact-social-panel {
  display: grid;
  gap: .75rem;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.contact-social-title {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgb(27 36 48 / 8%);
}

.social-link svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: currentColor;
}

.social-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.social-link.facebook {
  color: #1877f2;
  border-color: #c7ddff;
  background: #f3f8ff;
}

.social-link.facebook:hover {
  color: #fff;
  background: #1877f2;
  border-color: #1877f2;
}

.social-link.whatsapp {
  color: #128c7e;
  border-color: #bdebd7;
  background: #effdf6;
}

.social-link.whatsapp:hover {
  color: #fff;
  background: #128c7e;
  border-color: #128c7e;
}

.social-link.instagram {
  color: #d62976;
  border-color: #ffd0e3;
  background: #fff4f8;
}

.social-link.instagram:hover {
  color: #fff;
  background: #d62976;
  border-color: #d62976;
}

.social-link.telegram {
  color: #229ed9;
  border-color: #c3ecff;
  background: #f0faff;
}

.social-link.telegram:hover {
  color: #fff;
  background: #229ed9;
  border-color: #229ed9;
}

.captcha-box {
  display: grid;
  justify-items: center;
  gap: .6rem;
  min-height: 5rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
  overflow-x: auto;
}

.captcha-fallback {
  margin: 0;
  color: var(--danger);
  font-size: .92rem;
  text-align: center;
}

.required-star {
  color: var(--danger);
}

.articles-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.article-card {
  padding: 0;
  overflow: hidden;
}

.article-card-body {
  display: grid;
  gap: .55rem;
  padding: 1rem;
}

.article-card h2 {
  font-size: 1.15rem;
}

.article-card h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f4f1ea;
}

.article-meta {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .9rem;
}

.article-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.article-excerpt a {
  color: var(--red-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: .16rem;
}

.article-shell {
  width: min(880px, calc(100% - 2rem));
  margin: 2rem auto 0;
}

.article-hero {
  display: grid;
  gap: .85rem;
  margin-top: 1rem;
}

.article-cover-large {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: .5rem;
  box-shadow: var(--shadow);
}

.article-content {
  margin-top: 1.5rem;
  font-size: 1.06rem;
  line-height: 1.85;
}

.article-content h2,
.article-content h3 {
  margin-top: 1.4rem;
}

.article-content p,
.article-content li,
.article-content blockquote {
  max-width: 100%;
  white-space: normal;
}

.article-content a {
  color: var(--red-dark);
  text-decoration: underline;
  text-underline-offset: .18rem;
}

.article-content img {
  width: min(100%, 720px);
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: .5rem;
}

.article-content blockquote {
  margin: 1rem 0;
  padding: .8rem 1rem;
  border-inline-start: 4px solid var(--teal);
  background: #eefaf7;
  color: #134e4a;
}

.article-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.4rem 0;
}

.faq-page {
  width: min(980px, calc(100% - 2rem));
  padding: clamp(1.1rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgb(180 35 44 / 5%), rgb(15 118 110 / 6%)),
    var(--panel);
}

.faq-page > h1 {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  color: var(--red-dark);
}

.faq-page > h1::before {
  content: "?";
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--teal));
  box-shadow: 0 12px 26px rgb(180 35 44 / 20%);
  font-weight: 900;
}

.faq-page > p:first-of-type {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgb(15 118 110 / 16%);
  border-radius: .75rem;
  background: rgb(255 255 255 / 72%);
  color: var(--muted);
}

.faq-click-guide {
  margin: .35rem 0 1.35rem;
  padding: 1rem;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: .9rem;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 78%), rgb(15 118 110 / 5%)),
    var(--panel);
  box-shadow: 0 16px 36px rgb(15 23 42 / 7%);
}

.faq-guide-heading {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .85rem;
  color: var(--red-dark);
  font-weight: 900;
  font-size: 1.05rem;
}

.faq-guide-heading-icon,
.faq-guide-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.faq-guide-heading-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .65rem;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--teal));
  box-shadow: 0 10px 22px rgb(180 35 44 / 18%);
}

.faq-guide-heading-icon svg,
.faq-guide-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .75rem;
}

.faq-guide-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .35rem .65rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 10px 22px rgb(15 23 42 / 5%);
}

.faq-guide-icon {
  grid-row: span 2;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .75rem;
  color: var(--teal-dark);
  background: rgb(15 118 110 / 9%);
}

.faq-guide-card-title {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.35;
}

.faq-guide-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}

.faq-guide-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: .15rem .5rem;
  border: 1px solid rgb(180 35 44 / 12%);
  border-radius: 999px;
  background: rgb(180 35 44 / 6%);
  color: var(--red-dark);
  font-weight: 800;
}

.faq-guide-arrow {
  color: var(--teal-dark);
  font-weight: 900;
}

.faq-page h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgb(180 35 44 / 13%);
  border-radius: .8rem .8rem 0 0;
  background: linear-gradient(90deg, rgb(180 35 44 / 9%), rgb(15 118 110 / 7%));
  color: var(--red-dark);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.faq-page h2::before {
  content: "س";
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-inline-end: .55rem;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: .95rem;
}

[dir="ltr"] .faq-page h2::before {
  content: "Q";
}

.faq-page h2.has-faq-icon::before {
  display: none;
}

.faq-inline-icon,
.faq-contact-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.faq-inline-icon {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: .65rem;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--teal));
  box-shadow: 0 10px 22px rgb(180 35 44 / 18%);
}

.faq-inline-icon svg,
.faq-contact-icon svg {
  width: 1.18rem;
  height: 1.18rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-contact-icons {
  gap: .28rem;
}

.faq-page h2 .faq-site-icon,
.faq-page h2 .faq-verified-icon {
  cursor: default;
}

.faq-page h2 .contact-icon,
.faq-page h2 .saved-star {
  flex: 0 0 auto;
}

.faq-page h2 .nav-icon.faq-site-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.faq-page h2 .nav-icon.faq-site-icon svg {
  width: 1.28rem;
  height: 1.28rem;
}

.faq-contact-icon {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 18px rgb(15 23 42 / 12%);
}

.faq-contact-icon.whatsapp { background: #128c7e; }
.faq-contact-icon.phone { background: var(--red); }
.faq-contact-icon.email { background: #2563eb; }
.faq-contact-icon.site { background: var(--teal); }
.faq-contact-icon.save { background: #f59e0b; }
.faq-contact-icon.verified { background: #0ea5e9; }

.faq-page h2 + p,
.faq-page h2 + ul,
.faq-page p + ul {
  margin-top: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
}

.faq-page h2 + p,
.faq-page h2 + p + ul,
.faq-page h2 + ul {
  border-radius: 0 0 .8rem .8rem;
}

.faq-page ul {
  padding-inline-start: 2rem;
}

.faq-page li {
  margin: .35rem 0;
}

.faq-page strong {
  color: var(--red-dark);
}

.faq-page blockquote {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-inline-start: 5px solid var(--teal);
  border-radius: .75rem;
  background: rgb(15 118 110 / 8%);
  color: var(--ink);
  font-weight: 700;
}

.article-comments {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.comment-list,
.comment-form {
  display: grid;
  gap: .8rem;
}

.comment-item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.comment-head,
.table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

.comment-head {
  margin-bottom: .35rem;
}

.table-heading {
  padding: 1rem 1rem 0;
}

.guide-title p {
  max-width: 760px;
  color: var(--muted);
}

.guide-video {
  width: min(980px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
  border: 1px solid var(--line);
  border-radius: .5rem;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

.guide-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.guide-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.guide-card {
  min-height: 15rem;
  display: grid;
  align-content: start;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background:
    linear-gradient(135deg, rgb(180 35 44 / 8%), transparent 48%),
    #fff;
  box-shadow: var(--shadow);
}

.guide-visual {
  width: 4.6rem;
  height: 4.6rem;
  display: grid;
  place-items: center;
  border-radius: .5rem;
  color: var(--red-dark);
  background: #fff8f8;
  border: 1px solid #f2b8be;
}

.guide-visual svg {
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-card h2 {
  font-size: 1.16rem;
}

.guide-card p {
  color: var(--muted);
}

.article-editor-panel {
  max-width: 960px;
}

.rich-editor-field {
  gap: .65rem;
}

.editor-toolbar {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--line);
}

.editor-tool {
  width: 2.35rem;
  height: 2.35rem;
  color: var(--red-dark);
}

.editor-tool svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-glyph {
  font-weight: 900;
  font-size: .8rem;
}

.tool-glyph.strong {
  font-weight: 900;
}

.tool-glyph.italic {
  font-style: italic;
}

.tool-glyph.underline {
  text-decoration: underline;
}

.rich-editor {
  min-height: 18rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #fff;
  overflow-wrap: anywhere;
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.rich-editor:focus {
  outline: 3px solid rgb(15 118 110 / 30%);
  outline-offset: 2px;
}

.rich-output {
  display: none;
}

.rich-content {
  display: grid;
  gap: .9rem;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote {
  margin: 0;
}

.rich-content h2,
.rich-content h3 {
  margin-top: .65rem;
  color: var(--red-dark);
}

.rich-content ul,
.rich-content ol {
  padding-inline-start: 1.35rem;
}

.rich-content blockquote {
  padding: .8rem 1rem;
  border-inline-start: 4px solid var(--teal);
  border-radius: .45rem;
  background: #eefaf7;
  color: #134e4a;
}

.rich-content img {
  border-radius: .5rem;
  box-shadow: 0 12px 28px rgb(27 36 48 / 10%);
}

.rich-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  border: 0;
  border-radius: .65rem;
  box-shadow: 0 16px 36px rgb(27 36 48 / 12%);
}

.rich-content hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

.legal-page {
  max-width: 980px;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  box-shadow: 0 18px 42px rgb(27 36 48 / 8%);
}

.legal-page > h1 {
  margin-bottom: .25rem;
  color: var(--red-dark);
  font-size: clamp(1.85rem, 4vw, 2.7rem);
}

.legal-page > h1 + p,
.legal-page > h1 + blockquote + p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-page h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.legal-page h2::before {
  content: "";
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--teal));
  box-shadow: 0 0 0 .25rem rgb(180 35 44 / 10%);
}

.legal-page ul,
.legal-page ol {
  display: grid;
  gap: .55rem;
  padding: 0;
  list-style: none;
}

.legal-page li {
  position: relative;
  padding: .75rem 1rem .75rem 2.25rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
}

[dir="rtl"] .legal-page li {
  padding: .75rem 2.25rem .75rem 1rem;
}

.legal-page li::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: .9rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--teal);
}

[dir="rtl"] .legal-page li::before {
  right: .9rem;
  left: auto;
}

.legal-page blockquote {
  border-color: var(--red);
  background: #fff7f7;
  color: var(--red-dark);
  font-weight: 700;
}

.table-actions {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  align-items: center;
}

.status-chip.pending {
  color: #3d2500;
  background: #fff4d6;
}

.status-chip.accepted {
  color: #134e4a;
  background: #dff5ef;
}

.status-chip.expired,
.status-chip.blocked {
  color: #344054;
  background: #eef2f6;
}

.status-chip.published {
  color: #134e4a;
  background: #dff5ef;
}

.status-chip.rejected {
  color: var(--danger);
  background: #fff1f2;
}

.modal {
  width: min(520px, calc(100% - 2rem));
  border: 0;
  border-radius: .5rem;
  padding: 1.25rem;
}

.modal::backdrop {
  background: rgb(0 0 0 / 42%);
}

.install-modal {
  max-width: 440px;
}

.site-popup-overlay {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 1rem;
  pointer-events: none;
  background: linear-gradient(to top, rgb(15 23 42 / 18%), transparent);
}

.site-popup-card {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: .85rem;
  background:
    linear-gradient(135deg, #fff, #fff8f8 72%),
    #fff;
  box-shadow: 0 2rem 5rem rgb(15 23 42 / 28%);
  pointer-events: auto;
}

.site-popup-card h2 {
  color: var(--red-dark);
  padding-inline-end: 2.25rem;
}

.site-popup-card p {
  margin-bottom: 1.1rem;
  color: var(--ink);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.site-popup-close {
  position: absolute;
  inset-block-start: .75rem;
  inset-inline-end: .75rem;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--red-dark);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.site-popup-close:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.ad-slot {
  margin-top: 1rem;
  padding: .8rem;
  color: var(--muted);
  box-shadow: none;
}

.adsbygoogle {
  display: block;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0;
}

.tab-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: .55rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}

.tab-pill.active {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.request-age {
  font-size: .88rem;
}

.urgency.continuous {
  color: #155e75;
  background: #ecfeff;
  border-color: #a5f3fc;
}

.saved-star {
  color: var(--muted);
  text-decoration: none;
}

.saved-star.is-saved {
  color: #f59e0b;
  background: #fffbeb;
  border-color: #fde68a;
}

.share-site-button {
  color: #fff;
  border-color: #0f766e;
  background: #0f766e;
  box-shadow: 0 .65rem 1.2rem rgb(15 118 110 / 18%);
}

.share-site-button:hover {
  color: #fff;
  background: #115e59;
  border-color: #115e59;
}

.share-action-button {
  color: var(--red-dark);
  background: #fff7f7;
  border-color: #f4cccc;
}

.share-action-button svg {
  width: 1.12rem;
  height: 1.12rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-card-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(15 23 42 / 56%);
}

.share-card-modal {
  position: relative;
  width: min(430px, 100%);
  padding: 1rem;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 2rem 5rem rgb(15 23 42 / 30%);
}

.share-card-modal img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .5rem;
  border: 1px solid var(--line);
}

.share-card-link,
.share-options-url {
  direction: ltr;
  overflow-wrap: anywhere;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #f9fafb;
  color: var(--muted);
  font-size: .9rem;
}

.share-options-modal {
  position: relative;
  width: min(460px, 100%);
  padding: 1.2rem;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 2rem 5rem rgb(15 23 42 / 30%);
}

.share-options-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 1rem;
}

.share-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  cursor: pointer;
}

.share-option.whatsapp {
  color: #fff;
  border-color: #16a34a;
  background: #16a34a;
}

.share-option.facebook {
  color: #fff;
  border-color: #2563eb;
  background: #2563eb;
}

.share-option.telegram {
  color: #fff;
  border-color: #0284c7;
  background: #0284c7;
}

.share-option.native {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin: 1.5rem;
}

.pagination a {
  display: grid;
  place-items: center;
  min-width: 2.3rem;
  height: 2.3rem;
  padding-inline: .65rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #fff;
  white-space: nowrap;
}

.pagination a.active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.flash-stack {
  margin-top: 1rem;
}

.flash {
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: #eefaf7;
  border: 1px solid #bde8dc;
}

.flash.error {
  background: #fff1f2;
  border-color: #fecdd3;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}

.footer-brand .brand-logo {
  width: auto;
  height: clamp(3rem, 5vw, 3.7rem);
  max-width: 12.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.footer-brand strong {
  color: var(--red-dark);
}

.footer-social-links .social-links {
  gap: .4rem;
}

.footer-social-links .social-link {
  width: 2.25rem;
  height: 2.25rem;
  box-shadow: none;
}

.footer-social-links .social-link svg {
  width: 1.15rem;
  height: 1.15rem;
}

.footer-nav,
.site-footer nav {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 2.25rem;
  padding: .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 20px rgb(27 36 48 / 6%);
}

.footer-pill:hover {
  color: var(--red-dark);
  border-color: #f2b8be;
  background: #fff8f8;
}

.contact-cta {
  width: min(1180px, calc(100% - 2rem));
  margin: 2.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #bde8dc;
  border-radius: .5rem;
  background: #eefaf7;
  color: #134e4a;
  font-weight: 800;
}

.admin-settings-group textarea {
  min-height: 6rem;
}

@media (max-width: 960px) {
  .site-header {
    align-items: center;
  }

  .filter-grid,
  .content-grid,
  .split-panel,
  .cards-grid,
  .articles-grid,
  .guide-grid,
  .home-stats,
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 68vh;
  }

  .cards-grid.public-list-grid,
  .latest-requests-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(7.2rem, 1fr) auto;
    gap: .7rem;
    padding: .55rem .75rem;
  }

  .brand-image-logo {
    height: 3rem;
    max-width: 9.5rem;
  }

  .top-nav {
    position: relative;
    justify-content: flex-end;
    gap: .35rem;
  }

  .top-nav .mobile-quick-nav:not(.install-app-button):not(.installed-quick-nav) {
    width: 2.65rem;
    min-width: 2.65rem;
    height: 2.65rem;
    min-height: 2.65rem;
    padding: 0;
  }

  .top-nav .install-app-button.mobile-quick-nav,
  .top-nav .installed-quick-nav,
  .top-nav .mobile-menu-toggle {
    min-height: 2.65rem;
    padding: .45rem .58rem;
  }

  .top-nav .installed-quick-nav {
    display: none;
  }

  .app-installed .top-nav .installed-quick-nav,
  .app-installed .top-nav .mobile-installed-only {
    display: inline-flex !important;
  }

  .top-nav .mobile-quick-nav:not(.install-app-button):not(.installed-quick-nav) > span:not(.nav-icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .top-nav .mobile-quick-nav .nav-count {
    position: absolute;
    inset-block-start: -.35rem;
    inset-inline-end: -.35rem;
    min-width: 1.25rem;
    height: 1.25rem;
    display: inline-grid;
    place-items: center;
    padding: 0 .3rem;
    background: var(--red);
    color: #fff;
    border-color: #fff;
    font-size: .75rem;
  }

  .top-nav .mobile-menu-toggle.nav-pill {
    display: inline-flex;
  }

  .nav-menu .mobile-menu-account {
    display: inline-flex !important;
  }

  .app-installed .nav-menu .mobile-menu-account,
  .app-installed .nav-menu .auth-menu-link {
    display: none !important;
  }

  .nav-menu {
    position: fixed;
    inset-block-start: 4.25rem;
    inset-inline-end: .75rem;
    z-index: 30;
    display: none;
    width: min(19rem, calc(100vw - 1.5rem));
    padding: .65rem;
    border: 1px solid var(--line);
    border-radius: .6rem;
    background: rgb(255 255 255 / 98%);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: grid;
    gap: .45rem;
  }

  .nav-menu .nav-pill,
  .nav-menu .inline-form,
  .nav-menu .link-button.nav-pill {
    width: 100%;
  }

  .nav-menu .nav-pill,
  .nav-menu .link-button.nav-pill {
    justify-content: flex-start;
    min-height: 2.85rem;
    padding: .55rem .7rem;
  }

  .filter-grid,
  .two-cols,
    .contact-options,
    .content-grid,
    .split-panel,
    .cards-grid,
    .articles-grid,
    .guide-grid,
    .home-stats,
    .metric-grid,
    .schedule-row {
    grid-template-columns: 1fr;
  }

  .cards-grid.public-list-grid,
  .latest-requests-compact {
    grid-template-columns: 1fr;
  }

  .latest-requests-footer {
    justify-content: center;
  }

  .page-title,
  .section-heading,
  .mini-row,
  .notification-card,
  .contact-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .sub-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .sub-nav a {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .summary-details div,
  .compact-details div {
    grid-template-columns: 1fr;
    gap: .2rem;
  }

  .donor-card-layout,
  [dir="ltr"] .donor-card-layout {
    grid-template-columns: 4.75rem minmax(0, 1fr);
  }

  [dir="ltr"] .donor-photo-wrap {
    order: 0;
  }

  .donor-photo {
    width: 4.75rem;
    height: 4.75rem;
  }

  .message-bubble {
    width: 100%;
  }

  .hero {
    min-height: 62vh;
    align-items: start;
    padding-top: 1.15rem;
  }

  h1 {
    font-size: 2.2rem;
  }
}

.governorate-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(18rem, .8fr);
  gap: 1rem;
  align-items: stretch;
  margin-block: 1rem 1.25rem;
}

.governorate-hero-copy,
.governorate-stat-panel,
.info-panel,
.governorate-card,
.faq-card {
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #fff;
  box-shadow: 0 1rem 2.4rem rgb(15 23 42 / 6%);
}

.governorate-hero-copy {
  padding: clamp(1rem, 2.4vw, 1.7rem);
}

.governorate-hero-copy h1 {
  margin-block: .35rem .6rem;
}

.section-kicker {
  display: inline-flex;
  width: fit-content;
  padding: .25rem .55rem;
  border: 1px solid rgb(190 18 60 / 18%);
  border-radius: 999px;
  background: rgb(255 241 242);
  color: var(--red-dark);
  font-weight: 800;
  font-size: .85rem;
}

.section-kicker-link {
  text-decoration: none;
}

.section-kicker-link:hover {
  border-color: rgb(190 18 60 / 35%);
  background: rgb(255 228 230);
}

.governorate-stat-panel {
  display: grid;
  align-content: center;
  gap: .75rem;
  padding: 1rem;
}

.governorate-stat-panel > div,
.governorate-card-stats,
.blood-rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.governorate-stat-panel strong {
  color: var(--red-dark);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
}

.governorate-cta-row {
  margin-top: 1rem;
}

.governorate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: .85rem;
}

.governorate-card {
  padding: .95rem;
}

.governorate-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.governorate-card-name {
  font-size: 1.12rem;
}

.governorate-card-arrow {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: rgb(225 29 72 / 9%);
  color: var(--red-dark);
}

.governorate-card-stats {
  margin-top: .85rem;
  color: var(--muted);
  font-size: .92rem;
}

.governorate-insights {
  margin-block: 1rem;
}

.info-panel {
  padding: 1rem;
}

.info-panel h2,
.section-block h2 {
  margin-block: 0 .75rem;
}

.blood-rank-list {
  display: grid;
  gap: .55rem;
}

.blood-rank-item {
  min-height: 2.6rem;
  padding: .5rem .6rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--soft);
}

.section-block {
  margin-block: 1.25rem;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.city-link-grid,
.faq-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: .65rem;
}

.city-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.city-link:hover,
.governorate-card-link:hover {
  color: var(--red-dark);
}

.faq-card {
  padding: .95rem;
}

.faq-card h3 {
  margin-top: 0;
  font-size: 1rem;
}

.faq-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 760px) {
  .governorate-hero {
    grid-template-columns: 1fr;
  }

  .section-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .section-title-row .button {
    width: fit-content;
  }
}
