/* ==== brand-and-nav.css ==== */
/* ═══════════════════════════════════════════════════════════════
   Ummah Compass — Feature: Header Brand + Dropdowns + Donate
   styles/features/brand-and-nav.css

   Previously an inline <style> block in index.html (lines 1177–1576).
   Extracted here for service-worker caching and maintainability.
   ═══════════════════════════════════════════════════════════════ */

/* ── Brand header enhancements ── */
.brand { align-items: flex-start !important; gap: 10px; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }

.brand-tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(24, 117, 96, 0.95);
  margin-top: 1px;
  line-height: 1.3;
}

.brand-privacy-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
}

.brand-pill {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-pill-divider {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  margin: 0 1px;
}

.brand-rotating {
  margin-top: 5px;
  height: 20px;
  overflow: hidden;
}

.brand-rotating-text {
  display: block;
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  color: rgba(197, 150, 64, 0.95);
  letter-spacing: 0.02em;
  opacity: 1;
  transition: opacity 500ms ease;
}

.brand-rotating-text.fade-out { opacity: 0; }

@media (max-width: 480px) {
  .brand-privacy-pills { gap: 2px; }
  .brand-pill          { font-size: 11px; }
  .brand-tagline       { font-size: 12px; }
}

/* ══════════════════════════════════════════
   GROUPED TAB DROPDOWNS (Tools / More)
   ══════════════════════════════════════════ */

.tab-group {
  position: relative;
  display: inline-flex;
}

.tab-chevron {
  margin-left: 4px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.btn-tab-group { display: inline-flex; align-items: center; }

.btn-tab-group[aria-expanded="true"] .tab-chevron {
  transform: rotate(180deg);
}

.tab-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: rgba(8, 14, 28, 0.96);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 300;
  overflow: hidden;
  padding: 4px 0;
  animation: dropdownIn 0.15s ease;
}

.tab-dropdown.open { display: block; }

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Custom city search ── */
.custom-city-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.custom-city-search-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
}

.custom-city-search-row input:focus {
  outline: none;
  border-color: rgba(74,222,128,0.4);
}

.city-search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

.city-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.city-result-item:hover,
.city-result-item.selected {
  background: rgba(24,117,96,0.15);
  border-color: rgba(74,222,128,0.35);
}

.city-result-name { font-size: 14px; font-weight: 600; color: #fff; }
.city-result-meta { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.city-result-tz   { font-size: 11px; color: rgba(255,255,255,0.35); font-family: var(--mono, monospace); }

/* ══════════════════════════════════════════
   PRAYER SUB-TABS
   ══════════════════════════════════════════ */

.prayer-sub-nav {
  display: flex;
  gap: 6px;
  padding: 12px 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: transparent;
}

.prayer-sub-tab {
  flex: 1;
  padding: 9px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  text-align: center;
}

.prayer-sub-tab:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}

.prayer-sub-tab.active {
  background: rgba(24, 117, 96, 0.15);
  border-color: rgba(24, 117, 96, 0.4);
  color: #4ade80;
  font-weight: 600;
}

[dir="rtl"] .prayer-sub-tab { font-size: 13px; }

/* ── Dropdown items ── */
.tab-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

[dir="rtl"] .tab-dropdown-item { text-align: right; }

.tab-dropdown-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.tab-dropdown-item.active {
  color: #4ade80;
  background: rgba(74,222,128,0.08);
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════
   CLEANUP CONSOLIDATION — header + mobile tools ownership
   brand-and-nav.css is the single source of truth for header/nav
═══════════════════════════════════════════════════════════════ */

html[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

html[dir="rtl"] .brand-text {
  text-align: right;
}

@media (max-width: 768px) {
  #toolsMenu #tabQibla { display: none !important; }
  #toolsMenu #tabTrackerMobile { display: inline-flex !important; }
}

@media (min-width: 769px) {
  #toolsMenu #tabTrackerMobile { display: none !important; }
}


/* ==== donate.css ==== */
/* ═══════════════════════════════════════════════════════════════
   Ummah Compass — Feature: Donate Modal
   styles/features/donate.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Header actions wrapper ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Donate button (in app header) ── */
.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #1a7a4a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  min-height: 36px;
}
.btn-donate:hover  { background: #1e9057; }
.btn-donate:active { transform: scale(0.97); }

/* ── Modal backdrop ── */
.donate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.donate-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal box ── */
.donate-modal {
  background: #fff;
  color: #111;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 32px 28px 24px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s;
  max-height: 90vh;
  overflow-y: auto;
}
.donate-backdrop.open .donate-modal { transform: translateY(0); }

/* ── Close button ── */
.donate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
  transition: background 0.15s;
}
.donate-close:hover { background: #e0e0e0; }

/* ── Header ── */
.donate-header {
  text-align: center;
  margin-bottom: 18px;
}
.donate-icon     { font-size: 36px; margin-bottom: 8px; }
.donate-title    { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: #111; }
.donate-subtitle { font-size: 13px; color: #555; margin: 0; }

/* ── Ayah block ── */
.donate-ayah {
  background: #f6f9f7;
  border-left: 3px solid #1a7a4a;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  text-align: center;
}
.donate-ayah-arabic {
  font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  font-size: 18px;
  line-height: 2;
  color: #1a1a1a;
  direction: rtl;
  margin-bottom: 6px;
}
.donate-ayah-ref {
  font-size: 11px;
  font-weight: 600;
  color: #1a7a4a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.donate-ayah-trans {
  font-size: 12px;
  color: #666;
  font-style: italic;
  line-height: 1.6;
}

/* ── Toggle (One-time / Monthly) ── */
.donate-toggle {
  display: flex;
  gap: 0;
  border: 2px solid #1a7a4a;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}
.donate-toggle-btn {
  flex: 1;
  padding: 9px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #1a7a4a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.15s, color 0.15s;
}
.donate-toggle-btn.active {
  background: #1a7a4a;
  color: #fff;
}

/* ── Amount buttons ── */
.donate-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.donate-amount-btn {
  padding: 14px 8px;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-align: center;
}
.donate-amount-btn:hover {
  border-color: #1a7a4a;
  color: #1a7a4a;
}
.donate-amount-btn.selected {
  background: #1a7a4a;
  border-color: #1a7a4a;
  color: #fff;
}
.donate-amount-btn--other {
  grid-column: span 3;
  font-size: 13px;
  color: #666;
  padding: 10px;
}

/* ── Custom amount input ── */
.donate-custom {
  display: flex;
  align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  padding: 0 14px;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}
.donate-custom:focus-within { border-color: #1a7a4a; }
.donate-custom-prefix {
  font-size: 15px;
  color: #888;
  margin-right: 8px;
}
.donate-custom-input {
  border: none;
  outline: none;
  font-size: 15px;
  padding: 12px 0;
  flex: 1;
  width: 100%;
  background: transparent;
  color: #111;
}
.donate-custom-input::placeholder { color: #bbb; }

/* ── CTA ── */
.donate-cta {
  width: 100%;
  padding: 14px;
  background: #1a7a4a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}
.donate-cta:hover { background: #1e9057; }

/* ── Note ── */
.donate-note {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ── FAQ accordion ── */
.donate-faq {
  margin-top: 24px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}
.donate-faq-title {
  font-size: 11px;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.donate-faq-item {
  border-bottom: 1px solid #f0f0f0;
}
.donate-faq-item:last-child {
  border-bottom: none;
}
.donate-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 11px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  transition: color 0.15s;
}
.donate-faq-q:hover { color: #1a7a4a; }
.donate-faq-chevron {
  flex-shrink: 0;
  color: #aaa;
  transition: transform 0.2s;
}
.donate-faq-item.open .donate-faq-chevron {
  transform: rotate(180deg);
}
.donate-faq-item.open .donate-faq-q {
  color: #1a7a4a;
}
.donate-faq-a {
  padding: 0 0 12px;
}
.donate-faq-a p {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}


/* ==== home.css ==== */
/* ═══════════════════════════════════════════════════════════════
   Ummah Compass — Home Screen Styles
   styles/home.css

   Extracted from home.js injectHomeStyles() to eliminate the
   runtime <style> injection that was causing CLS (layout shift).
   Load in index.html <head> before app.js.
   ═══════════════════════════════════════════════════════════════ */

#homeScreenContent { display: grid; gap: 16px; }
#homePrayerCard, .home-section-card { padding: 18px; }

.home-inline-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(52, 211, 153, .08);
  color: #9fe7c7;
}

.home-prayer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.home-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-link-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: inherit;
  cursor: pointer;
}

.home-tool-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: inherit;
  cursor: pointer;
}

.home-tool-btn:hover,
.home-link-pill:hover { background: rgba(255, 255, 255, .06); }

.home-tool-icon { font-size: 1.2rem; }
.home-tool-label { font-weight: 600; }
.home-links-row { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 800px) {
  .home-tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .home-prayer-actions { flex-direction: column; }
  .home-prayer-actions .btn { width: 100%; justify-content: center; }
}


/* ==== home-v3-overrides.css ==== */

/* Home V3 overrides */
#homeScreenContent {
  display: grid !important;
  gap: 12px !important;
}

#homeScreenContent > .card,
#homeScreenContent > .home-quran-strip-v3 {
  margin: 0 !important;
}

.home-prayer-card-v3 {
  padding: 16px !important;
}

.home-prayer-head-v3 {
  align-items: flex-start !important;
  margin-bottom: 12px !important;
}

.home-kicker {
  color: var(--muted) !important;
  font-size: 12px !important;
  font-family: var(--mono) !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
  margin-bottom: 4px !important;
}

.home-prayer-city {
  font-size: 15px !important;
  line-height: 1.3 !important;
}

.home-live-clock-v3 {
  text-align: right !important;
  gap: 2px !important;
}

.home-live-clock-v3 .prayer-live-clock-time {
  font-size: clamp(22px, 3vw, 34px) !important;
  line-height: 1 !important;
}

.home-live-clock-v3 .prayer-live-clock-date,
.home-live-clock-v3 .clock-date-row {
  font-size: 12px !important;
}

.home-times-grid-v3 {
  gap: 8px !important;
  margin-bottom: 10px !important;
}

.home-time-card-v3 {
  min-height: 0 !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
}

.home-time-card-v3 .time-name {
  font-size: 12px !important;
  margin-bottom: 4px !important;
}

.home-time-card-v3 .time-value {
  font-size: 16px !important;
}

.home-time-icon {
  font-size: 14px !important;
  opacity: .9 !important;
}

.home-next-prayer-v3 {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.03) !important;
}

.home-next-prayer-v3::before,
.home-next-prayer-v3::after,
.home-prayer-card-v3 .divider {
  display: none !important;
  content: none !important;
}

.home-next-main,
.home-next-countdown {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.home-next-countdown {
  text-align: right !important;
}

.home-np-label {
  color: var(--muted) !important;
  font-size: 11px !important;
  font-family: var(--mono) !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

.home-np-value {
  font-size: 14px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

.home-np-countdown {
  color: var(--accent) !important;
}

.home-quran-strip-v3 {
  display: grid !important;
  gap: 8px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 16px !important;
  background: linear-gradient(160deg, rgba(17,30,58,.78) 0%, rgba(10,20,42,.9) 100%) !important;
  box-shadow: var(--shadow-md) !important;
}

.home-quran-strip-top,
.home-quran-strip-mid,
.home-qd-actions-v3 {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.home-quran-strip-title {
  font-family: var(--display) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.home-qd-pos-v3,
.home-qd-progress-label {
  color: var(--muted) !important;
  font-size: 12px !important;
}

.home-qd-streak-v3,
.home-qd-progress-pct {
  color: var(--accent) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.home-qd-bar-v3 {
  height: 5px !important;
  background: rgba(255,255,255,.08) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}

.home-qd-bar-v3 .home-qd-bar-fill {
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, rgba(var(--gold-rgb),.9), rgba(var(--green-rgb),.85)) !important;
}

.home-qd-btn-v3 {
  min-height: 34px !important;
  padding: 6px 10px !important;
  font-size: 13px !important;
}

.home-prayer-actions-v3 {
  display: flex !important;
  gap: 8px !important;
  margin-top: 10px !important;
  flex-wrap: wrap !important;
}

.home-prayer-actions-v3 .btn {
  min-height: 38px !important;
  padding: 8px 12px !important;
}

.home-tools-card-v3 {
  padding: 14px !important;
}

.home-tools-head-v3 {
  margin-bottom: 10px !important;
}

.home-tools-head-v3 .h2 {
  font-size: 18px !important;
}

.home-tools-grid-v3 {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)) !important;
  gap: 10px !important;
}

.home-tool-btn-v3 {
  min-width: 0 !important;
  min-height: 84px !important;
  height: auto !important;
  padding: 12px 10px !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-align: center !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
}

.home-tool-btn-v3 .home-tool-icon {
  font-size: 24px !important;
  line-height: 1 !important;
}

.home-tool-btn-v3 .home-tool-label {
  font-size: 12px !important;
  font-weight: 600 !important;
}

.home-more-tools-row-v3 {
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255,255,255,.06) !important;
}

.home-subtle-label {
  color: var(--muted) !important;
  font-family: var(--mono) !important;
  font-size: 11px !important;
  letter-spacing: .10em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
}

.home-links-row-v3 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.home-link-pill-v3 {
  min-height: 34px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
}

.home-inline-note-v3 {
  margin-top: 10px !important;
  font-size: 12px !important;
}

@media (max-width: 820px) {
  .home-prayer-head-v3 {
    gap: 10px !important;
  }

  .home-next-prayer-v3 {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .home-next-countdown {
    text-align: left !important;
  }
}

@media (max-width: 560px) {
  .home-prayer-card-v3,
  .home-tools-card-v3,
  .home-quran-strip-v3 {
    padding: 12px !important;
  }

  .home-tools-grid-v3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .home-tool-btn-v3 {
    min-height: 76px !important;
    padding: 10px 8px !important;
  }

  .home-live-clock-v3 {
    width: 100% !important;
    text-align: left !important;
  }

  .home-prayer-head-v3 {
    flex-direction: column !important;
  }
}


/* ==== wizard.css ==== */
/* ═══════════════════════════════════════════════════════════════
   Ummah Compass — Onboarding Wizard Styles
   styles/wizard.css

   Extracted from settings.js injectWizardStyles() to eliminate
   the runtime <style> injection causing CLS on every boot.
   Load in index.html <head> before app.js.
   ═══════════════════════════════════════════════════════════════ */

#ucWizard { position: fixed; inset: 0; z-index: 9999; animation: wz-in .35s ease; }
#ucWizard.wz-exit { animation: wz-out .4s ease forwards; }
@keyframes wz-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes wz-out { from { opacity: 1; } to { opacity: 0; } }

.wz-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 14, 28, 0.93);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.wz-card {
  width: 100%; max-width: 480px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex; flex-direction: column;
  max-height: 88vh; overflow: hidden;
  color: #f3f4f6;
}
.wz-body   { flex: 1; overflow-y: auto; padding: 24px 22px 8px; -webkit-overflow-scrolling: touch; }
.wz-footer { padding: 12px 22px 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.wz-dots   { display: flex; justify-content: center; gap: 6px; padding: 0 0 14px; }
.wz-dot    { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: all .2s; }
.wz-dot.active { background: #34d399; width: 18px; border-radius: 3px; }

.wz-step { animation: wz-slide .28s ease; }
@keyframes wz-slide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.wz-icon      { font-size: 42px; text-align: center; margin-bottom: 10px; }
.wz-title     { font-size: 20px; font-weight: 600; color: #f9fafb; margin: 0 0 10px; text-align: center; line-height: 1.3; }
.wz-body-text { font-size: 14px; color: #9ca3af; line-height: 1.65; margin: 0 0 14px; text-align: center; }
.wz-privacy   { font-size: 13px; color: #34d399; text-align: center; padding: 8px 12px; background: rgba(52, 211, 153, 0.08); border-radius: 8px; }

.wz-welcome-points { display: grid; gap: 10px; }
.wz-info-pill, .wz-inline-note { font-size: 13px; color: #d1d5db; text-align: center; padding: 9px 12px; background: rgba(255, 255, 255, 0.05); border-radius: 10px; }

/* Calc cards */
.wz-calc-card    { margin-top: 8px; padding: 18px 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.04); display: grid; gap: 8px; text-align: center; }
.wz-calc-kicker  { font-size: 13px; font-weight: 600; color: #e5e7eb; }
.wz-calc-method  { font-size: 20px; line-height: 1.35; font-weight: 700; color: #f9fafb; }
.wz-calc-city    { font-size: 14px; color: #9ca3af; }
.wz-calc-note    { margin-top: 10px; }
.wz-calc-option  { cursor: pointer; transition: border-color .2s, background .2s; outline: none; }
.wz-calc-option:hover { border-color: rgba(197, 150, 74, 0.35); background: rgba(197, 150, 74, 0.06); }
.wz-calc-selected { border-color: rgba(197, 150, 74, 0.55) !important; background: rgba(197, 150, 74, 0.10) !important; }
.wz-calc-jafari  { border-color: rgba(167, 139, 250, 0.18); background: rgba(167, 139, 250, 0.04); }
.wz-calc-jafari.wz-calc-selected { border-color: rgba(167, 139, 250, 0.55) !important; background: rgba(167, 139, 250, 0.12) !important; }
.wz-calc-or      { text-align: center; font-size: 12px; color: #6b7280; margin: 6px 0; letter-spacing: .04em; }
.wz-calc-row     { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; }
.wz-calc-row-body { flex: 1; min-width: 0; }
.wz-calc-row .wz-calc-method { font-size: 16px; line-height: 1.3; margin: 0; }
.wz-calc-row .wz-calc-city   { font-size: 12px; color: #9ca3af; margin-top: 3px; line-height: 1.4; }
.wz-calc-radio       { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); flex-shrink: 0; transition: border-color .2s, background .2s; }
.wz-calc-radio--on   { border-color: #c5964a; background: radial-gradient(circle at center, #c5964a 40%, transparent 41%); }
.wz-calc-jafari .wz-calc-radio--on { border-color: rgba(167, 139, 250, 0.9); background: radial-gradient(circle at center, rgba(167, 139, 250, 0.9) 40%, transparent 41%); }

/* Buttons */
.wz-action-btn, .wz-search-btn {
  width: 100%; padding: 12px 16px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #0ea5a4, #0f766e);
  color: #fff; font-weight: 600; cursor: pointer; margin-bottom: 10px;
}
.wz-search-box   { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 10px; }
.wz-search-input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: #f3f4f6; }

/* City / tool results */
.wz-city-results, .wz-saved-cities { display: grid; gap: 8px; }
.wz-city-results.hidden { display: none; }
.wz-city-result, .wz-saved-city, .wz-tool-pill {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb; cursor: pointer;
}
.wz-city-result { flex-direction: column; align-items: flex-start; }
.wz-city-result-name { font-weight: 600; }
.wz-city-result-meta { font-size: 12px; color: #9ca3af; }
.wz-saved-wrap { margin-top: 10px; }
.wz-empty-note { font-size: 13px; color: #9ca3af; padding: 10px 0; }
.wz-saved-city.active, .wz-tool-pill.selected { border-color: #34d399; background: rgba(52, 211, 153, 0.12); color: #a7f3d0; }
.wz-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wz-tool-pill  { justify-content: flex-start; }
.wz-tool-icon  { font-size: 18px; }

/* Language grid */
.wz-lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.wz-lang-pill {
  padding: 10px 6px; border-radius: 10px; font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05);
  color: #d1d5db; cursor: pointer; text-align: center; transition: background .15s, border-color .15s;
}
.wz-lang-pill.selected { background: rgba(52, 211, 153, 0.15); border-color: #34d399; color: #a7f3d0; font-weight: 600; }
.wz-lang-pill:hover:not(.selected) { background: rgba(255, 255, 255, 0.09); }

/* Habit cards */
.wz-habit-card   { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.wz-habit-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wz-habit-label  { font-size: 14px; font-weight: 600; color: #f3f4f6; margin-bottom: 2px; }
.wz-habit-hint   { font-size: 12px; color: #6b7280; }
.wz-habit-sub    { margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 10px; }
.wz-habit-sub.hidden { display: none; }
.wz-when-label   { font-size: 12px; color: #9ca3af; margin: 0 0 8px; }

/* Toggle */
.wz-toggle { position: relative; display: inline-block; flex-shrink: 0; }
.wz-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.wz-toggle-track { display: block; width: 44px; height: 24px; border-radius: 12px; background: #374151; cursor: pointer; transition: background .2s; position: relative; }
.wz-toggle input:checked + .wz-toggle-track { background: #059669; }
.wz-toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.wz-toggle input:checked + .wz-toggle-track .wz-toggle-thumb { transform: translateX(20px); }

/* Checkboxes */
.wz-check-group { display: flex; flex-direction: column; gap: 8px; }
.wz-check-row   { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); cursor: pointer; transition: background .15s, border-color .15s; user-select: none; }
.wz-check-row:hover  { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); }
.wz-check-row.checked { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.35); }
.wz-check-native { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.wz-check-box {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center; transition: all .2s; position: relative;
}
.wz-check-box::after {
  content: ''; width: 5px; height: 10px; border: solid transparent;
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0);
  transition: all .2s cubic-bezier(0.34, 1.56, 0.64, 1); margin-top: -2px;
}
.wz-check-row.checked .wz-check-box { background: rgba(52,211,153,0.8); border-color: #34d399; box-shadow: 0 0 10px rgba(52,211,153,0.3); }
.wz-check-row.checked .wz-check-box::after { border-color: #fff; transform: rotate(45deg) scale(1); }
.wz-check-label { font-size: 14px; color: #d1d5db; }
.wz-check-row.checked .wz-check-label { color: #a7f3d0; font-weight: 500; }

/* Chips */
.wz-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-chip {
  padding: 7px 14px; border-radius: 20px; font-size: 13px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05);
  color: #d1d5db; cursor: pointer; transition: all .15s;
}
.wz-chip.selected { background: rgba(52,211,153,0.15); border-color: #34d399; color: #a7f3d0; font-weight: 600; }
.wz-custom-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.wz-custom-row.hidden { display: none; }
.wz-custom-input { width: 60px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); color: #f3f4f6; font-size: 15px; text-align: center; }
.wz-custom-label { font-size: 13px; color: #9ca3af; }

/* Hadith */
.wz-hadith { border-left: 3px solid #34d399; margin: 14px 0 0; padding: 10px 14px; font-size: 13px; color: #9ca3af; font-style: italic; border-radius: 0 8px 8px 0; background: rgba(52,211,153,0.05); }
[dir="rtl"] .wz-hadith { border-left: none; border-right: 3px solid #34d399; border-radius: 8px 0 0 8px; }

/* Footer nav */
.wz-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wz-btn-skip  { font-size: 13px; color: #6b7280; background: none; border: none; cursor: pointer; padding: 8px 4px; flex-shrink: 0; }
.wz-btn-skip:hover { color: #9ca3af; }
.wz-footer-nav { display: flex; gap: 8px; flex: 1; justify-content: flex-end; }
.wz-btn-back  { padding: 11px 16px; border-radius: 12px; font-size: 14px; border: 1px solid rgba(255,255,255,0.15); background: transparent; color: #9ca3af; cursor: pointer; transition: background .15s; }
.wz-btn-back:hover { background: rgba(255,255,255,0.07); }
.wz-btn-next  { padding: 11px 20px; border-radius: 12px; font-size: 15px; font-weight: 600; background: linear-gradient(135deg, #059669, #047857); border: none; color: #fff; cursor: pointer; transition: opacity .2s; }
.wz-btn-next:hover { opacity: .9; }

@media (max-width: 400px) {
  .wz-body  { padding: 18px 14px 6px; }
  .wz-title { font-size: 18px; }
  .wz-lang-grid { grid-template-columns: repeat(2, 1fr); }
}
