
/* ── 9. White text on every homepage card (deep backgrounds for contrast) ── */
/* Live bar: 3 distinct deep colours */
body.home-white .live-bar .live-bar-item:nth-child(1) {
  background: linear-gradient(135deg, #0f766e, #0b574f) !important;
  border-color: #0b574f !important;
}
body.home-white .live-bar .live-bar-item:nth-child(2) {
  background: linear-gradient(135deg, #a16207, #7a4a05) !important;
  border-color: #7a4a05 !important;
}
body.home-white .live-bar .live-bar-item:nth-child(3) {
  background: linear-gradient(135deg, #1e40af, #162f80) !important;
  border-color: #162f80 !important;
}
body.home-white .live-bar .live-bar-item,
body.home-white .live-bar .live-bar-item * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body.home-white .live-bar .live-bar-label,
body.home-white .live-bar .live-bar-sub { opacity: .85 !important; }

/* Verse banner: deep blue */
body.home-white .verse-banner {
  background: linear-gradient(135deg, #123b6b, #0b2750) !important;
  border-color: #0b2750 !important;
}
body.home-white .verse-banner,
body.home-white .verse-banner * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Daily reflection: deep purple */
body.home-white .daily-reflection-card {
  background: linear-gradient(135deg, #5b3396, #3d2169) !important;
  border-color: #3d2169 !important;
}
body.home-white .daily-reflection-card,
body.home-white .daily-reflection-card * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body.home-white .daily-reflection-card p { color: rgba(255,255,255,.9) !important; -webkit-text-fill-color: rgba(255,255,255,.9) !important; }
body.home-white .daily-reflection-card span { color: rgba(255,255,255,.85) !important; -webkit-text-fill-color: rgba(255,255,255,.85) !important; }
body.home-white .daily-reflection-card input {
  background: #ffffff !important;
  color: #16261f !important;
  -webkit-text-fill-color: #16261f !important;
}
body.home-white .daily-reflection-card button {
  background: #7c3aed !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Weekly reflection: deep terracotta */
body.home-white .weekly-reflection-summary {
  background: linear-gradient(135deg, #9a3412, #6f2409) !important;
  border-color: #6f2409 !important;
}
body.home-white .weekly-reflection-summary,
body.home-white .weekly-reflection-summary * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Today's verse widget: deep green */
body.home-white .today-verse-widget {
  background: linear-gradient(135deg, #14532d, #0b3a1e) !important;
  border-color: #0b3a1e !important;
}
body.home-white .today-verse-widget,
body.home-white .today-verse-widget * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body.home-white .today-verse-widget button {
  background: #ffffff !important;
  color: #14532d !important;
  -webkit-text-fill-color: #14532d !important;
}

/* Generic content card: deep slate blue */
body.home-white .content-card,
body.home-white .functional-workspace-card {
  background: linear-gradient(135deg, #1e3a5f, #142a47) !important;
  border-color: #142a47 !important;
}
body.home-white .content-card,
body.home-white .content-card *,
body.home-white .functional-workspace-card,
body.home-white .functional-workspace-card * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Stat cards: 6 distinct deep colours, white text */
body.home-white .stat-card:nth-child(1) { background: linear-gradient(135deg, #a16207, #7a4a05) !important; border-color: #7a4a05 !important; }
body.home-white .stat-card:nth-child(2) { background: linear-gradient(135deg, #1d4ed8, #163688) !important; border-color: #163688 !important; }
body.home-white .stat-card:nth-child(3) { background: linear-gradient(135deg, #6d28d9, #4c1d95) !important; border-color: #4c1d95 !important; }
body.home-white .stat-card:nth-child(4) { background: linear-gradient(135deg, #be123c, #8f0e2d) !important; border-color: #8f0e2d !important; }
body.home-white .stat-card:nth-child(5) { background: linear-gradient(135deg, #15803d, #0f5e2c) !important; border-color: #0f5e2c !important; }
body.home-white .stat-card:nth-child(6) { background: linear-gradient(135deg, #4338ca, #2e2796) !important; border-color: #2e2796 !important; }

/* Module cards: 6 distinct deep colours, white text */
body.home-white .module-card:nth-child(1) { background: linear-gradient(135deg, #0f766e, #0b574f) !important; border-color: #0b574f !important; }
body.home-white .module-card:nth-child(2) { background: linear-gradient(135deg, #3730a3, #27206f) !important; border-color: #27206f !important; }
body.home-white .module-card:nth-child(3) { background: linear-gradient(135deg, #b45309, #853d06) !important; border-color: #853d06 !important; }
body.home-white .module-card:nth-child(4) { background: linear-gradient(135deg, #9d174d, #711038) !important; border-color: #711038 !important; }
body.home-white .module-card:nth-child(5) { background: linear-gradient(135deg, #166534, #0f4a26) !important; border-color: #0f4a26 !important; }
body.home-white .module-card:nth-child(6) { background: linear-gradient(135deg, #1e3a8a, #162c68) !important; border-color: #162c68 !important; }

body.home-white .stat-card,
body.home-white .stat-card *,
body.home-white .module-card,
body.home-white .module-card * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Daily Discovery: keep the seven distinct deep gradients, all text white */
body.home-white .dd-grid .dd-card .dd-title,
body.home-white .dd-grid .dd-card .dd-meta,
body.home-white .dd-grid .dd-card .dd-cta {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body.home-white .dd-grid .dd-card .dd-title { font-weight: 800; }
body.home-white .dd-grid .dd-card .dd-meta,
body.home-white .dd-grid .dd-card .dd-cta { opacity: .9; }
body.home-white .dd-grid .dd-card .dd-body {
  color: rgba(255,255,255,.95) !important;
  -webkit-text-fill-color: rgba(255,255,255,.95) !important;
}

/* ── 10. High-specificity overrides: earlier contrast sheets use
      #mainContent#mainContent with !important — match that strength so
      every homepage card word is white on its deep colour. ── */
body.home-white #mainContent#mainContent :is(
  .verse-banner,
  .daily-reflection-card,
  .weekly-reflection-summary,
  .today-verse-widget,
  .quran-dashboard-card,
  .dashboard-intent-card,
  .stat-card,
  .module-card,
  .pillar-card,
  .content-card,
  .live-bar-item,
  .dd-card
),
body.home-white #mainContent#mainContent :is(
  .verse-banner,
  .daily-reflection-card,
  .weekly-reflection-summary,
  .today-verse-widget,
  .quran-dashboard-card,
  .dashboard-intent-card,
  .stat-card,
  .module-card,
  .pillar-card,
  .content-card,
  .live-bar-item,
  .dd-card
) :is(h1,h2,h3,h4,h5,h6,p,span,div,li,dd,dt,small,strong,b,em,label,time,a,blockquote,.verse-ref,.verse-arabic,.module-card-title,.module-card-desc,.dd-title,.dd-body,.dd-meta,.dd-cta,.live-bar-label,.live-bar-value,.live-bar-sub,.dashboard-intent-copy,.daily-reflection-kicker,.weekly-reflection-count),
body.home-white #mainContent[data-route] :is(
  .verse-banner,
  .daily-reflection-card,
  .weekly-reflection-summary,
  .today-verse-widget,
  .quran-dashboard-card,
  .dashboard-intent-card,
  .stat-card,
  .module-card
) :is(p,span,div,small,strong,label,a) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Preserve white on accents that were gold/dim but sit on deep fills */
body.home-white #mainContent#mainContent :is(.dd-card,.dashboard-intent-card) :is(.dd-title,.dd-meta,.dd-cta,.verse-ref),
body.home-white #daily-discovery .dd-card :is(.dd-title,.dd-meta,.dd-cta) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

/* Controls keep their own dark ink on white fills */
body.home-white #mainContent#mainContent :is(.daily-reflection-card,.today-verse-widget) :is(input,select,textarea),
body.home-white #mainContent#mainContent .weekly-reflection-export button {
  color: #16261f !important;
  -webkit-text-fill-color: #16261f !important;
}

/* ── 11. Live bar under the cube: ID-matched override ──────────────────
   glow-enhancements.css uses `#liveBar .live-bar-item { background:#fff !important }`.
   An ID selector beats any number of class selectors, so the earlier
   body.home-white .live-bar rules never applied. Match the ID here. */
body.home-white #liveBar .live-bar-item:nth-child(1),
body.home-white #liveBar .live-bar-item:nth-child(1) * {
  background: linear-gradient(135deg, #0f766e, #0b574f) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #0b574f !important;
  box-shadow: 0 10px 26px rgba(15, 118, 110, .24) !important;
}
body.home-white #liveBar .live-bar-item:nth-child(2),
body.home-white #liveBar .live-bar-item:nth-child(2) * {
  background: linear-gradient(135deg, #a16207, #7a4a05) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #7a4a05 !important;
  box-shadow: 0 10px 26px rgba(161, 98, 7, .24) !important;
}
body.home-white #liveBar .live-bar-item:nth-child(3),
body.home-white #liveBar .live-bar-item:nth-child(3) * {
  background: linear-gradient(135deg, #1e40af, #162f80) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #162f80 !important;
  box-shadow: 0 10px 26px rgba(30, 64, 175, .24) !important;
}
body.home-white #liveBar .live-bar-label,
body.home-white #liveBar .live-bar-sub,
body.home-white #liveBar .live-bar-value {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: .9 !important;
}
