.hero-dedication {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border-radius: calc(var(--radius-lg) + 0.15rem);
  background:
    linear-gradient(145deg, rgba(15, 107, 76, 0.95), rgba(21, 128, 93, 0.88)),
    radial-gradient(circle at top right, rgba(196, 163, 90, 0.35), transparent 45%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.hero-dedication::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 180px;
  height: 180px;
  border: 18px solid rgba(243, 231, 199, 0.12);
  border-radius: 30%;
  transform: rotate(25deg);
}

.hero-dedication .photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-soft);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.hero-dedication h1 {
  color: #fff;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  margin: 0.35rem 0 0.15rem;
}

.hero-dedication .en-sub {
  font-family: var(--font-en);
  opacity: 0.9;
  font-size: 0.92rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.quick-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 88px;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 107, 76, 0.08);
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-tile:active {
  transform: scale(0.98);
}

.quick-tile strong {
  color: var(--emerald-deep);
  font-size: 0.98rem;
}

.quick-tile span {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-family: var(--font-en);
}

.countdown-box {
  padding: 1rem 1.1rem;
}

.countdown-number {
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 800;
  color: var(--emerald-deep);
  line-height: 1;
}

.state-panel {
  text-align: center;
  padding: 2rem 1rem;
}

.state-panel .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.25rem 0 0.75rem;
}

.section-title h2 {
  margin: 0;
  font-size: 1.1rem;
}

.section-title .en {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.more-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--touch);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(15, 107, 76, 0.08);
  color: var(--ink);
}

.more-list a:last-child {
  border-bottom: 0;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(196, 163, 90, 0.22), transparent 40%),
    linear-gradient(165deg, #0f6b4c, #146d52 55%, #0b4d38);
  color: #fff;
  text-align: center;
}

.splash-screen.hide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.splash-screen img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-soft);
  margin-bottom: 1rem;
}

.splash-screen h1 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.font-controls {
  display: inline-flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.2rem;
  border: 1px solid rgba(15, 107, 76, 0.1);
}

.font-controls button {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--emerald-deep);
  font-weight: 700;
}

.font-controls button.active {
  background: var(--emerald-deep);
  color: #fff;
}

body.font-large { font-size: 112.5%; }
body.font-xlarge { font-size: 125%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.auth-chip {
  min-height: 36px !important;
  padding: 0.25rem 0.8rem !important;
  font-size: 0.85rem;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-card {
  max-width: 440px;
  margin: 0.5rem auto 1rem;
}

.auth-input {
  min-height: var(--touch);
  border-radius: 0.9rem;
  border-color: rgba(15, 107, 76, 0.18);
}

.auth-error {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
}

.auth-hint {
  background: var(--gold-light);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  color: #7a5b18;
}

.profile-form .form-control {
  min-height: var(--touch);
  border-radius: 0.9rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.admin-tile {
  text-align: left;
  border: 1px solid rgba(15, 107, 76, 0.1);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--ink);
}

.admin-tile strong {
  color: var(--emerald-deep);
}

.admin-tile span:last-child {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-family: var(--font-en);
}

.admin-tile-ico {
  font-size: 1.2rem;
}

.content-stack {
  display: grid;
  gap: 0.65rem;
}

.content-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 107, 76, 0.08);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.content-card strong {
  color: var(--emerald-deep);
}

.content-card span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.article-body p {
  margin-bottom: 0.75rem;
}

.stage-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.stage-chip {
  border: 1px solid rgba(15, 107, 76, 0.18);
  background: rgba(255, 255, 255, 0.85);
  color: var(--emerald-deep);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 40px;
}

.stage-chip.active {
  background: var(--emerald-deep);
  color: #fff;
  border-color: var(--emerald-deep);
}

.what-now-hero {
  background:
    linear-gradient(145deg, rgba(15, 107, 76, 0.06), rgba(196, 163, 90, 0.12)),
    rgba(255, 255, 255, 0.9);
}

.content-card.is-done {
  border-color: rgba(15, 107, 76, 0.35);
  background: rgba(216, 240, 229, 0.55);
}

.timeline {
  display: grid;
  gap: 0.85rem;
  position: relative;
  padding-left: 0.25rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--emerald-deep);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 6px 14px rgba(15, 107, 76, 0.25);
}

.timeline-body {
  margin: 0;
}

.tracker-progress .progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 107, 76, 0.12);
  overflow: hidden;
}

.tracker-progress .progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald-deep), #2f9e74);
  transition: width 0.25s ease;
}

.progress-pill {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-deep);
}

.tracker-list .form-control,
.tracker-list .form-select {
  max-width: 100%;
}

.bg-soft {
  background: rgba(15, 107, 76, 0.05);
}

.arabic-line,
.arabic-display {
  direction: rtl;
  font-family: "Noto Naskh Arabic", "Amiri", "Scheherazade New", serif;
  line-height: 1.8;
  color: var(--emerald-deep);
}

.arabic-display {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  text-align: center;
}

.arafah-mode #app-header,
.arafah-mode #bottom-nav {
  opacity: 0.35;
}

.arafah-page .arafah-stage {
  min-height: 42vh;
  background:
    linear-gradient(160deg, rgba(15, 107, 76, 0.08), rgba(196, 163, 90, 0.12)),
    rgba(255, 255, 255, 0.92);
}

.arafah-counter {
  font-weight: 700;
  color: var(--emerald-deep);
}

.arafah-countdown {
  font-size: 0.95rem;
  font-weight: 600;
}

.pdf-canvas-host {
  overflow: auto;
  max-width: 100%;
  background: rgba(15, 107, 76, 0.04);
  border-radius: 12px;
  padding: 0.5rem;
}

.pdf-canvas {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(15, 107, 76, 0.12);
}

.pdf-iframe {
  width: 100%;
  min-height: 70vh;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

.pdf-controls .form-control {
  display: inline-block;
}

.ntf-bell {
  position: relative;
}

.ntf-count {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 0.2rem;
}

.ntf-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(15, 107, 76, 0.12);
  color: var(--emerald-deep);
  white-space: nowrap;
}

.ntf-urgent {
  background: rgba(180, 35, 24, 0.12);
  color: #8f1d14;
}

.is-unread {
  border-color: rgba(15, 107, 76, 0.35);
  box-shadow: inset 3px 0 0 var(--emerald-deep);
}

.ntf-home-alert {
  border-color: rgba(180, 35, 24, 0.25);
  background: linear-gradient(145deg, rgba(180, 35, 24, 0.06), rgba(255, 255, 255, 0.92));
}

.ntf-dot {
  color: #b42318;
  font-weight: 700;
}

.offline-chip {
  display: inline-block;
  background: rgba(15, 107, 76, 0.12);
  color: var(--emerald-deep);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.offline-banner {
  cursor: pointer;
}

.wf-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(15, 107, 76, 0.12);
  color: var(--emerald-deep);
  white-space: nowrap;
}

.wf-draft { background: rgba(100, 100, 100, 0.12); color: #444; }
.wf-under_review { background: rgba(196, 163, 90, 0.25); color: #7a5b12; }
.wf-approved { background: rgba(15, 107, 76, 0.18); color: var(--emerald-deep); }
.wf-published { background: var(--emerald-deep); color: #fff; }
.wf-archived { background: rgba(0, 0, 0, 0.08); color: #666; }

@media print {
  .emergency-print-mode #app-header,
  .emergency-print-mode #bottom-nav,
  .emergency-print-mode #install-btn,
  .emergency-print-mode #offline-banner,
  .emergency-print-mode #toast-stack,
  .emergency-print-mode .btn-link {
    display: none !important;
  }
}

