:root {
  --bg1: #0f2027; --bg2: #203a43; --bg3: #2c5364;
  --card: rgba(255,255,255,0.08);
  --card-hover: rgba(255,255,255,0.12);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.7);
  --accent: #ffd166;
  --danger: #ff5e5e;
  --radius: 20px;
}

[data-theme="light"] {
  --bg1: #f5f7fa; --bg2: #e8eef5; --bg3: #dbe4ee;
  --card: rgba(0,0,0,0.05);
  --card-hover: rgba(0,0,0,0.08);
  --text: #0f2027;
  --muted: rgba(0,0,0,0.6);
  --accent: #d4a017;
}

* { margin: 0; padding: 0; box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent; }

body {
  background: linear-gradient(160deg, var(--bg1), var(--bg2), var(--bg3));
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 16px;
  padding-top: env(safe-area-inset-top);
  transition: background 0.4s, color 0.4s;
}

.app { width: 100%; max-width: 480px; }

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 10px;
}
.loc { display: flex; flex-direction: column; font-size: 0.85rem; }
.loc #location { font-weight: 600; }
.hijri { color: var(--accent); margin-top: 2px; opacity: 0.9; }
.icon-btn {
  background: var(--card);
  border: none; color: var(--text);
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.icon-btn:hover { background: var(--card-hover); transform: scale(1.05); }

/* BÜYÜK SAYAÇ */
.next-vakit {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  animation: fadeUp 0.5s ease;
}
.glow {
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: 0.08;
  animation: rotateGlow 15s linear infinite;
}
@keyframes rotateGlow { to { transform: rotate(360deg); } }

.next-vakit .label { font-size: 0.75rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 2px; }
.next-vakit h2 { font-size: 1.5rem; color: var(--accent); margin: 6px 0 12px; }
.countdown {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px rgba(255,209,102,0.3);
}
.next-time { font-size: 0.85rem; opacity: 0.7; margin-top: 6px; }

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  margin-top: 16px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ffb703);
  width: 0%;
  transition: width 1s linear;
  border-radius: 4px;
}

/* VAKİTLER */
.vakitler {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.vakit {
  background: var(--card);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.25s;
}
.vakit:hover { background: var(--card-hover); transform: translateY(-2px); }
.vakit.active {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255,209,102,0.4);
}
.vakit span { font-size: 0.95rem; }
.vakit strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }

/* AKSİYONLAR */
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  flex: 1; min-width: 100px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s, filter 0.2s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(0.97); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* KIBLE */
.qibla {
  margin-top: 18px;
  text-align: center;
  padding: 22px;
  background: var(--card);
  border-radius: 16px;
  animation: fadeUp 0.4s ease;
}
.compass {
  width: 220px; height: 220px;
  margin: 16px auto;
  border: 3px solid var(--accent);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 30px rgba(255,209,102,0.2);
}
.compass .n, .compass .s, .compass .e, .compass .w {
  position: absolute;
  color: var(--accent);
  font-weight: bold;
  font-size: 0.9rem;
}
.compass .n { top: -12px; left: 50%; transform: translateX(-50%); background: var(--bg1); padding: 0 8px; }
.compass .s { bottom: -12px; left: 50%; transform: translateX(-50%); background: var(--bg1); padding: 0 8px; }
.compass .e { right: -12px; top: 50%; transform: translateY(-50%); background: var(--bg1); padding: 0 8px; }
.compass .w { left: -12px; top: 50%; transform: translateY(-50%); background: var(--bg1); padding: 0 8px; }
.needle {
  width: 4px; height: 100px;
  background: linear-gradient(to bottom, var(--danger), transparent);
  position: absolute;
  top: 10px; left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(0deg);
  transition: transform 0.3s ease-out;
}

/* TAM EKRAN UYARI */
.fullscreen-alert {
  position: fixed; inset: 0;
  background: linear-gradient(160deg, #0f2027, #203a43);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.4s ease;
}
.alert-content { text-align: center; padding: 20px; }
.pulse-circle {
  font-size: 5rem;
  animation: pulse 1.5s ease-in-out infinite;
  margin-bottom: 20px;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}
.alert-content h1 { font-size: 2rem; color: var(--accent); margin-bottom: 8px; }
.alert-content p { font-size: 1.4rem; opacity: 0.8; margin-bottom: 24px; font-variant-numeric: tabular-nums; }

/* MODAL */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeIn 0.3s ease;
}
.modal-content {
  background: linear-gradient(160deg, #1a2a35, #0f2027);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: 100%; max-width: 480px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
[data-theme="light"] .modal-content {
  background: linear-gradient(160deg, #ffffff, #eef3f8);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.modal-header h2 { font-size: 1.1rem; }
.close-btn {
  background: transparent; border: none; color: inherit;
  font-size: 1.4rem; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  transition: background 0.2s;
}
.close-btn:hover { background: rgba(255,255,255,0.1); }

.calendar-body, .cities-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

/* TAKVİM */
.cal-header {
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent);
  padding: 8px 0 14px;
  letter-spacing: 1px;
}
.cal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.cal-table th, .cal-table td {
  padding: 6px 3px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cal-table th {
  color: var(--accent);
  font-weight: 600;
  position: sticky; top: 0;
  background: #1a2a35;
  font-size: 0.7rem;
}
[data-theme="light"] .cal-table th { background: #eef3f8; }
.cal-table tr:nth-child(even) { background: rgba(255,255,255,0.03); }
.cal-table .today {
  background: rgba(255,209,102,0.2);
  font-weight: bold;
  color: var(--accent);
}
.cal-table td small { font-size: 0.6rem; opacity: 0.6; display: block; margin-top: 2px; }
.cal-table td:first-child { font-weight: 600; white-space: nowrap; }

/* KAYITLI ŞEHİRLER */
.city-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: background 0.2s;
}
.city-item:hover { background: rgba(255,255,255,0.1); }
.city-item .name { font-weight: 600; }
.city-item .country { font-size: 0.8rem; opacity: 0.6; margin-left: 6px; }
.city-item .actions-cell { display: flex; gap: 6px; }
.city-item button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: inherit;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
}
.city-item button.active-btn {
  background: var(--accent); color: #000; border-color: var(--accent); font-weight: bold;
}
.city-item button.delete-btn { color: var(--danger); }

/* RAMAZAN BANNER */
.ramadan-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #2c1e4a, #4a2c6a);
  border: 1px solid rgba(255,209,102,0.4);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
  animation: fadeUp 0.5s ease;
}
.ramadan-icon { font-size: 2.5rem; animation: pulse 2s ease-in-out infinite; }
.ramadan-info h3 { font-size: 1rem; color: #ffd166; margin-bottom: 4px; }
.ramadan-info p { font-size: 0.9rem; opacity: 0.9; }

/* KERAHET BANNER */
.kerahat-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #4a1e1e, #6a2c2c);
  border: 1px solid rgba(255,94,94,0.4);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
  animation: fadeUp 0.5s ease;
}
.kerahat-icon { font-size: 2rem; }
.kerahat-info h3 { font-size: 1rem; color: #ff8888; margin-bottom: 4px; }
.kerahat-info p { font-size: 0.9rem; opacity: 0.9; }

/* ZİKİR */
.zikir-body {
  padding: 20px;
  text-align: center;
}
.zikir-arabic {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: "Traditional Arabic", serif;
}
.zikir-latin {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 20px;
}
.zikir-count {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  margin: 20px 0;
  font-variant-numeric: tabular-nums;
  transition: transform 0.1s;
}
.zikir-count.bump { transform: scale(1.1); }
.zikir-tap-btn {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff9f1c);
  color: #000;
  border: none;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(255,209,102,0.4);
  transition: transform 0.1s;
  margin: 10px 0 20px;
}
.zikir-tap-btn:active { transform: scale(0.95); }
.zikir-controls {
  display: flex; gap: 10px; justify-content: center; margin-bottom: 16px;
}
.zikir-controls button { flex: 1; max-width: 100px; }
.zikir-target {
  font-size: 0.9rem;
  opacity: 0.8;
}
.zikir-target select {
  background: var(--card);
  color: inherit;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 10px;
  border-radius: 8px;
  margin-left: 6px;
}

/* HİCRİ TAKVİM */
.hijri-body {
  padding: 20px;
  overflow-y: auto;
  max-height: 70vh;
}
.hijri-month-title {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin: 16px 0 10px;
}
.hijri-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.hijri-day-name {
  text-align: center;
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0.7;
  padding: 4px 0;
}
.hijri-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border-radius: 6px;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.hijri-day.today {
  background: var(--accent);
  color: #000;
  font-weight: bold;
}
.hijri-day.empty { background: transparent; }
.hijri-info {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ============ NAMAZ TAKİP ============ */
.namaz-body { padding: 16px; overflow-y: auto; }

.streak-box {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #4a2c1e, #6a3e2c);
  border: 1px solid rgba(255,150,60,0.4);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}
.streak-fire {
  font-size: 2.6rem;
  filter: drop-shadow(0 0 10px rgba(255,100,0,0.6));
  animation: flame 1s ease-in-out infinite;
}
@keyframes flame {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.1) rotate(2deg); }
}
.streak-info { flex: 1; }
.streak-count {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffab5e;
  line-height: 1;
}
.streak-label {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 4px;
}

.namaz-today-label {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.namaz-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.namaz-item {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.namaz-item:hover { background: rgba(255,255,255,0.1); }
.namaz-item.done {
  background: linear-gradient(135deg, rgba(80,200,120,0.25), rgba(40,180,100,0.15));
  border-color: rgba(80,200,120,0.5);
}
.namaz-item .namaz-name { font-weight: 600; font-size: 0.95rem; }
.namaz-item .namaz-time { font-size: 0.85rem; opacity: 0.7; margin-left: 8px; font-variant-numeric: tabular-nums; }
.namaz-item .check-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}
.namaz-item.done .check-icon {
  background: #4ade80;
  border-color: #4ade80;
  color: #000;
  font-weight: bold;
}

.namaz-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat-item {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 4px;
}

/* ============ GÜNÜN AYETİ ============ */
.ayet-body { padding: 20px; }

.ayet-ref {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.ayet-arabic {
  font-size: 1.6rem;
  line-height: 1.9;
  text-align: right;
  direction: rtl;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: "Traditional Arabic", "Amiri", serif;
}

.ayet-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
  font-style: italic;
  opacity: 0.9;
}

.ayet-meal {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.ayet-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.ayet-actions button { flex: 1; }

/* ============ KIBLE HARİTASI ============ */
.map-container {
  width: 100%;
  height: 380px;
  background: #1a2a35;
}
#mapContainer .leaflet-control-attribution {
  font-size: 0.6rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
}
.map-info {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============ AYARLAR ============ */
.settings-body {
  padding: 16px;
  overflow-y: auto;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.setting-item:last-child { border-bottom: none; }

.setting-info { flex: 1; padding-right: 12px; }
.setting-title { font-size: 0.95rem; font-weight: 600; }
.setting-desc { font-size: 0.75rem; opacity: 0.6; margin-top: 3px; }

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 26px;
  transition: 0.3s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
.switch input:checked + .slider {
  background: var(--accent);
}
.switch input:checked + .slider:before {
  transform: translateX(22px);
}

/* ============ SESSİZ MOD UYARISI ============ */
.silent-alert {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4a1e1e, #6a2c2c);
  border: 1px solid rgba(255,94,94,0.5);
  border-radius: 16px;
  padding: 16px 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 90vw;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  animation: slideUp 0.4s ease;
}
.silent-alert.hidden { display: none; }
.silent-icon { font-size: 2rem; }
.silent-text { font-size: 0.9rem; line-height: 1.4; }
.silent-text strong { color: #ffab5e; }

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============ RENK TEMALARI ============ */
[data-color="blue"] {
  --bg1: #0f2027; --bg2: #203a43; --bg3: #2c5364;
  --accent: #ffd166;
}
[data-color="green"] {
  --bg1: #0a2418; --bg2: #103a28; --bg3: #155238;
  --accent: #4ade80;
}
[data-color="purple"] {
  --bg1: #1a0f2e; --bg2: #2a1a4a; --bg3: #3d2866;
  --accent: #c084fc;
}
[data-color="gold"] {
  --bg1: #2a1e0a; --bg2: #3d2c12; --bg3: #553c1a;
  --accent: #fbbf24;
}

/* Aydınlık modda renk tonları */
[data-theme="light"][data-color="blue"] {
  --bg1: #f5f7fa; --bg2: #e8eef5; --bg3: #dbe4ee;
  --accent: #d4a017;
}
[data-theme="light"][data-color="green"] {
  --bg1: #f0f8f3; --bg2: #e0efe6; --bg3: #c8e5d3;
  --accent: #16a34a;
}
[data-theme="light"][data-color="purple"] {
  --bg1: #f5f0fa; --bg2: #ebe2f5; --bg3: #ddd0ed;
  --accent: #7c3aed;
}
[data-theme="light"][data-color="gold"] {
  --bg1: #faf7f0; --bg2: #f5eedc; --bg3: #ede2c5;
  --accent: #b45309;
}

/* ============ TEMA SEÇİCİ ============ */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 20px;
}

.theme-option {
  aspect-ratio: 1.4;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.theme-option:hover {
  transform: scale(1.03);
  border-color: rgba(255,255,255,0.3);
}
.theme-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255,209,102,0.4);
}
.theme-option.active::after {
  content: "✓";
  position: absolute;
  top: 6px; right: 8px;
  width: 22px; height: 22px;
  background: #4ade80;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

.theme-option .theme-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.theme-option .theme-icon {
  font-size: 1.8rem;
}

.theme-option[data-color="blue"] {
  background: linear-gradient(135deg, #0f2027, #2c5364);
}
.theme-option[data-color="green"] {
  background: linear-gradient(135deg, #0a2418, #155238);
}
.theme-option[data-color="purple"] {
  background: linear-gradient(135deg, #1a0f2e, #3d2866);
}
.theme-option[data-color="gold"] {
  background: linear-gradient(135deg, #2a1e0a, #553c1a);
}

/* ============ TOPBAR BUTON GRUBU ============ */
.topbar-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ============ DİL SEÇİCİ ============ */
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-option:hover {
  background: var(--card-hover);
  transform: translateX(4px);
}
.lang-option.active {
  border-color: var(--accent);
  background: rgba(255, 209, 102, 0.1);
}
.lang-option.active::after {
  content: "✓";
  margin-left: auto;
  color: #4ade80;
  font-weight: bold;
  font-size: 1.2rem;
}
.lang-option .flag { font-size: 2rem; }
.lang-option .lang-name { font-weight: 700; font-size: 1rem; }
.lang-option .lang-sub { font-size: 0.75rem; opacity: 0.6; margin-top: 2px; }

/* ============ DÜŞÜK GÜÇ MODU ============ */
body.low-power .glow,
body.low-power .pulse-circle,
body.low-power .streak-fire,
body.low-power .ramadan-icon,
body.low-power .theme-option:hover,
body.low-power .vakit:hover {
  animation: none !important;
  transition: none !important;
}

body.low-power .glow { display: none; }

body.low-power * {
  transition-duration: 0.01s !important;
}

body.low-power .vakit:hover {
  transform: none;
}

body.low-power .next-vakit {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Pil göstergesi */
.battery-info {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--card);
  opacity: 0.7;
  margin-top: 4px;
  display: inline-block;
  width: fit-content;
}
.battery-info.low {
  background: rgba(255,94,94,0.2);
  color: #ff8888;
  opacity: 1;
}

/* Küçük bilgi balonu */
.low-power-indicator {
  position: fixed;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #4a2c1e, #6a3e2c);
  color: #ffab5e;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 998;
  animation: fadeIn 0.4s ease;
  border: 1px solid rgba(255,150,60,0.4);
}

/* ============ SURE LİSTESİ ============ */
.sure-list,
.dua-list {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  max-height: 65vh;
}

.sure-item,
.dua-item {
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.sure-item:hover,
.dua-item:hover {
  background: var(--card-hover);
  transform: translateX(4px);
}
.sure-item .sure-name,
.dua-item .dua-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.sure-item .sure-info,
.dua-item .dua-info {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 2px;
}
.sure-item .arrow { opacity: 0.4; font-size: 1.2rem; }

/* ============ SURE DETAY ============ */
.sure-detay-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  max-height: 70vh;
}

.sure-bismillah {
  text-align: center;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 18px;
  font-family: "Traditional Arabic", serif;
}

.sure-arabic {
  font-size: 1.4rem;
  line-height: 2.2;
  text-align: right;
  direction: rtl;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: "Traditional Arabic", "Amiri", serif;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border-right: 3px solid var(--accent);
}

.sure-okunus {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
  opacity: 0.9;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

.sure-meal {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 12px;
}

.sure-detay-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sure-detay-actions button { flex: 1; }

/* ============ DUA KATEGORİ ============ */
.dua-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  scrollbar-width: thin;
}
.dua-tabs::-webkit-scrollbar { height: 4px; }
.dua-tabs::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.dua-tab {
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 20px;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.dua-tab:hover { background: rgba(255,255,255,0.12); }
.dua-tab.active {
  background: var(--accent);
  color: #000;
}

/* ============ DİNİ GÜNLER ============ */
.dini-gunler-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  max-height: 70vh;
}

.dini-gun-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-left: 4px solid var(--accent);
  transition: transform 0.2s;
}
.dini-gun-item:hover {
  transform: translateX(4px);
  background: var(--card-hover);
}
.dini-gun-item.passed {
  opacity: 0.45;
  border-left-color: rgba(255,255,255,0.2);
}
.dini-gun-item.upcoming {
  border-left-color: #4ade80;
  box-shadow: 0 4px 20px rgba(74,222,128,0.1);
}

.dini-gun-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.dini-gun-info { flex: 1; }
.dini-gun-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.dini-gun-date {
  font-size: 0.75rem;
  opacity: 0.6;
}
.dini-gun-countdown {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dini-gun-item.upcoming .dini-gun-countdown {
  color: #4ade80;
}
.dini-gun-item.passed .dini-gun-countdown {
  color: rgba(255,255,255,0.4);
}

.dini-gun-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  margin: 18px 0 10px;
  padding-left: 4px;
}

/* ============ CAMİ BULUCU ============ */
.cami-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 12px 16px 16px;
}

.cami-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.06);
}
.cami-item:hover {
  background: var(--card-hover);
  transform: translateX(4px);
}

.cami-item .cami-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.cami-item .cami-info { flex: 1; }
.cami-item .cami-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.cami-item .cami-dist {
  font-size: 0.75rem;
  opacity: 0.6;
}

.cami-item .cami-arrow {
  opacity: 0.4;
  font-size: 1.2rem;
}

.cami-loading {
  text-align: center;
  padding: 20px;
  opacity: 0.6;
  font-size: 0.9rem;
}

.cami-marker-icon {
  font-size: 20px;
  text-align: center;
  line-height: 20px;
}

/* ============ VAKİT ÖNCESİ UYARI ============ */
.vakit-uyari-body {
  padding: 20px;
}

.vakit-uyari-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vu-opt {
  background: var(--card);
  border: 2px solid transparent;
  color: inherit;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}
.vu-opt:hover {
  background: var(--card-hover);
  transform: translateX(4px);
}
.vu-opt.active {
  border-color: var(--accent);
  background: rgba(255,209,102,0.15);
  color: var(--accent);
}
.vu-opt.active::after {
  content: " ✓";
  color: #4ade80;
  font-weight: bold;
}

/* ============ AYLIK RAPOR ============ */
.rapor-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  max-height: 75vh;
}

.rapor-month-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.rapor-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.rapor-stat-card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.rapor-stat-card.wide { grid-column: 1 / -1; }

.rapor-stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.rapor-stat-val.small {
  font-size: 1rem;
  color: inherit;
}
.rapor-stat-label {
  font-size: 0.7rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.rapor-progress {
  height: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0;
}
.rapor-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ffb703);
  border-radius: 12px;
  transition: width 0.6s ease;
}
.rapor-progress-fill.high {
  background: linear-gradient(90deg, #4ade80, #22c55e);
}

.rapor-weekly-label {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 20px 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rapor-weekly {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.rapor-week-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rapor-week-bar {
  width: 100%;
  height: 100px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
}

.rapor-week-fill {
  background: linear-gradient(to top, var(--accent), #ffb703);
  width: 100%;
  transition: height 0.5s ease;
  border-radius: 8px;
}
.rapor-week-fill.full {
  background: linear-gradient(to top, #4ade80, #22c55e);
}

.rapor-week-label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.7;
}
.rapor-week-count {
  font-size: 0.7rem;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.rapor-vakitler {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.rapor-vakit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.rapor-vakit-row .rv-name {
  width: 60px;
  font-weight: 600;
}
.rapor-vakit-row .rv-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
}
.rapor-vakit-row .rv-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 8px;
}
.rapor-vakit-row .rv-count {
  width: 50px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.rapor-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.rapor-actions button { flex: 1; }

/* ============ HEDEF ============ */
.hedef-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.hedef-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.hedef-input-wrap .input-field {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.hedef-unit {
  font-size: 0.95rem;
  opacity: 0.7;
}

.hedef-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hedef-preset {
  background: var(--card);
  border: 2px solid transparent;
  color: inherit;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  line-height: 1.4;
}
.hedef-preset:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
}
.hedef-preset:active {
  transform: scale(0.97);
}
.hedef-preset small {
  opacity: 0.6;
  font-weight: 400;
  font-size: 0.7rem;
}

.hedef-current {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255,209,102,0.08);
  border: 1px solid rgba(255,209,102,0.2);
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
  display: none;
}
.hedef-current.show { display: block; }
.hedef-current strong { color: var(--accent); }

/* ============ PAYLAŞ GÖRSELİ ============ */
.share-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  max-height: 80vh;
}

.share-preview-wrap {
  background: rgba(0,0,0,0.3);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
}

.share-canvas {
  max-width: 100%;
  max-height: 300px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  display: block;
}

.share-format-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.format-btn {
  background: var(--card);
  border: 2px solid transparent;
  color: inherit;
  padding: 10px 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}
.format-btn span { font-size: 1.2rem; display: block; margin-bottom: 2px; }
.format-btn small { opacity: 0.5; font-size: 0.65rem; font-weight: 400; }
.format-btn:hover { background: var(--card-hover); }
.format-btn.active {
  border-color: var(--accent);
  background: rgba(255,209,102,0.12);
}

.share-theme-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  justify-content: center;
}

.theme-btn {
  background: var(--card);
  border: 2px solid transparent;
  color: inherit;
  padding: 6px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}
.theme-btn:hover { background: var(--card-hover); }
.theme-btn.active {
  border-color: var(--accent);
  background: rgba(255,209,102,0.12);
}

.share-toggle-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.share-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  padding: 8px 12px;
  background: var(--card);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.share-toggle:hover { background: var(--card-hover); }
.share-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.share-actions {
  display: flex;
  gap: 10px;
}
.share-actions button { flex: 1; }

/* ============ DRAWER MENÜ ============ */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
}
.drawer.hidden { display: none; }

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}

.drawer-panel {
  position: absolute;
  top: 0; left: 0;
  width: 85%;
  max-width: 340px;
  height: 100%;
  background: linear-gradient(160deg, #1a2a35, #0f2027);
  box-shadow: 4px 0 30px rgba(0,0,0,0.5);
  overflow-y: auto;
  padding-bottom: 24px;
  animation: slideRight 0.3s cubic-bezier(.4,0,.2,1);
}
[data-theme="light"] .drawer-panel {
  background: linear-gradient(160deg, #ffffff, #eef3f8);
  color: #0f2027;
}

@keyframes slideRight {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 2;
}
.drawer-header h2 {
  font-size: 1.1rem;
  color: var(--accent);
}

.drawer-section {
  padding: 12px 12px 6px;
}

.drawer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.5;
  padding: 8px 12px 4px;
  font-weight: 600;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.drawer-item:hover {
  background: rgba(255,255,255,0.08);
}
.drawer-item:active {
  transform: scale(0.98);
}
.drawer-item span { flex: 1; }

.drawer-footer {
  padding: 20px;
  text-align: center;
  opacity: 0.4;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 12px;
}

#menuBtn {
  background: linear-gradient(135deg, var(--accent), #ff9f1c);
  font-weight: 800;
}

/* YARDIMCI */
.hidden { display: none !important; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }