
#athkar-content {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: calc(env(safe-area-inset-top) + 160px);
  padding-left: 22px;
  padding-right: 22px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 120px);
  box-sizing: border-box;
  display: flex;
  gap: 20px;
  flex-direction: column;
  align-items: stretch;
}


.athkar-section-title {
  font-size: 24px;
  font-weight: bold;
  padding: 16px 4px 6px;
  flex-shrink: 0;
}



.athkar-it {
  width: 100%;
  height: 75px;
  flex-shrink: 0;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 20px;
  padding-left: 22px;
  padding-right: 14px;
  cursor: pointer;
  position: relative;
  transition: transform 0.14s ease;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}

.athkar-it:active {
  transform: scale(0.982);
}

.athkar-it>div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.athkar-it .material-symbols-outlined {
  font-size: 34px;
  order: -1;
  flex-shrink: 0;
}

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

.athkar-ring {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.athkar-ring svg {
  transform: rotate(-90deg);
}

.athkar-ring-bg {
  fill: none;
  stroke: rgba(239, 68, 68, 0.15);
  stroke-width: 3;
}

.athkar-ring-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 87.96;
  stroke-dashoffset: 87.96;
  transition: stroke-dashoffset 0.45s ease, stroke 0.3s ease;
}

.athkar-ring-fill.ring-progress {
  stroke: #ef4444;
}

.athkar-ring-fill.ring-done {
  stroke: #22c55e;
}

.athkar-badge {
  display: none;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}

.athkar-badge.badge-done {
  background: rgba(34, 197, 94, 0.15);
}


.athkar-timer-wrap {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.athkar-timer {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", monospace;
  letter-spacing: 1px;
  border-radius: 20px;
  padding: 5px 12px;
  color: inherit;
}

.athkar-prog-wrap {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.athkar-prog-track {
  flex: 1;
  height: 5px;
  border: none;

  border-radius: 10px;
  overflow: hidden;
}

.athkar-prog-fill {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: #ef4444;
  transition: width 0.45s ease, background 0.4s ease;
}

.athkar-prog-fill.complete {
  background: #22c55e;
}

.athkar-prog-label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border-radius: 20px;
  padding: 4px 10px;
}

.athkar-list {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: calc(env(safe-area-inset-top, 0px) + 120px);
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 100px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.items {
  border-radius: 38px;
  padding: 16px 16px 14px;
  display: block;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.25s ease, border-color 0.25s ease;
}

.items.at-item-done {
  background: rgba(34, 197, 94, 0.18) !important;
  border-color: rgba(34, 197, 94, 0.45) !important;
}

.items.at-item-removing {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

body.light-mode .items.at-item-done {
  background: rgba(34, 197, 94, 0.15) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
}

.at-count-left {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.55;
  pointer-events: none;
}

.at-count-center {
  display: none !important;
}

.at-item-text {
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: center;
  line-height: 2.2;
  margin-top: 12px;
  margin-bottom: 6px;
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
}

.at-item-bottom {
  margin-top: 12px;
}

.at-dec {
  width: 100%;
  padding: 18px 0;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.15s ease;
  touch-action: manipulation;
  margin-top: 10px;
}

.at-dec:active {
  transform: scale(0.97);
}

.at-item-done .at-dec {
  background: rgba(34, 197, 94, 0.3) !important;
  border: 1px solid rgba(34, 197, 94, 0.5) !important;
  color: #22c55e !important;
  cursor: default;
}

body.light-mode .at-item-done .at-dec {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #16a34a !important;
}

.at-item-done .at-dec:active {
  transform: none;
}

.at-item-done .at-dec .material-symbols-outlined {
  font-size: 24px;
  vertical-align: -5px;
}

.athkar-finish-overlay {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px 40px;
  text-align: center;
  z-index: 100000000000000;
}

.athkar-finish-overlay.active {
  display: flex;
  animation: finFadeIn 0.32s ease;
}

@keyframes finFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

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

.finish-check-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 2px solid rgba(34, 197, 94, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 20px;
  animation: finPop 0.4s 0.1s both cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes finPop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

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

.finish-heading {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.finish-sub {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.finish-stats-row {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  width: 100%;
  justify-content: center;
}

.finish-stat {
  flex: 1;
  max-width: 130px;
  border-radius: 22px;
  padding: 16px 20px;
}

.finish-stat-val {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.finish-stat-val.green {
  color: #4ade80;
}

.finish-stat-label {
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.finish-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.finish-btn {
  flex: 1;
  padding: 16px;
  border-radius: 48px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.13s;
  touch-action: manipulation;
}

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

#box9.last-athkar-card {
  flex-direction: column;
  align-items: stretch;
  padding: 16px 18px 14px;
}

#box9 .last-athkar-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#box9 .last-athkar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#box9 .last-athkar-info {
  min-width: 0;
  padding-top: 2px;
}

#box9 .last-athkar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #ef4444;
  margin-bottom: 6px;
}

#box9 .last-athkar-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}

#box9 .last-athkar-count {
  font-size: 13px;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

#box9 .last-athkar-ring-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}

#box9 .last-athkar-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

#box9 .last-athkar-ring-bg {
  fill: none;
  stroke: rgba(239, 68, 68, 0.15);
  stroke-width: 7;
}

#box9 .last-athkar-ring-fg {
  fill: none;
  stroke: #ef4444;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 226.19;
  stroke-dashoffset: 226.19;
  transition: stroke-dashoffset 0.5s ease, stroke 0.3s ease;
}

#box9 .last-athkar-ring-fg.ring-done {
  stroke: #22c55e;
}

#box9 .last-athkar-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#box9 .last-athkar-continue {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

#box9 .last-athkar-continue .material-symbols-outlined {
  font-size: 18px;
  color: #ef4444;
}

#box9 .last-athkar-stats {
  display: flex;
  gap: 10px;
}

#box9 .last-athkar-stats .stats-type-card {
  flex: 1;
  width: auto;
  cursor: default;
}

#box9 .last-athkar-empty {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

#box9 .last-athkar-empty .material-symbols-outlined {
  font-size: 28px;
  opacity: 0.3;
}

#box9 .last-athkar-empty-text {
  font-size: 12px;
  opacity: 0.35;
}

#box12.athkar-quick-card {
  flex-direction: column;
  align-items: stretch;
  padding: 15px 12px 12px;
}

.box-streak-badge {
  position: absolute;
  top: 12px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  padding: 3px 8px;
  border-radius: 20px;
}

.box-streak-badge .material-symbols-outlined {
  font-size: 13px;
}

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

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

.athkar-quick-item:active {
  transform: scale(0.95);
}

.athkar-quick-icon {
  font-size: 22px;
  color: #ef4444;
}

.athkar-quick-title {
  font-size: 14px;
  font-weight: 700;
}

.athkar-quick-sub {
  font-size: 11px;
  opacity: 0.5;
}

.athkar-quick-item.done {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.5);
}

.athkar-quick-item.done .athkar-quick-icon {
  color: #22c55e;
}

.athkar-quick-item.done .athkar-quick-sub {
  opacity: 0.8;
  color: #22c55e;
}

#box13.my-athkar-card {
  flex-direction: column;
  align-items: stretch;
  padding: 15px 15px 16px;
  gap: 12px;
}

.my-athkar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.my-athkar-label {
  font-size: 8px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.4;
}

.my-athkar-add-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ef4444;
  flex-shrink: 0;
}

.my-athkar-add-btn .material-symbols-outlined {
  font-size: 18px;
}

.my-athkar-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 14px 0 6px;
}

.my-athkar-empty .material-symbols-outlined {
  font-size: 26px;
  opacity: 0.35;
}

.my-athkar-empty-text {
  font-size: 13px;
  opacity: 0.45;
}

.my-athkar-empty-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
  cursor: pointer;
}

.my-athkar-empty-btn .material-symbols-outlined {
  font-size: 17px;
}

.my-athkar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.my-athkar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 22px;
  cursor: pointer;
}

.my-athkar-row-icon {
  font-size: 18px;
  color: #ef4444;
  flex-shrink: 0;
}

.my-athkar-row-info {
  flex: 1;
  min-width: 0;
}

.my-athkar-row-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-athkar-row-count {
  font-size: 11px;
  opacity: 0.45;
  margin-top: 1px;
}

.my-athkar-row-arrow {
  font-size: 18px;
  opacity: 0.35;
  flex-shrink: 0;
}

.my-athkar-viewall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 2px;
  padding: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
  background: none;
  border: none;
  cursor: pointer;
}

.my-athkar-viewall .material-symbols-outlined {
  font-size: 18px;
  color: #ef4444;
}

#screen-athkar-stats {
  z-index: 10000000;
}



#screen-athkar.active #stats-open-btn {
  display: flex;
}

#stats-open-btn .material-symbols-outlined {
  font-size: 32px;
}

.stats-content {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: calc(env(safe-area-inset-top, 0px) + 90px);
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 60px);
  box-sizing: border-box;
}

.stats-overview-row {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.stats-ov-card {
  flex: 1;
  border-radius: 26px;
  padding: 20px 10px;
  text-align: center;
}

.stats-ov-val {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stats-ov-label {
  font-size: 10px;
  opacity: 0.45;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stats-section-title {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.35;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  margin-top: 28px;
  padding-left: 4px;
}

.stats-chart-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 8px;
  border-radius: 24px;
  padding: 14px;
  box-sizing: border-box;
}

.stats-log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-empty {
  text-align: center;
  opacity: 0.3;
  font-size: 14px;
  padding: 50px 0;
}

.stats-log-item {
  border-radius: 30px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stats-log-icon {
  font-size: 30px;
  opacity: 0.7;
  flex-shrink: 0;
}

.stats-log-info {
  flex: 1;
  min-width: 0;
}

.stats-log-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stats-log-name {
  font-size: 16px;
  font-weight: 700;
}

.stats-log-date {
  font-size: 11px;
  opacity: 0.38;
  white-space: nowrap;
}

.stats-log-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-log-track {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
}

.stats-log-fill {
  height: 100%;
  border-radius: 4px;
  background: #22c55e;
  transition: width 0.4s ease;
}

.stats-log-fill.incomplete {
  background: #ef4444;
}

.stats-log-count {
  font-size: 11px;
  opacity: 0.45;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stats-log-time {
  font-size: 11px;
  opacity: 0.35;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, monospace;
  border-radius: 8px;
  padding: 2px 7px;
}

.stats-chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  opacity: 0.6;
  margin-top: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.stats-type-row {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  margin-bottom: 8px;
  scrollbar-width: none;
}

.stats-type-row::-webkit-scrollbar {
  display: none;
}

.stats-type-card {
  flex: 0 0 80px;
  width: 80px;
  border-radius: 22px;
  padding: 14px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.stats-type-card:active {
  transform: scale(0.96);
}

.stats-type-card.selected {
  border-color: rgba(239, 68, 68, 0.6);
}

.stats-type-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.stats-type-val {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

.stats-type-label {
  font-size: 10px;
  opacity: 0.45;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.stats-type-time {
  font-size: 10px;
  opacity: 0.35;
  font-variant-numeric: tabular-nums;
}


#screen-edit-custom-list {
  z-index: 1000000000;
}


#custom-athkar-list {
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 16px;
  padding-right: 16px;
  position: fixed;
  inset: 0;
  overflow-y: auto;
  padding-bottom: 100px;
  box-sizing: border-box;
}

.custom-list-item {
  width: 100%;
  flex-shrink: 0;
  height: 75px;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 20px;
  padding-left: 22px;
  padding-right: 14px;
  cursor: pointer;
  position: relative;
  transition: transform 0.14s ease;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}

.custom-list-info {
  flex: 1;
  min-width: 0;
}

.custom-list-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.custom-list-meta {
  font-size: 12px;
  opacity: 0.45;
}

.custom-list-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.custom-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.custom-action-btn .material-symbols-outlined {
  font-size: 18px;
}

.custom-item-row {
  border-radius: 40px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-item-text {
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  padding: 10px 14px;
  font-family: var(--at-arabic-font, 'QPC-Hafs-Smart', 'Amiri', serif);
  font-size: var(--at-arabic-size, 22px);
  text-align: center;
  resize: none;
  border: none;
  background: transparent;
}

.custom-item-text::placeholder {
  font-family: var(--at-arabic-font, 'QPC-Hafs-Smart', 'Amiri', serif);
  opacity: 0.5;
}

.custom-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-item-count {
  width: 70px;
  padding: 8px 12px;
  border-radius: 50px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  border: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.custom-item-count::-webkit-outer-spin-button,
.custom-item-count::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.custom-item-delete {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: auto;
}


#screen-custom-athkar {
  z-index: 10000000;
}

#screen-edit-custom {
  z-index: 10000001;
}

#screen-custom-session {
  z-index: 10000002;
}

#screen-extend-builtin {
  z-index: 10000003;
}

#custom-athkar-create-btn,
#custom-save-btn {
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 10000010;
}

#custom-stats-btn {
  pointer-events: auto;
  position: absolute;
  right: 75px;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
}

#screen-custom-stats {
  z-index: 1000000000;
}

.custom-edit-content {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  padding-top: 90px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 160px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#custom-items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.at-item-text.latin-mode {
  line-height: 1.8;
  direction: ltr;
  text-align: left;
}


#screen-athkar.active #athkar-settings-open {
  display: flex;
}

.at-toggle-global {
  right: 75px;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  z-index: 10001;
  pointer-events: auto;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
}

#custom-add-item-btn.custom-add-btn {
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + 62px);
  z-index: 10000009;
}

#custom-list-name-input {
  width: 100%;
  box-sizing: border-box;
  height: 45px;
  font-size: 14px;
  border-radius: 50px;
  border: none;
  flex-shrink: 0;
}



.at-item-text {
  font-family: var(--at-arabic-font, 'QPC-Hafs-Smart', 'Amiri', serif);
  font-size: var(--at-arabic-size, 22px);
  -webkit-text-size-adjust: none;
}

.at-item-text.latin-mode {
  font-size: var(--at-latin-size, 16px);
  font-weight: var(--at-latin-weight, 500);
}



#screen-athkar-settings {
  z-index: 1000000000;
}



.athkar-settings-content {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  padding-top: calc(env(safe-area-inset-top, 0px) + 90px);
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 110px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aths-save-btn {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: 90%;
  height: 50px;
  border-radius: 30px;
  border: none;
  background: #ea1e1e;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  z-index: 10051;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(234, 30, 30, 0.3);
}

.aths-save-btn:active {
  transform: translateX(-50%) scale(0.97);
}

.aths-section-label {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 4px 2px;
}

.aths-preview {
  border-radius: 50px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.aths-preview-arabic {
  direction: rtl;
  font-family: 'QPC-Hafs-Smart', 'Amiri', serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 2;
}

.aths-preview-latin {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  opacity: 0.7;
}

.aths-row {
  border-radius: 50px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aths-seg {
  display: flex;
  gap: 6px;
}

.aths-seg-btn {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.5;
}

.aths-seg-btn.active {
  opacity: 1;
}

.aths-select {
  flex: 1;
  padding: 10px 14px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: none;
}

.aths-step-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}


#save-athkar-btn {
  pointer-events: auto;
  position: fixed;
  right: 22px;
  bottom: 30px;
  width: 90%;
  height: 50px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.athkar-streak-row {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  margin-bottom: 8px;
  scrollbar-width: none;
}

.athkar-streak-row::-webkit-scrollbar {
  display: none;
}

.athkar-streak-card {
  flex: 0 0 84px;
  width: 84px;
  border-radius: 22px;
  padding: 14px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.athkar-streak-card-main {
  border-color: rgba(239, 68, 68, 0.55);
}

.athkar-streak-icon {
  font-size: 22px;
  margin-bottom: 4px;
  opacity: 0.75;
}

.athkar-streak-card-main .athkar-streak-icon {
  opacity: 1;
  color: #ef4444;
}

.athkar-streak-val {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

.athkar-streak-label {
  font-size: 10px;
  opacity: 0.45;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.2;
}

.athkar-daily-hint {
  font-size: 12px;
  opacity: 0.5;
  line-height: 1.45;
  margin-bottom: 12px;
  padding: 0 4px;
}

.athkar-daily-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.athkar-daily-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 13px 14px;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.athkar-daily-row:active {
  transform: scale(0.985);
}

.athkar-daily-row.selected {
  border-color: rgba(239, 68, 68, 0.6);
}

.athkar-daily-icon {
  font-size: 20px;
  opacity: 0.65;
  flex-shrink: 0;
}

.athkar-daily-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.athkar-daily-check {
  font-size: 20px;
  color: #ef4444;
  flex-shrink: 0;
  opacity: 0;
}

.athkar-daily-row.selected .athkar-daily-check {
  opacity: 1;
}

.athkar-daily-warn {
  font-size: 12px;
  color: #ef4444;
  padding: 0 4px;
  min-height: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.athkar-daily-warn.visible {
  opacity: 1;
}

.stats-log-flag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
}

.athkar-cal-header {
  justify-content: space-between;
  gap: 8px;
}

.athkar-cal-header .prayer-cal-month {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.prayer-cal-cell.athkar-cal-miss {
  background: rgba(239, 68, 68, 0.3);
  color: #fee2e2;
  opacity: 1;
}

body.light-mode .prayer-cal-cell.athkar-cal-miss {
  background: rgba(239, 68, 68, 0.22);
  color: #7f1d1d;
}

.prayer-cal-cell.athkar-cal-empty {
  opacity: 0.5;
}

.prayer-cal-dot.miss {
  background: #ef4444;
}

#box6 {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.name-arabic {
  font-size: 55px;
  font-weight: bold;
  margin: 12px 0 6px;
  direction: rtl;
  font-family: "QPC-Uthmani-Hafs", "Amiri", Arial, sans-serif;
}

.name-translit {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: #c71818ff;
}

.name-meaning {
  font-size: 13px;
  opacity: 0.55;
  margin-top: 4px;
}

#nameofallahScreen {
  z-index: 1000000;
}

#allahNameContent {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.allah-name-item {
  width: 100%;
  border-radius: 32px;
  padding: 16px 24px;
  box-sizing: border-box;
  margin-bottom: 12px;
  overflow: hidden;
}

.allah-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  cursor: pointer;
}

.allah-name-row:active {
  transform: scale(0.98);
}

.allah-name-number {
  font-size: 16px;
  opacity: 0.5;
  flex-shrink: 0;
}

.allah-name-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.allah-name-text {
  font-size: 30px;
  font-family: 'QPC-Uthmani-Hafs', 'Amiri', serif;
  direction: rtl;
  line-height: 1.3;
}

.allah-name-translit {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  opacity: 0.75;
  margin-top: 2px;
}

.allah-name-meaning {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 2px;
}

.allah-name-chevron {
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.25s ease-out;
}

.allah-name-item.expanded .allah-name-chevron {
  transform: rotate(180deg);
}

.allah-name-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease-out;
}

.allah-name-item.expanded .allah-name-expand {
  grid-template-rows: 1fr;
}

.allah-name-expand-inner {
  min-height: 0;
  overflow: hidden;
}

.allah-detail-block {
  padding-top: 14px;
}

.allah-name-item.expanded .allah-detail-block:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 14px;
}

body.light-mode .allah-name-item.expanded .allah-detail-block:first-child {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.allah-detail-label {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.allah-detail-text {
  font-size: 15px;
  line-height: 1.5;
}

.allah-detail-text-ar {
  font-family: 'Amiri', serif;
  font-size: 17px;
  text-align: right;
}

#box4 {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}


#box4 .dua-source {
  font-size: 12px;
  color: #c71818ff;
  letter-spacing: 0.5px;
  text-align: right;
  width: 100%;
  position: absolute;
  top: 30px;
  right: 20px;
}

#box4 .dua-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 10px 30px 10px;
  box-sizing: border-box;
}

#box4 .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: 30px;
  margin-bottom: 20px;
}

#box4 .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;
}

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

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