#resumeLastRead {
 position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translate(-50%);
  width: 90%;
  height: 60px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

}

.juz-title {
  font-size: 20px;
  font-weight: 700;
  padding: 15px 25px 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;         
  width: 100%;              
  display: block;         
}

#surahSearch {
  position: fixed;
  top: 80px;
  width: 90%;
  height: 45px;
  font-size: 15px;
  border-radius: 50px;
  pointer-events: auto;
  z-index: 10000;
}



.surah-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 70px;
  width: 100%;
}

.s-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;          
}

.s-text {
  display: flex;
  flex-direction: column;  
  justify-content: center;
}

.s-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 3px;
}

.s-info {
  font-weight: 300;
  font-size: 15px;
}

.surah-item {
  width: 98%;
  height: 80px;
  border-radius: 50px;
  display: flex;
  justify-content: flex-start;   
  align-items: center;           
  gap: 15px;                    
  font-weight: bold;
  font-size: 20px;
  padding-left: 15px;           
}



.contentlist {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: calc(env(safe-area-inset-top) + 80px);
  padding-left: 22px;
  padding-right: 22px;
  padding-bottom: 100px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  
}


#viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh; 
  flex-direction: column;
  padding: 0;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: none;
  scroll-behavior: smooth;
  z-index: 1000000;
}

#viewer.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}



.status{
  font-size:clamp(12px, 3.5vw, 14px);
  opacity:.8;
  text-align:center;
  margin:6px 0;
}

#pages{
  max-width: 900px;
  margin: 0 auto 10px;
  margin-top: 30px;
  padding:
    24px
    22px
    32px;
  box-sizing: border-box;
  font-family: "QPC-Uthmani-Hafs", serif;
  direction: rtl;
  text-align: justify;
  scroll-margin-top: calc(env(safe-area-inset-top) + 90px);
  margin-bottom: 5px;
  padding-bottom: 5px;
  overflow: auto;   
  display: flex;
}

.ayah {
  display: inline;
  font-family: "QPC-Uthmani-Hafs", serif;
  font-size: clamp(28px, 4.4vw, 30px);
  line-height: 2.15;
  word-spacing: 1px;
  letter-spacing: 0;
  white-space: normal;
}

.ayah-number {
  display: inline-flex;              
  align-items: center;               
  justify-content: center;         
  width: 24px;
  height: 24px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;                   
  margin: 0 4px;
  vertical-align: middle;
  border-radius: 50%;
 }

.bismillah {
  text-align: center;
  font-family: "QPC-Uthmani-Hafs", serif;
  font-size: clamp(26px, 7vw, 32px);
  margin: 12px 0 20px;
}

.page-num {
  margin-top: 24px;
  text-align: left;
  font-size: 15px;
  opacity: 0.6;
}


#quranNav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 50px;
  z-index: 9999;
}

#quranNav button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#quranNav .material-symbols-outlined {
  font-size: 30px;
}

#prevSurah .material-symbols-outlined {
  transform: translateX(4px);
}

#quranNav button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#box8 {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
}

.daily-ayah {
  margin-top: 25px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
}

.ayah-arabic {
  direction: rtl;
  text-align: right;
  font-size: clamp(1.5rem, 2.6vw, 1.35rem);
  word-break: keep-all;
  white-space: normal;
}

.ayah-ref {
  margin-top: 16px;
  margin-left: 20px;
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.5px;
}

.daily-ayah::-webkit-scrollbar {
  width: 4px;
}

.daily-ayah::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 10px;
}
