/* ─────────────────────────────────────────────────────────────────────────── */
/* وَقْة — Aplikasi Pengingat Sholat                                           */
/* Styles — Islami Minimalis                                                   */
/* ─────────────────────────────────────────────────────────────────────────── */

:root {
  --emerald-950: #022c22;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-300: #6ee7b7;
  --emerald-200: #a7f3d0;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;
  --gold:        #d4af37;
  --gold-light:  #f0d060;
  --night-bg:    #0a1628;
  --night-card:  #112240;
  --night-border:#1e3a5f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

/* ── Splash Screen ────────────────────────────────────────────────────────── */
.splash-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 40% 30%, #064e3b 0%, #022c22 50%, #011a15 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: splashIn 0.5s ease;
}

@keyframes splashIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.splash-logo {
  width: 160px; height: 160px;
  border-radius: 30%;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5)) drop-shadow(0 0 60px rgba(52, 211, 153, 0.3));
  animation: splashPulse 2s ease-in-out infinite;
}

@keyframes splashPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4)) drop-shadow(0 0 50px rgba(52, 211, 153, 0.2)); }
  50%       { filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.7)) drop-shadow(0 0 80px rgba(52, 211, 153, 0.4)); }
}

.splash-title {
  font-family: 'Amiri', serif;
  font-size: 52px;
  color: var(--emerald-400);
  text-shadow: 0 0 24px rgba(52, 211, 153, 0.5), 0 0 60px rgba(52, 211, 153, 0.2);
  margin-top: 8px;
  letter-spacing: 2px;
}

.splash-tagline {
  font-size: 14px;
  color: rgba(167, 243, 208, 0.6);
  letter-spacing: 1px;
  font-weight: 300;
}

.splash-loader {
  width: 140px;
  height: 3px;
  background: rgba(52, 211, 153, 0.15);
  border-radius: 2px;
  margin-top: 20px;
  overflow: hidden;
}

.splash-loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-500), var(--gold), var(--emerald-400));
  border-radius: 2px;
  animation: loadBar 1.8s ease-in-out forwards;
}

@keyframes loadBar {
  from { width: 0%; }
  60%  { width: 80%; }
  100% { width: 100%; }
}

/* ── PWA Install Banner ───────────────────────────────────────────────────── */
.pwa-banner {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 32px);
  max-width: 398px;
  background: linear-gradient(135deg, rgba(5, 46, 33, 0.97), rgba(2, 20, 14, 0.99));
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pwa-banner.show { transform: translateX(-50%) translateY(0); }

.pwa-banner-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

.pwa-banner-text { flex: 1; }
.pwa-banner-title { font-size: 13px; font-weight: 700; color: #f0fdf4; }
.pwa-banner-sub { font-size: 11px; color: rgba(167, 243, 208, 0.55); margin-top: 2px; }

.pwa-banner-btn {
  padding: 8px 16px;
  background: var(--emerald-600);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.pwa-banner-btn:hover { background: var(--emerald-500); }

.pwa-banner-close {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(167, 243, 208, 0.4);
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  border: none; background: none;
}
.pwa-banner-close:hover { color: rgba(167, 243, 208, 0.8); }



body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--emerald-950);
  color: #f0fdf4;
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--emerald-700); border-radius: 2px; }

/* ── App Shell ────────────────────────────────────────────────────────────── */
#app {
  min-height: 100vh;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.app-header {
  background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-950) 100%);
  padding: 10px 18px 10px;
  display: flex;
  align-items: center;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(52, 211, 153, 0.15);
  backdrop-filter: blur(10px);
}

.app-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.app-logo-img {
  width: 36px; height: 36px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.app-logo {
  font-family: 'Amiri', serif;
  font-size: 24px;
  color: var(--emerald-400);
  letter-spacing: 1px;
  text-shadow: 0 0 14px rgba(52, 211, 153, 0.4);
  line-height: 1.1;
}

.app-tagline {
  font-size: 9px;
  color: rgba(167, 243, 208, 0.4);
  white-space: nowrap;
  line-height: 1;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.18);
  color: var(--emerald-400);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.header-btn:hover { background: rgba(52, 211, 153, 0.18); }
.header-btn:active { transform: scale(0.93); }

/* ── Pages ────────────────────────────────────────────────────────────────── */
.page { display: none; flex: 1; overflow-y: auto; padding-bottom: 20px; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Page Header ──────────────────────────────────────────────────────────── */
.page-header {
  padding: 16px 16px 8px;
}
.page-title {
  font-size: 20px;
  font-weight: 700;
  color: #f0fdf4;
}
.page-subtitle {
  font-size: 12px;
  color: rgba(167, 243, 208, 0.5);
  margin-top: 3px;
}

/* ── Bottom Navigation ────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(5, 26, 20, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(52, 211, 153, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0 max(16px, env(safe-area-inset-bottom));
  z-index: 200;
}

.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 12px; border-radius: 12px;
  cursor: pointer; transition: all 0.2s;
  color: rgba(167, 243, 208, 0.4);
  font-size: 10px; font-weight: 500;
  min-width: 52px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.nav-item i { font-size: 19px; transition: all 0.2s; }
.nav-item.active { color: var(--emerald-400); }
.nav-item.active i {
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
  transform: scale(1.1);
}
.nav-item:active { transform: scale(0.92); }

/* ── Prayer Times Page ────────────────────────────────────────────────────── */
.prayer-hero {
  background: linear-gradient(180deg, var(--emerald-900) 0%, var(--emerald-950) 100%);
  padding: 20px 20px 26px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.prayer-hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.prayer-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.2), transparent);
}

/* Hero Logo */
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-logo {
  width: 72px; height: 72px;
  border-radius: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.5)) drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  animation: heroLogoPulse 3s ease-in-out infinite;
}

@keyframes heroLogoPulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4)) drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
  50%       { filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.7)) drop-shadow(0 4px 16px rgba(0,0,0,0.5)); }
}

.hijri-date {
  font-family: 'Amiri', serif;
  font-size: 16px;
  color: var(--emerald-400);
  margin-bottom: 3px;
}

.gregorian-date {
  font-size: 12px;
  color: rgba(167, 243, 208, 0.55);
  margin-bottom: 18px;
}

.location-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px;
  color: var(--emerald-300);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.location-badge:hover, .location-badge:active { background: rgba(52, 211, 153, 0.2); }

/* ── Next Prayer Card ─────────────────────────────────────────────────────── */
.next-prayer-card {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.9) 0%, rgba(2, 44, 34, 0.95) 100%);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 20px;
  padding: 20px;
  margin: 16px 16px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}

.next-prayer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.5), transparent);
}

.next-label {
  font-size: 10px;
  color: var(--emerald-400);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 8px;
}

.next-prayer-name {
  font-family: 'Amiri', serif;
  font-size: 30px;
  color: #fff;
  margin-bottom: 2px;
}

.next-prayer-time {
  font-size: 48px;
  font-weight: 700;
  color: var(--emerald-400);
  letter-spacing: -2px;
  text-shadow: 0 0 24px rgba(52, 211, 153, 0.4);
  line-height: 1;
}

.countdown-display {
  font-size: 13px;
  color: rgba(167, 243, 208, 0.65);
  margin-top: 8px;
}

.countdown-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

/* ── Prayer Grid ──────────────────────────────────────────────────────────── */
.prayer-grid {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prayer-item {
  background: rgba(6, 78, 59, 0.25);
  border: 1px solid rgba(52, 211, 153, 0.1);
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.prayer-item.active-prayer {
  background: rgba(6, 78, 59, 0.55);
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.08);
}

.prayer-item-left { display: flex; align-items: center; gap: 12px; }

.prayer-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.prayer-item.active-prayer .prayer-icon {
  background: rgba(52, 211, 153, 0.18);
}

.prayer-name-id { font-size: 14px; font-weight: 600; color: #f0fdf4; }
.prayer-name-ar { font-family: 'Amiri', serif; font-size: 13px; color: var(--emerald-400); margin-top: 1px; }

.prayer-item-right { display: flex; align-items: center; gap: 10px; }

.prayer-time-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--emerald-400);
  font-variant-numeric: tabular-nums;
}
.prayer-item.active-prayer .prayer-time-val { color: var(--gold); }

.notify-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.15);
  color: rgba(52, 211, 153, 0.35);
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.notify-toggle.on { color: var(--emerald-400); background: rgba(52, 211, 153, 0.18); border-color: rgba(52, 211, 153, 0.3); }

/* ── Section Card ─────────────────────────────────────────────────────────── */
.section-card {
  background: rgba(6, 78, 59, 0.25);
  border: 1px solid rgba(52, 211, 153, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 12px 16px 0;
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald-400);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}

/* ── Method Tabs ──────────────────────────────────────────────────────────── */
.method-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.method-tab {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.14);
  color: rgba(167, 243, 208, 0.65);
  font-size: 11px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.method-tab.active, .method-tab:hover {
  background: rgba(52, 211, 153, 0.18);
  border-color: var(--emerald-500);
  color: var(--emerald-300);
}

/* ── Quran Verse Card ─────────────────────────────────────────────────────── */
.quran-verse-card { margin-bottom: 12px; }
.ornament {
  text-align: center;
  color: rgba(52, 211, 153, 0.3);
  font-size: 14px;
  padding: 6px;
  letter-spacing: 6px;
}
.verse-arabic {
  text-align: center;
  font-family: 'Amiri', serif;
  font-size: 22px;
  color: var(--emerald-300);
  line-height: 2;
  direction: rtl;
  padding: 0 8px;
}
.verse-translation {
  text-align: center;
  font-size: 12px;
  color: rgba(167, 243, 208, 0.6);
  line-height: 1.7;
  margin-top: 8px;
  padding: 0 8px;
}
.verse-source { color: var(--emerald-400); display: block; margin-top: 4px; }

/* ── Quran Page ───────────────────────────────────────────────────────────── */
.quran-search {
  margin: 10px 16px;
  position: relative;
}

.quran-search input {
  width: 100%;
  background: rgba(6, 78, 59, 0.4);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 12px;
  padding: 12px 16px 12px 42px;
  color: #f0fdf4;
  font-size: 14px;
  outline: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.2s;
}
.quran-search input::placeholder { color: rgba(167, 243, 208, 0.35); }
.quran-search input:focus { border-color: rgba(52, 211, 153, 0.4); }

.quran-search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: rgba(52, 211, 153, 0.45);
  font-size: 13px;
  pointer-events: none;
}

.surah-list { padding: 0 16px; display: flex; flex-direction: column; gap: 6px; }

.surah-item {
  background: rgba(6, 78, 59, 0.25);
  border: 1px solid rgba(52, 211, 153, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.surah-item:hover, .surah-item:active {
  background: rgba(6, 78, 59, 0.5);
  border-color: rgba(52, 211, 153, 0.28);
}

.surah-number {
  width: 34px; height: 34px;
  background: rgba(52, 211, 153, 0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--emerald-400);
  flex-shrink: 0;
}

.surah-info { flex: 1; min-width: 0; }
.surah-name-id { font-size: 13px; font-weight: 600; color: #f0fdf4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.surah-meta { font-size: 10px; color: rgba(167, 243, 208, 0.45); margin-top: 2px; }
.surah-name-ar { font-family: 'Amiri', serif; font-size: 18px; color: var(--emerald-400); flex-shrink: 0; }

/* ── Quran Reader ─────────────────────────────────────────────────────────── */
.reader-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0 14px;
}

.back-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.1);
  border: none;
  color: var(--emerald-400);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: all 0.2s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.back-btn:hover { background: rgba(52, 211, 153, 0.2); }

.reader-title { flex: 1; min-width: 0; }
.reader-title h2 { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-title p { font-size: 11px; color: var(--emerald-400); margin-top: 2px; }
.reader-surah-ar { font-family: 'Amiri', serif; font-size: 22px; color: var(--emerald-400); flex-shrink: 0; }

.bismillah {
  text-align: center;
  font-family: 'Amiri', serif;
  font-size: 24px;
  color: var(--emerald-300);
  padding: 14px 12px;
  background: rgba(52, 211, 153, 0.05);
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(52, 211, 153, 0.1);
  line-height: 1.8;
}

.ayah-item {
  margin-bottom: 14px;
  padding: 14px;
  background: rgba(6, 78, 59, 0.22);
  border-radius: 12px;
  border-left: 3px solid rgba(52, 211, 153, 0.18);
  transition: all 0.2s;
}
.ayah-item:hover { border-left-color: var(--emerald-500); background: rgba(6, 78, 59, 0.38); }

.ayah-arabic {
  font-family: 'Amiri', serif;
  font-size: 22px;
  color: #f0fdf4;
  text-align: right;
  line-height: 2;
  margin-bottom: 8px;
  direction: rtl;
  overflow-wrap: break-word;
}

.ayah-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: rgba(52, 211, 153, 0.14);
  border-radius: 50%;
  font-size: 10px; font-weight: 700;
  color: var(--emerald-400);
  float: right;
  margin-left: 8px;
  margin-bottom: 4px;
  flex-shrink: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.ayah-translation {
  font-size: 12px;
  color: rgba(167, 243, 208, 0.7);
  line-height: 1.75;
  margin-top: 8px;
}

/* ── Qibla Page ───────────────────────────────────────────────────────────── */
.qibla-container {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 20px 8px;
}

.compass-wrapper {
  position: relative;
  width: 270px; height: 270px;
  margin: 8px 0;
}

.compass-bg {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(6, 78, 59, 0.85), rgba(2, 26, 18, 0.98));
  border: 2px solid rgba(52, 211, 153, 0.28);
  box-shadow:
    0 0 40px rgba(52, 211, 153, 0.12),
    inset 0 0 40px rgba(0, 0, 0, 0.4),
    0 0 0 6px rgba(52, 211, 153, 0.04),
    0 0 0 12px rgba(52, 211, 153, 0.02);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.compass-rose {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  transition: transform 0.15s linear;
}

.qibla-needle {
  position: absolute;
  width: 4px;
  height: 115px;
  left: 50%;
  top: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) translateY(-100%);
  z-index: 10;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.qibla-needle::before {
  content: '';
  display: block;
  width: 4px;
  height: 58px;
  background: linear-gradient(to bottom, var(--gold-light), var(--gold));
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}

.qibla-needle::after {
  content: '';
  display: block;
  width: 4px;
  height: 57px;
  background: linear-gradient(to bottom, rgba(167, 243, 208, 0.25), transparent);
  border-radius: 0 0 2px 2px;
}

.compass-center {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.9);
  z-index: 11;
  position: absolute;
}

.kaaba-icon {
  font-size: 18px;
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.7));
}

.qibla-info { text-align: center; margin-top: 12px; }

.qibla-degree {
  font-size: 40px; font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  line-height: 1;
}

.qibla-status {
  font-size: 13px;
  color: rgba(167, 243, 208, 0.65);
  margin-top: 6px;
}

.calibrate-btn {
  margin-top: 14px;
  padding: 10px 24px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 20px;
  color: var(--emerald-400);
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.calibrate-btn:hover, .calibrate-btn:active { background: rgba(52, 211, 153, 0.22); }

.info-list {
  font-size: 13px;
  color: rgba(167, 243, 208, 0.65);
  line-height: 2;
}
.gold-text { color: var(--gold); }

.coords-row { display: flex; justify-content: space-between; align-items: center; }
.coords-label { font-size: 10px; color: rgba(167, 243, 208, 0.45); margin-bottom: 3px; }
.coords-value { font-size: 13px; color: var(--emerald-300); font-weight: 500; }

/* ── Dzikir Page ──────────────────────────────────────────────────────────── */
.dzikir-tabs {
  display: flex; gap: 0;
  margin: 10px 16px;
  background: rgba(6, 78, 59, 0.3);
  border-radius: 12px;
  padding: 4px;
  border: 1px solid rgba(52, 211, 153, 0.12);
}

.dzikir-tab-btn {
  flex: 1;
  padding: 9px 4px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: rgba(167, 243, 208, 0.45);
  font-size: 11px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.dzikir-tab-btn.active {
  background: rgba(52, 211, 153, 0.15);
  color: var(--emerald-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dzikir-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }

.dzikir-card {
  background: rgba(6, 78, 59, 0.25);
  border: 1px solid rgba(52, 211, 153, 0.1);
  border-radius: 14px;
  padding: 14px;
}

.dzikir-arabic {
  font-family: 'Amiri', serif;
  font-size: 22px;
  color: #f0fdf4;
  text-align: right;
  line-height: 2;
  direction: rtl;
  margin-bottom: 8px;
  overflow-wrap: break-word;
}

.dzikir-latin {
  font-size: 11px;
  color: var(--emerald-400);
  font-style: italic;
  margin-bottom: 5px;
  line-height: 1.6;
}

.dzikir-meaning {
  font-size: 12px;
  color: rgba(167, 243, 208, 0.6);
  line-height: 1.7;
  margin-bottom: 10px;
}

.dzikir-count-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(52, 211, 153, 0.08);
}

.dzikir-counter { display: flex; align-items: center; gap: 10px; }

.counter-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: var(--emerald-400);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.counter-btn:hover { background: rgba(52, 211, 153, 0.22); }
.counter-btn:active { transform: scale(0.88); }

.counter-value {
  font-size: 16px; font-weight: 700;
  color: var(--emerald-300);
  min-width: 30px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.dzikir-repeat {
  font-size: 10px;
  color: rgba(167, 243, 208, 0.45);
  background: rgba(52, 211, 153, 0.07);
  padding: 4px 10px;
  border-radius: 8px;
}

/* ── Tasbih ───────────────────────────────────────────────────────────────── */
.tasbih-container {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 20px;
}

.tasbih-display {
  width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(52, 211, 153, 0.18), rgba(2, 26, 18, 0.9));
  border: 3px solid rgba(52, 211, 153, 0.28);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow:
    0 0 40px rgba(52, 211, 153, 0.18),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.1s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.tasbih-display:active {
  transform: scale(0.96);
  box-shadow: 0 0 60px rgba(52, 211, 153, 0.4), inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.tasbih-count {
  font-size: 64px; font-weight: 700;
  color: var(--emerald-400);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tasbih-label-ar {
  font-family: 'Amiri', serif;
  font-size: 17px;
  color: var(--emerald-300);
  margin-top: 4px;
  text-align: center;
}
.tasbih-total {
  font-size: 10px;
  color: rgba(167, 243, 208, 0.4);
  margin-top: 4px;
}

.tasbih-names {
  display: flex; gap: 8px; margin-top: 16px;
  flex-wrap: wrap; justify-content: center;
}

.tasbih-name-btn {
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.14);
  color: rgba(167, 243, 208, 0.65);
  font-family: 'Amiri', serif;
  font-size: 14px;
  cursor: pointer; transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.tasbih-name-btn.active {
  background: rgba(52, 211, 153, 0.18);
  border-color: var(--emerald-500);
  color: var(--emerald-300);
}

.tasbih-controls { display: flex; gap: 10px; margin-top: 16px; }

.tasbih-btn {
  padding: 10px 22px;
  border-radius: 20px;
  border: 1px solid;
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.tasbih-btn.reset {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.28);
  color: #fca5a5;
}
.tasbih-btn.target {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.28);
  color: var(--emerald-300);
}

/* ── Kalender Page ────────────────────────────────────────────────────────── */
.kalender-hero {
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-950));
  padding: 28px 20px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(52, 211, 153, 0.12);
}

.hijri-big {
  font-family: 'Amiri', serif;
  font-size: 72px;
  color: var(--emerald-400);
  text-shadow: 0 0 24px rgba(52, 211, 153, 0.35);
  line-height: 1;
}

.hijri-month-year {
  font-family: 'Amiri', serif;
  font-size: 22px;
  color: var(--emerald-300);
  margin-top: 6px;
}

.gregorian-date-big {
  font-size: 13px;
  color: rgba(167, 243, 208, 0.55);
  margin-top: 8px;
}

.today-row { display: flex; justify-content: space-between; align-items: center; }
.today-hijri {
  font-family: 'Amiri', serif;
  font-size: 16px;
  color: var(--emerald-400);
}

.islamic-events { padding: 12px 16px; }

.event-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: rgba(6, 78, 59, 0.25);
  border-radius: 12px;
  margin-bottom: 7px;
  border-left: 3px solid var(--gold);
}

.event-date { font-size: 11px; color: var(--gold); font-weight: 600; min-width: 58px; padding-top: 2px; }
.event-name { font-size: 13px; color: #f0fdf4; font-weight: 500; }
.event-name-ar { font-family: 'Amiri', serif; font-size: 15px; color: var(--emerald-400); margin-top: 2px; }

/* ── Modals ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none; align-items: flex-end; justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal-sheet {
  background: linear-gradient(180deg, rgba(5, 46, 33, 0.98) 0%, rgba(2, 20, 14, 0.99) 100%);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px max(32px, env(safe-area-inset-bottom));
  width: 100%;
  max-width: 430px;
  max-height: 82vh;
  overflow-y: auto;
}

.modal-handle {
  width: 36px; height: 4px;
  background: rgba(52, 211, 153, 0.28);
  border-radius: 2px;
  margin: 0 auto 18px;
}

.modal-title {
  font-size: 17px; font-weight: 700;
  color: #f0fdf4;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}

/* ── Settings ─────────────────────────────────────────────────────────────── */
.settings-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(52, 211, 153, 0.07);
}

.settings-item-left { display: flex; align-items: center; gap: 12px; }

.settings-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(52, 211, 153, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald-400);
  font-size: 14px;
  flex-shrink: 0;
}

.settings-label { font-size: 14px; font-weight: 500; color: #f0fdf4; }
.settings-sub { font-size: 10px; color: rgba(167, 243, 208, 0.45); margin-top: 2px; }

.toggle-switch {
  width: 42px; height: 23px;
  background: rgba(52, 211, 153, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.toggle-switch.on { background: var(--emerald-600); border-color: var(--emerald-500); }
.toggle-switch::after {
  content: '';
  width: 17px; height: 17px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.toggle-switch.on::after { transform: translateX(19px); }

.select-input {
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--emerald-300);
  font-size: 11px;
  outline: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
}

.settings-footer {
  margin-top: 16px;
  padding: 14px;
  background: rgba(52, 211, 153, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.08);
  text-align: center;
}
.settings-logo { font-family: 'Amiri', serif; font-size: 24px; color: var(--emerald-400); }
.settings-version { font-size: 11px; color: rgba(167, 243, 208, 0.4); margin-top: 4px; }

/* ── Location Modal ───────────────────────────────────────────────────────── */
.gps-btn {
  margin-bottom: 10px;
}

.divider-text {
  text-align: center;
  font-size: 11px;
  color: rgba(167, 243, 208, 0.4);
  margin: 8px 0;
}

.city-input {
  width: 100%;
  background: rgba(6, 78, 59, 0.4);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 12px;
  padding: 12px 16px;
  color: #f0fdf4;
  font-size: 14px;
  outline: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}
.city-input::placeholder { color: rgba(167, 243, 208, 0.35); }
.city-input:focus { border-color: rgba(52, 211, 153, 0.4); }

.city-btn {
  width: 100%;
  padding: 12px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 12px;
  color: var(--emerald-300);
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.city-btn:hover, .city-btn:active { background: rgba(52, 211, 153, 0.22); }

.quick-cities-section { margin-top: 14px; }
.quick-cities-label {
  font-size: 10px;
  color: rgba(167, 243, 208, 0.4);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.quick-cities-grid { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Loading Spinner ──────────────────────────────────────────────────────── */
.spinner {
  width: 30px; height: 30px;
  border: 3px solid rgba(52, 211, 153, 0.18);
  border-top-color: var(--emerald-500);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 32px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 96px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(5, 46, 33, 0.96);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 12px;
  padding: 10px 20px;
  color: var(--emerald-300);
  font-size: 13px; font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: 85vw;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Empty State ──────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: rgba(167, 243, 208, 0.45);
}
.empty-state i { font-size: 36px; margin-bottom: 10px; display: block; }
.empty-state p { font-size: 13px; }

/* ── Animations ───────────────────────────────────────────────────────────── */
.fade-up { animation: fadeUp 0.4s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.06s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.18s; }
.delay-4 { animation-delay: 0.24s; }
.delay-5 { animation-delay: 0.30s; }

/* ── Night Mode ───────────────────────────────────────────────────────────── */
body.night-mode {
  background: #070e1a;
}
body.night-mode .prayer-hero {
  background: linear-gradient(180deg, #0a1628 0%, #060e18 100%);
}
body.night-mode .next-prayer-card {
  background: linear-gradient(135deg, #0e2040, #070e1a);
  border-color: rgba(52, 211, 153, 0.22);
}
body.night-mode .prayer-item { background: rgba(14, 32, 64, 0.55); }
body.night-mode .section-card { background: rgba(14, 32, 64, 0.45); }
body.night-mode .app-header { background: linear-gradient(135deg, #0a1628 0%, #060e18 100%); }
body.night-mode .bottom-nav { background: rgba(4, 10, 20, 0.98); }
body.night-mode .kalender-hero { background: linear-gradient(135deg, #0a1628, #060e18); }
body.night-mode .surah-item { background: rgba(14, 32, 64, 0.45); }
body.night-mode .ayah-item { background: rgba(14, 32, 64, 0.38); }
body.night-mode .dzikir-card { background: rgba(14, 32, 64, 0.45); }
body.night-mode .compass-bg { background: radial-gradient(circle at 30% 30%, rgba(10, 22, 40, 0.9), rgba(4, 8, 18, 0.99)); }
