/* ============================================================
   chandkitarikh.today — Component Styles
   ============================================================ */

/* ── Navigation (Apple-Style Premium Glassmorphism) ────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(224, 224, 224, 0.7); /* Translucent glass */
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-base);
}

[data-theme="dark"] .site-nav {
  background: rgba(17, 18, 16, 0.7); /* Translucent dark glass */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-nav > .container {
  height: 100%;
}

.site-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav__logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #10B981 0%, #047857 100%); /* Vibrant emerald gradient */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px; /* Modern iOS-app rounded corner style */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-nav__logo:hover .site-nav__logo-mark {
  transform: rotate(-6deg) scale(1.08);
}

.site-nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-nav__logo-name {
  font-size: 16px; /* Enlarged for premium presence */
  font-weight: 800; /* Extra bold */
  color: #111827; /* Dark slate */
  letter-spacing: -0.02em;
}

[data-theme="dark"] .site-nav__logo-name {
  color: #FFFFFF;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600; /* Crisp semi-bold */
  color: #4B5563; /* Slate 600 */
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.site-nav__link:hover {
  color: #047857; /* Emerald hover */
  background: rgba(16, 185, 129, 0.08); /* Clean light green chip background */
}

.site-nav__link--active {
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  font-weight: 700;
}

[data-theme="dark"] .site-nav__link {
  color: #D1D5DB;
}

[data-theme="dark"] .site-nav__link:hover {
  color: #34D399;
  background: rgba(52, 211, 153, 0.08);
}

[data-theme="dark"] .site-nav__link--active {
  color: #34D399 !important;
  background: rgba(52, 211, 153, 0.12) !important;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher__toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.6); /* Translucent glass button */
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .lang-switcher__toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #D1D5DB;
}

.lang-switcher__toggle:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #111827;
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5px);
}

[data-theme="dark"] .lang-switcher__toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.15);
}

.lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 200;
  padding: var(--space-2);
}

.lang-switcher__dropdown.is-open {
  display: block;
}

.lang-switcher__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2.5) var(--space-3.5);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.lang-switcher__item:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.lang-switcher__item--active {
  color: var(--color-accent) !important;
  background: var(--color-accent-light) !important;
  font-weight: 600;
}

.lang-switcher__item span:first-child {
  font-size: 1.15em;
}

/* Dark Mode Toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-full);
  cursor: pointer;
  color: #4B5563;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #D1D5DB;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #111827;
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5px);
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.15);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text-muted);
}

/* Mobile nav hidden by default on all screens */
.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .site-nav__links { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-nav {
    display: none;
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--color-bg);
    z-index: 99;
    padding: var(--space-6);
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
  }
  .mobile-nav.is-open { display: block; }
  .mobile-nav__links { list-style: none; }
  .mobile-nav__link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    transition: all var(--transition-fast);
  }
  .mobile-nav__link:hover { color: var(--color-accent); background: var(--color-surface-2); }
  .mobile-nav__link svg { flex-shrink: 0; }
}

/* Mobile-first nav compaction. Without this, the full brand wordmark +
   language switcher + theme toggle + hamburger don't fit narrow screens:
   the logo text wraps to 2 lines inside the fixed-height sticky nav and
   spills over the surrounding sections ("elements coming together"). */
@media (max-width: 480px) {
  .site-nav .container { padding-inline: var(--space-3); }
  .site-nav__inner { gap: var(--space-2); }
  .site-nav__logo { gap: var(--space-2); min-width: 0; }
  .site-nav__logo-mark { width: 32px; height: 32px; border-radius: 8px; }
  .site-nav__logo-mark svg { width: 15px; height: 15px; }
  .site-nav__logo-text { min-width: 0; }
  .site-nav__logo-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40vw;
    display: block;
  }
  .site-nav__actions { gap: 6px; flex-shrink: 0; }
  .lang-switcher__toggle { padding: 6px 8px; gap: 4px; }
  .lang-switcher__code { display: none; } /* keep globe + chevron only, drop "EN" text */
  .theme-toggle,
  .mobile-menu-btn { width: 32px; height: 32px; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding-top: var(--space-6); /* Reduced from space-16 to pull eyebrow closer to navigation header */
  padding-bottom: var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(26,107,71,0.06) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(ellipse, rgba(46,204,135,0.05) 0%, transparent 70%);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.05;
  margin-bottom: var(--space-5);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  font-weight: 400;
  line-height: 1.6;
}

/* ── Date Card (Premium Scorecard Feature Layout) ───────────────── */
#today-date {
  padding-top: var(--space-2);
  padding-bottom: var(--space-8);
}

.date-hero-card {
  background: linear-gradient(135deg, #052e16 0%, #022c22 50%, #064e3b 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 20px 40px rgba(2, 44, 34, 0.2);
  max-width: 960px; /* Increased from 700px to dashboard size for dramatic visual presence */
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .date-hero-card {
  background: linear-gradient(135deg, #020f0a 0%, #021f17 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.date-hero-card::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* Starry header banner */
.date-hero-card__header {
  padding: var(--space-10) var(--space-8) var(--space-16) var(--space-8); /* Changed invalid space-14 to valid space-16 */
  text-align: center;
}

.date-hero-card__banner-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #FFFFFF;
  margin-bottom: var(--space-2);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.date-hero-card__banner-meta {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FFE5A3; /* High-contrast warm gold */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  text-align: center;
  display: block;
  max-width: none;     /* override global p max-width so it centres in full width */
  margin-inline: auto;
}
.date-hero-card__banner-title { max-width: none; margin-inline: auto; }

/* Floating Inner White Card */
.date-hero-card__body {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 10px 25px rgba(0, 0, 0, 0.05);
  margin: -45px var(--space-8) var(--space-8) var(--space-8); /* Expanded margins to support wider card container */
  padding: var(--space-12) var(--space-10); /* Expanded padding from space-10/space-8 to make the body spacious */
  position: relative;
  z-index: 2;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .date-hero-card__body {
  background: #1A1C19;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Scoreboard Row */
.scoreboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

@media (max-width: 580px) {
  .scoreboard-row {
    flex-direction: column;
    gap: var(--space-6);
  }
}

.scoreboard-col {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.scoreboard-col--left {
  flex: 1;
  text-align: left;
}

.scoreboard-col--right {
  flex: 1;
  flex-direction: row-reverse;
  text-align: right;
}

.scoreboard-col--center {
  flex-shrink: 0;
  flex-direction: column;
  gap: var(--space-1);
  padding-inline: var(--space-6);
  border-left: 1px solid #E5E7EB;
  border-right: 1px solid #E5E7EB;
}

[data-theme="dark"] .scoreboard-col--center {
  border-color: #2D312E;
}

@media (max-width: 580px) {
  .scoreboard-col--left,
  .scoreboard-col--right {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .scoreboard-col--right {
    flex-direction: row;
  }
  .scoreboard-col--center {
    border: none;
    padding-block: var(--space-3);
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    width: 100%;
  }
  [data-theme="dark"] .scoreboard-col--center {
    border-color: #2D312E;
  }

  /* Scale the whole scorecard down for mobile — desktop sizing (7rem digit,
     3rem/2.5rem padding) overwhelms narrow screens and leaves almost no
     room for the badge/text, which is what made this card look broken. */
  .date-hero-card__header {
    padding: var(--space-6) var(--space-5) var(--space-12) var(--space-5);
  }
  .date-hero-card__body {
    margin: -32px var(--space-4) var(--space-4) var(--space-4);
    padding: var(--space-6) var(--space-5);
  }
  .scoreboard-day-val { font-size: 4rem; }
  .scoreboard-badge { width: 44px; height: 44px; }
  .scoreboard-badge svg { width: 20px; height: 20px; }
  .scoreboard-title { font-size: 1.25rem; }
  .scoreboard-col { gap: var(--space-3); }
}

.scoreboard-badge {
  width: 58px; /* Scaled up circle from 48px */
  height: 58px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.scoreboard-badge svg {
  width: 26px; /* Scaled up badge icons */
  height: 26px;
}

.scoreboard-badge--green {
  background: #E8F5EE;
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .scoreboard-badge--green {
  background: rgba(16, 185, 129, 0.1);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.25);
}

.scoreboard-badge--gold {
  background: #FEF3C7;
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

[data-theme="dark"] .scoreboard-badge--gold {
  background: rgba(245, 158, 11, 0.1);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.25);
}

.scoreboard-info {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.scoreboard-label {
  font-size: 11px; /* Scaled up from 10px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4B5563; /* High contrast dark grey */
  margin-bottom: 4px;
}

[data-theme="dark"] .scoreboard-label {
  color: #9CA3AF;
}

.scoreboard-title {
  font-size: 1.65rem; /* Scaled up from var(--text-lg) to make month name massive and prominent */
  font-weight: 700;
  color: #111827; /* Dark slate */
  letter-spacing: -0.02em;
}

[data-theme="dark"] .scoreboard-title {
  color: #F9FAFB;
}

.scoreboard-sub {
  font-size: var(--text-sm); /* Scaled up from var(--text-xs) to make year/arabic visible */
  color: #374151; /* Dark grey for secondary detail */
  margin-top: 4px;
  font-weight: 500;
}

[data-theme="dark"] .scoreboard-sub {
  color: #D1D5DB;
}

/* Center score digits */
.scoreboard-day-val {
  font-size: 7rem; /* Scaled up from 5rem for huge scoreboard day presence */
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #059669; /* Rich emerald */
  font-feature-settings: "tnum";
}

[data-theme="dark"] .scoreboard-day-val {
  color: #34D399; /* Bright mint emerald */
}

.scoreboard-day-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4B5563;
}

[data-theme="dark"] .scoreboard-day-lbl {
  color: #9CA3AF;
}

.date-hero-card__divider {
  height: 1px;
  background: #E5E7EB;
  margin-block: var(--space-6);
}

[data-theme="dark"] .date-hero-card__divider {
  background: #2D312E;
}

/* Month Progress */
.month-progress {
  text-align: left;
}
.month-progress__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.month-progress__label {
  font-size: var(--text-sm);
  color: #1F2937; /* Darker Slate grey for high-end text look */
  font-weight: 600;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .month-progress__label {
  color: #E5E7EB;
}

.month-progress__badge {
  font-size: var(--text-xs);
  color: #047857; /* Rich emerald */
  background: #E8F5EE;
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .month-progress__badge {
  color: #34D399;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.month-progress__bar {
  height: 12px; /* Increased height from 8px to make it substantial and premium */
  background-color: #E5E7EB;
  /* Premium ruler-style vertical segmented tick divisions every 20% (6 days) */
  background-image: repeating-linear-gradient(to right, rgba(0, 0, 0, 0.05) 0px, rgba(0, 0, 0, 0.05) 1px, transparent 1px, transparent 20%);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .month-progress__bar {
  background-color: #2D312E;
  background-image: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.06) 0px, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 20%);
  border-color: rgba(255, 255, 255, 0.02);
}

.month-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981 0%, #F59E0B 100%);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  width: var(--progress-width, 0%);
  animation: idt-progress-grow 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); /* Premium glowing fill effect */
}

.month-progress__fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: idt-progress-shimmer 3s infinite linear;
  background-size: 200% 100%;
  z-index: 1;
}

.month-progress__fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.5) 15%, transparent 20%);
  background-size: 10px 10px;
  animation: idt-progress-dots 1.5s infinite linear;
  z-index: 2;
}

@keyframes idt-progress-grow {
  from { width: 0%; }
  to { width: var(--progress-width, 0%); }
}

@keyframes idt-progress-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes idt-progress-dots {
  0% { background-position: 0 0; }
  100% { background-position: 20px 0; }
}

/* Outer Card Footer (Live clock) */
.date-hero-card__footer {
  text-align: center;
  padding: var(--space-4) var(--space-6) var(--space-6) var(--space-6);
}

.live-clock-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-6); /* Fixed collapsed space-1.5 to valid space-2 / space-6 */
  background: rgba(0, 0, 0, 0.45); /* Darker solid background for better contrast */
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.live-clock-badge strong {
  color: #FBBF24; /* Gold time highlight */
  margin-left: 4px;
}

/* ── Calendar Grid ──────────────────────────────────────── */
.calendar-section {
  background: var(--color-surface-2);
}

.calendar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.calendar-header {
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-header__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
}

.calendar-header__arabic {
  font-family: var(--font-arabic);
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  direction: rtl;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-weekday {
  padding: var(--space-3);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}
.calendar-weekday--friday { color: var(--color-accent); }

.calendar-day {
  position: relative;
  padding: var(--space-3);
  text-align: center;
  border-right: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  cursor: default;
}
.calendar-day:nth-child(7n) { border-right: none; }

.calendar-day__hijri {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
}

.calendar-day__gregorian {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}

.calendar-day--empty { background: var(--color-surface-2); }

.calendar-day--today {
  background: var(--color-accent-light);
}
.calendar-day--today .calendar-day__hijri {
  color: var(--color-accent);
  font-weight: 700;
}
.calendar-day--today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
}

.calendar-day--friday .calendar-day__hijri { color: var(--color-accent); }

@media (max-width: 640px) {
  .calendar-day { min-height: 48px; padding: var(--space-2); }
  .calendar-day__hijri { font-size: var(--text-sm); }
  .calendar-day__gregorian { display: none; }
}

/* ── Events ─────────────────────────────────────────────── */
.events-list { display: flex; flex-direction: column; gap: var(--space-4); }

.event-item {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}
.event-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

/* closest event highlight and pulse */
.event-item--closest {
  border-color: var(--color-accent) !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(5, 46, 22, 0.01) 100%) !important;
  position: relative;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.08), 0 8px 10px -6px rgba(16, 185, 129, 0.04);
  animation: idt-pulse-border 2.5s infinite alternate ease-in-out;
}

@keyframes idt-pulse-border {
  0% {
    border-color: rgba(52, 211, 153, 0.3) !important;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.06);
  }
  100% {
    border-color: rgba(52, 211, 153, 0.7) !important;
    box-shadow: 0 10px 30px 2px rgba(16, 185, 129, 0.15);
  }
}

.event-badge-nearest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34D399;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
  width: fit-content;
}

.event-badge-nearest__dot {
  width: 5px;
  height: 5px;
  background-color: #34D399;
  border-radius: 50%;
  animation: idt-ping 1.5s infinite;
}

@keyframes idt-ping {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

.event-item__date {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}
.event-item__day { font-size: var(--text-xl); font-weight: 700; line-height: 1; }
.event-item__month { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; }

.event-item__info { flex: 1; }
.event-item__name { font-size: var(--text-base); font-weight: 600; color: var(--color-text); }
.event-item__detail { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 2px; }

.event-item__arabic {
  font-family: var(--font-arabic);
  font-size: var(--text-xl);
  color: var(--color-text-faint);
  direction: rtl;
}

@media (max-width: 580px) {
  .event-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4) !important;
    padding: var(--space-4) !important;
  }
  .event-item__arabic {
    align-self: flex-end;
    margin-top: calc(-1 * var(--space-2));
  }
  /* Desktop countdown tiles (76-88px) wrap into a cramped grid on narrow
     phones. Shrink them so 4 fit per row without wrapping mid-count. */
  .countdown-segment { min-width: 58px; height: 58px; }
  .countdown-val { font-size: var(--text-xl); }
  .event-item--closest .countdown-segment { min-width: 64px; height: 64px; }
  .event-item--closest .countdown-val { font-size: var(--text-2xl); }
}

.event-item__countdown {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.countdown-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 76px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: var(--radius-md);
  padding: 6px;
  transition: all var(--transition-fast);
}

.countdown-val {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.05;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.15);
}

.countdown-unit {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-top: 4px;
  letter-spacing: 0.08em;
}

/* Eye-catching overrides for closest event card elements */
.event-item--closest .event-item__date {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
  animation: idt-bounce-crescent 2s infinite ease-in-out alternate;
}

@keyframes idt-bounce-crescent {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.event-item--closest .countdown-segment {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.35);
  min-width: 88px;
  height: 88px;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.08);
  animation: idt-pulse-glow 2s infinite alternate ease-in-out;
}

@keyframes idt-pulse-glow {
  0% {
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.05);
    border-color: rgba(52, 211, 153, 0.2);
  }
  100% {
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.5);
  }
}

.event-item--closest .countdown-val {
  font-size: var(--text-4xl);
  color: #FFE5A3; /* Eye-catching warm gold color */
  text-shadow: 0 0 12px rgba(254, 240, 138, 0.35);
}

.event-item--closest .countdown-unit {
  color: rgba(255, 255, 255, 0.6);
}

.countdown-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: var(--space-1) 10px;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .countdown-segment {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.faq-item.is-open { border-color: var(--color-accent); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
  transition: background var(--transition-fast);
}
.faq-question:hover { background: var(--color-surface-2); }

.faq-question__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
}
.faq-item.is-open .faq-question__icon {
  background: var(--color-accent-light);
  color: var(--color-accent);
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.75;
}
.faq-item.is-open .faq-answer { display: block; }

/* ── SEO Content ─────────────────────────────────────────── */
.seo-content h2,
.seo-content h3,
.seo-content h4 { margin-top: var(--space-8); margin-bottom: var(--space-4); }
.seo-content p { color: var(--color-text-muted); margin-bottom: var(--space-4); }
.seo-content ul, .seo-content ol { padding-left: var(--space-6); margin-bottom: var(--space-4); }
.seo-content li { color: var(--color-text-muted); margin-bottom: var(--space-2); }
.seo-content a { color: var(--color-accent); font-weight: 500; }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  padding-block: var(--space-4);
  list-style: none; /* Turn off list numbering! */
}
.breadcrumbs li {
  list-style: none;
}
.breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-text-faint); }
.breadcrumbs [aria-current="page"] { color: var(--color-text); font-weight: 500; }

/* ── Footer ── Premium Rich Footer ────────────────────────────── */
.site-footer {
  background: #1A1A1A;
  color: #CCCCCC;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .site-footer {
  background: #0D0D0D;
}

/* Top accent line */
.footer-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-gold-mid) 50%, var(--color-accent) 100%);
}

/* Main content area */
.footer-main {
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
}

/* Brand column */
.footer-brand {
  margin-bottom: var(--space-8);
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  text-decoration: none;
}

.footer-brand__icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.footer-brand__name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.footer-brand__tagline {
  font-size: var(--text-xs);
  color: #888;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-brand__desc {
  color: #999;
  font-size: var(--text-sm);
  line-height: 1.8;
  max-width: 36ch;
  margin-bottom: var(--space-6);
}

.footer-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  color: #AAA;
  letter-spacing: 0.02em;
}

.footer-trust-badge svg {
  color: var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

.footer-col__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #FFFFFF;
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-col__title svg {
  color: var(--color-accent);
  opacity: 0.7;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a {
  font-size: var(--text-sm);
  color: #AAA;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-accent); }

/* Footer Months Grid */
.footer-months-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.footer-month-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2.5);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  font-size: 11px;
  color: #A3A3A3;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-month-item:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #FFFFFF;
}

.footer-month-item--current {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #34D399 !important;
  font-weight: 600;
}

.footer-month-num {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(16, 185, 129, 0.1);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.footer-month-item--current .footer-month-num {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

/* Social share + daily alerts row (brand column) */
.footer-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.footer-share__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #BBB;
  transition: all var(--transition-fast);
}
.footer-share__icon:hover { transform: translateY(-2px); color: #fff; }
.footer-share__icon--whatsapp:hover { background: #25D366; border-color: #25D366; }
.footer-share__icon--facebook:hover { background: #1877F2; border-color: #1877F2; }
.footer-share__icon--x:hover        { background: #000; border-color: #333; }
.footer-share__icon--telegram:hover { background: #229ED9; border-color: #229ED9; }
.footer-notify {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: var(--space-2);
  padding: 8px 14px;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.footer-notify:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.footer-notify.is-on { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #34D399; }

/* Bottom bar — dark-footer colours, single clean line */
.footer-bottom-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}
.footer-bottom {
  padding-block: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}
.footer-bottom__copy {
  font-size: 13px;
  color: #888;
  max-width: none;
  margin: 0;
}
.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom__links a {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-bottom__links a:hover { color: var(--color-accent); }
@media (max-width: 560px) {
  .footer-bottom { flex-direction: column; text-align: center; gap: var(--space-3); }
  .footer-bottom__links { justify-content: center; }
}

/* ── Contact Form ─────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 107, 71, 0.12);
}
.form-textarea { resize: vertical; min-height: 140px; }

/* ── Loading State ─────────────────────────────────────── */
.loading-shimmer {
  background: linear-gradient(90deg,
    var(--color-surface-2) 25%,
    var(--color-surface-3) 50%,
    var(--color-surface-2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Internal Link Cards ─────────────────────────────────── */
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 768px) { .link-cards { grid-template-columns: 1fr; } }

.link-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-fast);
}
.link-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  color: var(--color-text);
}
.link-card__icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.link-card__title { font-weight: 600; font-size: var(--text-base); }
.link-card__desc { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 2px; }

/* ============================================================
   RICH CONTENT — premium long-form styling
   Stat cards, callouts, rich tables, icon lists, scroll reveal
   ============================================================ */

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* stagger children */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Lead paragraph ─────────────────────────────────────── */
.seo-content .lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text);
}
.seo-content .lead strong { color: var(--color-text); }

/* ── Fact strip (stat cards) ────────────────────────────── */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-block: var(--space-10);
}
@media (max-width: 768px) { .fact-strip { grid-template-columns: repeat(2, 1fr); } }

.fact-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.fact-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-gold-mid));
}
.fact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fact-card__num {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}
.fact-card__label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── Callout boxes ──────────────────────────────────────── */
.callout {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-block: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.callout__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: var(--text-lg);
}
.callout__body { flex: 1; }
.callout__body p { margin: 0; color: var(--color-text); }
.callout__title {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.callout--tip  { border-left-color: var(--color-accent); }
.callout--tip  .callout__icon { background: var(--color-accent-light); color: var(--color-accent); }
.callout--gold { border-left-color: var(--color-gold-mid); }
.callout--gold .callout__icon { background: var(--color-gold-light); color: var(--color-gold); }
.callout--warn { border-left-color: var(--color-error); }
.callout--warn .callout__icon { background: rgba(192,57,43,0.10); color: var(--color-error); }

/* ── Rich tables ────────────────────────────────────────── */
.rich-table-wrap {
  margin-block: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.rich-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.rich-table thead th {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: var(--space-4) var(--space-4);
  letter-spacing: 0.01em;
}
.rich-table tbody td {
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border-light);
  vertical-align: top;
}
.rich-table tbody tr { transition: background var(--transition-fast); }
.rich-table tbody tr:nth-child(even) { background: var(--color-surface-2); }
.rich-table tbody tr:hover { background: var(--color-accent-light); }
.rich-table tbody tr.is-current { background: var(--color-accent-light); }
.rich-table tbody tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--color-accent); }
.rich-table .td-strong { color: var(--color-text); font-weight: 600; }
.rich-table .text-arabic { font-size: var(--text-base); color: var(--color-text); }

@media (max-width: 480px) {
  .rich-table thead th,
  .rich-table tbody td { padding: var(--space-2) var(--space-3); font-size: 13px; }
}

/* Tomorrow-card: the left/right halves are inline-styled with row layout +
   a 5rem digit; on mobile that squeezes right-aligned content into a
   ~140px column awkwardly. Stack it and center everything instead. */
@media (max-width: 560px) {
  .tomorrow-card__row { flex-direction: column !important; align-items: stretch !important; }
  .tomorrow-card__left { justify-content: center !important; text-align: center !important; }
  .tomorrow-card__right {
    justify-content: center !important;
    text-align: center !important;
    min-width: 0 !important;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--space-5);
  }
  .tomorrow-card__right > div:first-child { text-align: center !important; }
  .tomorrow-card__day-val { font-size: 3.5rem !important; }
}

/* ── Icon feature list ──────────────────────────────────── */
.feature-list { list-style: none; padding: 0; margin-block: var(--space-5); display: grid; gap: var(--space-3); }
.feature-list li {
  position: relative;
  padding-left: calc(var(--space-8) + 2px);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231A6B47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.feature-list li strong { color: var(--color-text); }

.feature-list--moon li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='%231A6B47'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
}

/* ── Phrase pills ───────────────────────────────────────── */
.pill-list { list-style: none; padding: 0; margin-block: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill-list li {
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  transition: all var(--transition-fast);
}
.pill-list li:hover { background: var(--color-accent-light); border-color: var(--color-accent); color: var(--color-accent-dark); transform: translateY(-1px); }

/* ── Numbered step cards ────────────────────────────────── */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-block: var(--space-8); }
@media (max-width: 768px) { .step-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.step-card__num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-mid));
  color: #fff;
  font-weight: 700;
  font-family: var(--font-serif);
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 10px rgba(26,107,71,0.25);
}
.step-card h4 { margin: 0 0 var(--space-2); }
.step-card p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }

/* ── Moon divider ───────────────────────────────────────── */
.moon-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-block: var(--space-12);
  color: var(--color-gold-mid);
}
.moon-divider::before, .moon-divider::after {
  content: '';
  height: 1px;
  width: min(120px, 20vw);
  background: linear-gradient(90deg, transparent, var(--color-border));
}
.moon-divider::after { background: linear-gradient(90deg, var(--color-border), transparent); }

/* ── Section glow accent ────────────────────────────────── */
.section--glow { position: relative; overflow: hidden; }
.section--glow::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(26,107,71,0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.section--glow .container { position: relative; z-index: 1; }

/* ============================================================
   PREMIUM ICON SYSTEM + CARD GRIDS
   ============================================================ */

/* ── Inline SVG icons ───────────────────────────────────── */
.idt-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }

.section-eyebrow.has-icon { display: inline-flex; align-items: center; gap: 7px; }
.section-eyebrow .idt-icon { width: 15px; height: 15px; }

/* ── Icon tile ──────────────────────────────────────────── */
.icon-tile {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--color-accent-light);
  color: var(--color-accent);
  margin-bottom: var(--space-5);
  position: relative;
  transition: transform var(--transition-base);
}
.icon-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(26,107,71,0.12);
}
.icon-tile .idt-icon { width: 26px; height: 26px; }
.icon-tile--gold { background: var(--color-gold-light); color: var(--color-gold); }
.icon-tile--gold::after { box-shadow: inset 0 0 0 1px rgba(154,114,19,0.14); }

/* ── Feature card grid ──────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-block: var(--space-8); }
.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .feature-grid, .feature-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid, .feature-grid--2, .feature-grid--4 { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: var(--space-6) var(--space-6) var(--space-6);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.feature-card:hover .icon-tile { transform: scale(1.06) rotate(-3deg); }
.feature-card h4 { margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.feature-card p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.65; max-width: none; }

/* ── Month grid (Surah-style cards) ─────────────────────── */
.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-block: var(--space-8); }
@media (max-width: 1024px) { .month-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .month-grid { grid-template-columns: 1fr; } }

.month-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-4) var(--space-5);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.month-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.month-card__num {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-faint);
  min-width: 22px;
}
.month-card__body { flex: 1; min-width: 0; }
.month-card__name { display: block; font-weight: 600; color: var(--color-text); font-size: var(--text-base); letter-spacing: -0.01em; }
.month-card__sub  { display: block; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 3px; }
.month-card__ar   { font-family: var(--font-arabic); font-size: var(--text-2xl); color: var(--color-accent); line-height: 1; }

.month-card.is-current {
  background: linear-gradient(135deg, #1A6B47 0%, #145938 100%);
  border-color: #145938;
  box-shadow: 0 12px 28px rgba(26,107,71,0.30);
}
.month-card.is-current .month-card__num,
.month-card.is-current .month-card__name,
.month-card.is-current .month-card__ar { color: #fff; }
.month-card.is-current .month-card__sub { color: #D7EBE0; }
.month-card__pill {
  display: inline-block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(255,255,255,0.20);
  color: #fff;
  padding: 2px 9px;
  border-radius: var(--radius-full);
}

/* ── Event card grid ────────────────────────────────────── */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-block: var(--space-8); }
@media (max-width: 1024px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .event-grid { grid-template-columns: 1fr; } }

.event-card {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-gold-mid); }
.event-card .icon-tile { width: 46px; height: 46px; margin: 0; border-radius: 13px; }
.event-card .icon-tile .idt-icon { width: 22px; height: 22px; }
.event-card__name { display: block; font-weight: 600; color: var(--color-text); font-size: var(--text-base); }
.event-card__when { display: block; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }

/* ── Q&A card grid ──────────────────────────────────────── */
.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-6); }
@media (max-width: 640px) { .qa-grid { grid-template-columns: 1fr; } }
.qa-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.qa-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.qa-card__q { display: flex; gap: 9px; align-items: flex-start; font-weight: 600; color: var(--color-text); margin-bottom: var(--space-3); line-height: 1.4; }
.qa-card__q .idt-icon { width: 18px; height: 18px; color: var(--color-accent); margin-top: 2px; }
.qa-card__a { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.65; max-width: none; }
.qa-card__a strong { color: var(--color-text); }

/* ── Link card icon tile (override emoji) ───────────────── */
.link-card .link-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0;
}
.link-card .link-card__icon .idt-icon { width: 24px; height: 24px; }
.link-card:hover .link-card__icon { background: var(--color-accent); color: #fff; }

/* ── Timeline ───────────────────────────────────────────── */
.timeline { position: relative; max-width: 780px; margin: var(--space-8) auto 0; }
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: var(--space-6);
  padding-bottom: var(--space-8);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 60px;
  bottom: -4px;
  width: 2px;
  background: linear-gradient(var(--color-accent), var(--color-border));
}
.timeline-item:last-child::before { display: none; }
.timeline-item__node {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1A6B47 0%, #145938 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26,107,71,0.28);
  position: relative;
  z-index: 1;
}
.timeline-item__node .idt-icon { width: 27px; height: 27px; }
.timeline-item__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.timeline-item__card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.timeline-item__year {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-gold);
  background: var(--color-gold-light);
  padding: 2px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}
.timeline-item__card h4 { margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.timeline-item__card p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); max-width: none; line-height: 1.65; }
@media (max-width: 560px) {
  .timeline-item { grid-template-columns: 48px 1fr; column-gap: var(--space-4); }
  .timeline-item::before { left: 23px; top: 52px; }
  .timeline-item__node { width: 48px; height: 48px; }
  .timeline-item__node .idt-icon { width: 22px; height: 22px; }
}

/* ── Region compare ─────────────────────────────────────── */
.region-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: var(--space-4);
  max-width: 620px;
  margin: var(--space-8) auto;
}
@media (max-width: 560px) { .region-compare { grid-template-columns: 1fr; } }
.region-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.region-card--accent { border-color: var(--color-accent); border-width: 2px; }
.region-card__head { display: inline-flex; align-items: center; gap: 7px; color: var(--color-text-muted); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-3); }
.region-card__head .idt-icon { width: 15px; height: 15px; color: var(--color-accent); }
.region-card__date { font-family: var(--font-serif); font-size: var(--text-xl); font-weight: 600; color: var(--color-text); letter-spacing: -0.01em; }
.region-card__note { display: block; margin-top: var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); }
.region-compare__vs {
  display: grid;
  place-items: center;
  width: 44px;
  align-self: center;
  margin-inline: auto;
  color: var(--color-gold);
}
.region-compare__vs .idt-icon { width: 24px; height: 24px; }
@media (max-width: 560px) { .region-compare__vs { transform: rotate(90deg); } }

/* ── Legal document layout ──────────────────────────────── */
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gold);
  background: var(--color-gold-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}
.meta-pill .idt-icon { width: 14px; height: 14px; }

.legal-card {
  max-width: 840px;
  margin-inline: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: clamp(var(--space-6), 4vw, var(--space-12));
}
.legal-doc h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-light);
}
.legal-doc > h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-doc h3 { font-size: var(--text-lg); margin-top: var(--space-6); margin-bottom: var(--space-2); }
.legal-doc p { color: var(--color-text-muted); margin-bottom: var(--space-4); max-width: none; }
.legal-doc ul { padding-left: var(--space-6); margin-bottom: var(--space-4); }
.legal-doc li { color: var(--color-text-muted); margin-bottom: var(--space-2); }
.legal-doc a { color: var(--color-accent); font-weight: 500; }
.legal-doc code {
  background: var(--color-surface-2);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* Code blocks (API docs) */
.code-block {
  background: #0F1B16;
  color: #D7EBE0;
  border: 1px solid #1A6B47;
  border-radius: 12px;
  padding: var(--space-5);
  margin-block: var(--space-4);
  overflow-x: auto;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

/* ── Contact extras ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 880px;
  margin: 0 auto var(--space-10);
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-mini {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.contact-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.contact-mini .icon-tile { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.contact-mini .icon-tile .idt-icon { width: 21px; height: 21px; }
.contact-mini__title { display: block; font-weight: 600; color: var(--color-text); font-size: var(--text-base); }
.contact-mini__sub { display: block; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }

.success-tile {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-5);
  background: linear-gradient(135deg, #1A6B47 0%, #145938 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(26,107,71,0.30);
}
.success-tile .idt-icon { width: 30px; height: 30px; }

/* ── Word breakdown ─────────────────────────────────────── */
.word-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: var(--space-4);
  max-width: 640px;
  margin: var(--space-8) auto 0;
}
@media (max-width: 560px) { .word-grid { grid-template-columns: 1fr; } }
.word-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.word-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.word-card .icon-tile { margin: 0 auto var(--space-3); }
.word-card__term { font-family: var(--font-serif); font-size: var(--text-xl); font-weight: 600; color: var(--color-text); }
.word-card__mean { display: block; margin-top: 2px; font-size: var(--text-sm); color: var(--color-text-muted); }
.word-grid__plus { display: grid; place-items: center; align-self: center; color: var(--color-gold); font-family: var(--font-serif); font-size: var(--text-2xl); font-weight: 600; }
@media (max-width: 560px) { .word-grid__plus { padding-block: var(--space-1); } }

/* ── On-this-page jump nav ──────────────────────────────── */
.jump-nav {
  max-width: 80ch;
  margin: var(--space-8) auto 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}
.jump-nav__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.jump-nav__label .idt-icon { width: 15px; height: 15px; color: var(--color-accent); }
.jump-nav__list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.jump-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.jump-chip .idt-icon { width: 16px; height: 16px; color: var(--color-accent); }
.jump-chip:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; transform: translateY(-1px); }
.jump-chip:hover .idt-icon { color: #fff; }

/* ── Date card top bar: live indicator + share ──────────── */
.date-hero-card__header { position: relative; }
.date-hero-card__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: var(--space-3);
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 11px;
  border-radius: var(--radius-full);
}
.live-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: idt-live-pulse 1.8s ease-out infinite;
}
@keyframes idt-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.share-btn:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }
.share-btn:active { transform: translateY(0); }
.share-btn svg { width: 15px; height: 15px; }
.share-btn.is-copied { background: #fff; color: var(--color-accent-dark); border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .live-pill__dot { animation: none; } }
@media (max-width: 480px) {
  .share-btn__label { display: none; }
  .share-btn { padding: 7px 10px; }
}

/* ── Hero live date badge + last updated ────────────────── */
.hero__date-wrap { text-align: center; }
.hero__date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: var(--space-5) auto var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-accent-dark);
  max-width: 100%;
}
.hero__date-badge span:not(.text-arabic) { font-weight: 500; font-size: 0.85em; color: var(--color-text-muted); }
.hero__date-badge .idt-icon { width: 16px; height: 16px; color: var(--color-accent); }
.hero__date-badge .text-arabic { font-size: 1em; color: var(--color-accent); font-weight: 600; }
.hero__updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: var(--space-4) auto 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  width: 100%;
  justify-content: center;
}
.hero__updated .idt-icon { color: var(--color-accent); }
@media (max-width: 640px) { .hero__date-badge { font-size: var(--text-sm); } }

/* ── Auto prompt banner (notification / bookmark) ───────── */
.idt-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: min(560px, calc(100% - 28px));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: var(--space-3) var(--space-4);
  z-index: 9998;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.idt-banner.is-in { transform: translate(-50%, 0); opacity: 1; }
.idt-banner__icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.idt-banner__text { flex: 1; font-size: var(--text-sm); color: var(--color-text); line-height: 1.4; }
.idt-banner__btn {
  flex-shrink: 0;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}
.idt-banner__btn:hover { background: var(--color-surface-2); color: var(--color-text); }
.idt-banner__btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.idt-banner__btn--primary:hover { background: var(--color-accent-dark); color: #fff; }
@media (max-width: 560px) {
  .idt-banner { flex-wrap: wrap; bottom: 12px; }
  .idt-banner__text { flex: 1 1 100%; }
}

/* ── Hero action buttons: daily alert + bookmark ────────── */
.hero-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}
.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: var(--space-2) var(--space-4);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.hero-action:hover {
  color: var(--color-accent-dark);
  border-color: var(--color-accent);
  background: var(--color-accent-light);
  transform: translateY(-1px);
}
.hero-action .idt-icon { color: var(--color-accent); }
.hero-action.is-on {
  color: var(--color-accent-dark);
  background: var(--color-accent-light);
  border-color: var(--color-accent);
  font-weight: 600;
}

/* ── Panel card header ──────────────────────────────────── */
.panel-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.panel-head .icon-tile {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 12px;
}
.panel-head .icon-tile .idt-icon { width: 21px; height: 21px; }
.panel-head h3 { margin: 0; font-size: var(--text-lg); }
.panel-text { color: var(--color-text-muted); font-size: var(--text-sm); max-width: none; margin-bottom: var(--space-4); }
.panel-text:last-child { margin-bottom: 0; }

/* ── Staggered reveal (cascade) ─────────────────────────── */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1)  { transition-delay: 0.04s; }
.reveal-stagger.is-visible > *:nth-child(2)  { transition-delay: 0.10s; }
.reveal-stagger.is-visible > *:nth-child(3)  { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4)  { transition-delay: 0.22s; }
.reveal-stagger.is-visible > *:nth-child(5)  { transition-delay: 0.28s; }
.reveal-stagger.is-visible > *:nth-child(6)  { transition-delay: 0.34s; }
.reveal-stagger.is-visible > *:nth-child(7)  { transition-delay: 0.40s; }
.reveal-stagger.is-visible > *:nth-child(8)  { transition-delay: 0.46s; }
.reveal-stagger.is-visible > *:nth-child(9)  { transition-delay: 0.52s; }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 0.58s; }
.reveal-stagger.is-visible > *:nth-child(11) { transition-delay: 0.64s; }
.reveal-stagger.is-visible > *:nth-child(12) { transition-delay: 0.70s; }

/* ── Current-month breathing glow ───────────────────────── */
@keyframes idt-pulse-glow {
  0%, 100% { box-shadow: 0 12px 28px rgba(26,107,71,0.28); }
  50%      { box-shadow: 0 14px 40px rgba(26,107,71,0.52); }
}
.month-card.is-current { animation: idt-pulse-glow 3s ease-in-out infinite; }

/* ── Comparison arrows nudge ────────────────────────────── */
@keyframes idt-nudge-x {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
.region-compare__vs .idt-icon { animation: idt-nudge-x 1.8s ease-in-out infinite; }

/* ── Card lift easing refinement ────────────────────────── */
.feature-card, .month-card, .event-card, .word-card, .region-card, .contact-mini {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease, border-color 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .month-card.is-current,
  .region-compare__vs .idt-icon { animation: none; }
}
