/* ═══════════════════════════════════════════════════
   NOOR — Pages CSS: Feature-Specific Styles
   ═══════════════════════════════════════════════════ */

/* ═══ PRAYER TIMES ═══ */
.pt-next {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  border-radius: var(--r-lg);
  padding: 24px;
  color: white;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pt-next::before { content: ''; position: absolute; top: -50%; right: -30%; width: 80%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 60%); }
.pt-next h3 { font-size: 13px; opacity: .8; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; position: relative; }
.pt-next .pt-name { font-size: 28px; font-weight: 700; position: relative; }
.pt-next .pt-countdown { font-size: 16px; opacity: .9; margin-top: 4px; font-variant-numeric: tabular-nums; position: relative; }
.pt-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.2); border-radius: 4px; margin-top: 12px; position: relative; overflow: hidden; }
.pt-bar-fill { height: 100%; background: var(--gold-400); border-radius: 4px; transition: width 1s linear; }
.pt-hijri { text-align: center; font-size: 14px; color: var(--text-2); margin-bottom: 16px; padding: 10px; background: var(--bg-el); border: 1px solid var(--border-1); border-radius: var(--r-sm); }
.pt-hijri b { color: var(--emerald-600); }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.pt-card { background: var(--bg-el); border: 1px solid var(--border-1); border-radius: var(--r-md); padding: 16px; text-align: center; transition: all .3s; }
.pt-card.active { border-color: var(--emerald-500); box-shadow: 0 0 0 3px var(--primary-glow); background: var(--emerald-50); }
[data-theme="dark"] .pt-card.active { background: rgba(5,150,105,0.08); }
.pt-card.passed { opacity: .5; }
.pt-card .pt-card-name { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.pt-card .pt-card-time { font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pt-card .pt-card-icon { font-size: 20px; margin-bottom: 6px; color: var(--emerald-600); }
.pt-method select { width: 100%; padding: 10px 14px; border: 1px solid var(--border-1); border-radius: var(--r-sm); background: var(--bg-el); color: var(--text-1); font-family: var(--font); font-size: 14px; cursor: pointer; margin-top: 16px; }
.pt-qibla { text-align: center; margin-top: 20px; padding: 24px; background: var(--bg-el); border: 1px solid var(--border-1); border-radius: var(--r-lg); }
.pt-qibla h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.qibla-compass { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--emerald-500); margin: 0 auto; position: relative; display: flex; align-items: center; justify-content: center; }
.qibla-arrow { font-size: 40px; color: var(--emerald-600); transition: transform .5s var(--ease); }
.qibla-label { font-size: 12px; color: var(--text-3); margin-top: 8px; }

/* ═══ QURAN READER ═══ */
.qr-search { margin-bottom: 16px; }
.qr-search input { width: 100%; padding: 12px 18px; border: 1px solid var(--border-1); border-radius: var(--r-sm); background: var(--bg-el); color: var(--text-1); font-family: var(--font); font-size: 14px; }
.qr-search input:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 3px var(--primary-glow); }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
.qr-card { background: var(--bg-el); border: 1px solid var(--border-1); border-radius: var(--r-md); padding: 16px; cursor: pointer; transition: all .3s var(--ease); text-align: center; }
.qr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--emerald-400); }
.qr-card .qr-num { width: 32px; height: 32px; border-radius: 50%; background: var(--emerald-50); color: var(--emerald-700); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
[data-theme="dark"] .qr-card .qr-num { background: rgba(5,150,105,0.1); }
.qr-card .qr-ar { font-family: var(--font-arabic); font-size: 20px; color: var(--text-1); margin-bottom: 4px; }
.qr-card .qr-en { font-size: 12px; color: var(--text-2); font-weight: 500; }
.qr-card .qr-info { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.qr-reading { display: none; }
.qr-reading.show { display: block; }
.qr-list.hide { display: none; }
.qr-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--border-1); border-radius: var(--r-sm); background: var(--bg-el); color: var(--text-2); cursor: pointer; font-family: var(--font); font-size: 13px; margin-bottom: 16px; transition: all .2s; }
.qr-back:hover { border-color: var(--emerald-500); color: var(--emerald-700); }
.qr-bismillah { text-align: center; font-family: var(--font-arabic); font-size: 28px; color: var(--gold-500); padding: 20px 0; margin-bottom: 16px; }
.qr-verse { padding: 16px; margin-bottom: 8px; background: var(--bg-el); border: 1px solid var(--border-1); border-radius: var(--r-md); }
.qr-verse-ar { font-family: var(--font-arabic); font-size: 24px; line-height: 2; text-align: right; color: var(--text-1); margin-bottom: 8px; direction: rtl; }
.qr-verse-en { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.qr-verse-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--emerald-50); color: var(--emerald-700); font-size: 11px; font-weight: 700; margin-bottom: 6px; }
[data-theme="dark"] .qr-verse-num { background: rgba(5,150,105,0.1); }
.qr-loading { text-align: center; padding: 40px; color: var(--text-3); }

/* ═══ DHIKR & DUAS ═══ */
.dh-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.dh-filter { padding: 8px 16px; border: 1px solid var(--border-1); border-radius: 20px; background: var(--bg-el); color: var(--text-2); cursor: pointer; font-family: var(--font); font-size: 13px; font-weight: 500; transition: all .2s; }
.dh-filter:hover, .dh-filter.active { background: var(--emerald-600); color: white; border-color: var(--emerald-600); }
.dh-grid { display: flex; flex-direction: column; gap: 12px; }
.dh-card { background: var(--bg-el); border: 1px solid var(--border-1); border-radius: var(--r-md); padding: 20px; transition: all .3s; }
.dh-card:hover { box-shadow: var(--shadow-md); }
.dh-card .dh-ar { font-family: var(--font-arabic); font-size: 22px; line-height: 1.8; text-align: center; color: var(--text-1); margin-bottom: 10px; direction: rtl; }
.dh-card .dh-trans { font-size: 13px; color: var(--text-2); font-style: italic; text-align: center; margin-bottom: 6px; }
.dh-card .dh-mean { font-size: 14px; color: var(--text-1); text-align: center; margin-bottom: 10px; line-height: 1.6; }
.dh-card .dh-meta { display: flex; justify-content: center; gap: 16px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.dh-card .dh-meta span { display: flex; align-items: center; gap: 4px; }
.dh-card .dh-meta i { color: var(--emerald-600); }

/* ═══ ISLAMIC CALENDAR ═══ */
.cal-today {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  border-radius: var(--r-xl);
  padding: 36px 24px;
  color: white;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.cal-today::before { content: ''; position: absolute; top: -50%; right: -30%; width: 80%; height: 200%; background: radial-gradient(circle, rgba(245,158,11,0.06), transparent 60%); }
.cal-today .cal-hijri-day { font-size: 48px; font-weight: 800; position: relative; }
.cal-today .cal-hijri-month { font-family: var(--font-arabic); font-size: 24px; margin-top: 4px; position: relative; }
.cal-today .cal-hijri-year { font-size: 16px; opacity: .7; position: relative; }
.cal-today .cal-greg { font-size: 13px; opacity: .6; margin-top: 8px; position: relative; }
.cal-events { margin-bottom: 20px; }
.cal-event { background: var(--bg-el); border: 1px solid var(--border-1); border-radius: var(--r-md); padding: 14px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.cal-event-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--gold-50); color: var(--gold-600); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
[data-theme="dark"] .cal-event-ic { background: rgba(245,158,11,0.1); }
.cal-event h4 { font-size: 14px; font-weight: 600; }
.cal-event p { font-size: 12px; color: var(--text-3); }
.cal-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 20px; }
.cal-month { background: var(--bg-el); border: 1px solid var(--border-1); border-radius: var(--r-md); padding: 14px; text-align: center; }
.cal-month.current { border-color: var(--emerald-500); background: var(--emerald-50); box-shadow: 0 0 0 3px var(--primary-glow); }
[data-theme="dark"] .cal-month.current { background: rgba(5,150,105,0.08); }
.cal-month .cal-m-num { font-size: 11px; color: var(--text-3); font-weight: 600; }
.cal-month .cal-m-ar { font-family: var(--font-arabic); font-size: 18px; margin: 4px 0; }
.cal-month .cal-m-en { font-size: 12px; color: var(--text-2); font-weight: 500; }

/* ═══ ZAKAT CALCULATOR ═══ */
.zk-form { background: var(--bg-el); border: 1px solid var(--border-1); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; }
.zk-row { margin-bottom: 16px; }
.zk-row label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.zk-row label i { color: var(--emerald-600); margin-right: 4px; }
.zk-row input { width: 100%; padding: 12px 16px; border: 1px solid var(--border-1); border-radius: var(--r-sm); background: var(--bg-sunk); color: var(--text-1); font-family: var(--font); font-size: 15px; }
.zk-row input:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 3px var(--primary-glow); }
.zk-result {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  border-radius: var(--r-lg);
  padding: 28px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.zk-result::before { content: ''; position: absolute; top: -50%; right: -30%; width: 80%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 60%); }
.zk-result h3 { font-size: 13px; opacity: .8; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; position: relative; }
.zk-result .zk-amount { font-size: 36px; font-weight: 800; position: relative; font-variant-numeric: tabular-nums; }
.zk-result .zk-detail { font-size: 13px; opacity: .7; margin-top: 8px; position: relative; }
.zk-btn { width: 100%; padding: 14px; border: none; border-radius: var(--r-sm); background: var(--emerald-600); color: white; font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer; transition: all .25s; margin-top: 8px; }
.zk-btn:hover { background: var(--emerald-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.zk-info { margin-top: 16px; padding: 14px; background: var(--gold-50); border: 1px solid rgba(245,158,11,0.15); border-radius: var(--r-sm); font-size: 13px; color: var(--text-2); line-height: 1.6; }
[data-theme="dark"] .zk-info { background: rgba(245,158,11,0.05); }

/* ═══ TASBIH COUNTER ═══ */
.tb-wrap { text-align: center; padding: 20px 0; }
.tb-dhikr-name { font-family: var(--font-arabic); font-size: 28px; color: var(--emerald-700); margin-bottom: 6px; direction: rtl; }
.tb-dhikr-trans { font-size: 14px; color: var(--text-3); margin-bottom: 28px; }
.tb-tap {
  width: 160px; height: 160px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, var(--emerald-500), var(--emerald-700));
  color: white;
  font-size: 16px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 8px 32px rgba(5,150,105,0.25), 0 0 0 8px var(--primary-glow);
  user-select: none;
}
.tb-tap:active { transform: scale(0.93); }
.tb-count { font-size: 72px; font-weight: 800; font-variant-numeric: tabular-nums; display: block; margin-bottom: 30px; line-height: 1; color: var(--text-1); }
.tb-count.bump { animation: bump .1s ease-out; }
.tb-progress { height: 6px; background: var(--bg-sunk); border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
.tb-progress-fill { height: 100%; background: linear-gradient(90deg, var(--emerald-500), var(--emerald-600)); border-radius: 6px; transition: width .3s var(--ease); width: 0; }
.tb-target-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.tb-preset { padding: 8px 16px; border: 1px solid var(--border-1); border-radius: 20px; background: var(--bg-el); color: var(--text-2); cursor: pointer; font-family: var(--font); font-size: 13px; font-weight: 500; transition: all .2s; }
.tb-preset:hover, .tb-preset.active { background: var(--emerald-600); color: white; border-color: var(--emerald-600); }
.tb-dhikr-select { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.tb-dhikr { padding: 8px 18px; border: 1px solid var(--border-1); border-radius: 20px; background: var(--bg-el); color: var(--text-1); cursor: pointer; font-family: var(--font-arabic); font-size: 16px; transition: all .2s; }
.tb-dhikr:hover, .tb-dhikr.active { background: var(--emerald-600); color: white; border-color: var(--emerald-600); }
.tb-controls { display: flex; justify-content: center; gap: 10px; }
.tb-ctrl-btn { padding: 10px 20px; border: 1px solid var(--border-1); border-radius: var(--r-sm); background: var(--bg-el); color: var(--text-2); cursor: pointer; font-family: var(--font); font-size: 13px; display: flex; align-items: center; gap: 6px; transition: all .2s; }
.tb-ctrl-btn:hover { border-color: var(--emerald-500); color: var(--emerald-700); }

/* ═══ 99 NAMES OF ALLAH ═══ */
.nm-search { margin-bottom: 16px; }
.nm-search input { width: 100%; padding: 12px 18px; border: 1px solid var(--border-1); border-radius: var(--r-sm); background: var(--bg-el); color: var(--text-1); font-family: var(--font); font-size: 14px; }
.nm-search input:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 3px var(--primary-glow); }
.nm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.nm-card { background: var(--bg-el); border: 1px solid var(--border-1); border-radius: var(--r-md); padding: 20px 14px; text-align: center; transition: all .3s var(--ease); cursor: default; }
.nm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--emerald-400); }
.nm-num { font-size: 11px; color: var(--text-3); font-weight: 700; margin-bottom: 6px; }
.nm-ar { font-family: var(--font-arabic); font-size: 22px; color: var(--text-1); margin-bottom: 6px; direction: rtl; }
.nm-trans { font-size: 12px; font-weight: 600; color: var(--emerald-700); margin-bottom: 3px; }
.nm-mean { font-size: 11.5px; color: var(--text-3); line-height: 1.4; }

/* ═══ HALAL CHECKER ═══ */
.hl-input-row { display: flex; gap: 10px; margin-bottom: 12px; }
.hl-input-row input { flex: 1; padding: 12px 16px; border: 1px solid var(--border-1); border-radius: var(--r-sm); background: var(--bg-el); color: var(--text-1); font-family: var(--font); font-size: 14px; }
.hl-input-row input:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 3px var(--primary-glow); }
.hl-btn { padding: 12px 20px; border: none; border-radius: var(--r-sm); background: var(--emerald-600); color: white; font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .25s; }
.hl-btn:hover { background: var(--emerald-700); }
.hl-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.hl-qbtn { padding: 7px 14px; border: 1px solid var(--border-1); border-radius: 20px; background: var(--bg-el); color: var(--text-2); cursor: pointer; font-family: var(--font); font-size: 12px; font-weight: 500; transition: all .2s; }
.hl-qbtn:hover { border-color: var(--emerald-500); color: var(--emerald-700); }
.hl-result { display: none; background: var(--bg-el); border: 1px solid var(--border-1); border-radius: var(--r-lg); padding: 20px; margin-top: 16px; }
.hl-result.show { display: block; }
.hl-result.halal { border-color: var(--emerald-400); }
.hl-result.haram { border-color: #DC2626; }
.hl-result.doubtful { border-color: var(--gold-400); }
.hl-status { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.halal-s { color: var(--emerald-700); }
.haram-s { color: #DC2626; }
.doubtful-s { color: var(--gold-600); }
.hl-reason { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.hl-info { margin-top: 16px; padding: 14px; background: var(--gold-50); border: 1px solid rgba(245,158,11,0.15); border-radius: var(--r-sm); font-size: 13px; color: var(--text-2); line-height: 1.6; }
[data-theme="dark"] .hl-info { background: rgba(245,158,11,0.05); }

/* ═══ RESPONSIVE: Pages ═══ */
@media (max-width: 640px) {
  .pt-grid { grid-template-columns: repeat(3, 1fr); }
  .qr-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-months { grid-template-columns: repeat(3, 1fr); }
  .nm-grid { grid-template-columns: repeat(2, 1fr); }
  .hl-input-row { flex-direction: column; }
  .tb-tap { width: 130px; height: 130px; font-size: 15px; }
  .tb-count { font-size: 60px; }
}
