html,
body {
  margin: 0;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  width: 100%;
  font-family: 'SF Pro Display', sans-serif;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  scrollbar-gutter: stable;
  -ms-overflow-style: none;
  color-scheme: dark;
  background-color: #000000;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}


body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #000000;
  color: #ffffff;
  padding-top: env(safe-area-inset-top);
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  padding-bottom: 110px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  -webkit-user-drag: none;
  pointer-events: none;
}


@font-face {
  font-family: 'QPC-Uthmani-Hafs';
  src: url('https://cdn.jsdelivr.net/gh/thetruetruth/quran-data-kfgqpc@main/hafs/font/hafs.18.woff2') format('woff2');
}

@font-face {
  font-family: 'QPC-Hafs-Smart';
  src: url('https://cdn.jsdelivr.net/gh/thetruetruth/quran-data-kfgqpc@main/hafs-smart/font/hafssmart.8.woff2') format('woff2');
}

@font-face {
  font-family: 'Amiri-Quran';
  src: url('https://cdn.jsdelivr.net/gh/google/fonts@main/ofl/amiriquran/AmiriQuran-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Amiri';
  src: url('https://cdn.jsdelivr.net/gh/google/fonts@main/ofl/amiri/Amiri-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Scheherazade';
  src: url('https://cdn.jsdelivr.net/gh/google/fonts@main/ofl/scheherazadenew/ScheherazadeNew-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Lateef';
  src: url('https://cdn.jsdelivr.net/gh/google/fonts@main/ofl/lateef/Lateef-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Noto-Naskh';
  src: url('https://cdn.jsdelivr.net/gh/google/fonts@main/ofl/notonaskhArabic/NotoNaskhArabic-Regular.ttf') format('truetype');
}

.screen {
  position: fixed;
  inset: 0;
  width: 100%;
  background: rgb(0, 0, 0);
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  overflow-y: auto;
  z-index: 100000;
  display: none;
  transform: scale(1.03);
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.screen.active {
  display: block;
  transform: none;
}


.closescreen {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 14px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  color: inherit;
  border: 1px solid rgba(239, 68, 68, 0.35);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 9999999999999999;

  opacity: 0;
  transform: scale(0.8) rotate(-90deg);
  transition: all 0.3s ease 0.2s;
}

.screen.active .closescreen {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.closescreen:active {
  transform: scale(0.88);
  background: rgba(239, 68, 68, 0.25);
}

.closescreen .material-symbols-outlined {
  font-size: 32px;
}

.header-actions-right {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  z-index: 1002;
}

.header-action-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  color: inherit;
  border: 1px solid rgba(239, 68, 68, 0.35);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  flex-shrink: 0;
}

.header-action-btn .material-symbols-outlined {
  font-size: 24px;
}

.header-action-btn:active {
  transform: scale(0.88);
  background: rgba(239, 68, 68, 0.25);
}

body.light-mode .header-action-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.home-search-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: 14px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  color: inherit;
  border: 1px solid rgba(239, 68, 68, 0.35);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 1002;
}

.home-search-btn .material-symbols-outlined {
  font-size: 24px;
}

.home-search-btn:active {
  transform: scale(0.88);
  background: rgba(239, 68, 68, 0.25);
}

body.light-mode .home-search-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.home-quickmenu-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 14px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  color: inherit;
  border: 1px solid rgba(239, 68, 68, 0.35);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 1002;
}

.home-quickmenu-btn .material-symbols-outlined {
  font-size: 24px;
}

.home-quickmenu-btn:active {
  transform: scale(0.88);
  background: rgba(239, 68, 68, 0.25);
}

body.light-mode .home-quickmenu-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
}


.home-quickmenu-content {
  gap: 28px;
}




.home-quickmenu-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.home-quickmenu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 6px;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.home-quickmenu-item:active {
  transform: scale(0.94);
  background: rgba(239, 68, 68, 0.16);
}

body.light-mode .home-quickmenu-item {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.15);
}

.home-quickmenu-icon {
  font-size: 22px;
}

.home-quickmenu-label {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(0, 0, 0, 1);
  padding-top: calc(env(safe-area-inset-top) + 110px);
  padding-left: 22px;
  padding-right: 22px;
  padding-bottom: 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slideUp 0.4s ease-out;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(env(safe-area-inset-top, 0px) + 65px);
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
  background: #000000;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.3s ease;
}

.header.tabs-header {
  height: calc(env(safe-area-inset-top, 0px) + 105px);
  flex-direction: column;
  justify-content: flex-start;
}

.tabs-header .title {
  flex-shrink: 0;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabs-header .fl-tab-switcher {
  flex-shrink: 0;
}


.title {
  margin: 0;
  padding: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  text-align: center;
  pointer-events: none;
  transition: font-size 0.35s ease, transform 0.35s ease, opacity 0.25s ease, color 0.3s ease;
}

.welcome {
  position: absolute;
  left: 8%;
  top: 90px;
  display: flex;
  font-size: 14px;
  color: #c71818ff;
  opacity: 0.8;
  text-align: center;
  text-transform: uppercase;
}

.container {
  margin-top: calc(env(safe-area-inset-top, 0px) + 112px);
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: max-width 0.3s ease;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 10px 16px;
}

.section-header h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0;
}


.card {
  max-width: 100%;
  height: auto;
  padding: 15px;
  margin: 8px 0;
  background: rgba(141, 18, 18, 0.295);
  color: inherit;
  border: 1px solid rgba(239, 68, 68, 0.35);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 40px;
  display: flex;
  position: relative;
  box-sizing: border-box;
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeItem 0.8s ease forwards;
  min-height: 90px;
}


#box4,
#box5,
#box6,
#box8 {
  cursor: pointer;
}

.card-label {
  font-size: 8px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  position: absolute;
  top: 15px;
  opacity: 0.4;
  left: 20px;
}

.card-val {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 30px;
  padding: 0 40px 20px 20px;
  flex: 1;
}

.card-val.arabic {
  direction: rtl;
  text-align: right;
}

.card-sub {
  font-size: 10px;
  position: absolute;
  bottom: 14px;
  right: 20px;
}

.card-icon {
  position: absolute;
  bottom: 8px;
  left: 15px;
  opacity: 0.6;
}

.card-icon .material-symbols-outlined {
  font-size: 20px;
  color: inherit;
}

.home-shortcut-card {
  flex-direction: column;
  align-items: stretch;
  padding: 15px 12px 12px;
}

.home-shortcut-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  width: 100%;
}

.home-shortcut-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 6px;
  border-radius: 24px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: transform 0.15s ease;
}

.home-shortcut-item:active {
  transform: scale(0.95);
}

.home-shortcut-icon {
  font-size: 22px;
  color: #ffffff;
}

body.light-mode .home-shortcut-icon {
  color: #000000;
}

.home-shortcut-title {
  font-size: 12px;
  font-weight: 700;
}



@keyframes fadeItem {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .container {
    max-width: 800px;
  }
}

.alltext {
  color: inherit;
  transition: color 0.3s ease;
}


.allbtn {
  justify-content: center;
  background: rgba(176, 5, 5, 0.303);
  color: inherit;
  border: 1px solid rgba(239, 68, 68, 0.35);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.allbtn .material-symbols-outlined {
  font-size: 30px;
  color: inherit;
  transition: color 0.3s ease;
}

.allitem {
  background: rgba(176, 5, 5, 0.303);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  opacity: 1;
  transform: none;
  animation: none;
}

.allist {
  background: rgba(176, 5, 5, 0.303);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f80000;
}

.search {
  background: rgba(176, 5, 5, 0.303) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
  outline: none;
}

.search::placeholder {
  color: rgba(239, 68, 68, 0.6) !important;
  opacity: 1;
}

.alline {
  width: 90%;
  margin: 0 auto;
  background-color: #c33232a8;
  height: 1px;
}


.overlay {
  background: rgba(0, 0, 0, 0.8);
  z-index: 100000000000000;
}

html.light-mode {
  background-color: #ffffff;
}

body.light-mode {
  background-color: #ffffff;
  color: #000000;
  color-scheme: light;
}

body.light-mode .screen {
  background: #ffffff;
  color: #000000;
}

body.light-mode .overlay {
  background: linear-gradient(to bottom, #ffffff 0%, #ffffffec 40%, rgba(255, 255, 255, 0) 100%);
}

body.light-mode .header {
  background: #ffffff;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}

body.light-mode .content {
  background: rgba(255, 255, 255, 1);
}

body.light-mode .card {
  background: rgba(239, 68, 68, 0.15);
  color: inherit;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

body.light-mode .title-box,
body.light-mode .boxtext,
body.light-mode .alltext {
  color: inherit;
}

body.light-mode .boxicon .material-symbols-outlined {
  color: inherit;
}

body.light-mode .closescreen {
  background: rgba(239, 68, 68, 0.15);
  color: inherit;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

body.light-mode .closescreen:active {
  background: rgba(239, 68, 68, 0.25);
}

body.light-mode .title {
  color: #000000;
}

body.light-mode .allbtn {
  background: rgba(239, 68, 68, 0.15);
  color: inherit;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

body.light-mode .allbtn .material-symbols-outlined {
  color: inherit;
}

body.light-mode .allitem {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

body.light-mode .allist {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f80000;
}

body.light-mode .search {
  background: rgba(239, 68, 68, 0.15) !important;
  color: inherit !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

body.light-mode .search::placeholder {
  color: rgba(239, 68, 68, 0.6) !important;
}



.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #db0000;
}

input:checked+.slider:before {
  transform: translateX(26px);
}




#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1000000000000;
  pointer-events: none;
  width: 80%;
}

.toast {
  background: rgba(108, 7, 7, 0.851);
  color: #fff;
  border: 1px solid rgb(108, 7, 7);
  border-radius: 50px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  pointer-events: all;
  animation: toastIn 0.35s ease forwards;
  will-change: transform, opacity;
}

.toast.hide {
  animation: toastOut 0.3s ease forwards;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: #4ade80;
}

.toast.error .toast-icon {
  color: #f87171;
}

.toast.info .toast-icon {
  color: #60a5fa;
}

.toast.warning .toast-icon {
  color: #fbbf24;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
}

#confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000000000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#confirm-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#confirm-box {
  border-radius: 50px;
  padding: 28px 24px 20px;
  width: 100%;
  z-index: 1000000000000000000000000;
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

#confirm-overlay.active #confirm-box {
  transform: translateY(0);
}

#confirm-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

#confirm-title {
  font-size: 17px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}

#confirm-message {
  font-size: 14px;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.5;
}

#confirm-buttons {
  display: flex;
  gap: 10px;
}

#confirm-buttons button {
  flex: 1;
  padding: 13px;
  border-radius: 50px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

#confirm-buttons button:active {
  opacity: 0.7;
}

#confirm-cancel {
  background: rgba(203, 111, 111, 0.08);
  color: #fff;
}

#confirm-ok {
  background: #db0000;
  color: #fff;
}

#confirm-ok.safe {
  background: #cc2828;
  color: #fff;
}

#prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000000000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#prompt-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#prompt-box {
  border-radius: 30px;
  padding: 24px;
  width: 100%;
  z-index: 1000000000000000000000000;
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#prompt-overlay.active #prompt-box {
  transform: translateY(0);
}

#prompt-title {
  font-size: 17px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
  text-align: center;
}

#prompt-input {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
  margin-bottom: 18px;
}

#prompt-input:focus {
  border-color: rgba(239, 68, 68, 0.5);
}

#prompt-buttons {
  display: flex;
  gap: 10px;
}

#prompt-buttons button {
  flex: 1;
  padding: 13px;
  border-radius: 50px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

#prompt-buttons button:active {
  opacity: 0.7;
}

#prompt-cancel {
  background: rgba(203, 111, 111, 0.08);
  color: #fff;
}

#prompt-ok {
  background: #db0000;
  color: #fff;
}




#duaaScreen,
#dailyAyahScreen {
  z-index: 1000000;
}


.detail-list {
  width: 100%;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-card {
  width: 100%;
  border-radius: 30px;
  padding: 40px 20px 26px;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
}

.detail-date {
  font-size: 13px;
  font-weight: 700;
  position: absolute;
  top: 18px;
  left: 20px;
  opacity: 0.7;
}

.detail-source {
  font-size: 12px;
  color: #c71818ff;
  letter-spacing: 0.5px;
  text-align: right;
  position: absolute;
  top: 18px;
  right: 20px;
}

#duaaScreenContent .dua-text {
  font-size: clamp(26px, 4.4vw, 28px);
  line-height: 2;
  text-align: right;
  direction: rtl;
  font-family: "QPC-Uthmani-Hafs", serif;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 20px;
}

#duaaScreenContent .dua-translation {
  font-size: clamp(16px, 4.4vw, 18px);
  line-height: 1.6;
  font-family: "Satisfy", cursive;
  text-align: left;
  width: 100%;
  font-weight: bold;
}

#duaaScreenContent .dua-translation::before {
  content: '"';
}

#duaaScreenContent .dua-translation::after {
  content: '"';
}

#dailyAyahScreenInner {
  width: 100%;
}


.loginbtn {
  width: 100%;
  height: 55px;
  border-radius: 40px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 4px;
}

.date-card {
  width: 100%;
  height: auto;
  flex-direction: column;
  align-items: stretch;
  padding: 18px 18px 14px;
  gap: 0;
  overflow: hidden;
  cursor: pointer;
}

.date-card-chevron {
  font-size: 20px;
  opacity: 0.35;
  flex-shrink: 0;
}

.date-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.date-card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-card-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.date-card-icon-wrap .material-symbols-outlined {
  font-size: 18px;
  color: #ef4444;
}

.date-card-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.date-card-subtitle {
  font-size: 12px;
  opacity: 0.55;
  margin-top: 2px;
}

.date-card-body {
  display: flex;
  align-items: stretch;
  margin-top: 18px;
  gap: 16px;
}

.date-card-left {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0 4px 4px;
  overflow: hidden;
}

.date-weekday {
  font-size: 16px;
  font-weight: 700;
  color: #ef4444;
  position: relative;
  z-index: 1;
}

.date-daynum {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.date-monthyear {
  font-size: 14px;
  font-weight: 600;
  color: #ef4444;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.date-card-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

body.light-mode .date-card-divider {
  background: rgba(0, 0, 0, 0.1);
}

.date-card-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding-left: 2px;
}

.date-hijri-label {
  font-size: 12px;
  font-weight: 700;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.date-hijri-full {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 4px;
}

.date-hijri-numeric {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 2px;
}

.date-ramadan-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

body.light-mode .date-ramadan-box {
  background: rgba(0, 0, 0, 0.03);
}

.date-ramadan-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.date-ramadan-icon .material-symbols-outlined {
  font-size: 15px;
  color: #ef4444;
}

.date-ramadan-label {
  font-size: 11px;
  opacity: 0.55;
}

.date-ramadan-value {
  font-size: 16px;
  font-weight: 800;
  color: #ef4444;
  margin-top: 1px;
}

.date-ramadan-unit {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.6;
  margin-left: 4px;
}

.date-special-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .date-special-row {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.date-special-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.date-special-icon .material-symbols-outlined {
  font-size: 17px;
  color: #ef4444;
}

.date-special-text {
  flex: 1;
  min-width: 0;
}

.date-special-label {
  font-size: 11px;
  font-weight: 700;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.date-special-name {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.date-special-chevron {
  font-size: 20px;
  opacity: 0.4;
  flex-shrink: 0;
}

#moreContent {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: calc(env(safe-area-inset-top) + 108px) 16px 100px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.more-coming-soon-content {
  justify-content: center;
}

.more-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.6;
}

.more-coming-soon-icon {
  font-size: 48px;
}

.more-coming-soon-text {
  font-size: 18px;
  font-weight: 600;
}

#mainHeader {
  height: calc(env(safe-area-inset-top, 0px) + 102px);
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
}

body:has(#moreScreen[style*="display: flex"]) #mainHeader {
  z-index: 100001;
}

body:has(#habitDetailScreen[style*="display: flex"]) #mainHeader,
body:has(#createHabitScreen[style*="display: flex"]) #mainHeader,
body:has(#screen-habits[style*="display: flex"]) #mainHeader,
body:has(#quranSettingsPanel[style*="display: flex"]) #mainHeader,
body:has(#counterScreen[style*="display: flex"]) #mainHeader,
body:has(#editScreen[style*="display: flex"]) #mainHeader,
body:has(#screen-prayer-stats[style*="display: flex"]) #mainHeader,
body:has(#statsScreen[style*="display: flex"]) #mainHeader,
body:has(#nameofallahScreen[style*="display: flex"]) #mainHeader,
body:has(#duaaScreen[style*="display: flex"]) #mainHeader,
body:has(#dailyAyahScreen[style*="display: flex"]) #mainHeader,
body:has(#athanScreen[style*="display: flex"]) #mainHeader,
body:has(#screen-athkar-settings[style*="display: flex"]) #mainHeader,
body:has(#screen-athkar-stats[style*="display: flex"]) #mainHeader,
body:has(#screen-custom-stats[style*="display: flex"]) #mainHeader,
body:has(#settingsScreen[style*="display: flex"]) #mainHeader,
body:has(#accountscreen[style*="display: flex"]) #mainHeader,
body:has(#khatmaScreen[style*="display: flex"]) #mainHeader,
body:has(#khatmaStatsScreen[style*="display: flex"]) #mainHeader,
body:has(#khatmaManageScreen[style*="display: flex"]) #mainHeader,
body:has(#tsbStatsScreen[style*="display: flex"]) #mainHeader,
body:has(#tsbSettingsScreen[style*="display: flex"]) #mainHeader,
body:has(#screen-report[style*="display: flex"]) #mainHeader,
body:has(#screen-my-tickets[style*="display: flex"]) #mainHeader,
body:has(#qrScanScreen[style*="display: flex"]) #mainHeader,
body:has(#shareProfileScreen[style*="display: flex"]) #mainHeader {
  z-index: 1001;
}

.home-header-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  padding-top: 14px;
  flex-shrink: 0;
  box-sizing: content-box;
  pointer-events: auto;
}

.home-header-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #ffffff;
}

body.light-mode .home-header-name {
  color: #000000;
}

.home-tab-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  pointer-events: auto;
}

.home-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 2px 9px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  position: relative;
  text-align: center;
  transition: color 0.2s ease;
}

.home-tab-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  border-radius: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

#homeTabForYou {
  color: #ffffff;
}

#homeTabForYou::after {
  background: #ffffff;
}

body:has(#moreScreen.active) #homeTabForYou {
  color: rgba(255, 255, 255, 0.45);
}

body:has(#moreScreen.active) #homeTabForYou::after {
  background: transparent;
}

body:has(#moreScreen.active) #homeTabMore {
  color: #ffffff;
}

body:has(#moreScreen.active) #homeTabMore::after {
  background: #ffffff;
}

body.light-mode .home-tab-btn {
  color: rgba(0, 0, 0, 0.4);
}

body.light-mode #homeTabForYou {
  color: #000000;
}

body.light-mode #homeTabForYou::after {
  background: #000000;
}

body.light-mode:has(#moreScreen.active) #homeTabForYou {
  color: rgba(0, 0, 0, 0.4);
}

body.light-mode:has(#moreScreen.active) #homeTabForYou::after {
  background: transparent;
}

body.light-mode:has(#moreScreen.active) #homeTabMore {
  color: #000000;
}

body.light-mode:has(#moreScreen.active) #homeTabMore::after {
  background: #000000;
}

.more-profile-card {
  width: 100%;
  min-height: 90px;
  height: auto;
  border-radius: 30px;
  display: flex !important;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  box-sizing: border-box;
  cursor: pointer;
  border: 2px solid rgba(255, 0, 0, 0.35);
  color: inherit;
  font: inherit;
  text-align: left;
}

.more-profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.more-profile-avatar .material-symbols-outlined {
  font-size: 28px;
}

.more-profile-info {
  flex: 1;
  min-width: 0;
}

.more-profile-name {
  font-size: 17px;
  font-weight: 700;
}

.more-profile-sub {
  font-size: 13px;
  opacity: 0.55;
  margin-top: 3px;
}

.more-profile-arrow {
  opacity: 0.4;
}

.more-section-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.more-section-title {
  margin: 0;
  padding-left: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.45;
}

.settings-section-desc {
  margin: 0;
  padding: 0 4px;
  font-size: 12.5px;
  line-height: 1.55;
  opacity: 0.55;
  font-weight: 400;
}

.more-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.more-tile {
  height: 90px;
  border-radius: 24px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  box-sizing: border-box;
  cursor: pointer;
  border: 2px solid rgba(255, 0, 0, 0.35);
  color: inherit;
  font: inherit;
  text-align: left;
  transition: transform 0.15s ease;
}

.more-tile:active,
.more-profile-card:active {
  transform: scale(0.97);
}

.more-tile-icon {
  font-size: 24px;
  color: inherit;
}

.more-tile-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

#shareProfileScreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
  gap: 26px;
  z-index: 1000000;
}

#shareProfileScreen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(380px circle at 10% 6%, rgba(239, 68, 68, 0.20), transparent 60%),
    radial-gradient(320px circle at 92% 12%, rgba(239, 68, 68, 0.14), transparent 55%),
    radial-gradient(440px circle at 12% 96%, rgba(239, 68, 68, 0.16), transparent 60%),
    radial-gradient(340px circle at 90% 90%, rgba(239, 68, 68, 0.12), transparent 55%);
}

body.light-mode #shareProfileScreen::before {
  background:
    radial-gradient(380px circle at 10% 6%, rgba(239, 68, 68, 0.12), transparent 60%),
    radial-gradient(320px circle at 92% 12%, rgba(239, 68, 68, 0.09), transparent 55%),
    radial-gradient(440px circle at 12% 96%, rgba(239, 68, 68, 0.10), transparent 60%),
    radial-gradient(340px circle at 90% 90%, rgba(239, 68, 68, 0.08), transparent 55%);
}

.share-scan-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: 14px;
  z-index: 6;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  color: inherit;
  border: 1px solid rgba(239, 68, 68, 0.35);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  flex-shrink: 0;
  transition: transform 160ms ease-out, background 0.2s ease;
}

.share-scan-btn:active {
  transform: scale(0.9);
  background: rgba(239, 68, 68, 0.25);
}

.share-scan-btn .material-symbols-outlined {
  font-size: 24px;
}

#shareProfileCard {
  width: 100%;
  max-width: 320px;
  border-radius: 30px;
  background: #fff;
  padding: 60px 24px 26px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.18);
  margin-top: auto;
}

#shareProfileAvatarWrap {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
}

#shareProfileAvatarWrap .avatar {
  width: 100%;
  height: 100%;
  font-size: 26px;
  border: none;
  background: #0b0b0d;
  background-size: cover;
  background-position: center;
}

#shareProfileAvatarWrap .avatar[style*="background-image: url"] {
  background-color: transparent;
}

#shareProfileName {
  font-size: 19px;
  font-weight: 800;
  color: #000;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#shareProfileUsername {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 3px;
  margin-bottom: 20px;
}

.share-qr-wrap {
  width: 210px;
  height: 210px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.15);
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-qr-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}

#shareProfileBrand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 800;
  color: #ef4444;
}

#shareProfileBrand .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: "FILL" 1;
}

#shareProfileButtons {
  width: 100%;
  max-width: 320px;
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
  margin-bottom: auto;
}

#shareProfileButtons .allbtn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease-out;
}

#shareProfileButtons .allbtn:active {
  transform: scale(0.97);
}

#shareProfileButtons .allbtn .material-symbols-outlined {
  font-size: 18px;
}
