/* Bereket Duası — İznik çinisi paleti
   porselen zemin, kobalt yazı, turkuaz vurgu; mercan yalnızca hedef tamamlanınca ve kayıtta.
   Telefonda uygulama (alt sekme çubuğu, sabit oynatıcı), geniş ekranda web sitesi
   (üst menü, iki sütun, yanda oynatıcı kartı). */

:root {
  --porcelain: #f6f8fa;
  --surface: #ffffff;
  --ink: #14244f;
  --ink-soft: #4a5a80;
  --cobalt: #1b3a8c;
  --turquoise: #12807f;
  --coral: #c2412d;
  --line: #d6deea;
  --on-cobalt: #f4f7ff;
  --band: #4fc3bf;
  --now-bg: #e5f3f2;

  --font-tr: "Alegreya", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-ar: "Amiri", "Geeza Pro", "Noto Naskh Arabic", "Traditional Arabic", serif;

  --gutter: 20px;
  --wrap: 560px;
  --header-h: 60px;
  --tabbar-h: 62px;
  --dock-h: 190px;
  --scale: 1;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --porcelain: #0d1736;
    --surface: #13214a;
    --ink: #e8eef8;
    --ink-soft: #a7b5d6;
    --cobalt: #2a4fb0;
    --turquoise: #4cc2be;
    --coral: #f07a62;
    --line: #253669;
    --on-cobalt: #f4f7ff;
    --band: #7fd8d4;
    --now-bg: #15305a;
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.18s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-tr);
  font-size: 18px;
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a {
  color: inherit;
}

button,
select,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cobalt);
  color: var(--on-cobalt);
}

.skip:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- Düğmeler ---------- */

.btn,
.btn-outline,
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 24px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn {
  border: 0;
  background: var(--cobalt);
  color: var(--on-cobalt);
}

.btn-outline {
  border: 1.5px solid var(--turquoise);
  background: transparent;
  color: var(--turquoise);
}

.btn-text {
  border: 0;
  background: none;
  padding: 0 8px;
  color: var(--turquoise);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-text.danger {
  color: var(--coral);
}

.pill {
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.pill span {
  font-size: 0.8em;
  margin-left: 1px;
}

/* ---------- Üst çubuk ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--porcelain) 90%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  view-transition-name: site-header;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--turquoise);
  flex: none;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 500;
  color: var(--turquoise);
}

.back::before {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.site-nav {
  display: none;
}

.tools {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

/* Telefonda dua sayfasında: geri + araçlar; marka gizli */
.brand.has-back {
  display: none;
}

/* ---------- Alt sekme çubuğu (telefon) ---------- */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--porcelain) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  view-transition-name: tabbar;
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--tabbar-h);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.tabbar svg {
  width: 24px;
  height: 24px;
}

.tabbar a[aria-current="page"] {
  color: var(--turquoise);
}

body:has(.tabbar) {
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

/* ---------- Sayfa yolu ---------- */

.crumbs {
  display: none;
}

/* ---------- Ana sayfa ---------- */

.intro {
  padding: 8px 0 4px;
}

.intro h1 {
  font-size: 1.65rem;
  margin: 4px 0 8px;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 60ch;
}

.intro-actions {
  display: none;
}

.hero {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--cobalt);
  color: var(--on-cobalt);
  border-radius: 28px 28px 28px 6px;
  padding: 44px 22px 22px;
  overflow: hidden;
}

.hero-band {
  position: absolute;
  inset: 0 0 auto 0;
  height: 22px;
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cg fill='none' stroke='%237fd8d4' stroke-width='1.1'%3E%3Ccircle cx='11' cy='11' r='3'/%3E%3Cpath d='M11 1.5c2 2.6 2 4.6 0 6.2-2-1.6-2-3.6 0-6.2zM11 20.5c2-2.6 2-4.6 0-6.2-2 1.6-2 3.6 0 6.2zM1.5 11c2.6-2 4.6-2 6.2 0-1.6 2-3.6 2-6.2 0zM20.5 11c-2.6-2-4.6-2-6.2 0 1.6 2 3.6 2 6.2 0z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 22px 22px;
  background-repeat: repeat-x;
  opacity: 0.9;
}

.hero-arabic {
  display: block;
  font-family: var(--font-ar);
  font-size: clamp(1.7rem, 7.4vw, 2.3rem);
  line-height: 2.05;
  margin: 0 0 18px;
  text-align: right;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 16px;
}

.hero-title {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-meaning {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.45;
  opacity: 0.86;
}

.hero-play {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  color: var(--band);
}

.hero-play svg {
  width: 100%;
  height: 100%;
}

.hero-play .tri {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -7px 0 0 -4px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--on-cobalt);
}

.hero:active {
  transform: scale(0.99);
}

/* ---------- Dua listeleri ---------- */

.list h2,
.faq h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 34px 0 4px;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  min-height: 64px;
}

.rows li:last-child .row {
  border-bottom: 0;
}

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

.row-title {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
}

.row-sub {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.row-rec {
  color: var(--turquoise);
  font-weight: 500;
  white-space: nowrap;
}

.row-end {
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--turquoise);
  border-top: 2px solid var(--turquoise);
  transform: rotate(45deg);
  margin-right: 6px;
}

.row-count {
  flex: none;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: var(--turquoise);
  color: var(--porcelain);
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Okuma bağlantıları ---------- */

.teasers {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.teaser {
  display: grid;
  gap: 2px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-decoration: none;
}

.teaser-ar {
  font-family: var(--font-ar);
  font-size: 1.5rem;
  line-height: 1.9;
  color: var(--turquoise);
  text-align: right;
}

.teaser-title {
  font-weight: 700;
  font-size: 1.15rem;
}

.teaser-text {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Sık sorulan sorular ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-right: 2px solid var(--turquoise);
  border-bottom: 2px solid var(--turquoise);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq details p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  max-width: 68ch;
}

.faq details a {
  color: var(--turquoise);
}

.install-card {
  display: grid;
  gap: 12px;
  margin: 28px 0 8px;
  padding: 18px 20px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--turquoise) 12%, transparent);
}

.install-card p {
  margin: 0;
}

.install-card .btn {
  justify-self: start;
}

/* ---------- Sayfa başlıkları ve yazılar ---------- */

.page-head {
  padding: 8px 0 6px;
}

.page-head h1,
.article h1 {
  font-size: 1.8rem;
  margin: 6px 0 8px;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  font-size: 1.3rem;
  margin: 30px 0 8px;
}

.prose h3 {
  font-size: 1.08rem;
  margin: 20px 0 4px;
}

.prose p,
.prose li {
  line-height: 1.65;
}

.prose p {
  margin: 0 0 12px;
}

.prose ul:not(.rows) {
  padding-left: 1.2em;
  margin: 0 0 12px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--turquoise);
}

.prose .rows a {
  color: inherit;
}

.article {
  padding-bottom: 24px;
}

/* ---------- Dua sayfası ---------- */

.dua-head h1 {
  font-size: 1.75rem;
  margin: 6px 0 2px;
}

.dua-name {
  margin: 0;
  font-style: italic;
  color: var(--turquoise);
}

.summary {
  margin: 2px 0 16px;
  color: var(--ink-soft);
}

.dua-main {
  padding-bottom: calc(var(--dock-h) + 24px + env(safe-area-inset-bottom));
}

/* Ses kaynağı kartı */
.voice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.voice-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--turquoise) 16%, transparent);
  position: relative;
}

.voice-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 10px;
  height: 15px;
  margin-left: -5px;
  border-radius: 5px;
  background: var(--turquoise);
}

.voice-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 15px;
  width: 16px;
  height: 11px;
  margin-left: -8px;
  border: 2px solid var(--turquoise);
  border-top: 0;
  border-radius: 0 0 9px 9px;
}

.voice[data-kind="own"] .voice-icon,
.voice[data-kind="site"] .voice-icon {
  background: var(--turquoise);
}

.voice[data-kind="own"] .voice-icon::before,
.voice[data-kind="site"] .voice-icon::before {
  background: var(--porcelain);
}

.voice[data-kind="own"] .voice-icon::after,
.voice[data-kind="site"] .voice-icon::after {
  border-color: var(--porcelain);
}

.voice-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.voice-text strong {
  display: block;
  font-size: 1rem;
}

.voice-text span {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.voice-more {
  flex: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--turquoise);
}

/* Görünüm sekmeleri: birden fazlası açık olabilir */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 18px;
  max-width: 480px;
}

.tabs button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.98rem;
}

.tabs button[aria-pressed="true"] {
  background: var(--cobalt);
  color: var(--on-cobalt);
}

/* Satırlar: her bölümün Arapçası, okunuşu ve anlamı bir arada */
.lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.line {
  position: relative;
  padding: 14px 14px 14px 18px;
  margin: 0 -14px;
  border-radius: 18px;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.line + .line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 14px;
  border-top: 1px dashed var(--line);
}

.line p {
  margin: 0;
}

.line .ar {
  font-family: var(--font-ar);
  font-size: calc(1.9rem * var(--scale));
  line-height: 2;
  text-align: right;
}

.line .tr {
  font-style: italic;
  font-size: calc(1.12rem * var(--scale));
  line-height: 1.5;
  color: var(--turquoise);
  margin-top: 2px;
}

.line .mean {
  font-size: calc(1.08rem * var(--scale));
  line-height: 1.55;
  margin-top: 4px;
}

.lines.is-playing .line {
  opacity: 0.6;
}

.lines.is-playing .line.now {
  opacity: 1;
  background: var(--now-bg);
}

.lines.is-playing .line.now::before,
.lines.is-playing .line.now + .line::before {
  border-color: transparent;
}

.lines.is-playing .line.now::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 2px;
  background: var(--turquoise);
}

.lines.is-recording .line.now::after {
  background: var(--coral);
}

.source {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 18px 0 0;
}

.source a {
  color: var(--turquoise);
}

.related h2 {
  margin-top: 30px;
}

/* ---------- Oynatıcı: telefonda alt panel ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--porcelain) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  view-transition-name: tabbar;
}

.dock-play {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 12px;
}

.target,
.tap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.target {
  justify-self: start;
}

.target select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 60px;
  height: 44px;
  padding: 0 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
}

.tap {
  justify-self: end;
  min-width: 60px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.tap .plus {
  display: grid;
  place-items: center;
  width: 52px;
  height: 44px;
  border-radius: 22px;
  border: 1.5px solid var(--turquoise);
  color: var(--turquoise);
  font-weight: 700;
  font-size: 1.05rem;
}

.tap.pulse .plus {
  animation: pulse 0.32s ease-out;
}

@keyframes pulse {
  50% {
    transform: scale(1.12);
    background: color-mix(in srgb, var(--turquoise) 18%, transparent);
  }
}

.medallion {
  position: relative;
  width: 92px;
  height: 92px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  box-shadow: 0 6px 22px -10px rgba(20, 36, 79, 0.45);
}

.medallion > svg:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.medallion .track {
  fill: none;
  stroke: var(--line);
  stroke-width: 6;
}

.medallion .progress {
  fill: none;
  stroke: var(--turquoise);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease, stroke 0.3s;
}

.medallion.done .progress {
  stroke: var(--coral);
}

.medallion .petals {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  color: color-mix(in srgb, var(--turquoise) 55%, transparent);
}

.medallion.playing .petals {
  animation: turn 18s linear infinite;
  color: var(--turquoise);
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

.medallion .icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: var(--cobalt);
}

.medallion .icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -4px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--on-cobalt);
}

.medallion.playing .icon::before {
  margin: -7px 0 0 -7px;
  width: 5px;
  height: 14px;
  border: 0;
  background: var(--on-cobalt);
  box-shadow: 9px 0 0 var(--on-cobalt);
}

.medallion:active {
  transform: scale(0.97);
}

.tally {
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.tally .count {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.reset {
  margin-left: 8px;
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--turquoise);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-size: 0.92rem;
}

.status {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.status:empty,
.player-hint {
  display: none;
}

/* Kayıt modu */
.dock-rec {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0 4px;
}

.rec-cancel {
  border: 0;
  background: none;
  color: var(--ink-soft);
  min-height: 44px;
  cursor: pointer;
}

.rec-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  border: 0;
  border-radius: 30px;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}

.rec-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

.rec-time {
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--coral);
  font-weight: 700;
}

/* ---------- Günlük vird: dua sayfası ---------- */

.vird-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 2px 0 16px;
  padding: 0 14px 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}

.vird-check {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--turquoise);
}

.vird-check::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  line-height: 1;
  font-weight: 700;
  color: var(--turquoise);
}

.vird-toggle[aria-pressed="true"] {
  border-color: var(--turquoise);
  background: color-mix(in srgb, var(--turquoise) 12%, var(--surface));
}

.vird-toggle[aria-pressed="true"] .vird-check {
  background: var(--turquoise);
}

.vird-toggle[aria-pressed="true"] .vird-check::after {
  content: "";
  inset: auto;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid var(--porcelain);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.summary {
  margin-bottom: 10px;
}

.next-vird {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-weight: 700;
  color: var(--turquoise);
}

.next-vird::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

/* ---------- Dinleyerek takip ---------- */

.line .w {
  transition: color 0.2s ease;
}

.lines.is-listening .line .w.heard {
  color: var(--turquoise);
}

.lines.is-listening .line {
  cursor: pointer;
}

.heard-text {
  margin: 4px 0 0;
  font-family: var(--font-ar);
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--coral) 14%, transparent);
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: 2px;
}

/* ---------- İlerleme halkası ---------- */

.mini-ring {
  display: block;
  transform: rotate(-90deg);
}

.mr-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 4;
}

.mr-fill {
  fill: none;
  stroke: var(--turquoise);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease;
}

/* ---------- Ana sayfa: vird şeridi ---------- */

.vird-strip:empty {
  display: none;
}

.strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-decoration: none;
}

.strip-ring {
  position: relative;
  flex: none;
}

.strip-n {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.strip-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.strip-text strong {
  display: block;
}

.strip-text span {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.strip.is-complete {
  border-color: var(--turquoise);
  background: color-mix(in srgb, var(--turquoise) 10%, var(--surface));
}

/* ---------- Günlük vird sayfası ---------- */

.vird-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  align-items: center;
  margin: 8px 0 22px;
  padding: 20px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.vird-summary.is-complete {
  border-color: var(--turquoise);
  background: color-mix(in srgb, var(--turquoise) 10%, var(--surface));
}

.vs-ring {
  position: relative;
}

.vs-ring .mr-track,
.vs-ring .mr-fill {
  stroke-width: 3.5;
}

.vs-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.vs-count strong {
  font-size: 1.6rem;
  color: var(--ink);
}

.vs-text h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.vs-text p {
  margin: 0;
  color: var(--ink-soft);
}

.vs-text a {
  color: var(--turquoise);
  font-weight: 700;
}

.streak {
  margin-top: 6px !important;
}

.streak strong {
  color: var(--coral);
  font-size: 1.15rem;
}

.week {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 10px 0 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.week li {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.week .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
}

.week li.on .dot {
  border-color: var(--turquoise);
  background: var(--turquoise);
}

.week li.today span:not(.dot) {
  color: var(--ink);
  font-weight: 700;
}

.week li.today .dot {
  border-color: var(--turquoise);
}

.tasks-h {
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.tasks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.task {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  min-height: 68px;
}

.tasks li:last-child .task {
  border-bottom: 0;
}

.task-ring {
  position: relative;
  flex: none;
}

.task-check {
  position: absolute;
  inset: 0;
}

.task.done .mr-fill {
  stroke: var(--turquoise);
}

.task.done .task-check {
  inset: 8px;
  border-radius: 50%;
  background: var(--turquoise);
}

.task.done .task-check::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 7px;
  height: 13px;
  border: solid var(--porcelain);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.task.done .row-title {
  color: var(--ink-soft);
}

.editor-actions {
  margin: 18px 0 0;
}

.vird-setup h2 {
  font-size: 1.3rem;
  margin: 10px 0 4px;
}

.vird-setup > p {
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.editor {
  list-style: none;
  margin: 0;
  padding: 0;
}

.editor li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.ed-row {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.ed-row > span {
  min-width: 0;
}

.ed-row input {
  flex: none;
  width: 22px;
  height: 22px;
  accent-color: var(--turquoise);
}

.ed-row .row-title {
  font-size: 1.02rem;
}

.ed-row .row-sub {
  font-size: 0.86rem;
}

.ed-target {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.ed-target select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 56px;
  height: 40px;
  padding: 0 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  text-align-last: center;
}

.sheet .editor {
  margin-bottom: 16px;
}

/* ---------- Hatırlatma ---------- */

.reminders {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.reminders h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.reminders .muted {
  margin: 0 0 14px;
}

.rem-times {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.rem-time {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 4px 4px 14px;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: var(--porcelain);
}

.rem-time input {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.rem-del {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.rem-status {
  margin: 8px 0 0;
  color: var(--turquoise);
  font-weight: 500;
}

.rem-status:empty {
  display: none;
}

/* ---------- İzin kartı ---------- */

.consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom));
  z-index: 30;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 32px -12px rgba(13, 23, 54, 0.35);
  font-size: 0.95rem;
}

body[data-page="dua"] .consent {
  bottom: calc(var(--dock-h) + 8px + env(safe-area-inset-bottom));
}

.consent p {
  margin: 0 0 12px;
  line-height: 1.45;
}

.consent a {
  color: var(--turquoise);
}

.consent-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.consent .btn {
  min-height: 42px;
}

@media (min-width: 900px) {
  .consent,
  body[data-page="dua"] .consent {
    left: auto;
    right: 24px;
    bottom: 24px;
    max-width: 420px;
  }
}

/* ---------- Ses paneli ---------- */

.sheet {
  width: min(560px, 100%);
  max-width: 100%;
  max-height: 88dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: var(--porcelain);
  color: var(--ink);
}

.sheet {
  overflow-x: hidden;
}

.sheet::backdrop {
  background: rgba(13, 23, 54, 0.45);
}

.sheet-body {
  padding: 22px var(--gutter) calc(20px + env(safe-area-inset-bottom));
}

.sheet h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.sheet section {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.sheet h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.sheet p {
  margin: 0 0 12px;
  line-height: 1.45;
}

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.file-pick {
  display: inline-block;
  margin-bottom: 6px;
  cursor: pointer;
}

.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
}

.switch input {
  width: 22px;
  height: 22px;
  accent-color: var(--turquoise);
}

.sheet .close {
  width: 100%;
  margin-top: 16px;
}

/* ---------- Ayetler ---------- */

.verse {
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
}

.verse h2 {
  font-size: 1.2rem;
  margin: 0;
}

.verse-lead {
  margin: 2px 0 6px;
  color: var(--ink-soft);
}

.verse h2 a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.verse-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 4px 0 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.verse-foot a {
  color: var(--turquoise);
  font-weight: 500;
}

/* ---------- Dualar dizini ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}

.chips a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
}

.chips a:hover {
  border-color: var(--turquoise);
}

.list .more {
  margin: 14px 0 0;
}

.ed-more {
  margin-top: 12px;
}

.ed-more summary {
  cursor: pointer;
  padding: 10px 0;
  color: var(--turquoise);
  font-weight: 500;
}

/* ---------- Bugün ---------- */

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 18px;
}

.stats p {
  display: grid;
  margin: 0;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.stat-n {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-l {
  color: var(--ink-soft);
}

.empty {
  padding: 24px 20px;
  border-radius: 20px;
  border: 1px dashed var(--line);
}

.empty p {
  margin: 0 0 14px;
}

.notfound {
  text-align: center;
  padding-top: 32px;
}

.nf-mark {
  width: 64px;
  height: 64px;
  color: var(--turquoise);
}

.notfound .lead {
  margin-inline: auto;
}

/* ---------- Alt bilgi ---------- */

.site-footer {
  margin-top: 48px;
  padding: 28px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

body[data-page="dua"] .site-footer {
  display: none;
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.footer-brand .brand {
  color: var(--ink);
}

.footer-brand p {
  margin: 8px 0 0;
  max-width: 40ch;
}

.footer-links {
  display: grid;
  gap: 2px;
  align-content: start;
}

.footer-links h2 {
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 6px;
}

.footer-links a {
  text-decoration: none;
  padding: 4px 0;
}

.footer-links a:hover {
  color: var(--turquoise);
}

.footer-note {
  margin-top: 20px;
  font-size: 0.88rem;
}

/* ---------- Uygulama olarak açıldığında ---------- */

.standalone .install {
  display: none;
}

/* ---------- Geniş ekran: web sitesi düzeni ---------- */

@media (min-width: 900px) {
  :root {
    --wrap: 1120px;
    --gutter: 32px;
    --header-h: 72px;
  }

  body:has(.tabbar) {
    padding-bottom: 0;
  }

  .tabbar {
    display: none;
  }

  .site-header {
    border-bottom-color: var(--line);
  }

  .back {
    display: none;
  }

  .brand.has-back {
    display: inline-flex;
  }

  .site-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
  }

  .site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    color: var(--ink-soft);
  }

  .site-nav a:hover {
    color: var(--ink);
    background: var(--surface);
  }

  .site-nav a[aria-current="page"] {
    color: var(--ink);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
  }

  .tools {
    margin-left: 12px;
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }

  .crumbs {
    display: block;
    margin: 22px 0 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
  }

  .crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .crumbs li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--line);
  }

  .crumbs a {
    text-decoration: none;
    color: var(--turquoise);
  }

  /* Ana sayfa */
  .intro {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: center;
    padding: 56px 0 24px;
  }

  .intro h1 {
    font-size: 3rem;
    line-height: 1.08;
    margin: 0 0 18px;
  }

  .lead {
    font-size: 1.22rem;
  }

  .intro-actions {
    display: flex;
    gap: 12px;
    margin: 0;
  }

  .hero {
    padding: 52px 36px 30px;
    border-radius: 36px 36px 36px 8px;
  }

  .hero-arabic {
    font-size: 2.5rem;
  }

  .list h2,
  .faq h2 {
    font-size: 1.5rem;
    margin-top: 56px;
  }

  #dualar .rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }

  #dualar .rows li:nth-last-child(2) .row {
    border-bottom: 0;
  }

  .teasers {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
  }

  .teaser {
    padding: 24px 28px;
  }

  .teaser:hover,
  .row:hover .row-title {
    color: var(--turquoise);
  }

  .faq {
    max-width: 800px;
  }

  .install {
    max-width: 800px;
  }

  /* Yazılar: ortalanmış okuma sütunu */
  body[data-page="article"] main.wrap,
  body[data-page="verses"] main.wrap,
  body[data-page="today"] main.wrap,
  body[data-page="notfound"] main.wrap {
    max-width: 800px;
  }

  .page-head,
  .article {
    padding-top: 24px;
  }

  .page-head h1,
  .article h1 {
    font-size: 2.6rem;
  }

  .verses {
    max-width: 800px;
  }

  .stats,
  .today .rows,
  .empty {
    max-width: 640px;
  }

  /* Dua sayfası: iki sütun, yanda oynatıcı kartı */
  .dua-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: start;
    margin-top: 12px;
  }

  .dua-main {
    padding-bottom: 24px;
  }

  .dua-head h1 {
    font-size: 2.6rem;
  }

  .line .ar {
    font-size: calc(2.3rem * var(--scale));
  }

  .dock {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-width: none;
    margin: 24px 0 0;
    padding: 28px 24px 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    view-transition-name: none;
  }

  .medallion {
    width: 132px;
    height: 132px;
  }

  .medallion .petals {
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
  }

  .medallion .icon {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
  }

  .tally {
    margin-top: 14px;
  }

  .player-hint {
    display: block;
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--ink-soft);
    text-align: center;
  }

  .dock-rec {
    grid-template-columns: 1fr;
  }

  .rec-time {
    text-align: center;
  }

  body[data-page="dua"] .site-footer {
    display: block;
  }

  .sheet {
    margin: auto;
    border-radius: 24px;
  }

  /* Alt bilgi */
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .medallion.playing .petals,
  .tap.pulse .plus,
  .rec-dot {
    animation: none;
  }
  .medallion .progress,
  .line,
  .faq summary::after {
    transition: none;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* ---------- Sureler ve cüzler ---------- */

.row-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--turquoise);
  font-variant-numeric: tabular-nums;
}

.row-ar {
  flex: none;
  margin-left: 12px;
  font-family: var(--font-ar);
  font-size: 1.25rem;
  color: var(--cobalt);
}

.surah-head {
  text-align: center;
}

.surah-head .lead {
  text-align: left;
}

.surah-ar {
  margin: 0;
  font-family: var(--font-ar);
  font-size: 2rem;
  color: var(--turquoise);
}

.basmala,
.juz-start {
  margin: 8px 0 4px;
  padding: 14px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.basmala .ar,
.juz-start .ar {
  font-family: var(--font-ar);
  font-size: calc(1.6rem * var(--scale));
  margin: 0;
}

.basmala .tr,
.basmala .mean,
.juz-start .tr,
.juz-start .mean {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.juz-start {
  text-align: right;
}

.juz-start .tr,
.juz-start .mean {
  text-align: left;
}

.ayah-no {
  color: var(--turquoise);
  font-size: 0.8em;
  white-space: nowrap;
}

.ayahs .tr .no {
  display: inline-grid;
  place-items: center;
  min-width: 1.7em;
  height: 1.7em;
  margin-right: 6px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--now-bg);
  color: var(--turquoise);
  font-size: 0.78em;
  font-style: normal;
  text-decoration: none;
  vertical-align: 1px;
}

.sajda {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--coral);
  color: var(--coral);
  font-size: 0.8em;
}

.ayahs .line:target {
  background: var(--now-bg);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.pager a {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.pager a span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.pager a[rel="next"] {
  text-align: right;
}
