.azkar-main {
  display: block;
  min-height: calc(100vh - var(--header-h) - var(--nav-h) - 210px);
}

.azkar-hero {
  margin-bottom: 22px;
}

.azkar-hero .prayer-name {
  font-size: 28px;
}

.azkar-hero-text {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  position: relative;
  max-width: 560px;
}

.azkar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.azkar-type-card {
  min-height: 185px;
}

.azkar-back-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.azkar-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border2);
  background: var(--emerald-glow2);
}

.azkar-reader .card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: opacity 0.25s, transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.azkar-reader .card.transitioning {
  opacity: 0.55;
  transform: scale(0.98);
}

.zekr-container {
  min-height: 390px;
  padding: 32px 24px;
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.zekr-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, var(--emerald-glow), transparent 36%),
    linear-gradient(135deg, var(--emerald-glow2), transparent 66%);
  pointer-events: none;
}

.zekr-number {
  position: relative;
  z-index: 1;
  color: var(--emerald);
  background: var(--emerald-glow);
  border: 1px solid var(--border2);
  border-radius: 99px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.zekr-text {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 2.05;
  max-width: 100%;
  margin: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: pretty;
}

.counter-btn {
  position: relative;
  z-index: 1;
  min-width: 136px;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: #ffffff;
  font-family: 'Alexandria', sans-serif;
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--shadow-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
  touch-action: manipulation;
}

.counter-btn:hover {
  transform: translateY(-2px);
}

.counter-btn:active,
.counter-btn.pressed {
  transform: scale(0.96);
}

.counter-btn:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.counter-btn.completed {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.azkar-reader + .footer,
.azkar-main + .footer {
  margin-top: 28px;
}

@media (min-width: 600px) {
  .azkar-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .azkar-type-card {
    min-height: 210px;
  }
}

@media (min-width: 900px) {
  .azkar-main {
    min-height: calc(100vh - var(--header-h) - 210px);
  }
}

@media (max-width: 480px) {
  .azkar-hero .prayer-name {
    font-size: 24px;
  }

  .zekr-container {
    min-height: 360px;
    padding: 26px 16px;
    gap: 20px;
  }

  .zekr-text {
    font-size: 18px;
    line-height: 2;
  }

  .counter-btn {
    font-size: 18px;
    min-width: 118px;
    min-height: 52px;
    padding: 12px 22px;
  }
}
