@import url("themes.css?v=40");

/* Kur'an-ı Kerim Orijinal Mushaf / Nesih Hattı (Çevrimdışı Yerel Font) */
@font-face {
  font-family: "Amiri Quran";
  src: url("../fonts/AmiriQuran-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amiri";
  src: url("../fonts/AmiriQuran-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
}

body {
  background: var(--bg-gradient, var(--bg-main));
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  transition: background 0.3s ease, color 0.3s ease;
}

/* Üst Header - Ultra Kompakt */
header {
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header, rgba(11, 27, 30, 0.95));
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.4rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  text-decoration: none !important;
  user-select: none;
}

.logo .logo-icon,
.logo > span:first-child {
  font-size: 1.15rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  color: var(--accent-light) !important;
}

.logo .logo-text-col {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  line-height: 1.05 !important;
}

.logo .logo-title,
.logo [data-i18n="app_title"] {
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  color: var(--text-main, #ffffff) !important;
  letter-spacing: -0.2px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.logo .app-version-badge {
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  color: var(--primary-light, #38b2a6) !important;
  line-height: 1 !important;
  margin-top: 1px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
  opacity: 0.88;
}

/* Masaüstü Navigasyon */
.desktop-nav {
  display: flex;
  gap: 0.3rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  background: rgba(20, 184, 166, 0.15);
  color: var(--text-main);
}

/* Header Buton Grubu */
.header-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.icon-btn span {
  color: inherit;
}

.icon-btn:hover {
  background: var(--active-glow);
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.notif-bell-btn {
  position: relative;
  font-size: 0.9rem;
  padding: 0.25rem 0.55rem;
  transition: all 0.2s ease;
}

.notif-bell-btn.is-muted {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #f87171 !important;
}

.notif-bell-btn.is-active {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #34d399 !important;
}

/* Sabit Alt Bar (Mobile Navigation) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-header, rgba(11, 27, 30, 0.96));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  z-index: 200;
  padding: 0.25rem 0.25rem;
  padding-bottom: max(0.25rem, env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
}

.bottom-nav-item span.icon {
  font-size: 1.1rem;
}

.bottom-nav-item.active {
  color: var(--accent-light);
}

/* Ana Alan */
main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0.45rem 0.65rem;
}

/* Kompakt Konum & Saat Çubuğu (2 Satırlı Tasarım: Üstte Kullanıcı ve Saat, Altta Tam Satır Konum) */
.compact-location-bar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.42rem 0.75rem;
  border-radius: 12px;
  margin-bottom: 0.45rem;
}

.compact-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
}

.user-profile-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-light);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.user-profile-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

/* Canlı Saat Rozeti (Ultra Profesyonel, Şık & Sabit Genişlikli) */
.live-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.2rem 0.58rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.28) 100%);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.25);
  margin-left: auto;
  user-select: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.live-clock-badge:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.35) 100%);
  border-color: var(--accent-light);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.clock-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-light, #f59e0b);
  box-shadow: 0 0 5px var(--accent-light, #f59e0b);
  animation: clockPulseDot 2s infinite ease-in-out;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes clockPulseDot {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.55;
    box-shadow: 0 0 3px var(--accent-light, #f59e0b);
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 8px var(--accent-light, #f59e0b);
  }
}

.clock-icon-svg {
  display: inline-block;
  color: var(--accent-light, #f59e0b);
  flex-shrink: 0;
  opacity: 0.9;
  filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.35));
}

.clock-text {
  font-family: ui-monospace, "SF Mono", "Roboto Mono", "Cascadia Code", "Consolas", monospace;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-light, #f59e0b);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.compact-bar-bottom {
  display: flex;
  align-items: center;
  width: 100%;
}

.loc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text-main, #fff);
  cursor: pointer;
  width: 100%;
  flex-wrap: wrap;
}

.loc-badge span.pin {
  color: var(--accent-light);
  font-size: 0.95rem;
}

.loc-badge span.change-text {
  font-size: 0.72rem;
  color: var(--primary-light);
  margin-left: 0.4rem;
  text-decoration: underline;
  white-space: nowrap;
}

/* Ultra Kompakt Hero Sayaç */
.hero-card {
  --hero-timer-size: 1.65rem;
  --hero-sub-size: 0.70rem;
  --hero-date-size: 0.70rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.40rem 0.55rem;
  text-align: center;
  margin-bottom: 0.45rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: padding 0.2s ease;
}

/* Punto Seviyeleri (1'den 7'ye: Kullanıcı ayarlayınca kalıcı kalır, satır düzenini bozmadan maksimum büyür) */
.hero-card[data-hero-size="1"] {
  --hero-timer-size: 1.30rem;
  --hero-sub-size: 0.66rem;
  --hero-date-size: 0.68rem;
}
.hero-card[data-hero-size="2"] { /* Varsayılan */
  --hero-timer-size: 1.65rem;
  --hero-sub-size: 0.70rem;
  --hero-date-size: 0.70rem;
}
.hero-card[data-hero-size="3"] {
  --hero-timer-size: 2.10rem;
  --hero-sub-size: 0.72rem;
  --hero-date-size: 0.70rem;
}
.hero-card[data-hero-size="4"] {
  --hero-timer-size: clamp(2.40rem, calc(1.8vw + 2.05rem), 2.60rem);
  --hero-sub-size: 0.72rem;
  --hero-date-size: 0.70rem;
}
.hero-card[data-hero-size="5"] {
  --hero-timer-size: clamp(2.68rem, calc(2.5vw + 2.15rem), 3.20rem);
  --hero-sub-size: 0.72rem;
  --hero-date-size: 0.70rem;
}
.hero-card[data-hero-size="6"] {
  --hero-timer-size: clamp(2.98rem, calc(3.5vw + 2.25rem), 3.85rem);
  --hero-sub-size: 0.74rem;
  --hero-date-size: 0.70rem;
}
.hero-card[data-hero-size="7"] { /* Maksimum Satır Dolgusu (Dev Sayaç) */
  --hero-timer-size: clamp(3.28rem, calc(4.5vw + 2.35rem), 4.55rem);
  --hero-sub-size: 0.74rem;
  --hero-date-size: 0.70rem;
}

.hero-subtitle {
  font-size: var(--hero-sub-size, 0.7rem);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 700;
  transition: font-size 0.2s ease;
}

.hero-timer-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 1.2vw, 0.45rem);
  margin: 0.05rem 0;
  position: relative;
  width: 100%;
}

.hero-timer {
  font-family: ui-monospace, "SF Mono", "Roboto Mono", "Cascadia Code", "Consolas", monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: var(--hero-timer-size, 1.65rem);
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  line-height: 1.05;
  transition: font-size 0.2s ease;
  white-space: nowrap;
}

.hero-dates {
  font-size: var(--hero-date-size, 0.72rem);
  color: var(--text-muted);
  transition: font-size 0.2s ease;
}

/* Yanına konan Büyüt / Küçült Tuşları (+ / -) */
.hero-scale-btn {
  flex-shrink: 0;
  width: clamp(24px, 6.2vw, 27px);
  height: clamp(24px, 6.2vw, 27px);
  border-radius: 7px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.35);
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.hero-scale-btn:hover {
  background: rgba(20, 184, 166, 0.28);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.hero-scale-btn:active {
  transform: scale(0.92);
}

.hero-scale-btn:disabled,
.hero-scale-btn[disabled] {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* 6 Vakit Şeridi - Minimalist & Kompakt */
.prayer-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.strip-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.45rem 0.2rem;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}

.strip-item .icon {
  font-size: 1.05rem;
  margin-bottom: 0.1rem;
}

.strip-item .name {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 600;
}

.strip-item .time {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 0.1rem;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.strip-item.active {
  background: linear-gradient(180deg, var(--active-glow) 0%, var(--bg-card) 100%);
  border-color: var(--primary-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.strip-item.active::before {
  content: "ŞİMDİ";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 6px;
}

/* Ayarlar Vakit Hatırlatıcı Test Butonu (Kompakt ve Başlığın Altında) */
.btn-prayer-test, .btn-row-test {
  height: 20px;
  padding: 0 0.38rem;
  font-size: 0.64rem;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid rgba(20, 184, 166, 0.4);
  background: rgba(20, 184, 166, 0.2);
  color: var(--accent-light, #f59e0b);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  transition: all 0.15s ease;
  user-select: none;
  box-sizing: border-box;
  line-height: 1;
}

.btn-prayer-test:hover, .btn-row-test:hover {
  background: var(--primary);
  border-color: var(--primary-light);
  color: #ffffff;
}

.btn-prayer-test:active, .btn-row-test:active {
  transform: scale(0.94);
}

.btn-prayer-test.is-testing, .btn-row-test.is-testing {
  background: #ef4444 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  animation: testPulse 1s infinite alternate ease-in-out;
}

@keyframes testPulse {
  from { opacity: 0.85; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.02); }
}

/* Canlı Ezan Okunuyor & Sessize Alma Ekran Modalı */
.adhan-active-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.adhan-active-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.adhan-active-card {
  background: linear-gradient(180deg, #133a36 0%, #0c2022 100%);
  border: 2px solid var(--accent-light, #14b8a6);
  border-radius: 22px;
  padding: 1.6rem 1.35rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(20, 184, 166, 0.35);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
}

.adhan-active-modal-overlay.active .adhan-active-card {
  transform: scale(1);
}

.adhan-active-icon-wrapper {
  width: 74px;
  height: 74px;
  margin: 0 auto 0.75rem auto;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.2);
  border: 2px solid var(--accent-light, #14b8a6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
  animation: adhanPulseRing 1.8s infinite ease-in-out;
}

@keyframes adhanPulseRing {
  0%, 100% { transform: scale(0.96); box-shadow: 0 0 10px rgba(20, 184, 166, 0.3); }
  50% { transform: scale(1.08); box-shadow: 0 0 28px rgba(20, 184, 166, 0.7); }
}

.adhan-active-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.25);
  border: 1px solid var(--accent-light, #14b8a6);
  color: var(--accent-light, #f59e0b);
  margin-bottom: 0.5rem;
}

.adhan-active-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
  line-height: 1.25;
}

.adhan-active-sub {
  font-size: 0.82rem;
  color: #ccfbf1;
  margin: 0 0 1.35rem 0;
  line-height: 1.45;
}

.adhan-active-mute-btn {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.55);
  transition: all 0.15s ease;
}

.adhan-active-mute-btn:active {
  transform: scale(0.96);
  background: #b91c1c;
}

.adhan-active-close-btn {
  margin-top: 0.85rem;
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s;
}

.adhan-active-close-btn:hover {
  color: #ffffff;
}

/* Ayarlar Sekme Barı (3 Buton Ekrana Tam Sığar, Asla Taşmaz veya Kesilmez) */
.settings-tabs-bar {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(0, 0, 0, 0.42);
  padding: 4px !important;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 0.55rem;
  overflow: hidden !important;
}

.settings-tabs-bar::-webkit-scrollbar {
  display: none;
}

.settings-seg-tab {
  flex: 1 1 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 3px !important;
  padding: 0.45rem 0.15rem !important;
  border-radius: 9px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  color: var(--text-main) !important;
  font-size: clamp(0.65rem, 2.2vw, 0.73rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.15px !important;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.18s ease;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  user-select: none;
}

.settings-seg-tab:hover {
  border-color: var(--primary-light) !important;
  background: rgba(56, 178, 166, 0.18) !important;
  transform: translateY(-1px);
}

.settings-seg-tab .tab-radio-dot {
  display: none !important;
}

.settings-seg-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, rgba(45, 212, 191, 0.38) 100%) !important;
  border-color: var(--accent-light) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 0 12px var(--active-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* Göz Rahatlığı Yatay Kaydırılabilir Rozet Şeridi (Büyük Puntoda Sığmama/Taşma Sorununu Çözer) */
.eye-comfort-grid {
  display: flex !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  gap: 0.38rem !important;
  margin-bottom: 0.45rem !important;
  padding: 2px 1px 4px 1px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.eye-comfort-grid::-webkit-scrollbar {
  display: none;
}

.eye-comfort-pill {
  flex: 0 0 auto !important;
  min-width: max-content !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.4rem !important;
  padding: 0.42rem 0.65rem !important;
  border-radius: 8px !important;
  transition: all 0.18s ease;
  user-select: none;
}

.eye-comfort-pill:hover {
  border-color: var(--primary-light) !important;
  transform: translateY(-1px);
}

.eye-comfort-pill.active {
  border-color: var(--accent-light) !important;
  box-shadow: 0 0 10px var(--active-glow) !important;
}

/* Kompakt Manevi Köşe Kartı */
.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.35rem;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.3rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(20, 184, 166, 0.15);
  font-weight: 700;
  font-size: 0.82rem;
}

/* Modallar */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 0.65rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-modal, #11262a);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem;
  max-width: 440px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.modal-box-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(85vh - 60px);
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 0.3rem;
}

.modal-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.35rem;
  cursor: pointer;
}

/* Kompakt Tema Izgarası */
.theme-grid-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.theme-card-compact {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: all 0.15s;
}

.theme-card-compact:hover {
  background: rgba(255,255,255,0.1);
}

.theme-card-compact.active {
  border-color: var(--accent-light);
  background: rgba(255,255,255,0.14);
}

.theme-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

/* Hatırlatıcı / Bildirim Tarzı Seçici (Tek Sayfada 4 Mod) */
.alert-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.alert-mode-card {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  user-select: none;
}

.alert-mode-card:hover {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.35);
}

.alert-mode-card.active {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.25) 0%, rgba(13, 148, 136, 0.35) 100%);
  border-color: var(--accent-light, #5eead4);
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.25);
}

.alert-mode-card .mode-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.alert-mode-card .mode-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.alert-mode-card .mode-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
}

.alert-mode-card .mode-sub {
  font-size: 0.63rem;
  color: var(--text-dim, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-mode-switch {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 3px;
  gap: 4px;
  margin-top: 0.35rem;
}

.alert-mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.alert-mode-btn.active {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.28) 0%, rgba(13, 148, 136, 0.36) 100%);
  border-color: var(--accent-light);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.alert-mode-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

/* Vakit Bazlı Ayar Satırı - Ultra Kompakt, Büyük Puntoda Bile Asla Taşmaz */
.prayer-setting-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.32rem 0.2rem !important;
  border-bottom: 1px solid rgba(20, 184, 166, 0.12) !important;
  gap: 0.35rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.prayer-setting-row:last-child {
  border-bottom: none !important;
}

/* Birleştirilmiş "Ses, Dua & Vakitler" Sekmesi - Taşmayan Ultra Kompakt Düzen */
.settings-sound-merged .alert-mode-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.24rem !important;
}
.settings-sound-merged .alert-mode-card {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0.24rem 0.14rem !important;
  gap: 0.08rem !important;
  min-width: 0 !important;
}
.settings-sound-merged .alert-mode-card .mode-icon {
  font-size: 0.88rem !important;
  line-height: 1.1 !important;
}
.settings-sound-merged .alert-mode-card .mode-title {
  font-size: 0.64rem !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}
.settings-sound-merged .alert-mode-card .mode-sub {
  display: none !important;
}
.settings-sound-merged .prayer-setting-row {
  padding: 0.18rem 0.1rem !important;
  gap: 0.22rem !important;
}
.settings-sound-merged .prayer-title-col {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px !important;
  min-width: 90px !important;
  max-width: 102px !important;
}
.settings-sound-merged .prayer-title-label {
  font-size: 0.72rem !important;
}
.settings-sound-merged .prayer-title-label .prayer-name {
  font-size: 0.72rem !important;
}
.settings-sound-merged .prayer-title-col .btn-prayer-test {
  padding: 1px 4px !important;
  font-size: 0.58rem !important;
  line-height: 1.2 !important;
}
.settings-sound-merged .prayer-offset-stepper {
  height: 22px !important;
}
.settings-sound-merged .prayer-sound-select {
  height: 22px !important;
  font-size: 0.68rem !important;
  padding: 0 3px !important;
}

/* Sol Kolon: Simge + Vakit İsmi Üstte Yan Yana, Küçük Test Butonu Hemen Altta */
.prayer-title-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 66px !important;
  max-width: 80px !important;
  flex-shrink: 0 !important;
}

.prayer-title-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  white-space: nowrap !important;
  line-height: 1.15 !important;
}

.prayer-title-label .prayer-icon {
  font-size: 0.85rem !important;
  line-height: 1 !important;
}

.prayer-title-label .prayer-name {
  font-size: 0.78rem !important;
  color: var(--text-main) !important;
}

/* Sağ Kontroller (Dakika Stepper + Ses Seçici + Checkbox) */
.prayer-row-controls {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  justify-content: flex-end !important;
}

/* Vakit Öncesi Dakika Ayarlayıcı */
.prayer-offset-stepper {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(0, 0, 0, 0.38) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  height: 25px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.prayer-offset-stepper button.btn-step-minus,
.prayer-offset-stepper button.btn-step-plus {
  background: rgba(20, 184, 166, 0.18) !important;
  color: var(--accent-light) !important;
  border: none !important;
  width: 19px !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 0.88rem !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all 0.12s !important;
}

.prayer-offset-stepper button.btn-step-minus:active,
.prayer-offset-stepper button.btn-step-plus:active {
  background: var(--accent) !important;
  color: #fff !important;
  transform: scale(0.92);
}

.prayer-offset-input {
  width: 22px !important;
  height: 100% !important;
  border: none !important;
  background: transparent !important;
  color: var(--text-main) !important;
  text-align: center !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  -moz-appearance: textfield;
}

.prayer-offset-input::-webkit-outer-spin-button,
.prayer-offset-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.prayer-offset-unit {
  font-size: 0.62rem !important;
  color: var(--accent-light) !important;
  font-weight: 700 !important;
  padding: 0 3px 0 1px !important;
  user-select: none !important;
}

/* Ses Açılır Kutusu (Select) - Yazı boyutu aynı kalır, padding optimize */
.prayer-sound-select {
  flex: 1 1 auto !important;
  min-width: 68px !important;
  max-width: 95px !important;
  height: 25px !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  padding: 0 0.25rem !important;
  border-radius: 6px !important;
  border: 1px solid var(--border-color) !important;
  background: var(--bg-input, rgba(0, 0, 0, 0.45)) !important;
  color: var(--text-main) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  outline: none !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.prayer-enable-cb {
  width: 16px !important;
  height: 16px !important;
  accent-color: var(--primary-light) !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

/* Form Elemanları */
select, input, button {
  background: var(--bg-input, #0a191c);
  color: var(--text-main, #e6edf3);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.6rem;
  border-radius: 7px;
  font-size: 0.82rem;
  outline: none;
}

select:focus, input:focus {
  border-color: var(--primary-light);
}

button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: 1px solid var(--primary-light);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
}

/* Arama Açılır Kutusu */
.search-box-wrapper {
  position: relative;
  width: 100%;
}

.search-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: var(--bg-modal, #11262a);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 500;
  display: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.search-result-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(20, 184, 166, 0.12);
}

.search-result-item:hover {
  background: rgba(20, 184, 166, 0.2);
}

/* ========================================================
   İMSAKİYE MOD SEÇİCİ & AYLIK VAKİT ÇİZELGESİ STİLLERİ
   ======================================================== */
.imsakiye-mode-switcher {
  display: flex;
  background: var(--bg-card, rgba(15, 23, 42, 0.85));
  border: 1.5px solid var(--border-color, rgba(20, 184, 166, 0.25));
  border-radius: 14px;
  padding: 4px;
  gap: 6px;
  margin-bottom: 0.75rem;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mode-tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim, #cbd5e1);
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  font-size: 0.81rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.mode-tab-btn:hover {
  color: var(--text-main, #ffffff);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.mode-tab-btn:active {
  transform: scale(0.97);
}

.mode-tab-btn.active {
  background: linear-gradient(135deg, var(--accent, #14b8a6) 0%, var(--primary, #0f766e) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  font-weight: 800;
  transform: none;
}

@media (max-width: 380px) {
  .mode-tab-btn {
    font-size: 0.74rem;
    padding: 0.48rem 0.35rem;
    gap: 0.25rem;
  }
}

/* Seçilen Günden İtibaren 1 Aylık Kontroller */
.month-selector-controls {
  background: rgba(6, 30, 32, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.date-picker-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.date-picker-lbl {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-light);
  white-space: nowrap;
}

.custom-date-input {
  background: var(--bg-input, #062327);
  color: var(--text-main, #fff);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.date-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.btn-date-quick, .btn-date-nav {
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.35);
  color: #ccfbf1;
  padding: 0.28rem 0.55rem;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-date-quick:hover, .btn-date-nav:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-light);
}

.btn-date-quick.active {
  background: var(--accent);
  color: #042f2e;
  border-color: var(--accent-light);
  font-weight: 800;
}

/* Ana Sayfa (index.html) 'Bu Ayın Vakitleri' Bannerı */
.home-month-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  margin-bottom: 0.55rem;
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.home-month-btn:hover {
  transform: translateY(-1px);
  border-color: var(--primary-light);
}

.home-month-btn-content {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow: hidden;
}

.home-month-btn-content .icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.home-month-btn-content .text-group {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-month-btn-content .title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.home-month-btn-content .sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-month-btn .arrow {
  background: var(--primary);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.22rem 0.55rem;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-bottom-nav { display: flex; }
  .prayer-strip { grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
  .hero-timer { font-size: var(--hero-timer-size, 1.55rem); }
  .hide-mobile { display: none !important; }
}

/* ========================================================
   GELİŞMİŞ SIFIRLAMA VE PERİYOT SEÇİCİ MODALI
   ======================================================== */
.reset-scope-wrap {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

.reset-scope-title {
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--text-dim, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.4rem;
}

.reset-scope-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.reset-scope-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-main);
  cursor: pointer;
}

.reset-scope-label input[type="radio"] {
  accent-color: var(--accent, #14b8a6);
  cursor: pointer;
  transform: scale(1.1);
}

.reset-period-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

.reset-period-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.reset-period-card:hover {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.35);
}

.reset-period-card.active {
  background: rgba(20, 184, 166, 0.18);
  border-color: var(--accent, #14b8a6);
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.25);
}

.reset-period-card.danger {
  grid-column: 1 / -1;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
}

.reset-period-card.danger:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.5);
}

.reset-period-card.danger.active {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.reset-card-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.reset-card-body {
  flex: 1;
  min-width: 0;
}

.reset-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.reset-card-sub {
  font-size: 0.65rem;
  color: var(--text-dim, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reset-custom-range-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 9px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

.reset-custom-range-box label {
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--accent-light, #5eead4);
  display: block;
  margin-bottom: 0.25rem;
}

.reset-range-row {
  display: flex;
  gap: 0.5rem;
}

.reset-range-row .form-group {
  flex: 1;
}

/* Toast Bildirim */
.app-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f766e;
  color: #ffffff;
  padding: 0.6rem 1.1rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================================
   16-DİL DESTEĞİ & DİL SEÇİCİ DROPDOWN (i18n)
   ======================================================== */
.lang-selector-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  width: auto;
  flex-shrink: 0;
  z-index: 1000;
}

.lang-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%);
  color: #f1f5f9;
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 3px 8px;
  border-radius: 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.76rem;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  height: 28px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.lang-trigger-btn:hover {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

#active-lang-text {
  max-width: 65px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#main-lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 15, 30, 0.99) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 18px rgba(56, 189, 248, 0.2);
  width: 260px;
  max-height: min(390px, calc(100dvh - 80px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  z-index: 999999;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) transparent;
}

#main-lang-dropdown-menu::-webkit-scrollbar {
  width: 4px;
}
#main-lang-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.main-lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.lang-item-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  border-radius: 7px;
  line-height: 1.2;
  cursor: pointer;
}

.lang-item-link:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.lang-item-link.active {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-weight: 700;
}

.lang-check {
  margin-left: auto;
  font-weight: bold;
  color: #38bdf8;
  font-size: 0.75rem;
}

/* RTL (Arapça & Farsça) Desteği */
body.rtl-active {
  direction: rtl;
  text-align: right;
}
body.rtl-active .desktop-nav,
body.rtl-active .mobile-bottom-nav,
body.rtl-active .compact-location-bar,
body.rtl-active .prayer-card {
  direction: rtl;
}
body.rtl-active #main-lang-dropdown-menu {
  direction: ltr !important; /* Bayrak ve isim dizilimi bozulmasın */
  left: 0;
  right: auto;
}

/* Kandil Bannerı + Sağda Hızlı Dua Butonları (Tek Satır) */
.holy-dua-row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.holy-dua-actions {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  flex-shrink: 0;
}
.quick-dua-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  padding: 0.36rem 0.72rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(15, 118, 110, 0.18) 100%);
  color: var(--accent-light, #fbbf24);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.quick-dua-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent-light, #fbbf24);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28) 0%, rgba(20, 184, 166, 0.25) 100%);
}
.quick-dua-btn.namaz-btn {
  border-color: rgba(20, 184, 166, 0.5);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(15, 118, 110, 0.26) 100%);
  color: var(--text-main, #ffffff);
}
.quick-dua-btn.namaz-btn:hover {
  border-color: var(--primary-light, #2dd4bf);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.34) 0%, rgba(15, 118, 110, 0.36) 100%);
}
@media (max-width: 600px) {
  .holy-dua-row {
    flex-wrap: wrap;
  }
  .holy-dua-row #homeHolyBanner {
    flex: 1 1 100%;
  }
  .holy-dua-actions {
    width: 100%;
  }
  .holy-dua-actions .quick-dua-btn {
    flex: 1;
  }
}