.streak-card {
  width: 100%;
  height: auto;
  flex-direction: column;
  align-items: stretch;
  padding: 20px 18px;
  position: relative;
  gap: 0;
  overflow: hidden;
}

.streak-top {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.streak-ring-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  flex-shrink: 0;
}

.streak-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.streak-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 9;
}

.streak-ring-fg {
  fill: none;
  stroke: #ef4444;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

body.light-mode .streak-ring-bg {
  stroke: rgba(0, 0, 0, 0.1);
}

.streak-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.streak-flame-icon {
  font-size: 22px;
  color: #ef4444;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

#streakValue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.streak-num {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.streak-headline {
  flex: 1;
  min-width: 0;
}

.streak-headline-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.streak-headline-sub {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 4px;
}

.streak-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 18px 0;
  position: relative;
  z-index: 1;
}

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

.streak-week-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.streak-week-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.streak-week-label {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.5;
}

.streak-week-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
}

.streak-week-dot .material-symbols-outlined {
  font-size: 16px;
  opacity: 0.35;
}

.streak-week-dot.done {
  background: #22c55e;
}

.streak-week-dot.done .material-symbols-outlined {
  color: #fff;
  opacity: 1;
  font-weight: 700;
}

body.light-mode .streak-week-dot {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .streak-week-dot.done {
  background: #22c55e;
}

#box1 .streak-ring-fg {
  stroke: #22c55e;
}

#box1 .streak-week-dot.done {
  background: #22c55e;
}

body.light-mode #box1 .streak-week-dot.done {
  background: #22c55e;
}

.streak-big-card {
  width: 100%;
  height: auto;
  flex-direction: column;
  align-items: stretch;
  padding: 20px 18px;
  gap: 0;
  box-sizing: border-box;
  border-radius: 32px;
  margin-bottom: 10px;
}

.streak-big-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.streak-big-icon {
  font-size: 26px;
  color: #ef4444;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.streak-big-val {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.streak-big-label {
  font-size: 13px;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 2px;
}

.streak-big-week-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 18px;
}

.feature-streak-wrap {
  width: 100%;
  box-sizing: border-box;
}

#quranContentList .feature-streak-wrap {
  margin-bottom: 22px;
}

.feature-streak-title {
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.55;
  margin-bottom: 10px;
  padding-left: 4px;
  text-align: left;
}

.feature-streak-card {
  width: 100%;
  min-height: 84px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  box-sizing: border-box;
}

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

.feature-streak-icon .material-symbols-outlined {
  font-size: 24px;
  color: #ef4444;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.feature-streak-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-streak-label {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-streak-sub {
  font-size: 13px;
  opacity: 0.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-streak-value {
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}

.feature-streak-card--btn {
  display: flex;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  transition: transform 0.15s ease;
}

.feature-streak-card--btn:active {
  transform: scale(0.98);
}

.feature-streak-arrow {
  opacity: 0.4;
  flex-shrink: 0;
}

.so-hero-card {
  width: 100%;
  min-height: 300px;
}

#soOverallRingFg {
  stroke: #22c55e;
}

.so-week-chart {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.so-week-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.so-week-bar-track {
  width: 100%;
  max-width: 22px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.so-week-bar-fill {
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.15);
  transition: height 0.4s ease;
}

.so-week-bar-fill.active {
  background: #ef4444;
}

.so-week-bar-label {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.5;
}

body.light-mode .so-week-bar-track {
  background: rgba(0, 0, 0, 0.05);
}

.so-heatmap-card {
  width: 100%;
  min-height: 280px;
  border-radius: 32px;
  padding: 20px 18px;
  margin-top: 16px;
  box-sizing: border-box;
}

.so-heatmap-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.so-heatmap-title .material-symbols-outlined {
  font-size: 20px;
  color: #ef4444;
}

.so-heatmap-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 40px));
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.so-heatmap-days span {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.4;
}

.so-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 40px));
  justify-content: center;
  gap: 6px;
}

.so-heatmap-cell {
  width: 100%;
  max-width: 40px;
  max-height: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

body.light-mode .so-heatmap-cell {
  background: rgba(0, 0, 0, 0.05);
}

.so-list {
  width: 100%;
  border-radius: 32px;
  padding: 4px 18px;
  box-sizing: border-box;
  margin-top: 16px;
  margin-bottom: 24px;
}

.so-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.so-list-row:last-child {
  border-bottom: none;
}

.so-list-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.so-list-icon .material-symbols-outlined {
  font-size: 18px;
  opacity: 0.85;
}

.so-list-label {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.so-list-value {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.so-list-flame {
  font-size: 16px;
  color: #ef4444;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

body.light-mode .so-list-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .so-list-icon {
  background: rgba(0, 0, 0, 0.05);
}

#counterScreen {
  z-index: 1000000;
}

#tsbStatsScreen {
  z-index: 1000000;
}

#tsbSettingsScreen {
  z-index: 1000000;
}

#counterContent {
  gap: 18px;
  background: radial-gradient(120% 55% at 50% 0%, rgba(var(--tsb-ring-color-rgb), 0.22) 0%, rgba(0, 0, 0, 1) 62%);
  overscroll-behavior: contain;
}

body.light-mode #counterContent {
  background: radial-gradient(120% 55% at 50% 0%, rgba(var(--tsb-ring-color-rgb), 0.16) 0%, rgba(255, 255, 255, 1) 62%);
}

.tsb-spacer {
  flex: 1;
  min-height: 24px;
  width: 100%;
}

.tsb-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: 10px;
}

.tsb-dhikr-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  margin-top: 6px;
  border-radius: 20px;
  border: 1px solid var(--tsb-accent-border, rgba(239, 68, 68, 0.35));
  background: var(--tsb-accent-bg, rgba(176, 5, 5, 0.303));
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s ease-out, border-color 0.2s ease-out;
}

.tsb-dhikr-btn:active {
  transform: scale(0.98);
}

.tsb-dhikr-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.tsb-dhikr-arabic {
  font-family: 'QPC-Hafs-Smart', 'Amiri', serif;
  font-size: 22px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.light-mode .tsb-dhikr-arabic {
  color: #000;
}

.tsb-dhikr-latin {
  font-size: 12.5px;
  opacity: 0.6;
}

.tsb-dhikr-chevron {
  flex-shrink: 0;
  opacity: 0.6;
}

.tsb-ring-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 55px;
  width: 100%;
}

.tsb-ring-card {
  position: relative;
  width: auto;
  flex: 1 1 0;
  max-width: 272px;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0;
  clip-path: none;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease-out, border-color 0.25s ease-out, padding 0.25s ease-out, border-radius 0.25s ease-out;
}

.tsb-ring-card[data-ring-style="badge"] {
  padding: 56px 16px 20px;
  border-radius: 32px;
  background: radial-gradient(120% 85% at 50% 0%, rgba(var(--tsb-ring-color-rgb), 0.28) 0%, #0d0d10 72%);
  border: 1.5px solid rgba(var(--tsb-ring-color-rgb), 0.45);
}

.tsb-ring-card[data-ring-style="arch"] {
  padding: 84px 16px 20px;
  border-radius: 50% 50% 20px 20px / 168px 168px 20px 20px;
  background: radial-gradient(120% 85% at 50% 0%, rgba(var(--tsb-ring-color-rgb), 0.28) 0%, #0d0d10 72%);
  border: 1.5px solid rgba(var(--tsb-ring-color-rgb), 0.45);
}

.tsb-ring-card[data-ring-style="beads"] {
  padding: 22px;
}

.tsb-ring-card[data-ring-style="beads"]::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgb(var(--tsb-ring-color-rgb)) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 12px) calc(100% - 3px), transparent calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 12px) calc(100% - 3px), transparent calc(100% - 3px));
  opacity: 0.85;
  pointer-events: none;
}

.tsb-ring-card[data-ring-style="frame"] {
  padding: 26px 20px;
  border-radius: 28px;
  background: radial-gradient(120% 85% at 50% 0%, rgba(var(--tsb-ring-color-rgb), 0.28) 0%, #0d0d10 72%);
  border: 1.5px solid rgba(var(--tsb-ring-color-rgb), 0.45);
}

.tsb-frame-gem {
  display: none;
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgb(var(--tsb-ring-color-rgb));
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 0 0 8px 1px rgba(var(--tsb-ring-color-rgb), 0.4);
}

.tsb-ring-card[data-ring-style="frame"] .tsb-frame-gem {
  display: block;
}

.tsb-frame-gem--tl {
  top: 10px;
  left: 10px;
}

.tsb-frame-gem--tr {
  top: 10px;
  right: 10px;
}

.tsb-frame-gem--bl {
  bottom: 10px;
  left: 10px;
}

.tsb-frame-gem--br {
  bottom: 10px;
  right: 10px;
}

.tsb-ring-card[data-ring-style="lantern"] {
  padding: 30px 22px 26px;
  border-radius: 0;
  clip-path: polygon(50% 0%, 85% 12%, 100% 42%, 88% 88%, 65% 100%, 35% 100%, 12% 88%, 0% 42%, 15% 12%);
  background: radial-gradient(120% 85% at 50% 0%, rgba(var(--tsb-ring-color-rgb), 0.28) 0%, #0d0d10 72%);
  border: 1.5px solid rgba(var(--tsb-ring-color-rgb), 0.45);
}

.tsb-ring-card[data-ring-style="emerald"] {
  padding: 56px 16px 20px;
  border-radius: 24px;
  background: radial-gradient(120% 85% at 50% 0%, rgba(var(--tsb-ring-color-rgb), 0.4) 0%, #0d0d10 72%);
  border: 1.5px solid rgba(var(--tsb-ring-color-rgb), 0.5);
}

.tsb-ring-card[data-ring-style="sand"] {
  padding: 56px 16px 20px;
  border-radius: 28px;
  background: radial-gradient(120% 85% at 50% 0%, rgba(var(--tsb-ring-color-rgb), 0.4) 0%, #ecdcc0 72%);
  border: 1.5px solid rgba(var(--tsb-ring-color-rgb), 0.5);
}

.tsb-ring-card[data-ring-style="wood"] {
  padding: 16px;
  border-radius: 50%;
  background: repeating-linear-gradient(118deg, #5c3a1e 0px, #6b4423 5px, #7a4f2a 10px, #5c3a1e 15px);
  border: 2px solid rgba(58, 34, 15, 0.8);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.tsb-badge-icon {
  display: none;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(var(--tsb-ring-color-rgb), 0.32);
  border: 1.5px solid rgba(var(--tsb-ring-color-rgb), 0.85);
}

.tsb-ring-card[data-ring-style="badge"] .tsb-badge-icon,
.tsb-ring-card[data-ring-style="emerald"] .tsb-badge-icon {
  display: flex;
}

.tsb-badge-icon .material-symbols-outlined {
  font-size: 20px;
  color: rgb(var(--tsb-ring-color-rgb));
}

.tsb-ornament-icon {
  display: none;
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
}

.tsb-ring-card[data-ring-style="sand"] .tsb-ornament-icon {
  display: flex;
}

.tsb-ornament-icon .material-symbols-outlined {
  font-size: 26px;
  color: rgb(var(--tsb-ring-color-rgb));
}

.tsb-skyline {
  display: none;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 74%;
  height: auto;
  pointer-events: none;
}

.tsb-ring-card[data-ring-style="arch"] .tsb-skyline {
  display: block;
}

.tsb-skyline-shape {
  fill: rgba(0, 0, 0, 0.45);
}

.tsb-skyline-crescent {
  fill: rgba(var(--tsb-ring-color-rgb), 0.8);
  opacity: 0.9;
}

.tsb-skyline-glow {
  fill: rgb(var(--tsb-ring-color-rgb));
  opacity: 0.9;
}

.tsb-ring {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  max-width: 240px;
  border-radius: 50%;
  background: var(--tsb-ring-bg, conic-gradient(#22c55e calc(var(--tsb-pct, 0) * 1%), rgba(255, 255, 255, 0.08) 0));
  box-shadow: 0 0 50px 6px var(--tsb-ring-glow, rgba(34, 197, 94, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.25s ease-out, box-shadow 0.25s ease-out, transform 0.1s ease-out;
}

.tsb-ring:active {
  transform: scale(0.97);
}

.tsb-ring-inner {
  width: var(--tsb-ring-thickness, 82%);
  height: var(--tsb-ring-thickness, 82%);
  border-radius: 50%;
  background: #0d0606;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: width 0.25s ease-out, height 0.25s ease-out;
}

body.light-mode .tsb-ring-inner {
  background: #f5eded;
}

.tsb-count {
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

body.light-mode .tsb-count {
  color: #000;
}

.tsb-count-sep {
  font-size: 22px;
  opacity: 0.35;
  color: #fff;
}

body.light-mode .tsb-count-sep {
  color: #000;
}

.tsb-target {
  font-size: 22px;
  font-weight: 600;
  opacity: 0.5;
  color: #fff;
}

body.light-mode .tsb-target {
  color: #000;
}

.tsb-stats-row {
  display: flex;
  gap: 40px;
  margin-top: 4px;
}

.tsb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tsb-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

body.light-mode .tsb-stat-value {
  color: #000;
}

.tsb-stat-label {
  font-size: 10.5px;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tsb-target-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tsb-target-chip {
  padding: 12px 4px;
}

.tsb-target-chip .chip-btn-label {
  font-size: 12px;
}

.tsb-style-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 4px 2px 2px;
}

.tsb-style-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.tsb-style-preview {
  position: relative;
  width: 68px;
  height: 78px;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease-out, border-color 0.15s ease-out;
}

.tsb-style-card.active .tsb-style-preview {
  border-color: #fff;
  transform: scale(1.06);
}

body.light-mode .tsb-style-card.active .tsb-style-preview {
  border-color: #000;
}

.tsb-style-mini-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.tsb-style-mini-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tsb-style-mini-badge .material-symbols-outlined {
  font-size: 9px;
}

.tsb-style-mini-gem {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  transform: rotate(45deg);
}

.tsb-style-mini-gem--tl {
  top: 6px;
  left: 6px;
}

.tsb-style-mini-gem--tr {
  top: 6px;
  right: 6px;
}

.tsb-style-mini-gem--bl {
  bottom: 6px;
  left: 6px;
}

.tsb-style-mini-gem--br {
  bottom: 6px;
  right: 6px;
}

.tsb-style-preview--classic .tsb-style-mini-ring {
  width: 46px;
  height: 46px;
  background: conic-gradient(rgb(var(--tsb-ring-color-rgb)) 65%, rgba(255, 255, 255, 0.12) 0);
  box-shadow: 0 0 10px 1px rgba(var(--tsb-ring-color-rgb), 0.4);
}

.tsb-style-preview--beads .tsb-style-mini-ring {
  position: relative;
  width: 46px;
  height: 46px;
  background: conic-gradient(rgb(var(--tsb-ring-color-rgb)) 65%, rgba(255, 255, 255, 0.12) 0);
  box-shadow: 0 0 10px 1px rgba(var(--tsb-ring-color-rgb), 0.4);
}

.tsb-style-preview--beads .tsb-style-mini-ring::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgb(var(--tsb-ring-color-rgb)) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 9px) calc(100% - 2px), transparent calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 9px) calc(100% - 2px), transparent calc(100% - 2px));
}

.tsb-style-preview--badge,
.tsb-style-preview--arch,
.tsb-style-preview--frame,
.tsb-style-preview--lantern,
.tsb-style-preview--emerald,
.tsb-style-preview--sand,
.tsb-style-preview--wood {
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
}

.tsb-style-preview--badge {
  background: radial-gradient(120% 85% at 50% 0%, rgba(var(--tsb-ring-color-rgb), 0.28) 0%, #0d0d10 72%);
  border-color: rgba(var(--tsb-ring-color-rgb), 0.45);
}

.tsb-style-preview--badge .tsb-style-mini-badge,
.tsb-style-preview--emerald .tsb-style-mini-badge {
  background: rgba(var(--tsb-ring-color-rgb), 0.32);
  border: 1px solid rgba(var(--tsb-ring-color-rgb), 0.85);
}

.tsb-style-preview--badge .tsb-style-mini-badge .material-symbols-outlined,
.tsb-style-preview--emerald .tsb-style-mini-badge .material-symbols-outlined {
  color: rgb(var(--tsb-ring-color-rgb));
}

.tsb-style-preview--badge .tsb-style-mini-ring {
  background: conic-gradient(rgb(var(--tsb-ring-color-rgb)) 65%, rgba(255, 255, 255, 0.12) 0);
  box-shadow: 0 0 8px 1px rgba(var(--tsb-ring-color-rgb), 0.4);
}

.tsb-style-preview--arch {
  background: radial-gradient(120% 85% at 50% 0%, rgba(var(--tsb-ring-color-rgb), 0.28) 0%, #0d0d10 72%);
  border-color: rgba(var(--tsb-ring-color-rgb), 0.45);
  border-radius: 50% 50% 10px 10px / 60% 60% 10px 10px;
}

.tsb-style-preview--arch .tsb-style-mini-ring {
  background: conic-gradient(rgb(var(--tsb-ring-color-rgb)) 65%, rgba(255, 255, 255, 0.12) 0);
  box-shadow: 0 0 8px 1px rgba(var(--tsb-ring-color-rgb), 0.4);
}

.tsb-style-preview--frame {
  background: radial-gradient(120% 85% at 50% 0%, rgba(var(--tsb-ring-color-rgb), 0.28) 0%, #0d0d10 72%);
  border-color: rgba(var(--tsb-ring-color-rgb), 0.45);
}

.tsb-style-preview--frame .tsb-style-mini-gem {
  background: rgb(var(--tsb-ring-color-rgb));
}

.tsb-style-preview--frame .tsb-style-mini-ring {
  background: conic-gradient(rgb(var(--tsb-ring-color-rgb)) 65%, rgba(255, 255, 255, 0.12) 0);
  box-shadow: 0 0 8px 1px rgba(var(--tsb-ring-color-rgb), 0.4);
}

.tsb-style-preview--lantern {
  background: radial-gradient(120% 85% at 50% 0%, rgba(var(--tsb-ring-color-rgb), 0.28) 0%, #0d0d10 72%);
  border-color: rgba(var(--tsb-ring-color-rgb), 0.45);
  border-radius: 0;
  clip-path: polygon(50% 0%, 85% 12%, 100% 42%, 88% 88%, 65% 100%, 35% 100%, 12% 88%, 0% 42%, 15% 12%);
}

.tsb-style-preview--lantern .tsb-style-mini-ring {
  background: conic-gradient(rgb(var(--tsb-ring-color-rgb)) 65%, rgba(255, 255, 255, 0.12) 0);
  box-shadow: 0 0 8px 1px rgba(var(--tsb-ring-color-rgb), 0.4);
}

.tsb-style-preview--emerald {
  background: radial-gradient(120% 85% at 50% 0%, rgba(var(--tsb-ring-color-rgb), 0.35) 0%, #0d0d10 72%);
  border-color: rgba(var(--tsb-ring-color-rgb), 0.5);
}

.tsb-style-preview--emerald .tsb-style-mini-ring {
  background: conic-gradient(rgb(var(--tsb-ring-color-rgb)) 65%, rgba(255, 255, 255, 0.12) 0);
  box-shadow: 0 0 8px 1px rgba(var(--tsb-ring-color-rgb), 0.4);
}

.tsb-style-preview--sand {
  background: radial-gradient(120% 85% at 50% 0%, rgba(var(--tsb-ring-color-rgb), 0.4) 0%, #ecdcc0 72%);
  border-color: rgba(var(--tsb-ring-color-rgb), 0.5);
}

.tsb-style-preview--sand .tsb-style-mini-ring {
  background: conic-gradient(rgb(var(--tsb-ring-color-rgb)) 65%, rgba(0, 0, 0, 0.1) 0);
  box-shadow: 0 0 8px 1px rgba(var(--tsb-ring-color-rgb), 0.35);
}

.tsb-style-preview--wood {
  border-radius: 50%;
  padding-top: 0;
  background: repeating-linear-gradient(118deg, #5c3a1e 0px, #6b4423 5px, #7a4f2a 10px, #5c3a1e 15px);
  border-color: rgba(58, 34, 15, 0.8);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
}

.tsb-style-preview--wood .tsb-style-mini-ring {
  width: 40px;
  height: 40px;
  background: conic-gradient(rgb(var(--tsb-ring-color-rgb)) 65%, rgba(0, 0, 0, 0.25) 0);
  box-shadow: 0 0 6px 1px rgba(var(--tsb-ring-color-rgb), 0.5);
}

.tsb-theme-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 4px 2px 2px;
}

.tsb-theme-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: transform 0.15s ease-out, border-color 0.15s ease-out;
}

.tsb-theme-swatch:active {
  transform: scale(0.94);
}

.tsb-theme-swatch.active {
  border-color: #fff;
  transform: scale(1.1);
}

body.light-mode .tsb-theme-swatch.active {
  border-color: #000;
}

.tsb-theme-swatch[data-theme="classic"] {
  background: #22c55e;
}

.tsb-theme-swatch[data-theme="neon"] {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.tsb-theme-swatch[data-theme="sunset"] {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.tsb-theme-swatch[data-theme="ocean"] {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.tsb-theme-swatch[data-theme="royal"] {
  background: linear-gradient(135deg, #a855f7, #6366f1);
}

.tsb-theme-swatch[data-theme="minimal"] {
  background: #cbd5e1;
}

.tsb-theme-swatch[data-theme="red"] {
  background: #ff0000;
}

.tsb-theme-swatch[data-theme="amber"] {
  background: #ff8a00;
}

.tsb-theme-swatch[data-theme="gold"] {
  background: #ffc400;
}

.tsb-theme-swatch[data-theme="lime"] {
  background: #8bc34a;
}

.tsb-theme-swatch[data-theme="teal"] {
  background: #14b8a6;
}

.tsb-theme-swatch[data-theme="stone"] {
  background: #78716c;
}

.tsb-dhikr-panel {
  max-height: 78vh;
  overflow-y: auto;
}

.tsb-dhikr-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.tsb-dhikr-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(176, 5, 5, 0.303);
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease-out, border-color 0.15s ease-out;
}

.tsb-dhikr-row.selected {
  background: rgba(239, 68, 68, 0.4);
  border-color: rgba(239, 68, 68, 0.8);
  border-width: 1.5px;
}

.tsb-dhikr-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.tsb-dhikr-row-arabic {
  font-family: 'QPC-Hafs-Smart', 'Amiri', serif;
  font-size: 17px;
}

.tsb-dhikr-row-latin {
  font-size: 11.5px;
  opacity: 0.55;
}

.tsb-dhikr-row-check {
  opacity: 0;
  font-size: 20px;
  flex-shrink: 0;
  color: #ef4444;
}

.tsb-dhikr-row.selected .tsb-dhikr-row-check {
  opacity: 1;
}

.tsb-widget-card {
  width: 100%;
  height: auto;
  flex-direction: column;
  align-items: stretch;
  padding: 18px 18px 16px;
  gap: 0;
  cursor: pointer;
  transition: transform 0.15s ease-out;
}

.tsb-widget-card:active {
  transform: scale(0.98);
}

.tsb-widget-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.tsb-ring--sm {
  width: 68px;
  height: 68px;
  margin: 0;
  flex-shrink: 0;
  box-shadow: 0 0 16px 2px var(--tsb-ring-glow-sm, rgba(34, 197, 94, 0.4));
}

.tsb-ring--sm .tsb-count {
  font-size: 16px;
}

.tsb-ring--sm .tsb-count-sep {
  font-size: 10px;
}

.tsb-ring--sm .tsb-target {
  font-size: 10px;
}

.tsb-widget-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tsb-widget-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

body.light-mode .tsb-widget-stat-value {
  color: #000;
}

.tsb-widget-stat-label {
  font-size: 10px;
  opacity: 0.5;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

body.light-mode .tsb-widget-stat-label {
  color: #000;
}

#calendarContent {
  padding-top: calc(env(safe-area-inset-top, 0px) + 78px);
}

.cal-nav-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 24px;
  padding: 14px 18px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 5;
}

.cal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.cal-nav-btn .material-symbols-outlined {
  font-size: 20px;
}

.cal-month-label {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.cal-list-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 32px;
  padding: 10px 14px;
  box-sizing: border-box;
}

.cal-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 6px 0;
  box-sizing: border-box;
}

.cal-week-group {
  display: flex;
  flex-direction: column;
}

.cal-week-label {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.45;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0 6px;
  margin-bottom: 6px;
}

.cal-day-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 8px;
  border-radius: 16px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-day-row:last-child {
  border-bottom: none;
}

.cal-day-row.today {
  background: rgba(239, 68, 68, 0.25);
  border-bottom-color: transparent;
}

.cal-day-num-wrap {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.cal-day-num {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.cal-day-dow {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.cal-day-row.today .cal-day-num,
.cal-day-row.today .cal-day-dow {
  color: #fff;
  opacity: 1;
}

.cal-day-info {
  flex: 1;
  min-width: 0;
}

.cal-day-hijri {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.55;
}

.cal-day-row.today .cal-day-hijri {
  opacity: 0.9;
  color: #fff;
}

.cal-day-event {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
  margin-top: 4px;
}

.cal-day-row.today .cal-day-event {
  color: #fff;
}

.cal-day-event .material-symbols-outlined {
  font-size: 15px;
}

.cal-day-row.event .cal-day-num,
.cal-day-row.event .cal-day-dow {
  color: #ef4444;
}

body.light-mode .cal-day-row {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

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

.edit-bottom-actions {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 90%;
  max-width: 460px;
  display: flex;
  gap: 12px;
  z-index: 2147483647;
}

.edit-bottom-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.edit-bottom-btn .material-symbols-outlined {
  font-size: 20px;
}

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

.edit-bottom-btn-primary {
  background: #ea1e1e;
  color: #fff;
}

#editList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 98%;
}

.edit-section-label {
  margin-top: 8px;
  padding-left: 8px;
}

.edit-quick-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 4px;
}

.edit-quick-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 10px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.edit-quick-btn .material-symbols-outlined {
  font-size: 18px;
}

.edit-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.edit-item-icon .material-symbols-outlined {
  font-size: 19px;
}

.edit-item {
  width: 100%;
  min-height: 70px;
  height: auto;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 12px 10px;
  font-size: 16px;
  font-weight: bold;
  box-sizing: border-box;
  gap: 10px;
  transition: opacity 0.2s;
}

.edit-item-move {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
}

.edit-move-btn {
  width: 28px;
  height: 24px;
  border: none;
  background: rgba(128, 128, 128, 0.18);
  color: inherit;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.edit-move-btn .material-symbols-outlined {
  font-size: 16px;
}

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

.edit-move-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.edit-item-title {
  flex: 1;
  font-size: 16px;
}

.toggle-switch {
  position: relative;
  width: 51px;
  height: 31px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(128, 128, 128, 0.3);
  transition: 0.3s;
  border-radius: 34px;
}

.toggle-slider:before {
  content: "";
  position: absolute;
  height: 27px;
  width: 27px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked+.toggle-slider {
  background-color: #34C759;
}

.toggle-switch input:checked+.toggle-slider:before {
  transform: translateX(20px);
}

#editScreen {
  z-index: 1000000;
}

#habitStatsBody {
  margin-top: 10%;
}



#createHabitScreen {
  z-index: 1000000000000;
}

.habits-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-top: 55px;
}

.habit-card {
  width: 100%;
  height: 60px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  box-sizing: border-box;
}


.habit-card:active {
  transform: scale(0.98);
}

.habit-icon {
  font-size: 34px;
  margin-left: 20px;
}

.habit-name {
  font-size: 20px;
  font-weight: 600;
}

.habits-empty {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px 40px;
  opacity: 0.6;
}

.habits-empty-icon {
  font-size: 48px;
  opacity: 0.5;
  margin-bottom: 14px;
}

.habits-empty-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  opacity: 1;
}

.habits-empty-sub {
  font-size: 13px;
  opacity: 0.6;
}

.habit-card-v2 {
  width: 100%;
  min-height: 78px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px 18px;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.habit-card-v2:active {
  transform: scale(0.98);
}

.habit-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.habit-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.habit-card-info {
  flex: 1;
  min-width: 0;
}

.habit-card-name {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.habit-card-sub {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 3px;
}

.habit-card-today {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.habit-card-today .material-symbols-outlined {
  font-size: 18px;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.habit-card-today.done .material-symbols-outlined {
  opacity: 1;
  transform: scale(1);
}

body.light-mode .habit-card-today {
  border-color: rgba(0, 0, 0, 0.12);
}

.habit-card-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.habit-card-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.habit-card-qty-btn .material-symbols-outlined {
  font-size: 16px;
}

.habit-card-qty-btn:active {
  transform: scale(0.9);
}

.habit-card-qty-val {
  font-size: 12px;
  font-weight: 700;
  min-width: 34px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

body.light-mode .habit-card-qty-btn {
  border-color: rgba(0, 0, 0, 0.12);
}

.habit-card-heatmap {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: column;
  gap: 3px;
  width: 100%;
  height: 56px;
}

.habit-card-heatmap .habit-heatmap-cell {
  border-radius: 3px;
  width: 100%;
  height: 100%;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="color"] {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
}

#calendar-wrapper {
  padding-top: 70px;
  padding-bottom: 100px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
}

.calendar-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 16px 0;
}

.month-block {
  width: 100%;
  padding: 0 4px;
}

.month-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 20px;
  padding-left: 1px;
}

.month-name {
  font-size: 22px;
  font-weight: 700;
  margin-right: 12px;
}

.month-year {
  font-size: 18px;
  font-weight: 500;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 0;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 4px;
}

.day {
  aspect-ratio: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}

.day:active {
  transform: scale(0.92);
}

.day.completed {
  background-color: #34C759;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
  opacity: 1;
}

.day.today {
  background-color: #7f0000;
  font-weight: 700;
  border-radius: 50px;
}

.day.today.completed {
  background-color: #34C759;
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
}

.day.past {
  opacity: 0.3;
}


#statsBtn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: 80px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 2147483647;
}

#recapCount {
  position: absolute;
  top: -4px;
  right: -4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .calendar-container {
    max-width: 600px;
    margin: 0 auto;
  }

  .month-name {
    font-size: 24px;
  }

  .day {
    font-size: 18px;
    border-radius: 10px;
  }
}

.years-header {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  gap: 12px;
  border-radius: 50px;
  padding: 12px 10px;
  width: 80%;
  left: 50%;
  transform: translate(-50%);
  overflow-x: auto;
  scrollbar-width: none;
  background: transparent;
}

.year-tab {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}

.year-tab.active {
  background: linear-gradient(135deg, #ff3b3b, #ff0000);
  color: white;
  border-color: #ff0000;
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.35);
}

#monthsList {
  width: 100%;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.month-item {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 50px;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

.month-item:active {
  transform: scale(0.98);
}

.month-count {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
}

#deleteHabitBtn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 2147483647;
}

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

#addHabitMiniBtn {
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 2147483647;
}

.habits-grid {
  margin-bottom: 70px;
}

#addhabitcontent {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
  margin-bottom: 70px;
  align-items: flex-start;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: flex-start;
}

.creattitle {
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  margin-bottom: 4px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#habitName {
  width: 95%;
  height: 44px;
  border-radius: 50px;
  font-size: 15px;
  padding-inline: 16px;
  box-sizing: border-box;
  outline: none;
}


.color-select,
.icon-select {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.color-select {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(8px, 2.4vw, 12px);
  width: 100%;
}

.color-option {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.color-option.selected {
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
}

.icon-select {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(6px, 2vw, 10px);
  width: 100%;
}

.icon-option.selected {
  border-color: #f00101;
  background: #ff0000;
}

.icon-option {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-option .material-symbols-outlined {
  font-size: clamp(16px, 4.5vw, 22px);
}


#createHabitBtn {
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 2147483647;
}

.habit-goal-toggle {
  display: flex;
  gap: 10px;
  width: 100%;
}

.habit-goal-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.habit-goal-btn.selected {
  opacity: 1;
  border-color: #ff0000;
}

.habit-goal-weekly-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 95%;
  margin-top: 12px;
  padding: 12px;
  border-radius: 50px;
}

.habit-goal-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.habit-goal-weekly-val {
  font-size: 14px;
  font-weight: 700;
  min-width: 80px;
  text-align: center;
}

.habit-goal-quantity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: 50px;
  box-sizing: border-box;
}

.habit-goal-unit-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border-radius: 50px;
  font-size: 14px;
  padding: 0 16px;
  box-sizing: border-box;
  outline: none;
}

.habit-note-input {
  width: 100%;
  box-sizing: border-box;
  height: auto;
  padding: 12px 16px;
  border-radius: 22px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  outline: none;
  line-height: 1.4;
}

.habit-detail-note {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px;
  border-radius: 22px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
  font-style: italic;
  margin-bottom: 14px;
}

.habit-detail-goal {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 16px;
  padding-left: 2px;
}

.habit-view-tabs {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
}

.habit-view-tab {
  flex: 1;
  padding: 10px 8px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.habit-view-tab.selected {
  opacity: 1;
  border-color: #ff0000;
}

.habit-view-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.habit-year-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  flex: 1;
}

.habit-year-scroll .prayer-cal-card {
  margin-bottom: 0;
  flex-shrink: 0;
}

#habitViewMonth .prayer-cal-card {
  padding: 32px 14px;
  margin-bottom: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

#habitViewMonth .prayer-cal-card,
.habit-year-scroll .prayer-cal-card {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

#habitViewMonth .prayer-cal-header,
.habit-year-scroll .prayer-cal-grid,
.habit-year-scroll .prayer-cal-weekdays {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  justify-content: center;
}

.habit-year-scroll .prayer-cal-cell {
  border-radius: 50%;
  font-size: clamp(13px, 4.4vw, 19px);
}

.habit-year-scroll .prayer-cal-grid {
  gap: clamp(6px, 2.4vw, 14px);
}

.habit-year-scroll .prayer-cal-weekdays span {
  font-size: clamp(9px, 2.4vw, 11px);
}

#habitViewMonth .prayer-cal-month,
.habit-year-scroll .prayer-cal-month {
  font-size: clamp(14px, 3.6vw, 17px);
  text-align: center;
  flex: 1;
}


#habitViewMonth .habit-week-list {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.habit-week-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.prayer-cal-cell.habit-week-cell {
  aspect-ratio: auto;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  height: 56px;
  padding: 0 20px;
  border-radius: 16px;
  font-size: 15px;
  box-sizing: border-box;
}

.habit-week-cell-day {
  font-size: 13px;
  opacity: 0.6;
  min-width: 32px;
  text-align: left;
}

.habit-week-cell-num {
  font-size: 17px;
  font-weight: 700;
}

#habitRingFg {
  stroke: #ef4444;
}

#habitRingFg {
  stroke: #ef4444;
}

.habit-heatmap-card {
  border-radius: 24px;
  padding: 16px 14px;
  margin-bottom: 10px;
}

.habit-heatmap-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.habit-heatmap-scroll::-webkit-scrollbar {
  display: none;
}

.habit-heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: 14px;
  gap: 4px;
  width: max-content;
  padding-bottom: 2px;
}

.habit-heatmap-cell {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.habit-heatmap-cell.future {
  background: transparent;
}

body.light-mode .habit-heatmap-cell {
  background: rgba(0, 0, 0, 0.06);
}

body.light-mode .habit-heatmap-cell.future {
  background: transparent;
}


.day-action-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: -160px;
  border-radius: 26px;
  padding: 14px 16px;
  z-index: 3000000000001;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: bottom 0.25s ease;
}

.day-action-bar.active {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
}

.day-action-bar-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(128, 128, 128, 0.18);
  color: inherit;
  cursor: pointer;
}

.day-action-bar-close .material-symbols-outlined {
  font-size: 18px;
}

.day-action-bar-date {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.7;
  max-width: 72px;
}

.day-action-bar-qty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.day-action-qty-val {
  font-size: 17px;
  font-weight: 700;
  min-width: 90px;
  text-align: center;
}

.habits-widget-card {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.habits-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.habits-widget-label {
  font-size: 15px;
  font-weight: 800;
}

.habits-widget-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ef4444;
  cursor: pointer;
}

.habits-widget-add-btn .material-symbols-outlined {
  font-size: 18px;
}

body.light-mode .habits-widget-add-btn {
  background: rgba(0, 0, 0, 0.06);
}

.habits-widget-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.habits-widget-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  cursor: pointer;
}

.habits-widget-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.habits-widget-row-icon .material-symbols-outlined {
  font-size: 19px;
}

.habits-widget-row-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.habits-widget-row-check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.habits-widget-row-check .material-symbols-outlined {
  font-size: 17px;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.habits-widget-row-check.done .material-symbols-outlined {
  opacity: 1;
  transform: scale(1);
}

body.light-mode .habits-widget-row-check {
  border-color: rgba(0, 0, 0, 0.12);
}

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

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

.habits-widget-empty-text {
  font-size: 13px;
  opacity: 0.45;
}

.habits-widget-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;
}

.habits-widget-empty-btn .material-symbols-outlined {
  font-size: 17px;
  opacity: 1;
}

#screen-prayer-stats {

  z-index: 1100000;
}

.prayer-tracker-row {
  width: 100%;
  border-radius: 50px;
  padding: 10px 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.prayer-tracker-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.prayer-tracker-icon .material-symbols-outlined {
  font-size: 19px;
  color: inherit;
}

.prayer-tracker-info {
  flex: 1;
  min-width: 0;
}

.prayer-tracker-name {
  font-size: 15px;
  font-weight: 700;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.prayer-tracker-check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.45);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.prayer-tracker-check .material-symbols-outlined {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.prayer-tracker-check:active {
  transform: scale(0.88);
}

.prayer-tracker-row.done {
  background: rgba(52, 199, 89, 0.38);
  border-color: rgba(52, 199, 89, 0.35);
}

.prayer-tracker-row.done .prayer-tracker-name {
  opacity: 0.5;
  text-decoration: line-through;
}

.prayer-tracker-row.done .prayer-tracker-check {
  background: #34C759;
  border-color: #34C759;
}

.prayer-tracker-row.done .prayer-tracker-check .material-symbols-outlined {
  opacity: 1;
  transform: scale(1);
}

body.light-mode .prayer-tracker-row.done {
  background: rgba(52, 199, 89, 0.18);
  border-color: rgba(52, 199, 89, 0.4);
}

.prayer-stats-row-card {
  flex-direction: column;
  align-items: stretch;
}

.prayer-stats-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.prayer-stats-row-label {
  font-size: 8px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.4;
}

.prayer-stats-row-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prayer-stats-row-streak {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  padding: 2px 7px;
  border-radius: 20px;
  line-height: 1;
}

.prayer-stats-row-streak .material-symbols-outlined {
  font-size: 12px;
  line-height: 1;
}

.prayer-stats-row-today {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.5;
  text-transform: uppercase;
}

.prayer-stats-row-daynav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.prayer-stats-row-nav-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
}

.prayer-stats-row-nav-btn .material-symbols-outlined {
  font-size: 14px;
  line-height: 1;
}

.prayer-stats-row-nav-btn:active {
  opacity: 0.9;
}

.prayer-stats-row-nav-btn:disabled {
  opacity: 0.2;
  cursor: default;
}

.prayer-stats-row-list {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.prayer-stats-row-list::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 22px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 0;
}

body.light-mode .prayer-stats-row-list::before {
  background: rgba(0, 0, 0, 0.1);
}

.prayer-stats-col {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.prayer-stats-col-icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
}

.prayer-stats-col-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prayer-stats-col-icon .material-symbols-outlined {
  font-size: 20px;
}

.prayer-stats-col-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #34C759;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 0 0 2px #1a0505;
}

body.light-mode .prayer-stats-col-badge {
  box-shadow: 0 0 0 2px #fff;
}

.prayer-stats-col-badge .material-symbols-outlined {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.prayer-stats-col.done .prayer-stats-col-badge {
  opacity: 1;
  transform: scale(1);
}

.prayer-stats-col-name {
  font-size: 12px;
  font-weight: 700;
}

.prayer-stats-col-time {
  font-size: 10px;
  opacity: 0.5;
}

.prayer-stats-ring-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 32px;
  border-radius: 32px;
  margin-bottom: 10px;
}

.prayer-ring-daynav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 6px;
}

.prayer-ring-daylabel {
  font-size: 14px;
  font-weight: 700;
  min-width: 90px;
  text-align: center;
}

.prayer-stats-ring-wrap {
  position: relative;
  width: 180px;
  height: 180px;
}

.prayer-stats-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.prayer-stats-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 14;
}

.prayer-stats-ring-fg {
  fill: none;
  stroke: url(#prayerRingGradient);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 439.82;
  stroke-dashoffset: 439.82;
  transition: stroke-dashoffset 0.6s ease;
}

body.light-mode .prayer-stats-ring-bg {
  stroke: rgba(0, 0, 0, 0.08);
}

.prayer-stats-ring-badge {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f2f28;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

body.light-mode .prayer-stats-ring-badge {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.prayer-stats-ring-badge .material-symbols-outlined {
  font-size: 16px;
  font-weight: 700;
  color: #22c55e;
}

.prayer-stats-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.prayer-stats-ring-value {
  font-size: 36px;
  font-weight: 800;
  color: inherit;
}

.prayer-stats-ring-label {
  font-size: 13px;
  opacity: 0.55;
  margin-top: 2px;
}

.prayer-week-widget-card {
  flex-direction: column;
  align-items: stretch;
  padding: 20px 18px;
  border-radius: 28px;
  margin-bottom: 10px;
}

.prayer-week-widget-header {
  margin-bottom: 18px;
}

.prayer-week-widget-title {
  font-size: 17px;
  font-weight: 700;
}

.prayer-week-widget-sub {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 2px;
}

.prayer-week-widget-body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.prayer-week-ring-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  flex-shrink: 0;
}

.prayer-week-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.prayer-week-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.prayer-week-ring-fg {
  fill: none;
  stroke: #22c55e;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

body.light-mode .prayer-week-ring-bg {
  stroke: rgba(0, 0, 0, 0.08);
}

.prayer-week-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

.prayer-week-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 70px;
}

.prayer-week-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}

.prayer-week-bar-fill {
  width: 100%;
  max-width: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  min-height: 6px;
  transition: height 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.prayer-week-bar.has-data .prayer-week-bar-fill {
  background: #22c55e;
}

.prayer-week-bar.is-today .prayer-week-bar-fill {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.55);
}

.prayer-week-bar-label {
  font-size: 10px;
  opacity: 0.45;
  font-weight: 600;
}

body.light-mode .prayer-week-bar-fill {
  background: rgba(0, 0, 0, 0.06);
}

.prayer-heatmap-card {
  flex-direction: column;
  align-items: stretch;
  padding: 20px 18px;
  border-radius: 28px;
  margin-bottom: 10px;
}

.prayer-heatmap-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.prayer-heatmap-title {
  font-size: 19px;
  font-weight: 800;
}

.prayer-heatmap-sub {
  font-size: 12px;
  opacity: 0.5;
  white-space: nowrap;
}

.prayer-heatmap-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
}

.prayer-heatmap-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.45;
  letter-spacing: 0.5px;
}

.prayer-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.prayer-heatmap-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  transition: background 0.2s ease;
}

.prayer-heatmap-cell.empty {
  background: transparent;
}

.prayer-heatmap-cell.partial {
  background: rgba(239, 68, 68, 0.45);
}

.prayer-heatmap-cell.full {
  background: #22c55e;
}

body.light-mode .prayer-heatmap-cell {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .prayer-heatmap-cell.empty {
  background: transparent;
}

body.light-mode .prayer-heatmap-cell.partial {
  background: rgba(239, 68, 68, 0.3);
}

body.light-mode .prayer-heatmap-cell.full {
  background: #22c55e;
}

.prayer-heatmap-legend {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.prayer-heatmap-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  opacity: 0.7;
}

.prayer-heatmap-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.prayer-heatmap-dot.none {
  background: rgba(239, 68, 68, 0.08);
}

.prayer-heatmap-dot.partial {
  background: rgba(239, 68, 68, 0.4);
}

.prayer-heatmap-dot.full {
  background: #22c55e;
}

body.light-mode .prayer-heatmap-dot.none {
  background: rgba(0, 0, 0, 0.08);
}

.prayer-cal-card {
  flex-direction: column;
  padding: 18px 16px;
  border-radius: 24px;
  margin-bottom: 10px;
}

.prayer-cal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.prayer-cal-month {
  font-size: 15px;
  font-weight: 700;
}

.prayer-cal-nav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.prayer-cal-nav .material-symbols-outlined {
  font-size: 20px;
}

.prayer-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.prayer-cal-weekdays span {
  text-align: center;
  font-size: 10px;
  opacity: 0.45;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.prayer-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.prayer-cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0.85;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.prayer-cal-cell:active {
  transform: scale(0.9);
}

.prayer-cal-cell.empty {
  background: transparent;
  cursor: default;
}

.prayer-cal-cell.future {
  opacity: 0.3;
  cursor: not-allowed;
}

.prayer-cal-cell.selected {
  box-shadow: 0 0 0 2px #ef4444 inset;
}

.prayer-daytracker-card {
  flex-direction: column;
  align-items: stretch;
  padding: 18px 16px;
  border-radius: 24px;
  margin-bottom: 10px;
}

.prayer-daytracker-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.prayer-daytracker-icon {
  font-size: 20px;
  opacity: 0.7;
}

.prayer-daytracker-date {
  font-size: 15px;
  font-weight: 700;
}

.prayer-daytracker-hint {
  font-size: 12px;
  opacity: 0.5;
  margin-bottom: 14px;
}

.prayer-daytracker-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prayer-cal-cell.partial {
  background: rgba(249, 115, 22, 0.35);
  color: #ffedd5;
  opacity: 1;
}

.prayer-cal-cell.full {
  background: rgba(34, 197, 94, 0.45);
  color: #ecfdf5;
  opacity: 1;
}

.prayer-cal-cell.today {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6) inset;
}

body.light-mode .prayer-cal-cell.none {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .prayer-cal-cell.partial {
  background: rgba(249, 115, 22, 0.25);
  color: #7c2d12;
}

body.light-mode .prayer-cal-cell.full {
  background: rgba(34, 197, 94, 0.3);
  color: #14532d;
}

body.light-mode .prayer-cal-cell.today {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5) inset;
}

.prayer-cal-legend {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.prayer-cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  opacity: 0.7;
}

.prayer-cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.prayer-cal-dot.full {
  background: #22c55e;
}

.prayer-cal-dot.partial {
  background: #f97316;
}

.prayer-cal-dot.none {
  background: rgba(255, 255, 255, 0.25);
}

body.light-mode .prayer-cal-dot.none {
  background: rgba(0, 0, 0, 0.2);
}
